PDA

View Full Version : Please Help Me


AMG
02-01-2001, 07:39 PM
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?

02-01-2001, 08:14 PM
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...

Anime Master<br><img src="/images/5stars.gif">

02-02-2001, 01:55 AM
elseif ($userinfo[usertitle]=="Moderator") {
$usertitle="$userinfo[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0><img src=\"images/star5.gif\" border=0><img src=\"images/star6.gif\" border=0><img src=\"images/star7.gif\" border=0><img src=\"images/star8.gif\" border=0><img src=\"images/star9.gif\" border=0><img src=\"images/star10.gif\" border=0><img src=\"images/star11.gif\" border=0>";
}


This is the code that is inserted in for the Moderator status. What would I have to do to it to make it recognize Anime Master?

02-02-2001, 03:29 AM
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..



<img src="www.starimage.com/pic.gif">Anime Master<br><br><img src="www.icon.com/pic.gif">


this will put stars above the title and a personal icon under the title..

rather simple trick only problem is that u'r members won't be able to do it themselves..

hope this helped.

02-02-2001, 12:59 PM
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/showthread.php?s=&threadid=2683&highlight=stars

02-02-2001, 08:11 PM
Originally posted by wluke
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.


Have to Agree with Wayne

02-02-2001, 08:17 PM
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?).

02-02-2001, 10:46 PM
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.

02-02-2001, 11:18 PM
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.

02-03-2001, 09:18 PM
I tried this and it didn't work!

elseif ($userinfo[usertitle]=="Moderator") {
$usertitle="$userinfo Anime Master<br><img src=\"images/star1.gif\" border=0>
}

02-05-2001, 04:53 PM
Please Someone Helpme.. I would like to get this straightened out!

BUMP!

Re: I tried this and it didn't work!

elseif ($userinfo[usertitle]=="Moderator") {
$usertitle="$userinfo Anime Master<br><img src=\"images/star1.gif\" border=0>
}

02-10-2001, 11:23 AM
i would assume you can do something like

elseif ($userinfo[usertitle]=="Anime Master") {
$usertitle="$userinfo[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0><img src=\"images/star5.gif\" border=0><img src=\"images/star6.gif\" border=0><img src=\"images/star7.gif\" border=0><img src=\"images/star8.gif\" border=0><img src=\"images/star9.gif\" border=0><img src=\"images/star10.gif\" border=0><img src=\"images/star11.gif\" border=0>";
}

or maybe

elseif ($userinfo[usertitle]=="Moderator") {
$usertitle="$userinfo[Anime Master]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0><img src=\"images/star5.gif\" border=0><img src=\"images/star6.gif\" border=0><img src=\"images/star7.gif\" border=0><img src=\"images/star8.gif\" border=0><img src=\"images/star9.gif\" border=0><img src=\"images/star10.gif\" border=0><img src=\"images/star11.gif\" border=0>";
}

and add that where all the other status things are.
but why not do what wayne said, afterall it does seem to be the best way.