|
|
Joined: Feb 2000
Posts: 57
Member
|
|
Member
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
|
|
|
|
|
Joined: Oct 2000
Posts: 807
Member
|
|
Member
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
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
Joined: Jul 2000
Posts: 837 |
[ February 05, 2001: Message edited by: ClanKiller ]
|
|
|
|
|
Joined: Feb 2000
Posts: 57
Member
|
|
Member
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
|
|
|
|
|
Joined: Mar 2000
Posts: 344
Member
|
|
Member
Joined: Mar 2000
Posts: 344 |
|
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
|
Member
Joined: Feb 2000
Posts: 4,625 |
|
|
|
|
|
Joined: Feb 2000
Posts: 57
Member
|
|
Member
Joined: Feb 2000
Posts: 57 |
|
|
|
|
|
Joined: Feb 2001
Posts: 11
Junior Member
|
|
Junior Member
Joined: Feb 2001
Posts: 11 |
|
|
|
|
|
Joined: Oct 2000
Posts: 192
Member
|
|
Member
Joined: Oct 2000
Posts: 192 |
Now can I replace Member, Administrator status with the custum status?
|
|
|
|
|
Joined: Sep 2000
Posts: 788
Member
|
|
Member
Joined: Sep 2000
Posts: 788 |
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  . The hack is currently in production.  .
-DT
|
|
|
|
|
Joined: Feb 2000
Posts: 57
Member
|
|
Member
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: 116
Journeyman
|
|
Journeyman
Joined: Feb 2000
Posts: 116 |
|
|
|
|
|
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: 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
Joined: Aug 2000
Posts: 1,083 |
well have u tried editing public_edit_profile.pl and changing to [ April 20, 2001 03:37 PM: Message edited by: Travis ]
|
|
|
|
|
Joined: Jun 2000
Posts: 8
Junior Member
|
|
Junior Member
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
Joined: May 2001
Posts: 2,798 |
That should do it. [ July 11, 2001 11:21 PM: Message edited by: Tech-Ni-Kal ]
|
|
|
|
|
Joined: May 2001
Posts: 2,798
Member
|
|
Member
Joined: May 2001
Posts: 2,798 |
Or, if that doesnt work, use this: Find: Replace with: Add above: this: 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
Joined: Mar 2002
Posts: 451 |
The link to the .txt file has now become an adult site.. I think a mod/admin should fix this.. Preferably sooner rather than later..
|
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
And that's exactly what I did 
|
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
|
Member
Joined: May 2001
Posts: 6,708 |
How approipate of you. 
|
|
|
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.
|
|
Posts: 253
Joined: January 2000
|
|
|
Forums63
Topics37,583
Posts293,955
Members13,824
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 413
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 21
|
|
|
|