vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [release v2] my stars hack (adm/smod/mod/user) (https://vborg.vbsupport.ru/showthread.php?t=12653)

03-30-2001 09:44 PM

it gives a blank star until they reach the minimum amount of posts to obtain a star.

03-30-2001 10:36 PM

Quote:

Originally posted by marl
it gives a blank star until they reach the minimum amount of posts to obtain a star.
i have over 500 posts myself and i get a blank... i am also an admin... several of my other users are in the hundreds and still no stars either... how many posts are needed??? i thought it was only like 20...

03-30-2001 10:42 PM

you can customize these values:

$sh = 12; //height of the stars
$sw = 11; //width of the stars
$starposts = 20; // Number of posts to give a new star
$maxstars = 10; // Maximum stars per line
$maxtotalstars = 20; // Maximum stars to give
$maxmsgs = $starposts*$maxtotalstars;

03-30-2001 10:47 PM

i've messed w/them some and i still only get one blank star... as if the "if - ifelse - else" statment is not working right...

03-30-2001 10:47 PM

either that or the "for" loop maybe?

03-31-2001 01:20 AM

the right place to fit is:

Code:

while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {
  //stars hack
  include('stars.php');



All times are GMT. The time now is 03:57 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.02441 seconds
  • Memory Usage 1,717KB
  • 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)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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