miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
How To miniBB Support Forums / How To /  
 

2 Manual Pages

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

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

kobe

Author Team
8-)
#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:

index.php?action=tpl&tplName=manual2

Author kobe
Guest
#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';

$langOrig=$lang;

$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:

<?php
/*

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

$tpl=makeUp('faq');
$tplTmp=str_replace('{$xxxxx}','<!--XXXXX-->',$tpl);
$tplTmp=ParseTpl($tplTmp);
$tplTmp=explode('<!--XXXXX-->',$tplTmp);

$title.=$l_menu[9];
$l_meta.=<<<out

<style type="text/css">
<!--
P{
font-family: Verdana,Arial,Helvetica,sans-serif;
color: #000000;
text-decoration: none;
font-size: 11px;
}


SMALL{
font-family: Verdana,Arial,Helvetica,sans-serif;
color: #000000;
text-decoration: none;
font-size: 10px;
}

PRE{
font-family: Helvetica,sans-serif;
color: #000000;
text-decoration: none;
font-size: 12px;
}

H1{
font-family: Verdana,Arial,Helvetica,sans-serif;
color: #000000;
text-decoration: none;
font-size: 15px;
}

LI{
font-family: Verdana,Arial,Helvetica,sans-serif;
color: #000000;
text-decoration: none;
font-size: 11px;
margin-top: 0px;
margin-bottom: 0px;
margin-right: 0px;
margin-left: 15px;
}

UL{
font-family: Verdana,Arial,Helvetica,sans-serif;
color: #000000;
text-decoration: none;
font-size: 11px;
margin-top: 0px;
margin-bottom: 0px;
margin-right: 15px;
margin-left: 15px;
}
//-->
</style>
out;
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']} <aa href=\"{$GLOBALS['main_url']}/{$urlp}\">{$GLOBALS['l_menu'][9]}</a> ";
}
else $GLOBALS['l_menu'][9]='';

---

I in setup_options.php wrote:

$xxxxxIndex='xxxxx.html';

---

I in faq.html wrote:

{$xxxxx}{$manual}

---

the whole does not want to act, error 404

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

If you want the page like:

index.php?action=tpl&tplName=manual2

to load as manual2.html

add a rewriterule like:


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

or

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
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑