The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
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? |
|
#2
|
||||
|
||||
|
Where?
If it's in the main content area, you can put an HTML block on the main page through page builder. |
|
#3
|
||||
|
||||
|
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? |
|
#5
|
||||
|
||||
|
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]}
{vb:raw $node.nodeid}
{vb:raw node[nodeid]}
{vb:raw node.nodeid}
|
|
#7
|
||||
|
||||
|
great
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"> |
| Благодарность от: | ||
| Lynne | ||
|
#8
|
|||
|
|||
|
Quote:
|
|
#9
|
||||
|
||||
|
Code:
<vb:if condition="$page['pageid'] == 3"> Shows this only on register page </vb:if> |
|
#10
|
|||
|
|||
|
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. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|