vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   "Stars" Hack complete. (https://vborg.vbsupport.ru/showthread.php?t=506)

05-17-2000 08: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-17-2000 11:43 PM

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 01:57 AM

that's the route I took. Easiest way to go :)

05-18-2000 04:22 PM

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

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

05-18-2000 04: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/hac...rshack2000.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 04: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 04: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-18-2000 11:38 PM

Works good thanks!

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

07-16-2000 02: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 06:14 AM

Works the same way
Just look up their status, and add a few image tags after it


All times are GMT. The time now is 02:06 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01914 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete