vb.org Archive

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

Peter Hauser 03-03-2001 06:28 PM

Freddie showed us to integrate a star hack (Thanks ;) ), but I found it not so well by showing the posting numbers to the admins. Better the admins have all time the same superior status, while the other users have dependent stars by posting number.

Now I changed the Hack:


Code:

<?php
 
  unset($stars);
 
  if ($post[usergroupid]==5 || $post[usergroupid]==6)
    $stars = '<img src="images/Admin1.gif" border=0 width="9" height="10"><img src="images/Admin2.gif" border=0 width="9" height="10"><img src="images/Admin3.gif" border=0 width="9" height="10"><img src="images/Admin4.gif" border=0 width="9" height="10"><img src="images/Admin5.gif" border=0 width="9" height="10">';
  elseif ($post[posts] > 500)
    $stars .= '<img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10">';
  elseif ($post[posts] > 300)
    $stars .= '<img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10">';
  elseif ($post[posts] > 150)
    $stars .= '<img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10">';
  elseif ($post[posts] > 50)
    $stars .= '<img src="images/star.gif" border=0 width="11" height="10"><img src="images/star.gif" border=0 width="11" height="10">';
  elseif ($post[posts] > 5)
    $stars .= '<img src="images/star.gif" border=0 width="11" height="10">';
  if (!$stars)
    $stars = '<br>';
  else
    $stars .= '<br><br>';
?>

These are nice admin stars:

http://3dwin.gamesmania.de/forum/images/Admin1.gifhttp://3dwin.gamesmania.de/forum/images/Admin2.gifhttp://3dwin.gamesmania.de/forum/images/Admin3.gifhttp://3dwin.gamesmania.de/forum/images/Admin4.gifhttp://3dwin.gamesmania.de/forum/images/Admin5.gif

If you dont know the rest, look under http://www.vbulletin.com/forum/showt...ighlight=stars

Here http://3dwin.gamesmania.de/forum/sho...&threadid=2015 you can see the results.

Best regards

03-03-2001 08:02 PM

Quote:

Originally posted by Peter Hauser
Freddie showed us to integrate a star hack (Thanks ;) ), but I found it not so well by showing the posting numbers to the admins. Better the admins have all time the same superior status, while the other users have dependent stars by posting number.
I don't agree so that is why you got it the way you did. My superior status is obvious by my color of stars. I prefer for the # of stars to be the same for everyone on my forum depending on their post count.

03-03-2001 08:10 PM

"Sorry" for my idea to change a little bit the outfit of the admin status. I understand that it can be not so useful to show "to much" an admin status by different stars, but it is a proposition to someone who wants it. Thats all!

Bye

03-03-2001 09:27 PM

I was just explaining why I did it that way, I wasn't criticizing you.

03-03-2001 10:01 PM

Ok, I misunderstood you perhaps a little bit. A propos: we had the UBB befor the vbulletin (we changed last week) and are very happy, no problems an contents user . Thanks for all.


All times are GMT. The time now is 06:51 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
  • Page Generation 0.01126 seconds
  • Memory Usage 1,724KB
  • 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)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete