PDA

View Full Version : CMS Section & Pages Id Variables


HM666
02-16-2016, 04:36 AM
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...

['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:
$foruminfo['forumid']

With example:
(in_array($foruminfo['forumid'], array(xx, xx, xx)) )

Same 'should' work with:
$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/customizing-vbulletin/vbulletin-templates-graphics-styles/357198-get-cms-section-in-plugin-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 :)