![]() |
vBCMS - Detect articles in section X
Hello
I would like to use some different style/lang for my articles in section for example X than Y, so i need to separate them, the only way i find was the following code and the problem is that i have to writ the $_GET['r'] == x manually for every each article. I believe that there should be a way to detect all articles in section X instant of writing the numbers manually. Any help would be great. Thank you Code:
if (( $_GET['r'] == x OR $_GET['r'] == xx OR $_GET['r'] == xx) && (THIS_SCRIPT == 'vbcms')) |
PHP Code:
|
Quote:
https://www.vbulletin.com/forum/show...in-plugin-code |
What specifically doesn't work? Can you post some sample code, along with which hook you're putting it in, what you expect to see, and what you're seeing?
|
I have created a plugin with hook location vbcms_article_populate_end and this code:
Code:
global $sectionid; Code:
if ($sectionid == x) |
Whoops! That's not going to work! init_startup is called a little to early. I'd wager $sectionid isn't available either.
I have an idea on how to do this...I'll take another quick look tonight. |
All times are GMT. The time now is 09:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|