Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

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
  #22  
Old 07-30-2001, 02:57 AM
drives_fast
Guest
 
Posts: n/a
Default

Okay....now that I have done the hack 2 posts above my forum doesnt work anymore. I get this error:

There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

I put everything back the way it was but it still doesnt work.......can anyone explain why this is?
Reply With Quote
  #23  
Old 09-09-2001, 05:20 PM
smelialichu smelialichu is offline
 
Join Date: Nov 2001
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It won't work in vb2.03. Any ideas anyone. It's the showthread.php bit???
Reply With Quote
  #24  
Old 04-05-2002, 01:21 PM
Ordovicium's Avatar
Ordovicium Ordovicium is offline
 
Join Date: Oct 2001
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am useing Version 2.2.5, and the hack by furious didn't work.

But I found another way to install this great Hack:

Find in admin/functions.php:

Code:
$post[joindate]=vbdate($registereddateformat,$post[joindate]);
and directly after it add this...

Code:
// ###################################
// Start of the Star Hack
//###################################

unset($stars);


// Bilder laden je nach User-Gruppe
if ($post[usergroupid]==6 or $post[usergroupid]==5 or $post[usergroupid]==7 or $post[usergroupid]==8) {
              $starsgif_1 = '<img src="stars/Admin1.gif">';

} else {
           $starsgif_1 = '<img src="stars/0stars.gif">';
       $starsgif_2 = '<img src="stars/1stars.gif">';
       $starsgif_3 = '<img src="stars/2stars.gif">';
       $starsgif_4 = '<img src="stars/3stars.gif">';
       $starsgif_5 = '<img src="stars/4stars.gif">';
       $starsgif_6 = '<img src="stars/5stars.gif">';
       $starsgif_7 = '<img src="stars/6stars.gif">';

}

if ($post[usergroupid]==6 ) {
         $stars = $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4 . $starsgif_5;
} elseif ($post[usergroupid]==7) {
         $stars = $starsgif_1 . $starsgif_2 . $starsgif_3;
} elseif ($post[usergroupid]==5 ) {
         $stars = $starsgif_1 . $starsgif_2 . $starsgif_3 . $starsgif_4;
} else {
    if ($post[posts] > 1000 )
        {      $stars = $starsgif_7;   }
    elseif ($post[posts] > 120 )
        {      $stars = $starsgif_6;   }
    elseif ($post[posts] > 90 )
        {      $stars = $starsgif_5;   }
    elseif ($post[posts] > 60 )
        {      $stars = $starsgif_4;   }
    elseif ($post[posts] > 30 )
       {       $stars = $starsgif_3;   }
    elseif ($post[posts] > 10 )
        {      $stars = $starsgif_2;   }
    else
        {      $stars = $starsgif_1;   }
}
// ###################################
// End of Star Hack
// ###################################

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>

In this Version I have more than one image with stars.
One image with 1 Star
One image with 2 Stars
...........
Reply With Quote
Reply

Thread Tools

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 04:39 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.03590 seconds
  • Memory Usage 2,236KB
  • Queries Executed 20 (?)
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
  • (3)bbcode_code
  • (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
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (2)postbit_onlinestatus
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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