Using forum variables outside forum

Zyenet

Addicted
Joined
Aug 17, 2007
Messages
758
Reaction score
0
FP$
511
Hey everyone,

I'm working on some new features for my website (not the actual forum), and I'm starting off with an admin panel link when the admin is logged in.
I know how to do this inside the forum
Code:
<!-- IF U_ACP --><span class="gensmall">[ <a href="{U_ACP}">{L_ACP}</a> ]</span><br /><br /><!-- ENDIF -->
but I can't quite get it to work outside the forum. I made a new PHP file that contains code to get into the forum (posted below), but when I put the admin code at the bottom, it doesn't parse the language file. (Or the <!-- IF --> stuff)
 
In order to parse the templates you'd need to run the html content/file through the phpBB template engine.

To get the variables to work you'd need to assign them again using the phpBB template system.

The page creation tutorial here: http://www.awesomestyles.com/tutorials should help 🙂
 
Back
Top Bottom