Quote:
Originally Posted by Dave Rosteck
Am I stupid or is it impossible to put the content of my choosing inside the "Your logged in so we can display this" field for the logged in users? It won't accept PHP includes (which I would prefer) or anything beyond normal HTML tags such as <center>, <br> or <p>. In result, I continue to receive parse errors. What am I doing wrong? 
|
You can put whatever php code you like in both the display to logged in or not logged in users.
Taking a guess here but your trying to place the php code inside this statement?
PHP Code:
echo "Your logged in so we can display this";
That wont work and will cause parse errors as you have found out.
You put the PHP code between the { and } not inside the echo statement.
You can also include other files if you like.
for example
PHP Code:
<?php
If ($vbulletin->userinfo['userid']!=0)
{
require_once('mystuff.php');
echo "Your logged in so we can display this";
$totthreads = vb_number_format($totthreads);
$totposts = vb_number_format($totposts);
// display total threads and total posts - Uses vB phrases, but change if you like
echo"<br /> $vbphrase[threads]: $totthreads<br />$vbphrase[posts]: $totposts<br /> ";
} else {
echo "Your not logged in so we display this";
}
?>
Hope that helps.