The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
php custom code parseing errors
I'm trying to add some custom page tools, but the problem is when i try to save the code to the template it throws out parse errors. (its not vbulletin code) The only way i have found that works so far is to fetch it with <iframe> which i would like to do as last resort. Is there an alternative way to do this without having to have the code rewrited.
Code:
<form method="POST" action="<?=$_SERVER["PHP_SELF"];?>"> <input type="hidden" name="checkPr" value="1"> <p>Enter URL's (one for each line) to check Google PageRank:<br> <textarea rows="6" name="urls" cols="50" nowrap> <?PHP if ($_POST["checkPr"] == 1) echo $_POST["urls"]; else echo "http://www.phpclasses.org\nhttp://www.progen.com.tr\nhttp://www.hotscripts.com\nhttp://www.google.com"; ?> Finally took a day of head banging but found what i was after. Code:
ob_start(); include('./pagerank.php'); $pagerank = ob_get_contents(); ob_end_clean(); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|