vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   $forum[browsers] (https://vborg.vbsupport.ru/showthread.php?t=190707)

mindhunter77 09-12-2008 03:03 AM

$forum[browsers]
 
How can I get this
Code:

$forum[browsers]
to work in a custom template, I make a call for that and it does nothing =(

Opserty 09-12-2008 08:13 AM

Its not a simple case of just throwing it in a template. You need to trace back the PHP that creates it and place it in a hook near the template. Unless you have a decent knowledge of PHP it will be very hard for you to do.

mindhunter77 09-12-2008 02:19 PM

Well it's my mission for today lol,

Thanks for the advice, =)

Opserty 09-12-2008 03:59 PM

$inforum holds which users are in a forum (if any) but I'm not sure if this is availiable on all pages, it may only be availiable on the index.php page & the forumdisplay.php page.

mindhunter77 09-12-2008 04:01 PM

That's fine, those are the only places I want to use it lol, Thanks for advice, going to research this now.

--------------- Added [DATE]1221238951[/DATE] at [TIME]1221238951[/TIME] ---------------

By the way, is there a place where I can view all these types of things
Code:

$inforum

Opserty 09-12-2008 04:03 PM

Also functions_forumlist.php has this on line 367 or thereabouts:
PHP Code:

            $forum['browsers'] = 0;
            
$children explode(','$forum['childlist']);
            foreach(
$children AS $childid)
            {
                
$forum['browsers'] += (isset($inforum["$childid"]) ? $inforum["$childid"] : 0);
            } 


mindhunter77 09-12-2008 04:22 PM

I see what your talking about here

Code:

        {
                                $forum['browsers'] += (isset($inforum["$childid"]) ? $inforum["$childid"] : 0);
                        }

Now what would I need to do to call this in my new forumhome template?


All times are GMT. The time now is 09:19 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.00979 seconds
  • Memory Usage 1,729KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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