Quote:
Originally Posted by Evoir
I simply wrapped my html inside of the quotes "Have stuff for here" in above example. It includes html and php calls (includes for the navigation etc). Basically, everything between <body> and </body>
|
Ok, thats were the problem is.
Wrapping the HTML in those tags is fine, however when you wrapped the PHP inside the echo tags everything breaks as you have found out.
If your wrapping a mix of HTML and PHO you need it in a format like this.
PHP Code:
<?php
if ($vbulletin->userinfo['usergroupid'] == '6' )
{
echo "Have stuff for here";
// put some PHP code here
echo "Now some more HTML goes here";
// and some more PHP stuff cos I can
echo "and the final HTML stuff here";
} else {
echo "You do not have permission for this page"; }
?>
Ive just used comments // in the above example where you would add your straight PHP code.
Hope thats a bit more clear.
If your still having problems just post the first dozen lines or so of your page or so.