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));
}