The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
CMS conditional ?
Hi, Im trying to only display a peace of code at the bottom of the navbar template on the cms , but i want it to only display on the CMS homepage , not the internal cms pages.
Ive tried THIS SCRIPT conditional but that shows across the entire CMS and not the individual page. Ive also tried the page title conditional but that doesnt seem to work either . Any ideas ? |
#2
|
||||
|
||||
If I recall, you can use the variable $_GET['r'] to write that sort of conditional.
|
#3
|
|||
|
|||
Ok , How would that be written as an example ?
|
#4
|
||||
|
||||
HTML Code:
<vb:if condition="$_GET['r'] == '1-Index'">hello3</vb:if> |
#5
|
|||
|
|||
Quote:
I double checked that my cms was still set on 1-index and it is so i cant see why it wouldnt work |
#6
|
||||
|
||||
Well, if yours is set to 1-index, then you need to use that instead of 1-Index. It's a string - you need to be exact.
And if you continue to have problems, you need to post *exactly* waht you have done - what template, exactly where in the template, and a link to your page, etc. |
#7
|
|||
|
|||
Sorry i meant it was exactly like the one you had put in, ive just tried it on a fresh vbulletin install too and it doesnt work on that either ?
|
#8
|
||||
|
||||
And I just got done telling you you can't use exactly what I wrote and why. I also gave you advice and what to tell us if you want more help.
That code works just fine on my 4.0.7 site although my home page is not called "index" thus I changed that part. |
#9
|
|||
|
|||
Quote:
PHP Code:
|
#10
|
||||
|
||||
You *cannot* use the code I gave you exactly as I wrote it. You need to change the string to be the string needed for your site. Like on my test site, I had to use "1-the-front-page" because that is what my homepage is called.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|