15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
How To miniBB Support Forums / How To /   

2 Manual Pages

Author kobe
#1 | Posted: 4 Jun 2006 20:05 

I have question - how to make second identical side such how manual (on example manual2.html)


Author Team
#2 | Posted: 4 Jun 2006 22:09 
hello. just create an additional template in the templates folder, then you can make a link to it like:


Author kobe
#3 | Posted: 5 Jun 2006 13:27 
I thanks but want this to make on .html

I in index.php wrote:

$unset=array('logged_admin','isMod','user_id','langu','includeHeader', 'includeFooter', 'emptySubscribe', 'allForumsReg', 'registerInactiveUsers', 'mod_rewrite', 'enableViews', 'userDeleteMsgs', 'userInfoInPosts', 'inss', 'insres', 'preModerationType', 'textLd', 'adminAcceptsSignup', 'customProfileList', 'correct', 'customTopicSort', 'manualIndex', 'xxxxxIndex', 'startIndex', 'mTop', 'mdrw', 'metaLocation', 'post');

include ('./setup_options.php');
if(!isset($startIndex)) $startIndex=$indexphp;
if(!isset($manualIndex)) $manualIndex=$indexphp.'action=manual';
if(!isset($xxxxxIndex)) $xxxxxIndex=$indexphp.'action=xxxxx';


$indexphp=(!isset($GLOBALS['indexphp'])?'index.php':$GLOBALS['indexphp ']);
if(!isset($manualIndex)) $manualIndex=$indexphp.'action=manual';
if(!isset($xxxxxIndex)) $xxxxxIndex=$indexphp.'action=xxxxx';

elseif($action=='xxxxx') require($pathToFiles.'bb_func_xxxxx.php');


I in bb_func_xxxxx.php wrote:


if (!defined('INCLUDED776')) die ('Fatal error.');



echo load_header();
echo $tplTmp[0];
if(file_exists($pathToFiles.'templates/xxxxx.html')) include($pathToFiles.'templates/xxxxx.html');
echo $tplTmp[1];



I in bb_func_functions.php wrote:

if($GLOBALS['action']!='xxxxx') {
if($mrw) $urlp='xxxxx.html'; else $urlp="{$GLOBALS['indexphp']}action=xxxxx";
$GLOBALS['l_menu'][9]="{$GLOBALS['l_sepr']} {$GLOBALS['l_menu'][9]} ";
else $GLOBALS['l_menu'][9]='';


I in setup_options.php wrote:



I in faq.html wrote:



the whole does not want to act, error 404

Author Team
#4 | Posted: 7 Jun 2006 15:06 | Edited by: Team 
I'm confused :) why do you need all this code? :)

If you want the page like:


to load as manual2.html

add a rewriterule like:

RewriteRule ^manual2\.html$ ./index.php?action=tpl&tplName=manual2


RewriteRule ^([0-9a-zA-Z]+)\.html$ /index.php?action=tpl&tplName=$1

after all other miniBB rewrite rules in Apache .htaccess or httpd.conf

You don't need to change miniBB code.. just make sure there's a template called manual2.html in the templates folder.

How To miniBB Support Forums / How To / 2 Manual Pages Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB