vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   CMS Section & Pages Id Variables (https://vborg.vbsupport.ru/showthread.php?t=321846)

HM666 02-16-2016 04:36 AM

CMS Section & Pages Id Variables
 
What is the section ID variable so I can add it to a plugin? For instance I need the info that would in between the brackets like if you are calling up a certain forum id you use...

PHP Code:

['forumid'

I need the equivalent for a section in the CMS, and I also need the equivalent for a page in the CMS. Thanks.

Skyrider 02-16-2016 07:37 AM

Within an array or a single forumID?

Within an array, I use:
Code:

$foruminfo['forumid']
With example:
Code:

(in_array($foruminfo['forumid'], array(xx, xx, xx)) )
Same 'should' work with:
Code:

$thread['threadid']
I'm a "novice" coder so to speak though, but I use this code as well on my own forums. If it works for the CMS, I have no idea. I don't use the CMS myself.

HM666 02-16-2016 08:25 AM

I don't want the forum id, I want the CMS section id and CMS page id. That was an example about the forumid. I'm trying to force a tab to highlight in the CMS and I need the variables for CMS sections & pages.

Skyrider 02-16-2016 04:01 PM

What about:

- http://www.vbulletin.com/forum/forum...in-plugin-code

Code:

$sectionid
That's all I could find, honestly.. but as I said, I don't work with the CMS as such I cannot help you further in there, sorry.

HM666 02-16-2016 11:49 PM

Ok thanks for trying :)


All times are GMT. The time now is 08:41 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.00959 seconds
  • Memory Usage 1,718KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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