vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Want some stars? (https://vborg.vbsupport.ru/showthread.php?t=8663)

Freddie Bingham 02-14-2001 05:39 PM

1 Attachment(s)
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.

02-14-2001 06:26 PM

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?

02-14-2001 06:34 PM

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)

02-14-2001 07:10 PM

v2.x sort of thing...

02-14-2001 07:30 PM

????

Parse error: parse error in stars.php on line 3

02-14-2001 08:01 PM

maybe changing <? php to <?php might help?

02-14-2001 08:11 PM

yes that was the prob ;-) thx mate

02-14-2001 08:27 PM

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?

02-14-2001 08:28 PM

karma?

02-14-2001 08:30 PM

Or both? ranks are only based on posts while Karma is based on other's ratings of yourself.


All times are GMT. The time now is 10:01 AM.

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.01499 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (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)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete