Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-16-2001 Last Update: Never Installs: 0
 
No support by the author.

i test it with the vbb2 beta 4 and it works

edit showthread.php

find :

//$post[message].=$post[signature];

place below it :

Code:
// --- Stars Hack 
    $stars = "";
   

    if ($post[usergroupid]==6 or $post[usergroupid]==5 or $post[usergroupid]==7 ) // admin, modo ou super modo
    {
       $starsgif_1 = '<img src="{imagesfolder}/Admin1.gif">';
	   $starsgif_2 = '<img src="{imagesfolder}/Admin2.gif">';
	   $starsgif_3 = '<img src="{imagesfolder}/Admin3.gif">';
	   $starsgif_4 = '<img src="{imagesfolder}/Admin4.gif">';
	   $starsgif_5 = '<img src="{imagesfolder}/Admin5.gif">';
	   
    }
      else       // Enregistr?
    {
       $starsgif_1 = '<img src="{imagesfolder}/star1.gif">';
	   $starsgif_2 = '<img src="{imagesfolder}/star2.gif">';
	   $starsgif_3 = '<img src="{imagesfolder}/star3.gif">';
	   $starsgif_4 = '<img src="{imagesfolder}/star4.gif">';
	   $starsgif_5 = '<img src="{imagesfolder}/star5.gif">';
	}   
    
if ($post[usergroupid]==6 or $post[usergroupid]==5 or $post[usergroupid]==7 )
    {      $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4. $starsgif_5;   }
 
  elseif ($post[posts] > 400 )
    {      $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4. $starsgif_5;   }  
    elseif ($post[posts] > 200 )
    {      $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4;   }
    elseif ($post[posts] > 100 )
   {      $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3;   }
    elseif ($post[posts] > 50 )
    {      $stars .= $starsgif_1 . $starsgif_2;   }
    else // ($post[posts] > 0) 
    {      $stars .= $starsgif_1;   }
    

// --- Stars Hack End
edit posbit template


find :

<table width="100%" cellpadding="4" cellspacing="1" border="0">
<tr><td width="100%">
<a name="post$post[postid]"></a>
$post[firstnewinsert]
<normalfont><B>$post[username]</B></normalfont><br>

and place below it :

$stars<br>

you can change the number of post for getting new stars, you can add much stars ...
if admin, modo ou super modo change their title the hack still work

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-17-2001, 07:54 PM
Degen
Guest
 
Posts: n/a
Default

It works for me, but it's only showing 4 stars instead of 5 (I am logged in as an Administrator). Anyway to fix this?

Thanks
Reply With Quote
  #13  
Old 04-17-2001, 10:24 PM
furious
Guest
 
Posts: n/a
Default

what vbb do you have?
Reply With Quote
  #14  
Old 04-18-2001, 04:43 AM
Degen
Guest
 
Posts: n/a
Default

2.0.0 beta 2
Reply With Quote
  #15  
Old 04-18-2001, 01:33 PM
Johnny
Guest
 
Posts: n/a
Default

How can I get than stars with using html in the usertitles?
Is there a template for or something?
if it is yes; what's the name of that template and what must be changed to get the stars!

I only want that de admin and the moderators stars have!

GreetZ,
Johnny
Reply With Quote
  #16  
Old 04-28-2001, 11:20 AM
ampario
Guest
 
Posts: n/a
Default

Please can sombody chance the code below that it wil work with 8 stars .. i try it but it don't work



Quote:
Originally posted by furious
i test it with the vbb2 beta 4 and it works

edit showthread.php

find :

//$post[message].=$post[signature];

place below it :

// --- Stars Hack by Furious

$stars = "";


if ($post[usergroupid]==6 or $post[usergroupid]==5 or $post[usergroupid]==7 ) // admin, modo ou super modo
{
$starsgif_1 = '<img src="images/Admin1.gif">';
$starsgif_2 = '<img src="images/Admin2.gif">';
$starsgif_3 = '<img src="images/Admin3.gif">';
$starsgif_4 = '<img src="images/Admin4.gif">';
$starsgif_5 = '<img src="images/Admin5.gif">';

}
else // Enregistr?
{
$starsgif_1 = '<img src="images/star1.gif">';
$starsgif_2 = '<img src="images/star2.gif">';
$starsgif_3 = '<img src="images/star3.gif">';
$starsgif_4 = '<img src="images/star4.gif">';
$starsgif_5 = '<img src="images/star5.gif">';
}

if ($post[usergroupid]==6 or $post[usergroupid]==5 or $post[usergroupid]==7 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4 . $stargif_5; }

elseif ($post[posts] > 400 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4 . stargif_5; }
elseif ($post[posts] > 200 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4; }
elseif ($post[posts] > 100 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3; }
elseif ($post[posts] > 50 )
{ $stars .= $starsgif_1 . $starsgif_2; }
else // ($post[posts] > 0)
{ $stars .= $starsgif_1; }


// --- Stars Hack End


edit posbit template


find :

<table width="100%" cellpadding="4" cellspacing="1" border="0">
<tr><td width="100%">
<a name="post$post[postid]"></a>
$post[firstnewinsert]
<normalfont><B>$post[username]</B></normalfont><br>

and place below it :

$stars<br>

you can change the number of post for getting new stars, you can add much stars ...
if admin, modo ou super modo change their title the hack still work
Reply With Quote
  #17  
Old 05-20-2001, 12:36 PM
furious
Guest
 
Posts: n/a
Default

i edit the script and it works now
Reply With Quote
  #18  
Old 05-20-2001, 10:58 PM
zarkov's Avatar
zarkov zarkov is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ampario, here is the modified script to use 8 stars.

change the number of posts for each additional star if you want.


Quote:
// --- Stars Hack by Furious

$stars = "";


if ($post[usergroupid]==6 or $post[usergroupid]==5 or $post[usergroupid]==7 ) // admin, modo ou super modo
{
$starsgif_1 = '<img src="images/Admin1.gif">';
$starsgif_2 = '<img src="images/Admin2.gif">';
$starsgif_3 = '<img src="images/Admin3.gif">';
$starsgif_4 = '<img src="images/Admin4.gif">';
$starsgif_5 = '<img src="images/Admin5.gif">';
$starsgif_6 = '<img src="images/Admin6.gif">';
$starsgif_7 = '<img src="images/Admin7.gif">';
$starsgif_8 = '<img src="images/Admin8.gif">';
}
else // Enregistr?
{
$starsgif_1 = '<img src="images/star1.gif">';
$starsgif_2 = '<img src="images/star2.gif">';
$starsgif_3 = '<img src="images/star3.gif">';
$starsgif_4 = '<img src="images/star4.gif">';
$starsgif_5 = '<img src="images/star5.gif">';
$starsgif_6 = '<img src="images/star6.gif">';
$starsgif_7 = '<img src="images/star7.gif">';
$starsgif_8 = '<img src="images/star8.gif">';
}

if ($post[usergroupid]==6 or $post[usergroupid]==5 or $post[usergroupid]==7 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4 . $stargif_5 . $starsgif_6 . $starsgif_7 . $stargif_8; }

elseif ($post[posts] > 500 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4 . $stargif_5 . $starsgif_6 . $starsgif_7 . $stargif_8; }
elseif ($post[posts] > 400 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4 . $stargif_5 . $starsgif_6 . $starsgif_7; }
elseif ($post[posts] > 300 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4 . $stargif_5 . $starsgif_6; }
elseif ($post[posts] > 200 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4 . $stargif_5; }
elseif ($post[posts] > 100 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4; }
elseif ($post[posts] > 50 )
{ $stars .= $starsgif_1 . $starsgif_2 . $starsgif_3; }
elseif ($post[posts] > 25 )
{ $stars .= $starsgif_1 . $starsgif_2; }
else // ($post[posts] > 0)
{ $stars .= $starsgif_1; }


// --- Stars Hack End
Hope this helps.
Reply With Quote
  #19  
Old 06-27-2001, 07:16 AM
lichtflits's Avatar
lichtflits lichtflits is offline
 
Join Date: Feb 2002
Location: The Netherlands
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can anybody make this hack so that a admin one more star had than an moderator or a supermoderator?

I have thry every but it don't work
Reply With Quote
  #20  
Old 06-27-2001, 11:43 AM
Deacon Frost
Guest
 
Posts: n/a
Default

At our Community, we also did a Stars-Hack. I just Post it, because I think it's self-explainig

Frist, create a file called "stars.php". Put the following Code in.
PHP Code:
<?php

  
unset($stars);
  if (
$post[usergroupid]==38 || $post[usergroupid]==17)
    
// Adminstars
    
$starsroot '<img src="star/star1.gif"><img src="star/star300s.gif"><img src="star/star100s.gif"><img src="star/stars.gif"><img src="star/star140s.gif"><img src="star/star1.gif"><img src="star/star140s.gif"><img src="star/stars.gif"><img src="star/star100s.gif"><img src="star/star300s.gif"><img src="star/star1.gif">';
  elseif (
$post[usergroupid]==35 || $post[usergroupid]==65)
    
// Supermodstars
    
$starsadmin '<img src="star/star1.gif"><img src="star/star300s.gif"><img src="star/stars.gif"><img src="star/star140s.gif"><img src="star/star1.gif"><img src="star/star140s.gif"><img src="star/stars.gif"><img src="star/star300s.gif"><img src="star/star1.gif">';
  else
   
// Alle anderen User
    
$stars1 '<img src="star/stars.gif">';
    
$stars2 '<img src="star/stars.gif"><img src="star/stars.gif">';
    
$stars3 '<img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif">';
    
$stars4 '<img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif">';
    
$stars5 '<img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif">';
    
$stars6 '<img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif"><img src="star/stars.gif">';
    
$stars7 '<img src="star/star1.gif">';
    
$stars8 '<img src="star/star1.gif"><img src="star/star1.gif">';
    
$stars9 '<img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif">';
    
$stars10 '<img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif">';
    
$stars11 '<img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif">';
    
$stars12 '<img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif"><img src="star/star1.gif">';
    
$stars13 '<img src="star/star180s.gif">';
    
$stars14 '<img src="star/star180s.gif"><img src="star/star180s.gif">';
    
$stars15 '<img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif">';
    
$stars16 '<img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif">';
    
$stars17 '<img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif">';
    
$stars18 '<img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif"><img src="star/star180s.gif">';
    
$stars19 '<img src="star/star220s.gif">';
    
$stars20 '<img src="star/star220s.gif"><img src="star/star220s.gif">';
    
$stars21 '<img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif">';
    
$stars22 '<img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif">';
    
$stars23 '<img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif">';
    
$stars24 '<img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif"><img src="star/star220s.gif">';
    
$stars25 '<img src="star/star100s.gif">';
    
$stars26 '<img src="star/star100s.gif"><img src="star/star100s.gif">';
    
$stars27 '<img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif">';
    
$stars28 '<img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif">';
    
$stars29 '<img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif">';
    
$stars30 '<img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif"><img src="star/star100s.gif">';

  if (
$post[usergroupid]==38 || $post[usergroupid]==17)
      
$stars .= $starsroot;
  elseif (
$post[usergroupid]==65 || $post[usergroupid]==35)
      
$stars .= $starsadmin;
  elseif (
$post[posts] > 9999)
    
$stars .= $stars30;
  elseif (
$post[posts] > 9499)
    
$stars .= $stars29;
  elseif (
$post[posts] > 8999)
    
$stars .= $stars28;
  elseif (
$post[posts] > 8699)
    
$stars .= $stars27;
  elseif (
$post[posts] > 8399)
    
$stars .= $stars26;
  elseif (
$post[posts] > 7999)
    
$stars .= $stars25;
  elseif (
$post[posts] > 7499)
    
$stars .= $stars24;
  elseif (
$post[posts] > 6999)
    
$stars .= $stars23;
  elseif (
$post[posts] > 6499)
    
$stars .= $stars22;
  elseif (
$post[posts] > 5999)
    
$stars .= $stars21;
  elseif (
$post[posts] > 5499)
    
$stars .= $stars20;
  elseif (
$post[posts] > 4999)
    
$stars .= $stars19;
  elseif (
$post[posts] > 4599)
    
$stars .= $stars18;
  elseif (
$post[posts] > 4199)
    
$stars .= $stars17;
  elseif (
$post[posts] > 3799)
    
$stars .= $stars16;
  elseif (
$post[posts] > 3499)
    
$stars .= $stars15;
  elseif (
$post[posts] > 3199)
    
$stars .= $stars14;
  elseif (
$post[posts] > 2899)
    
$stars .= $stars13;
  elseif (
$post[posts] > 2599)
    
$stars .= $stars12;
  elseif (
$post[posts] > 2199)
    
$stars .= $stars11;
  elseif (
$post[posts] > 1999)
    
$stars .= $stars10;
  elseif (
$post[posts] > 1749)
    
$stars .= $stars9;
  elseif (
$post[posts] > 1499)
    
$stars .= $stars8;
  elseif (
$post[posts] > 1199)
    
$stars .= $stars7;
  elseif (
$post[posts] > 949)
    
$stars .= $stars6;
  elseif (
$post[posts] > 699)
    
$stars .= $stars5;
  elseif (
$post[posts] > 549)
    
$stars .= $stars4;
  elseif (
$post[posts] > 399)
    
$stars .= $stars3;
  elseif (
$post[posts] > 249)
    
$stars .= $stars2;
  elseif (
$post[posts] > 24)
    
$stars .= $stars1;
  if (!
$stars)
    
$stars '<br>';
  else
    
$stars .= '<br><br>';
?>
Then search in showthread.php for while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) { an right after that add include('stars.php');

Then edit the postbit template (include the $stars-variable).

With that hack, you can have different star-colours an differend numbers of stars for every user-group.

In attach you'll find our star-images.
Reply With Quote
  #21  
Old 07-27-2001, 09:50 AM
Kengan's Avatar
Kengan Kengan is offline
 
Join Date: Nov 2001
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by ztsky
I think you can easyly do it with html in usertitle.
agree with you !
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:10 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11030 seconds
  • Memory Usage 2,355KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete