The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#12
|
|||
|
|||
![]()
They are Main administirator .. and mods put their status .... something like Crazy mod or just like that
![]() Hehe |
#13
|
|||
|
|||
![]()
In that case, you will have to check the usergroupid rather than the usertitle.
Admin = 6 Mod = 7 Super Mod = 5 Change the first seven lines(starting with //start starhack) to this Code:
//START STARHACK! if ($post[usergroupid]==6) { $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[usergroupid]==5) { $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>"; } |
#14
|
||||
|
||||
![]()
works great
![]() |
#15
|
|||
|
|||
![]()
Yep .. tnx man
![]() |
#16
|
|||
|
|||
![]()
i upgraded to 2.03 and found the stars hack for 2.01 didnt work-so i just borrowed showthread.php from 2.01 and replaced it-works great now
![]() |
#17
|
||||
|
||||
![]()
@ Maverick1236
If you use the showthread.php from 2.01 you havn´t any nav bars in a multiple sites thread to navigate between the different sites. |
#18
|
|||
|
|||
![]()
thanks for pointing that out-i tried putting the code before the pm link in functions.php rather than after-and it worked-go figure
![]() ![]() |
#19
|
|||
|
|||
![]()
I added the lines for the Admins and moderators and added 6 different customized titles. (just to play)
I had to adjust the information according to the post by Dennis when the USERGROUPID was needed for the title to work with the stars. I also used a different group of stars with different colors for the ADMINS and Moderators. Admin Stars = pend1.gif to pend5.gif Super Mod Stars = pend6.gif to pend10.gif Moderator Stars = pend11.gif to pend15.gif The stars were made with Fireworks at 13 x 13 pixels. The backbround is transparent. After getting the star centered I adjusted the canvas size to 15 X 17 pixels to accomodate some spacing requirement. I exported the file as a gif. All stars are in a zip file attached to this posting. I have also included the original Fireworks graphics for people who wish to change the color. My titles for users are: Seeker (Minimum Posts: 0) [edit] [remove] Novice (Minimum Posts: 25) [edit] [remove] Initiate (Minimum Posts: 50) [edit] [remove] Member (Minimum Posts: 100) [edit] [remove] Guide (Minimum Posts: 200) [edit] [remove] Guru (Minimum Posts: 400) [edit] [remove] These titles use all the same group of stars....pend16.gif, pend17.gif, pend18.gif, pend19.gif, pend20.gif All total are the 3 indications for my groups and 6 user titles. NOTES from TXT file ---------------------------------------------------------- Made by Wombag for all board in vbb ![]() I modified the starhack 1.1.4 code to work with vB 2.0.3 1. Upload the file star.gif in your images directory. 2. Make a backup of functions.php in admin directory. 3. Open your functions.php file. Insert the code starting //START STARHACK! at line 164 of functions.php. This code should be inside getpostbit() - Dennis My additional notes ---------------------------------------------------------- I have 6 different user titles besides Administrator and Super Moderator Admin = 6 Mod = 7 Super Mod = 5 I used a set of stars for each group. 1 - Red = Administrator - 7 point star. 2 - Green = Moderator - 5 point star 3 - Blue = Super Moderator - 7 point star. 4 - Yellow = User - 5 point star. find the following code:------------------------------------------------------ if ($post[customtitle]==2) { $post[usertitle] = htmlspecialchars($post[usertitle]); } add code:---------------------------------------------------------------------- //START STARHACK! if ($post[usergroupid]==6) { $post[usertitle]="$post[usertitle]<br><img src=\"images/pend1.gif\" border=0><img src=\"images/pend2.gif\" border=0><img src=\"images/pend3.gif\" border=0><img src=\"images/pend4.gif\" border=0><img src=\"images/pend5.gif\" border=0>"; } elseif ($post[usergroupid]==5) { $post[usertitle]="$post[usertitle]<br><img src=\"images/pend6.gif\" border=0><img src=\"images/pend7.gif\" border=0><img src=\"images/pend8.gif\" border=0><img src=\"images/pend9.gif\" border=0><img src=\"images/pend10.gif\" border=0>"; } elseif ($post[usergroupid]==7) { $post[usertitle]="$post[usertitle]<br><img src=\"images/pend11.gif\" border=0><img src=\"images/pend12.gif\" border=0><img src=\"images/pend13.gif\" border=0><img src=\"images/pend14.gif\" border=0><img src=\"images/pend15.gif\" border=0>"; } elseif ($post[posts]>400) { $post[usertitle]="$post[usertitle]<br><img src=\"images/pend16.gif\" border=0><img src=\"images/pend17.gif\" border=0><img src=\"images/pend18.gif\" border=0><img src=\"images/pend19.gif\" border=0><img src=\"images/pend20.gif\" border=0>"; } elseif ($post[posts]>200) { $post[usertitle]="$post[usertitle]<br><img src=\"images/pend16.gif\" border=0><img src=\"images/pend17.gif\" border=0><img src=\"images/pend18.gif\" border=0><img src=\"images/pend19.gif\" border=0>"; } elseif ($post[posts]>100) { $post[usertitle]="$post[usertitle]<br><img src=\"images/pend16.gif\" border=0><img src=\"images/pend17.gif\" border=0><img src=\"images/pend18.gif\" border=0>"; } elseif ($post[posts]>50) { $post[usertitle]="$post[usertitle]<br><img src=\"images/pend16.gif\" border=0><img src=\"images/pend17.gif\" border=0>"; } elseif ($post[posts]>25) { $post[usertitle]="$post[usertitle]<br><img src=\"images/pend16.gif\" border=0>"; } else { $post[usertitle] = $post[usertitle]; } //END STARHACK! continued file code :---------------------------------------------------------- $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)); } |
#20
|
|||
|
|||
![]()
The last post would not let me attach the stars file. Too large. I had to delete two of the original graphics. They are duplicates anyway - just different colors.
|
#21
|
|||
|
|||
![]()
My stars are apearing below my userid's how can I move it below the posts.
Here is a link to my demo forum Thing is, in my postbit it has $post[stars] below Posts so I mean it should work but for some reason it doesn't any help would be great. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|