PDA

View Full Version : Add Posting Rules Near Editor


Princeton
04-22-2006, 10:00 PM
Sometimes, it's the little things in life that makes us happy: :)

Move Posting Rules Near Editor is just a simple mod to display Posting Rules near editor. This mod will add the Posting Rules to all editors including quickreply. Please take a look at the following attachments if you do not understand what I mean.

All you have to do is upload the "product_gtpostrules" XML file via the Plugin System and do the following template edits.

PayPal Donations Accepted (https://www.paypal.com/cgi-bin/webscr?cmd=_ext-enter&redirect_cmd=_xclick&business=paypal%40gtwebhost%2Ecom)

FIND IN SHOWTHREAD:
$messagearea
REPLACE WITH:
$messagearea
<div class="smallfont" align="center"><strong>$vbphrase[posting_rules]</strong>:
<phrase 1="misc.php?$session[sessionurl]do=bbcode" 2="$bbcodeon">$vbphrase[vb_code_is_x]</phrase>,
<phrase 1="misc.php?$session[sessionurl]do=showsmilies" 2="$smilieson">$vbphrase[smilies_are_x]</phrase>,
<phrase 1="misc.php?$session[sessionurl]do=bbcode#imgcode" 2="$imgcodeon">$vbphrase[img_code_is_x]</phrase>,
<phrase 1="$htmlcodeon">$vbphrase[html_code_is_x]</phrase>
</div>

FIND IN editor_toolbar_on:
<if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if>
</tr>

REPLACE WITH:
<if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if>
</tr>
<tr>
<td class="controlbar" align="center"><div class="smallfont"><strong>$vbphrase[posting_rules]</strong>:
<phrase 1="misc.php?$session[sessionurl]do=bbcode" 2="$bbcodeon">$vbphrase[vb_code_is_x]</phrase>,
<phrase 1="misc.php?$session[sessionurl]do=showsmilies" 2="$smilieson">$vbphrase[smilies_are_x]</phrase>,
<phrase 1="misc.php?$session[sessionurl]do=bbcode#imgcode" 2="$imgcodeon">$vbphrase[img_code_is_x]</phrase>,
<phrase 1="$htmlcodeon">$vbphrase[html_code_is_x]</phrase>
</div></td>
</tr>

FIND IN editor_toolbar_off:
$newpost[message]</textarea>
REPLACE WITH:
$newpost[message]</textarea>
<div class="smallfont"><strong>$vbphrase[posting_rules]</strong>:
<phrase 1="misc.php?$session[sessionurl]do=bbcode" 2="$bbcodeon">$vbphrase[vb_code_is_x]</phrase>,
<phrase 1="misc.php?$session[sessionurl]do=showsmilies" 2="$smilieson">$vbphrase[smilies_are_x]</phrase>,
<phrase 1="misc.php?$session[sessionurl]do=bbcode#imgcode" 2="$imgcodeon">$vbphrase[img_code_is_x]</phrase>,
<phrase 1="$htmlcodeon">$vbphrase[html_code_is_x]</phrase>
</div>


FIND IN postbit_quickedit:
$newpost[message]</textarea>
</div>
REPLACE WITH:
$newpost[message]</textarea>
</div>
<div class="smallfont" align="center"><strong>$vbphrase[posting_rules]</strong>:
<phrase 1="misc.php?$session[sessionurl]do=bbcode" 2="$bbcodeon">$vbphrase[vb_code_is_x]</phrase>,
<phrase 1="misc.php?$session[sessionurl]do=showsmilies" 2="$smilieson">$vbphrase[smilies_are_x]</phrase>,
<phrase 1="misc.php?$session[sessionurl]do=bbcode#imgcode" 2="$imgcodeon">$vbphrase[img_code_is_x]</phrase>,
<phrase 1="$htmlcodeon">$vbphrase[html_code_is_x]</phrase>
</div>

Let me know if I'm missing anything ... thanks.00

Atakan KOC
04-22-2006, 11:13 PM
install :) Thanks

trackpads
04-22-2006, 11:35 PM
Great idea!

trackpads
04-22-2006, 11:48 PM
Found one problem, in the editor on template:

<if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if>
</tr>

should be:

<if condition="$smiliebox">
<tr>
<td class="controlbar">$smiliebox</td></td>
</tr>

Took me a minute to figure out that the <tr> was missing!

Thanks again, great idea and installed!!

-Jason

Princeton
04-23-2006, 12:01 AM
I'm guessing you have the smiliebox below editing area and not side of editor as in a default vbulletin style. :)

You may want to download the files again as I added the ability to add the rules to the postbit_quickedit template. Yes, reupload the xml file and do the last template edit as outlined in the first post.

Barakat
04-23-2006, 12:13 AM
thanks installed and working nice .

trackpads
04-23-2006, 01:37 AM
I'm guessing you have the smiliebox below editing area and not side of editor as in a default vbulletin style. :)

You may want to download the files again as I added the ability to add the rules to the postbit_quickedit template. Yes, reupload the xml file and do the last template edit as outlined in the first post.
I knew it was my fault! Sorry about that!

Great hack!

-Jason

trackpads
04-23-2006, 01:40 AM
Also, while I am using the heck out of all your hacks :) How do you widen the wysiwyg to match the post icon box? That extra inch is driving me mad! Check out the screenshot.

Thanks again!

Boofo
04-23-2006, 03:22 AM
How did you guys get the smilies to show at the bottom like that instead of the side (as in the 2nd pic in the first post)?

bashy
04-23-2006, 07:36 AM
Hi boofo

its the author of this hack, hack, ooo sounded better when i was thinking it pmsl... forget it just click the link lol https://vborg.vbsupport.ru/showthread.php?t=106747

Princeton
04-23-2006, 02:24 PM
Also, while I am using the heck out of all your hacks :) How do you widen the wysiwyg to match the post icon box? That extra inch is driving me mad! Check out the screenshot.

Thanks again!
you have modified your templates so I can't say if it will help but take a look at this: 113853

you may also try adding the $posticons variable
above "<!-- message area -->"
or
below "<!-- / message area -->"

PoetJA-1975
10-12-2006, 03:14 AM
Very nice share - Thanx!

Jacquii.

Clicks INSTALL :)

Mr saleki
04-07-2008, 12:57 PM
good job ... install
thanks