vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   values no showing ?? (https://vborg.vbsupport.ru/showthread.php?t=119902)

chewy 06-29-2006 05:20 PM

values no showing ??
 
Whats wrong with this code, im trying to add it to a side bar on my forum home but none of the stats show but the $vbphrase's are.

PHP Code:

<tr>
    <
td class="$bgclass">
        <
span class="smallfont">$vbphrase[members]: $numbermembers<br />
        
$vbphrase[threads]: $totalthreads<br />
        
$vbphrase[posts]: $totalposts<br />
        
$vbphrase[top_poster]: <a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$topposter[userid]">$topposter[username]</a> ($topposter[posts])<br /></span>
    </
td>
</
tr>
<
tr>
    <
td class="$altbgclass"><span class="smallfont"><phrase 1="$vboptions[bburl]/member.php?$session[sessionurl]u=$newuserid2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></span></td>
</
tr


sabret00the 06-29-2006 08:19 PM

have you globalised the variables?

chewy 06-30-2006 03:36 PM

Quote:

Originally Posted by sabret00the
have you globalised the variables?

If I knew how to, I would, but this is all a bit new to me...:confused:

sabret00the 06-30-2006 03:48 PM

you'll need to add the variables to the global_start plugin, off the top of my head, i can't recall if they're cached or not, but i would personally recomment you cache them.

there are a few sidebar modifications that have been posted around the forums, you should check them out.

chewy 06-30-2006 04:01 PM

Quote:

Originally Posted by sabret00the
you'll need to add the variables to the global_start plugin,

where in admincp will I find that ??

sabret00the 06-30-2006 08:22 PM

sorry didn't mean the global_start plugin, i meant the global_start hook


All times are GMT. The time now is 03: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.00997 seconds
  • Memory Usage 1,732KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete