Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2000
Posts: 57
Member
Member
Offline
Joined: Feb 2000
Posts: 57
User Status Hack

Well, on my UBB board the users love to have a custom stat under their name. I am not sure if somone posted this yet, but if they did I did not see it. I figured out how to do it by changing some stuff for the custom avatar hack that MM posted (http://www.h-realms.com/hacks/6.x/avatar6.txt)

This is very simple, and it worked very easily on my board, but make sure you back up your files first.

Here it is

#############################
public_topic_page.pl
#############################

## FIND:

sub topic_row {

## PASTE THIS UNDER:

my $this_txt = $user_profile[19];
chomp($this_txt);

## FIND:

$user_status


$member_number

##(something other than member_number may be here...$AuthorExtra was there in my code)

## PASTE THIS UNDER:
##if you want more breaks, just do the line break html code.

$this_txt

#############################
Save, upload, Clear Cache
#############################

##Then go to your control panel (primary settings:registration settings) and use the LAST custom slot. Enter "Custom User Text" or whatever label you want to use, and make it an optional field. If you wish to use another custom slot, you will need to change the number 19 that I have in the code, to the number of the slot that you use.

-Lupus

User Status Hack

Sponsored Links
Joined: Oct 2000
Posts: 807
Member
Member
Offline
Joined: Oct 2000
Posts: 807
change--->
my $this_img = $user_profile[19];

to--->
my $this_text = $user_profile[19];

Joined: Feb 2000
Posts: 57
Member
Member
Offline
Joined: Feb 2000
Posts: 57
oops, typo...on my board I did it the right way...but when I typed out the instructions I forgot to change it from the image form. Thx for pointing it out. I am getting ready to put it in a text file now...I will fix that typo as well.

Joined: Jul 2000
Posts: 837
Member
Member
Offline
Joined: Jul 2000
Posts: 837
[ February 05, 2001: Message edited by: ClanKiller ]

Joined: Feb 2000
Posts: 57
Member
Member
Offline
Joined: Feb 2000
Posts: 57
User Status Hack

I fixed the prob, and cleared up the directions a bit, and uploaded it. Click on the above link to view it. If you see more typoes, or problems please post them.
-Lupus

Sponsored Links
Joined: Mar 2000
Posts: 344
Member
Member
Offline
Joined: Mar 2000
Posts: 344
That was flawless, worked perfectly. laugh
http://www.aliensoup.com/cgi-bin/ubb6beta/ultimatebb.cgi

Good work.


Administrator / WTF.com / IWantMy80s.com
http://www.wtf.com
http://www.iwantmy80s.com
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Nice job!

Joined: Feb 2000
Posts: 57
Member
Member
Offline
Joined: Feb 2000
Posts: 57
thanks

Joined: Feb 2001
Posts: 11
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 11
Thanks

Joined: Oct 2000
Posts: 192
Member
Member
Offline
Joined: Oct 2000
Posts: 192
Now can I replace Member, Administrator status with the custum status?

Sponsored Links
Joined: Sep 2000
Posts: 793
Member
Member
Offline
Joined: Sep 2000
Posts: 793
Cloud, that specific feature you mentioned is not included in this, but will come out with my custom status hack, which will be released with my stars hack in the future. The custom status hack will replace the moderator/admin/etc, just like the old ones did smile.

The hack is currently in production. smile.


-DT
Joined: Feb 2000
Posts: 57
Member
Member
Offline
Joined: Feb 2000
Posts: 57
This hack was to let individual users change their status by typing in what they want in their profile. You seem to be asking how to change the label for admins, mods, members... This feature is built into the UBB without any hacks. It is somewhere in the control panel.(Primary settings:miscellaneous settings) There is also a "stars hack" out that will put images for different statuses and post amounts. There is a link to it somewhere in this forum (I think a couple different people have written versions of that hack).

Joined: Feb 2000
Posts: 115
Member
Member
Offline
Joined: Feb 2000
Posts: 115
yes, all these things can you do with this hack: https://www.ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=20&t=000090

Joined: Nov 2000
Posts: 1,271
Kahuna
Kahuna
Joined: Nov 2000
Posts: 1,271
i was wondering how you went about limiting the size of this variable?

within cp_edit_profile, i listed my 4th variable as:

Code
code:

note the max length and size are both 25 -- however, even after uploading and clearing the cache file, users still have the ability to enter an 80 character sentance! anyway to limit it?

thanks!

Joined: Aug 2000
Posts: 1,083
Kahuna
Kahuna
Offline
Joined: Aug 2000
Posts: 1,083
well have u tried editing public_edit_profile.pl and changing

Code
code:

to

Code
code:

[ April 20, 2001 03:37 PM: Message edited by: Travis ]


.::First place winner in the June 2001 Member Spotlight ::.
.::Zelda Xtreme::.
Joined: Jun 2000
Posts: 8
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 8
The only problem I see with this hack is that it allows people to put in stuff like "Administrator" and "Moderator". I know it would only appear underneath their real rank, but it seems there should be a way to prevent them from doing this. I don't know enough about CGI myself to do it.

Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Code
code:


That should do it.

[ July 11, 2001 11:21 PM: Message edited by: Tech-Ni-Kal ]

Joined: May 2001
Posts: 2,798
Member
Member
Offline
Joined: May 2001
Posts: 2,798
Or, if that doesnt work, use this:

Find:
Code
code:

Replace with:
Code
code:

Add above:
Code
code:

this:
Code
code:

Make sure the bottom code you put above the sub routine.

[ July 11, 2001 11:31 PM: Message edited by: Tech-Ni-Kal ]

Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
The link to the .txt file has now become an adult site.. wink
I think a mod/admin should fix this.. Preferably sooner rather than later..

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
And that's exactly what I did wink

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
How approipate of you. tipsy


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)