Just a quick question, if i create a new php direct evaluation page in the cms can is it possible to add a php code for example if $loggeduser = mike display text
New PHP direct evaluation page question
Collapse
X
-
Yes, you may add php code into the php direct evaluation page. This is the default text when you use that type of CMS content:
HTML Code:/**The php code goes here. It can have as much php as you like, but it should end with setting the variable $output. e.g. $something = $somefunction(); $something2 = $somefunction2(); ... **/ $output = "Hello World<br />";
Please don't PM or VM me for support - I only help out in the threads.
vBulletin Manual & vBulletin 4.0 Code Documentation (API)
Want help modifying your vbulletin forum? Head on over to vbulletin.org
If I post CSS and you don't know where it goes, throw it into the additional.css template.
W3Schools <- awesome site for html/css help -
Example:
PHP Code:$x=vB::$vbulletin->userinfo['username'];
$output .="
Your Forum Username Is:<br>
<b>".$x."</b>";
Please don't PM or VM me for support - I only help out in the threads.
vBulletin Manual & vBulletin 4.0 Code Documentation (API)
Want help modifying your vbulletin forum? Head on over to vbulletin.org
If I post CSS and you don't know where it goes, throw it into the additional.css template.
W3Schools <- awesome site for html/css helpComment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment