![]() |
OK...
The last time I asked this question I may have made it unclear. So here goes, I have the Star hack installed. This is how it goes. There are 10 Ranks, 1 star each for every level 1 = 1 star 2 = 2 star 3 = 3 star etc... Mod = 11 stars Admin = 12 Webmaster = 12 I have created a new group webmaster where every ability is included.. due to past events now only I have access to the control panel. However, this is my dilema... Instead of the user status saying "Moderator" i wanted it to say "Anime Master" it would go with my board much better however, once this is changed.. instead of 11 stars, it only adds the amount of stars for the rank that person would be at Example: MOD = Anime Master 315 Post 300 posts = 3 stars XXX They are a MOD & have MOD powers but only have the amount of stars for their amount of posts. How would I edit the file so that it would recognize them, Adminz & the Webmaster status asnd show the correct amount of stars? |
What you should do is just set it to use a custom title and since HTML is enabled automatically in custom titles you can just insert something like...
Code:
Anime Master<br><img src="/images/5stars.gif"> |
Code:
elseif ($userinfo[usertitle]=="Moderator") { |
all i did was include it in the usertitle. i did that for personal pics as well cause i couldn't get the avatar to work properly..
Code:
rather simple trick only problem is that u'r members won't be able to do it themselves.. hope this helped. |
Trying to determine a user's level by their title is not a very good way of doing it. Nor do I think embedding HTML code in the custom user titles is. These both work of course but are quick fixes and not flexible. Not only that everytime a Moderator is created or one leaves, there is a lot of maintenance to be done.
However if you program the code correctly, you only have to do things once and the program will adapt to the environment it is in including creating and deleting moderators. Look at this thread for a better way of determining who is a moderator or admin and let the program do the work. http://vbulletin.com/forum/showthrea...ighlight=stars |
Quote:
|
When 2.0 is released I will give out my updated stars hack (you do notice that I have stars on my forum running 2.0 right?).
|
wluke, me & you have never been on the same level.
OK lets start over. Suppose PHP programming were like drving a car. I would be 16months old binding me ineligeble to drive However you would be 25... not only old enough but several years of experience ok.. In other words! I DO NOT HAVE THE SLIGHTEST CLUE ABOUT PHP SCRIPTING! So I will always have to revert back to the easiest option. HTML it is. |
Dude if your forum doesn't have like 10 + mods then you can just do what I said, I do that on mine and everythings great.
|
I tried this and it didn't work!
elseif ($userinfo[usertitle]=="Moderator") { $usertitle="$userinfo Anime Master<br><img src=\"images/star1.gif\" border=0> } |
All times are GMT. The time now is 02:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|