Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Using Smarty Pastebin with MyBB

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
codegamer
Smarty n00b


Joined: 24 Aug 2014
Posts: 1

PostPosted: Sun Aug 24, 2014 7:52 pm    Post subject: Using Smarty Pastebin with MyBB Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP