![]() |
VBulletin5 THIS_SCRIPT alternative solution?
Hi
in past versions we could use (THIS_SCRIPT === ' index' ) to check if it's main page and show advertisements on main page only. but in vbulletin 5 THIS_SCRIPT is not working is there any alternate solutions to this? |
Where?
If it's in the main content area, you can put an HTML block on the main page through page builder. |
nope
i need to paste a piece of code in footer and that code must be running only if it's the main page of forum (shouldn't be shown if it's showthread or forumdisplay ...) any ideas? |
Did you try using the $nodeid ?
|
tnx for the hint
but i cant still get the correct result i'm not familiar with nodeid in vbulletin but i searched and found many pieces of codes , chosed this one and still cant get the correct output: Code:
<vb:if condition="in_array($vbulletin->nodeid, array(1,2,3,4,5,6,7,8,9))"> these are all empty: Code:
{vb:raw $node[nodeid]} |
It should be $page['pageid']
|
Quote:
but what about main page? (we dont have an id there) --------------- Added [DATE]1407875899[/DATE] at [TIME]1407875899[/TIME] --------------- allright tnx to Lynne and Scanu i guess this is the code i needed: Code:
<vb:if condition="$page['channelid'] == 1"> |
Quote:
|
Code:
<vb:if condition="$page['pageid'] == 3"> |
Quote:
Thank you very much... I ask because your guestwarn was show up at our register page. A little strange is, that our registerpage have the id 6. I dont know why? Do you have a idea? We change Navigation but (not that I know) anything at the pages in sitebuilder. |
All times are GMT. The time now is 07:00 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:
|