View Full Version : Calling Variables
Nicholas Brown
03-11-2001, 08:00 PM
Im using this:
<?php
chdir("$DOCUMENT_ROOT/forum/");
require('./global.php');
?>
And I can call var's such as $session[sessionhash] and $bbtitle but how can you call variables like this
{acolor}
I tried <?php echo "{acolor}"; ?> but that doesn't work.
Anyone got any ideas?
You have to send it through the vBulletin dooutput() function.
Im now using this code:
<?php
chdir("$DOCUMENT_ROOT/forum/");
require('./global.php');
?>
<? eval("dooutput(\"".gettemplate("nick1")."\");"); ?>
<h2><u>Order Accepted</u></h2>
<p>You're order has been processed by the online transaction server. Your
username, password and domain have been sent to the technical department and
will be activated within 6 hours.</p>
<p>If you require more help, please try the <a href="http://support.UN-NAMED.net">support
forums</a>, <a href="http://hosting.UN-NAMED.net/helpdesk/">helpdesk</a>
or email the <a href="mailto:support@UN-NAMED">support department</a></p>
<p>One again, thank you for choosing UN-NAMED Hosting.</p>
<? eval("dooutput(\"".gettemplate("nick2")."\");"); ?>
Only the template nick1 gets parsed, nick2 does not and neither does the text
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.