The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do I get the section id in a php widget?
Hello everybody!
I am writing a php widget to get content depending on the sectionid of the cms page.. taking the default sections of the vbulletin clean install, sectionid 1 would be the front page sectionid 11 Food and sectionid 5 would be News I have a gallery running with different categories, where for example I have a category with images of Food... now IF that section is called, the images should be pulled from the food category, if section cars is called i want the images to be fetched from the cars category.. It would be very simple if I knew how to get hold of the sectionid.. I could get it from the url, but if I use $_REQUEST['r'], it gives me the friendly url, example: content.php?r=11-food will give me 11-food BUT depending on my friendlyurl setting it could be different.. I only want to get the sectionid number from the cms page I am on How can I achieve this? I looked at the whole $vbulletin array, its NOT in there any ideas? Help would be very much appreciated. Felix |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|