The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Popup on cms homepage only
Hi,
I wish to add a popup to only the cms index page and the forum home page. Tried this by adding the code to forum home but obviously its included in most places so the popup then displays throughout. Regards, |
#2
|
|||
|
|||
Try this:
HTML Code:
<vb:if condition="THIS_SCRIPT == 'vbcms' OR THIS_SCRIPT == 'index'"> // popup code </vb:if> |
#3
|
||||
|
||||
Have you tried using a condition or the CMS templates?
|
#4
|
||||
|
||||
That code doesn't work, that was upon adding to headinclude, it displays the popup on every forum page and doesn't display on the CMS.
|
#5
|
||||
|
||||
Please post the *exact* code you have added along with a couple lines above and below the code so we can see what you did. We cannot help when we can't see your code and a link to the page/site.
|
#6
|
||||
|
||||
Ok, which template should this : -
Code:
<vb:if condition="THIS_SCRIPT == 'vbcms' OR THIS_SCRIPT == 'index'"> // popup code </vb:if> |
#7
|
|||
|
|||
When I posted it it was a guess. Since then I tried it and it seems to work for the forums (I don't see why you'd get it on every forum - I only got it on the forum home page), but you might need another check in there to see it only on the CMS index page, which I don't know how to do offhand.
BTW I put it in headinclude after I read that's where you had it. I just used this: HTML Code:
<vb:if condition="THIS_SCRIPT == 'vbcms' OR THIS_SCRIPT == 'index'"> <script type="text/javascript">alert("Here");</script> </vb:if> |
#8
|
||||
|
||||
You said you added it to the headinclude template. So, please post what you did and give us a link to see it.
|
#9
|
||||
|
||||
This has been placed above meta on headinclude, and yes it works just on the forum index, but not the cms home.
Code:
<vb:if condition="THIS_SCRIPT == 'vbcms' OR THIS_SCRIPT == 'index'"> <script type="text/javascript">alert("Here");</script> </vb:if> <meta http-equiv="Content-Type" content="text/html; charset={vb:stylevar charset}" /> <meta id="e_vb_meta_bburl" name="vb_meta_bburl" content="{vb:raw vboptions.bburl}" /> <base href="{vb:raw basepath}" /><!--[if IE]></base><![endif]--> |
#10
|
||||
|
||||
Is your CMS using a different style? If so, you need to make sure to add the code to the style being used on the CMS also.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|