Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-20-2000 Last Update: Never Installs: 0
 
No support by the author.

I want to install the stars hack on my board, but don't quite understand how to install it. I can do it manually 1 user at a time, but I was wondering if there is a way that once you register you have 1 star, and as you post more you will automatically get more stars. ( without me having to do it manually for every user). Any help is greatly appreciated.

Steven

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-20-2000, 08:18 AM
Guest
 
Posts: n/a
Default

in your Control Panel, got to the User Titles and select "Modify"

after each title put:
<br><img src="images/star.gif">

just repeat the image source code for the number of starts you want for each title. Of course, you might have to adjust the path in the img code, too...
Reply With Quote
  #3  
Old 06-20-2000, 10:23 PM
Guest
 
Posts: n/a
Default

Hi ya

I tried doing as you said, and it is fine for the User Titles, but in the User Groups section, I cannot add more than 3 stars to my Administrator group. :/

Any ideas?

--James
Reply With Quote
  #4  
Old 06-20-2000, 10:59 PM
Guest
 
Posts: n/a
Default

Easy, just make a single image with the amount of stars in it you want to have, upload it to your webserver and use the IMG SRC thing to link to it.
Reply With Quote
  #5  
Old 06-21-2000, 12:19 PM
Guest
 
Posts: n/a
Default

I didn't have time to do anything fancy but here's the code to do a simple star raiting system based on the number of posts.

First off, go to line 228 of showthread.php and add the following code:
Code:
 
if($userinfo[posts]>1){
    	$userstars_count=1;
}
if($userinfo[posts]>24){
    	$userstars_count=2;
}
if($userinfo[posts]>49){
    	$userstars_count=3;
}
if($userinfo[posts]>74){
    	$userstars_count=4;
}
if($userinfo[posts]>100){
    	$userstars_count=5;
}
     
for($i;,$i<$userstars_count;,$i++){
    	$userstars .= "<IMG SRC=\"images/star.gif\" BORDER=0>";
}
(you can easily change how many posts are required to advance a level by changing each if statement).

Upload this file and go to your admin. In the template editor, add the code
Code:
<smallfont>$userstars</smallfont><br><br>
to the postbit template (you probably will want to put this under the $usertitle line). Save the template and load up any thread, the stars will be there!

You can see this in use at www.scubaboard.com (the board is new so very few people have more than 1 star). you can also grab my star collection at www.scubaboard.com/hacks/stars.zip

[Edited by ExtremeFactor on 06-21-2000 at 09:25 PM]
Reply With Quote
  #6  
Old 06-21-2000, 04:38 PM
Guest
 
Posts: n/a
Default

Hi ya

I can see what you done there, but I can get that part working.
I have no problem with the amount of stars to the amount of posts, but what I wanted was to have the Administrator on 10 stars, but it won't let me add more than 3 stars to his name :/

--WildWayz
Reply With Quote
  #7  
Old 06-21-2000, 04:59 PM
Guest
 
Posts: n/a
Default

that's really strange. I didn't add them in the User Groups area, though. I added them to the User Titles. Of course, the Admins and Mods aren't included in the titles...
Reply With Quote
  #8  
Old 06-21-2000, 05:08 PM
Guest
 
Posts: n/a
Default

Yeppers

Works fine for the User Titles, but not the User Groups. I think it is because of the string length in the entry field - 'cos it cuts it off.

--James
Reply With Quote
  #9  
Old 06-21-2000, 09:30 PM
Guest
 
Posts: n/a
Default

Yep, agree with Martin, you should add the code to the User Titles section, then add the admins and mods code seperately... As has been said before, you'll need an image which shows the number of stars, you can't simply repeat the same image call like 10 times...
Reply With Quote
  #10  
Old 06-22-2000, 12:52 PM
Guest
 
Posts: n/a
Default

Craig and others,
What I porivded was just a simple solution until the creator of vBulletin has time to do a full upgrade with this built in. You can easily change this hack to use single images for stars or seperate images for admins, whatever you like.

as for making it a field in the admin panel, that involved modifying the actual sql table, something I dnot wisht o do unless I knew the hack would remain in the script forever.
Reply With Quote
Reply


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:27 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.04224 seconds
  • Memory Usage 2,260KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete