The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
I have a php if conditional, please help how to write it in template
this is if conditional for if the url is xxx, in php
Quote:
i want to use it in template, please help what is looks like? i already tried this Quote:
Quote:
|
#2
|
|||
|
|||
You removed the single quotes when you put it in the template condition, but you need them. Try taking the php condition that's between the parentheses and just copy it to between the quotes in the template.
|
#3
|
||||
|
||||
arghh i am still cant make it, already tried add the single quote, so like this
Quote:
can anyone tried it please, or know the working this conditional i already tried this too (from this thread), but looks like still not working too <if condition="$_SERVER['REQUEST_URI'] == '/forum/somepage.html'"> |
#4
|
||||
|
||||
Quote:
PHP Code:
PHP Code:
|
#5
|
||||
|
||||
Quote:
can anyone try it in your forum please |
#6
|
||||
|
||||
Quote:
and the url used is the non rewrited url, so the original url, if the url are rewrited by vbseo or another mod Scanu methode above maybe works too, and using the original url only the first methode that not working, even already using original url, wonder why, but its ok already have the working code Quote:
Thank you and GBU for Scanu and kh99 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|