vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   3 hours later and still cant figure this out...lease help me (https://vborg.vbsupport.ru/showthread.php?t=36346)

VolSports 03-20-2002 07:55 AM

3 hours later and still cant figure this out...lease help me
 
i own a hiphopboard and i keep tract of everyones wins and losses.....at first i wanted a meter to display ther average..but now i dont care..i just want something that gos up if they got a good record and down if they got a bad record...i tried to use this in the admin/functions.php and i keep gettin a parase error on line 893 wich is "if ($avgrecord < 1)"

$avgrecord = ($post[field7] - $post[field8])

if ($avgrecord < 1)
{ $avbar = "1"; }
elseif ($avgrecord < 3
{ $avbar = "2"; }
elseif ($avgrecord < 6
{ $avbar = "3"; }
elseif ($avgrecord < 9
{ $avbar = "4"; }
elseif ($avgrecord < 12
{ $avbar = "5"; }
elseif ($avgrecord < 15
{ $avbar = "6"; }
elseif ($avgrecord < 18
{ $avbar = "7"; }
elseif ($avgrecord < 21
{ $avbar = "8"; }
else
{$avbar = ""; }

any ideas?

Admin 03-20-2002 08:06 AM

You need a ; at the end of the first line.

VolSports 03-20-2002 06:14 PM

thanx firefly, that worked....now im adding

<td><font size="1" color="#FFFFFF"><img src="{imagesfolder}/bxg.gif" width="5" height="$avbar%" ><img src="{imagesfolder}/bxb.gif" width="5" height="1"></font></td> into the postbit and that dont work...it screws everything up...

any ideas?


All times are GMT. The time now is 12:58 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.00955 seconds
  • Memory Usage 1,706KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete