vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   stars hack for vbb2.0.3 (https://vborg.vbsupport.ru/showthread.php?t=24411)

Twizted 12 08-02-2001 06:39 PM

does neone have a good stars hack for vbulletin version 2.0.3? if so, either post a url or something at least!!!:D

Twizted 12 08-05-2001 08:08 PM

well? i know someone out there can help me pleaz?

Dennis Wrenn 08-05-2001 08:42 PM

It was right on the front page of vBulletin.org:

http://www.vbulletin.org/hacks/hacks...=gethack&id=38

tubedogg 08-05-2001 08:47 PM

Actually that hack was for vB1.1.4. However try taking a look in the releases forum here...

Dennis Wrenn 08-05-2001 09:49 PM

I modified the starhack 1.1.4 code to work with vB 2.0.3
Insert the bold code starting at line 164 of functions.php in the admin/directory (this code should be inside getpostbit())

Code:

                if ($post[customtitle]==2) {
                        $post[usertitle] = htmlspecialchars($post[usertitle]);
                }

                //START STARHACK!
                if ($post[usertitle]=="Administrator") {
                $post[usertitle]="$post[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0><img src=\"images/star5.gif\" border=0>";
                }
                elseif ($post[usertitle]=="Super Moderator") {
                $post[usertitle]="$post[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0><img src=\"images/star5.gif\" border=0>";
                }
                elseif ($post[posts]>300) {
                $post[usertitle]="$post[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0>";
                }
                elseif ($post[posts]>150) {
                $post[usertitle]="$post[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0>";
                }
                elseif ($post[posts]>75) {
                $post[usertitle]="$post[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0>";
                }
                elseif ($post[posts]>37) {
                $post[usertitle]="$post[usertitle]<br><img src=\"images/star1.gif\" border=0>";
                }
                else {
                $post[usertitle] = $post[usertitle];
                }
                //END  STARHACK!

                $jointime = (time() - $post[joindate]) / 86400; // Days Joined
                if ($jointime < 1) { // User has been a member for less than one day.
                        $postsperday = "$post[posts]";
                } else {
                        $postsperday = sprintf("%.2f",($post[posts] / $jointime));
                }


You have to download starhack from the link I posted to get the images...

-Dennis

Twizted 12 08-05-2001 11:49 PM

thnx dude it works perfect!!! you rule... now i just need some non blinkin stars >.< http://forums.twistedanime.net to see it!!

thnx again ^_^

toLT 08-08-2001 02:51 PM

Hmzz don't work good .. at my forum some admins have 4 stars .. but some super moderators having 5 stars .. .LOL that is ****ty ..

Dennis Wrenn 08-08-2001 04:08 PM

Do they have the appropriate user titles? If not, then just change the code.

toLT 08-08-2001 04:12 PM

Hmzz don't know I just put that code that U have written UP THERE :)


if ($post[customtitle]==2) {
$post[usertitle] = htmlspecialchars($post[usertitle]);
}

//START STARHACK!
if ($post[usertitle]=="Administrator") {
$post[usertitle]="$post[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0><img src=\"images/star5.gif\" border=0>";
}
elseif ($post[usertitle]=="Super Moderator") {
$post[usertitle]="$post[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0><img src=\"images/star5.gif\" border=0>";
}
elseif ($post[posts]>300) {
$post[usertitle]="$post[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0><img src=\"images/star4.gif\" border=0>";
}
elseif ($post[posts]>150) {
$post[usertitle]="$post[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0><img src=\"images/star3.gif\" border=0>";
}
elseif ($post[posts]>75) {
$post[usertitle]="$post[usertitle]<br><img src=\"images/star1.gif\" border=0><img src=\"images/star2.gif\" border=0>";
}
elseif ($post[posts]>37) {
$post[usertitle]="$post[usertitle]<br><img src=\"images/star1.gif\" border=0>";
}
else {
$post[usertitle] = $post[usertitle];
}
//END STARHACK!

$jointime = (time() - $post[joindate]) / 86400; // Days Joined
if ($jointime < 1) { // User has been a member for less than one day.
$postsperday = "$post[posts]";
} else {
$postsperday = sprintf("%.2f",($post[posts] / $jointime));
}

Dennis Wrenn 08-08-2001 04:16 PM

I meant, are the administrators labeled "Administrator" or are they like "Boss man"(or whatever)?


All times are GMT. The time now is 01:41 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.01120 seconds
  • Memory Usage 1,746KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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