PDA

View Full Version : "Stars" Hack complete.


17 May 2000, 22:37
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

18 May 2000, 01:43
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

18 May 2000, 03:57
that's the route I took. Easiest way to go :)

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

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

18 May 2000, 18:39
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

18 May 2000, 18:43
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]

18 May 2000, 18:55
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

19 May 2000, 01:38
Works good thanks!

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

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

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

16 Jul 2000, 08:18
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?

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