The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Well you could start out the code like this
PHP Code:
This would exclude the admin (you) from getting an image and also newly created usergroup that would have a group ID of 8. If you want to give a few people a special status you could move these people in the new user group and edit their profile title from the admin panel. From there you can include html in the title. For example you could put -- General<br><img src=images/ranks/general.gif> -- as the tile for that person. If you have more than one admin (and you want other admins to have the default image) you could change the code above from post[usergroupid] to post[userid] and add your specific ID number I'm sure there is a better automated way of doing this but that is far beyond my limited PHP knowledge at this point. |
#12
|
||||
|
||||
Well you just made my life amazingly simple, maybe without even knowing it.
I can just use the html code in the user title like you just showed me. Code:
User Title: Corporal<br><img src=images/ranks/corporal.gif> Really no need to make any changes to showthread.php if I can just include html code in the user title text. Thank you SOOOOO very much. That is exactly what I wanted to do. I did not realize I could use html code in that area. |
#13
|
|||
|
|||
Well DOH, I should have thought about that in the first place. I even have one of my user titles like this (before they receive the first Galaga badge at 10 posts.
Oh well, at least I got a little beginner PHP practice out of it. |
#14
|
||||
|
||||
It's cool man. I have to say I did gain a little better understanding of PHP in the process even though I didn't apply any of the code.
I was actually starting to understand how variables are assigned, and maybe even started to get a clue how some of the else/if statements work. Thanks for your help man, I really do appreciate it. I imagine that this kind of thing can be used more commonly that I had previously though. |
#15
|
|||
|
|||
hmmmm I too am trying to give my mods and admins immunity to the rankings, but i can't seem to get it to work. here's what i did:
In admin/functions.php found: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
#16
|
|||
|
|||
anyone??
|
#17
|
|||
|
|||
You just placed your code in the wrong place. You need to reset rank to nothing after it's been created, so add the code at the end.
PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|