The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to add PHP code into Forum blocks manager?
Hello,
i read: http://www.vbulletin.com/forum/forum...l-or-php-block and in AdminCP, Forums & Moderators, Forum Block Manager, My block i select PHP code Then im trying to add some Code:
if (function(bla, bla) { echo something } else{ something } When adding: Code:
$a = "ddd"; return $a; How to add ifs and elses intot that text field? |
#2
|
||||
|
||||
Would probably need to see the actual code you're trying to use, and you'd have to tell us how its failing, and how you expected it to work.
|
#3
|
|||
|
|||
i had badly structured code. i apologize. Had to be like:
Code:
if (strpos($_SERVER['HTTP_USER_AGENT'],'zzzz') == false) { $html = ' html code here '; return $html; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|