|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
codegamer Smarty n00b
Joined: 24 Aug 2014 Posts: 1
|
Posted: Sun Aug 24, 2014 7:52 pm Post subject: Using Smarty Pastebin with MyBB |
|
|
I have a pastebin that is opensource and free. It is made with Smarty. I have never used Smarty before and I am new to PHP. What I am trying to do is remove the header/footer of the pastebin script and incorporate it into my forum header and footer. AKA: make it look like its part of the forum.
However I am having troubles. I tried to use the {php} to direclty add in my header.php file but that is depreciated with v3.
My header.php looks like this...
Code: |
<?php
define('IN_MYBB', 1); require "./global.php";
eval("\$header = \"".$templates->get("header")."\";");
output_page($header);
?>
|
Basically within mybb holds all the templates for the forum. So within MyBB admin panel I can make edits to the forum. So it retrieves the header template and puts it to the variable $header. Then it ouputs the variable. I am lost on how to do this with Smarty and any help will be greatly appreciated. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|