The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hi
Is there a way to idenfity the CMS section to which an article belongs? I want to write a plugin which will set a variable with different values in different sections. Thanks, Mike |
|
#2
|
||||
|
||||
|
Try something like ...
hook location - vbcms_article_populate_end PHP Code:
Code:
global $sectionid;
if (intval($_GET['r']) == 2 OR in_array($sectionid, array('2','20','21'))) $root = 'tabid';
|
|
#3
|
|||
|
|||
|
Thanks Lynne
haven't had a chance to try it yet but your advice always works so I'm confident! Cheers, Mike |
|
#4
|
|||
|
|||
|
Works a treat!
Thanks again, Lynne. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|