View Single Post
  #19  
Old 08-20-2001, 03:03 AM
Kehfera Kehfera is offline
 
Join Date: Feb 2002
Location: VA - East Coast - USA
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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));
}
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01050 seconds
  • Memory Usage 1,794KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete