Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-14-2001, 05:39 PM
Freddie Bingham's Avatar
Freddie Bingham Freddie Bingham is offline
 
Join Date: Oct 2001
Posts: 506
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the code I use for stars on v2. It gives one color stars to admins/super mods and another color for everyone else. If you want to give different stars to regular moderators than you will have to insert the ismoderator() function which is going to increase the queries on showthread. Just rename it to stars.php, put it in your forums/admin directory. Open up functions.php and put

include('stars.php');

after

// sorts through all the stuff to return the postbit template

This is a very simple hack but it is all I need for my forum. The next version of vB (the next full version, not beta) will have a more comprehensive stars function. Oh yeah and put $stars in the postbit template where you want the stars.
Attached Files
File Type: txt stars.txt (819 Bytes, 646 views)
Reply With Quote
  #2  
Old 02-14-2001, 06:26 PM
Guest
 
Posts: n/a
Default

next version...

that brings back memories...

but seriously, is that vb2.0 final or vb2.x sort of thing? ie a couple of weeks away or a few months away?
Reply With Quote
  #3  
Old 02-14-2001, 06:34 PM
Guest
 
Posts: n/a
Default

i think stars should be included automatically in the 2.0 package, so you do not have to hack them...

it is a somewhat irritating feature not to have.

(if they already are plz dont flame me because I have not upgraded yet to find out for myself)
Reply With Quote
  #4  
Old 02-14-2001, 07:10 PM
Guest
 
Posts: n/a
Default

v2.x sort of thing...
Reply With Quote
  #5  
Old 02-14-2001, 07:30 PM
Guest
 
Posts: n/a
Default

????

Parse error: parse error in stars.php on line 3
Reply With Quote
  #6  
Old 02-14-2001, 08:01 PM
Guest
 
Posts: n/a
Default

maybe changing <? php to <?php might help?
Reply With Quote
  #7  
Old 02-14-2001, 08:11 PM
Guest
 
Posts: n/a
Default

yes that was the prob ;-) thx mate
Reply With Quote
  #8  
Old 02-14-2001, 08:27 PM
Guest
 
Posts: n/a
Default

Freddie, talk to John about getting this into 2.0 Final release. I know that there is a lot to do, but as you demonstrated, It is a very simple addition that could be revised and beefed up in the future.

But this also brings up the karma hack... Which will VB use? Stars or karma?
Reply With Quote
  #9  
Old 02-14-2001, 08:28 PM
Guest
 
Posts: n/a
Default

karma?
Reply With Quote
  #10  
Old 02-14-2001, 08:30 PM
Guest
 
Posts: n/a
Default

Or both? ranks are only based on posts while Karma is based on other's ratings of yourself.
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 02:16 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05600 seconds
  • Memory Usage 2,245KB
  • Queries Executed 12 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (1)postbit_onlinestatus
  • (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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete