vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Category / Section Variables? (https://vborg.vbsupport.ru/showthread.php?t=232349)

OcR Envy 01-06-2010 01:48 PM

Category / Section Variables?
 
Looking to do some if statements for categories and sections in the navbar template.

Wondering if $sectionid and $categoryid would work? Don't ask me where I got them I just pulled them out of thin air using $forumid from 3.x ;)

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

Well I've tried {$sectionid} and {$categoryid} neither worked.

Anyone have any suggestions at all?

alfanexus 04-13-2010 11:03 AM

I have also tried $sectionid with no result. Did you find a solution on how to get the section id ?

Lynne 04-13-2010 02:37 PM

You'll need to look at the code and also the tables. Very often they use the same variable name as the field in the table. You also need to see if the variable is even available for use in certain templates - like header/navbar/footer are rendered at the beginning of the pages, so most page variables aren't available yet.


All times are GMT. The time now is 12:05 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.01022 seconds
  • Memory Usage 1,707KB
  • 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