MyBB Community Forums

Full Version: Page Manager - Create and manage additional pages!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
As I see you just use HTML so you can enable "MyBB Template" (this will include MyBB header footer automatically) and put this in content area only:

<center>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="875" height="600">

<param name="WMode" value="Transparent">

   <param name="movie" value="http://www.pazrt.com/forum/images/aboutus.swf">

   <param name="quality" value="high">

   <embed src="http://www.pazrt.com/forum/images/aboutus.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="875" height="600" wmode="transparent"></embed>

</object>

<p>
Website designed and built by: <a href="http://www.pazrt.com/forum/user-rocketfoot"><b>RocketFoot</b></a> and <a href="http://www.pazrt.com/forum/user-andrewjs18"><b>andrewjs18</b></a>.  Hosted by: <a href="http://www.pazrt.com/forum/user-FireGS"><b>FireGS</b></a>.  Member list maintained by: <a href="http://www.pazrt.com/forum/user-Ronnie77"><b>Ronnie77</b></a>
</center>

If you want to build header and footer manually you have to load them with PHP. Also have a look at the example pages: http://community.mybboard.net/thread-63357.html
(2010-01-18, 10:56 PM)querschlaeger Wrote: [ -> ]As I see you just use HTML so you can enable "MyBB Template" (this will include MyBB header footer automatically) and put this in content area only:

<center>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="875" height="600">

<param name="WMode" value="Transparent">

   <param name="movie" value="http://www.pazrt.com/forum/images/aboutus.swf">

   <param name="quality" value="high">

   <embed src="http://www.pazrt.com/forum/images/aboutus.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="875" height="600" wmode="transparent"></embed>

</object>

<p>
Website designed and built by: <a href="http://www.pazrt.com/forum/user-rocketfoot"><b>RocketFoot</b></a> and <a href="http://www.pazrt.com/forum/user-andrewjs18"><b>andrewjs18</b></a>.  Hosted by: <a href="http://www.pazrt.com/forum/user-FireGS"><b>FireGS</b></a>.  Member list maintained by: <a href="http://www.pazrt.com/forum/user-Ronnie77"><b>Ronnie77</b></a>
</center>

If you want to build header and footer manually you have to load them with PHP. Also have a look at the example pages: http://community.mybboard.net/thread-63357.html

getting this error when trying to save it:

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
    1054 - Unknown column 'framework' in 'field list'
Query:
    UPDATE mybb_pages SET `name`='About Us', `url`='About-Us', `framework`='1', `template`='
    \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n   \r\n\r\n\r\n\r\n   \r\n\r\n\r\n\r\n   \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n

    \r\n\r\nWebsite designed and built by: RocketFoot\r\nand andrewjs18.  Hosted\r\nby: FireGS.  Member\r\nlist maintained by: Ronnie77\r\n\r\n
    ', `dateline`='1263858584', `enabled`='1' WHERE pid=1 
Your database is not up to date. Did you follow these steps: http://community.mybboard.net/thread-630...#pid453731
Very nice plugin!

How can I put php code between header and footer?
For example I am using below code but does not work:

<?php

global $headerinclude, $header, $theme, $footer;

$template='<html>
<head>
<title>'.$pages['name'].'</title>
{$headerinclude}
</head>
<body>
{$header}

<?php
echo "PHP CODE";
?>

{$footer}
</body>
</html>';

$template=str_replace("\'", "'", addslashes($template));

add_breadcrumb($pages['name']);

eval("\$page=\"".$template."\";");

output_page($page);

?>
Let the PHP code run before you create the template. Put the result in a variable and set this variable somewhere in the template.

Have a look at the attached page (just import it). It shows you the concept.
Very Thanks querschlaeger... Wink
(2010-01-19, 07:53 AM)querschlaeger Wrote: [ -> ]Your database is not up to date. Did you follow these steps: http://community.mybboard.net/thread-630...#pid453731

ah..I had to uninstall and reinstall..I only overwrote and deactivate/activate the plugin before...thanks for that.
Updated to version 1.4.1!

It's a patch level update. A small error has fixed if a admin want to view a non existing page. Now it's shown an error to this admin. Database engine check is now working in a better way when installing the plugin.

Bonus: Now Page Manager is fully compatible with MyBB 1.6 (Beta)! I checked all functions under a running MyBB 1.6 and everythink works fine.

If you want to update from 1.4 to 1.4.1 just overwrite the plugin file.
If want to update from 1.0, 1.1 or 1.2 to 1.4.1 follow these instructions: http://community.mybboard.net/thread-630...#pid453731
You mean the SVN code? Because 1.6 isn't in beta (just yet Toungue).
(2010-01-19, 11:06 PM)faviouz Wrote: [ -> ]You mean the SVN code? Because 1.6 isn't in beta (just yet Toungue).

[attachment=17052]

Toungue
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22