Previous Thread
Next Thread
Print Thread
Rate Thread
#125272 03/19/2001 11:20 AM
Joined: Mar 2001
Posts: 52
Member
Member
Offline
Joined: Mar 2001
Posts: 52
Hi.
I am searching for a hack that adds user titles or ranks.

For example:
if you have 0-20 posts - newbie
20-50 posts - junior member
50-100 posts - member
100-150 posts - super member
150 -200 posts - elite member

Does somebody have this hack?

PS.
i am running ubb version 5.47 c

Sponsored Links
#125273 03/19/2001 12:26 PM
Joined: Feb 2001
Posts: 108
p2k Offline
Member
Member
Offline
Joined: Feb 2001
Posts: 108
Open up UBB_LIBRARY2.PL

-----
Search for:

elsif ($ThisStatus eq "Moderator") {
-----

The lines below this are the ones you want to modify.

You can change as well as add as many ranks as you so desire (I modified mine to have 20 levels).

Anyhow, one of the first lines should have:

if ($thisprofile[7] > 21) {
$ThisStatus = "Junior Member"

It might say Newbie for the first line, I cannot recall. Just start adding more lines so your code would eventually look like this:

if ($thisprofile[7] > 21) {
$ThisStatus = "Junior Member
";

}

if ($thisprofile[7] > 41) {
$ThisStatus = "Junior Member 1
";

}

if ($thisprofile[7] > 61) {
$ThisStatus = "Junior Member 2
";

}

if ($thisprofile[7] > 81) {
$ThisStatus = "Junior Member 3
";

}

etc... Just remember to change the number following the > to the # of posts assigned to that rank/level.

p2k

#125274 03/19/2001 12:32 PM
Joined: Aug 2000
Posts: 569
Member
Member
Offline
Joined: Aug 2000
Posts: 569
Its called starhack smile

#125275 03/19/2001 12:39 PM
Joined: Feb 2001
Posts: 108
p2k Offline
Member
Member
Offline
Joined: Feb 2001
Posts: 108
That'll work too. You can even kill the annoying stars if you don't want them with your ranks either.

p2k

#125276 03/20/2001 2:20 AM
Joined: Mar 2001
Posts: 52
Member
Member
Offline
Joined: Mar 2001
Posts: 52
Thanks

Sponsored Links
#125277 04/25/2001 4:16 PM
Joined: Jan 2001
Posts: 8
Junior Member
Junior Member
Offline
Joined: Jan 2001
Posts: 8
Mine says this in it:

Code
code:

Where in there would I put that, EXACTLY? This is v. 545b.


Signature? Derr... what's that?
#125278 04/25/2001 10:07 PM
Joined: Sep 2000
Posts: 1,304
Addict
Addict
Offline
Joined: Sep 2000
Posts: 1,304
.o0 (How can people post in the wrong forum everyone single time???)

Moving to Questions


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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
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 20240430)