Marking-out of quotes in roleplay forums
Adds your own package of bb-tags for marking-out a text to the form of reply.
Author: Deff
Platform: MyBB
To HTML-bottom (Admin > Options: 2nd form)
<div id=Hide><div class="container" id="meny_My_replic" style="display:none" onclick="changeVisibility('meny_My_replic')">
<p>1. *My remark<span>left part of BB-code,right part of BB-code</span></p>
<p>2. *My thoughts<span> left part of BB-code,right part of BB-code</span></p>
<p>3. *Someone’s remark<span> left part of BB-code,right part of BB-code</span></p>
<p>4. *Someone’s thoughts<span> left part of BB-code,right part of BB-code</span></p>
</div></div><style>#My_replic_meny{background-image:url(http://savepic.net/469555.gif);}
#meny_My_replic span{
display:none;
}
#meny_My_replic p::first-letter{
color:red;
}
#meny_My_replic p{
font-weight:bold;
color:blue;
}
#meny_My_replic {
border: #fff outset 3px;
padding:15px!important;
width:120px;
position:absolute;
margin-right:-140px;
right: 1%;
top: 43px;
}
</style><script>
var str='<img src="/i/blank.gif" title="Marking-out of remarks" onclick="changeVisibility(\'meny_My_replic\')"/>';
if(document.URL.indexOf("/viewtopic.php?id")!=-1 || document.URL.indexOf("/post.php?fid")!=-1 || document.URL.indexOf("/post.php?tid")!=-1 || document.URL.indexOf("/edit.php?id")!=-1)$("#form-buttons #button-keyboard").after("<td id=My_replic_meny>"+str+"</td>")
$("#keyboard-area").after($("div.#Hide").html())
$('#meny_My_replic p').click(function(){
var L=$(this).find("span").html();
var P=L.split(',');
bbcode(P[0],P[1])
return false;
});
</script>
Put your BB-codes for the remark instead of red phrases
For example:
[color=red][i][b],[/b][/i][/color]
(*Left and right parts of BB-tags should be separated by commas.
Points 1.,2,3,4, - you can add your own or replace these with your own
We’ve got a request-suggestion: - replace the text in menu with the icon.
In this case the code of menu (the upper part of script) would look like that:
<div id=Hide><div class="container" id="meny_My_replic" style="display:none" onclick="changeVisibility('meny_My_replic')">
<p>1. <img src="img/smilies/MyBB/dark/crazyfun.gif" title="Comment"/><span>left part of BB-code,right part of BB-code</span></p>
<p>2. <img src="http://forums.0pk.ru/img/smilies/MyBB/dark/blink.gif" title="Comment"/><span> left part of BB-code,right part of BB-code </span></p>
<p>3. <img src="http://forums.0pk.ru/img/smilies/MyBB/dark/offtop.giff" title="Comment"/><span> left part of BB-code,right part of BB-code </span></p>
<p>4. <img src="img/smilies/MyBB/dark/crazyfun.gif" title="Comment"/><span> left part of BB-code,right part of BB-code </span></p>
</div></div>