View Full Version : Simple rank images hack
EvilLS1
12-24-2002, 10:00 PM
The stars hack wasn't really what I was looking for, so I came up with this.
This is a simple way to show rank images (based on post count) under your member's usernames in the postbit.
Since its based on post counts rather than titles, it works no matter if your users have custom titles or not.
PS: Hopefully I'm not re-inventing the wheel here.. :laugh: If someone has already posted this, my appologies, and feel free to delete this.
Screenshot below. :)
{Edit}
Zip file updated.
EvilLS1
12-25-2002, 08:08 PM
Screenshot
Chris M
12-25-2002, 09:22 PM
Nice:)
Satan
Xenon
12-25-2002, 09:31 PM
i think i've seen such thing very often ;)
just a question: why not just use html - img code in the usertitles?
also, is the zip-file ok, the txt file in, i can't open with ultraedit, just notepad, and it didn't show up well :)
Arabs Emperor
12-25-2002, 09:33 PM
good hack i like it so much thanks
EvilLS1
12-25-2002, 09:41 PM
Originally posted by Xenon
i think i've seen such thing very often ;)
just a question: why not just use html - img code in the usertitles?
Ah, my bad then. I didn't see anything similar in the hacks database. Whats the name of it?
Also, I'm not sure I understand what you mean by useing html -img code in the usertitles. What do ya mean? I don't think its possible to display ranks based on post counts with just html? How would it check the post count?
also, is the zip-file ok, the txt file in, i can't open with ultraedit, just notepad, and it didn't show up well :)
No idea.. Works OK for me (notepad). :confused:
Xenon
12-25-2002, 09:45 PM
i think it's not released as hack, just moretimes in the requestforum :)
if i understand right what you try to do, no hacking at all is needed
in your ACP you can set up usertitles depending on postcount, and there you can also use html, also on the usergroup usertitles.
or did i get something wrong?
if yes, tell me and i'll move it back :)
EvilLS1
12-25-2002, 09:53 PM
Originally posted by Xenon
in your ACP you can set up usertitles depending on postcount, and there you can also use html, also on the usergroup usertitles.
or did i get something wrong?
if yes, tell me and i'll move it back :)
Hehe, it won't work with custom titles that way (the ones that members set themselves).. And about 75% of my members have custom titles. ;)
It doesn't matter to me though.. I just thought someone else might find it useful. :)
Xenon
12-25-2002, 09:58 PM
ok, for custom titles you are right :)
i've moved it back :)
can i give a suggestion: maybe add options to the acp, so you have a system like the usertitle, just with images :)
EvilLS1
12-25-2002, 10:05 PM
Originally posted by Xenon
can i give a suggestion: maybe add options to the acp, so you have a system like the usertitle, just with images :)
Hmm.. Not sure how to do that so that it would still work with custom titles.. Do you know? Sounds like a good idea though. :)
Mystic Gohan
12-26-2002, 03:23 PM
I have the same hack on my forum but its called the Pips and Stars hack and updated to perfection by TinTin and Guichi of PGamers. I like it its pretty nice addition to the forum.
EvilLS1
12-26-2002, 10:25 PM
Originally posted by Xenon
is the zip-file ok, the txt file in, i can't open with ultraedit, just notepad, and it didn't show up well :)
You're right.. I opened the text file with my work compter and it looks all messed up.. Weird, it looked fine on my home computer. *shrugs*
Anyway, I updated the first post with readable instructions. :)
ULTIMATESSJ
12-27-2002, 12:29 AM
open it in WordPad, it looks fine in that
Xenon
12-28-2002, 09:23 PM
@Evil: ahh, ok, my comp is ok :)
Yes, i'd know how to code it to make a real similar functions than usertitles, but i don't have the time to do ;)
i'd say look into how the usertitle is updated at the users maybe you can find out how to do :)
see it as a quest, it's not needed, but why not ;)
Chris M
12-28-2002, 11:05 PM
@EvilSL1 - I have an idea how to do this;)
PM me for details:)
Satan
Joe Page
12-29-2002, 03:53 PM
This is a good hack, thanks :)
monstergamer
03-11-2003, 05:03 PM
every little hack helps
and this is a great hack
I'm actually working on a hack right now (well it's not for this purpose but ok ill release it for this purpose lol)
Poeple might be interested in it.
EvilLS1
03-12-2003, 03:16 AM
I'm sure there's a way integrate this with the CP like the stars hack, but thats something that I don't think I'd really need since this works fine for me and I'll probably never change rank images anyway. But if someone wants to make a more advanced version, go for it! :)
BTW, if anyone wants to give mods, admins and supermods the highest rank or a special rank no matter what their post count is, you could just add something like this:
if (($post[usergroupid] ==5) || ($post[usergroupid] ==6) || ($post[usergroupid] ==7)) {
$rank = "<img src=\"http://www.yoursite.com/forums/images/specialrank.gif\">";
}
ogden2k
05-06-2003, 10:01 PM
This does't work if I go above 1500 posts?
if ($post[posts]<=19) {
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank0.gif\">";
}
else if ($post[posts]<=149) {
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank1.gif\">";
}
else if ($post[posts]<=599) {
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank2.gif\">";
}
else if ($post[posts]<=1499) {
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank3.gif\">";
}
else if ($post[posts]>=2599) {
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank4.gif\">";
}
else if ($post[posts]>=9999) {
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank5.gif\">";
}
else if ($post[posts]>=10001) {
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank6.gif\">";
}
EvilLS1
05-06-2003, 11:23 PM
Today at 12:01 AM ogden2k said this in Post #20 (https://vborg.vbsupport.ru/showthread.php?postid=392493#post392493)
This does't work if I go above 1500 posts?
Use this instead and it'll work.
if ($post[posts]<=19) {
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank0.gif\">";
}
else if ($post[posts]<=149) {
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank1.gif\">";
}
else if ($post[posts]<=599) {
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank2.gif\">";
}
else if ($post[posts]<=1499) {
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank3.gif\">";
}
else if ($post[posts]<=2599) {
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank4.gif\">";
}
else if ($post[posts]<=9999) {
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank5.gif\">";
}
else if ($post[posts]>=10000) {
$rank="<img src=\"http://www.binarydreams.us/forums/images/ranks/rank6.gif\">";
}
ogden2k
05-07-2003, 08:45 PM
Works, thanks very much!
Any way to show the rank in a pm?
Oblivion Knight
05-08-2003, 07:41 PM
Yesterday at 10:45 PM ogden2k said this in Post #22 (https://vborg.vbsupport.ru/showthread.php?postid=392863#post392863)
Works, thanks very much!
Any way to show the rank in a pm?
In the template "privmsg" find:
<smallfont>$fromuserinfo[usertitle]</smallfont><br>
Add after it:
$rank<br>
Not tested, but it should work.. :classic:
ogden2k
05-10-2003, 10:15 PM
It doesn't work, I tried it in the tpl you suggested and in the annoucements tpl.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.