PDA

View Full Version : "Stars" Hack complete.


05-17-2000, 09:37 PM
Hi,

Just thought all of might like to know that I've just done the "Stars" hack that places a little graphical representation of the "User Levels" in the form of little stars. If you want an example head for http://highervoltage.net/mb/

The thing is still very messy and I just hacked it in half and hour... It checks for custom titles and if it finds one, places the maximum stars wanted. The only thing I haven't gotten it to work around is People who are placed in the "Group Administrators/Moderator/etc" groups.

If anyone would like the hack, let me know and I'll clean it up before posting.

Just doing my part :D

--red

05-18-2000, 12:43 AM
Rather than code hacking (I'm assuming that this is what you have done) why not just include HTML in the user titles?

eg.

Member<br><img="1star.gif" border=0>

etc.

Just a thought!

John

05-18-2000, 02:57 AM
that's the route I took. Easiest way to go :)

05-18-2000, 05:22 PM
> Member<br><img="1star.gif" border=0>

Ahh, the beauty of templates... :cool:

05-18-2000, 05:39 PM
I didn't realise templates could do that... Can anyone give me a clearer example of templates and its power?

John, would that example that you gave post stars according to what their user title is? So if someone was on 50 posts and another was on 100, the member on 100 would have more stars?

Anyway, the hack which gave me the idea was from http://www.oneminuteleft.com/ubb/hacks/starshack2000.zip

Ahh well... I'll see if I can port some other UBB hacks into VB -- that is if they don't come as standard out-of-the-box ;)

--red

05-18-2000, 05:43 PM
well, in the user titles I put it like this

0 = @ newbie
50 = @pprentice<br><img src="images/star.gif">
100 = @ctive member<br><img src="images/star.gif"><img src="images/star.gif">

etc, etc

it works fine:)

[Edited by Martin on 05-19-2000 at 01:49 AM]

05-18-2000, 05:55 PM
I didn't realise it could do that, thanks ;)

It gave me an oppurtunity to flex my PHP muscles, so I guess it wasn't a waste after all...

--red

05-19-2000, 12:38 AM
Works good thanks!

[Edited by Brian on 05-19-2000 at 10:48 AM]

07-16-2000, 03:24 AM
That works fine for the users, but what about the admins and mods? How can I set the stars for them?

07-16-2000, 07:14 AM
Works the same way
Just look up their status, and add a few image tags after it

07-16-2000, 07:18 AM
Yes I gathered that, but I was having trouble locating the Admin and Mod titles.... I am probably missing something realy silly. Should realy get some sleep.

ps.. Hello Menno, there seems to be many familiar names around here. Also what is the status with the 'vbhackers' type site, has one been started yet, if so how long can we expect till it is released?

07-16-2000, 01:58 PM
Well I have a similar thing to the stars hack it has 10 levels with various increments from 5 posts upto 500 posts.