vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Add Posting Rules Near Editor (https://vborg.vbsupport.ru/showthread.php?t=113795)

Princeton 04-22-2006 10:00 PM

Add Posting Rules Near Editor
 
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

FIND IN SHOWTHREAD:
HTML Code:

$messagearea
REPLACE WITH:
HTML Code:

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

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

REPLACE WITH:
HTML Code:

        <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:
HTML Code:

$newpost[message]</textarea>
REPLACE WITH:
HTML Code:

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

$newpost[message]</textarea>
    </div>

REPLACE WITH:
HTML Code:

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

Code:

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

should be:

Code:

    <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

Quote:

Originally Posted by Princeton
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

Quote:

Originally Posted by trackpads
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: https://vborg.vbsupport.ru/showthread.php?t=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


All times are GMT. The time now is 08:26 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01226 seconds
  • Memory Usage 1,758KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (8)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete