If you look in Word, there is some buttons which allow you to format your text with titles.
I want to do the same thing with bbcode, here is a small overview of "what the plugin does"
You will see that this plugin can help you to format a webpage (this is good for SEO).
For lazy people, i ve done a pack with all the file for pn_bbcode 1.22 (tested with pnforum 2.7 with the bbcode hook). You just have to copy paste to the root of your postnuke. (you have to allow H1,H2,H3,H4 tags with attributes too)
For the others ...if(!class_exists('GeSHi')) {
include_once('modules/pn_bbcode/pnincludes/geshi.php');
}
add after
include_once('modules/pn_bbcode/pnincludes/MuBBcode.php');
$message = pn_bbcode_encode_quote($message);add after
if (strpos(strtolower($message), "[".TITLEBBTAGS." ")){
$message = MuBBCode_RecScan($message);
}
<!--[ if $size_enabled eq "yes" ]-->
<!--[ pnml name='_PNBBCODE_FONTSIZE' ]-->:
<select name="fontsize" title="<!--[ pnml name='_PNBBCODE_SIZE_HINT' ]-->">
<option value="tiny"><!--[ pnml name='_PNBBCODE_SIZE_TINY' ]--></option>
<option value="small"><!--[ pnml name='_PNBBCODE_SIZE_SMALL' ]--></option>
<option selected="true" value="normal">
<!--[ pnml name='_PNBBCODE_SIZE_NORMAL' ]--></option>
<option value="large"><!--[ pnml name='_PNBBCODE_SIZE_LARGE' ]--></option>
<option value="huge"><!--[ pnml name='_PNBBCODE_SIZE_HUGE' ]--></option>
<option value="<!--[ pnml name='_PNBBCODE_SIZE_TEXTSIZE' ]-->">
<!--[ pnml name='_PNBBCODE_SIZE_DEFINE' ]--></option>
</select>
<!--[ /if ]-->
add after
<!-- MuBBcode - http://forum.topflood.com --> <select name="titleWord" style="height: 12px; width: 60px; float: right;"> <option value="1" accesskey="1" style="color: red; font-size: 14px; font-weight: bold; background-color: rgb(222, 227, 231); padding-left: 2px;"> <!--[ pnml name='_PNBBCODE_TITLE' ]--> 1</option> <option value="2" accesskey="2" style="color: green; font-size: 12px; font-weight: bold; background-color: rgb(222, 227, 231); padding-left: 8px;"> <!--[ pnml name='_PNBBCODE_TITLE' ]--> 2</option> <option value="3" accesskey="3" style="color: darkblue; font-size: 11px; font-weight: bold; background-color: rgb(222, 227, 231); padding-left: 12px;"> <!--[ pnml name='_PNBBCODE_TITLE' ]--> 3</option> </select><!--[pnimg src="bb_word.gif" ]-->
define('_PNBBCODE_TITLE','Title');
case "listitem":
aTag = "[*]";
eTag = "";
break;
Add after
case "title":
aTag = "[title "+optdata+ "]";
eTag = "[/title]";
break;
h2.MuBBCode_titre{
color:red;
}
h3.MuBBCode_titre{
color:blue;
padding-left:20px;
}
h4.MuBBCode_titre{
color:green;
padding-left: 40px;
}
define("TITLEBBTAGS","title");
with
define("TITLEBBTAGS","titre");
case "title":
aTag = "[title "+optdata+ "]";
eTag = "[/title]";
break;
by
case "title":
aTag = "[titre "+optdata+ "]";
eTag = "[/titre]";
break;