derfelix
05-29-2010, 10:59 AM
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
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