vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - Move smilies to below text area (and optionally add to Quick Reply) (https://vborg.vbsupport.ru/showthread.php?t=229650)

Lynne 12-05-2009 10:00 PM

Move smilies to below text area (and optionally add to Quick Reply)
 
1 Attachment(s)
NOTE: This will break your 4.1.4 Quick Reply if you have smilies enabled there unless you do the edit below.

This moves the smilie box to below the text area when posting within threads, blogs, groups, PMs, and cms when using the Advanced Editor (new item or advanced reply). This is done using just CSS. The plugin simply appends the new CSS file to the editor.css file link in the page. It can also make the smiliebox show on the showthread page below the text box in Quick Reply if you do the Optional Edit below.

Attachment 107256

This mod is supported for the default style only as trying to debug other's site CSS issues is not easy.

This has been tested in firefox, Safari and IE7.


Version History:
1.0 2009-12-06: initial release by Lynne at vbulletin.org (pre 4.0.1)
1.1 2010-01-13: fixed issues with 4.0.1; made it move the smilies to the bottom for sending a new PM ('blog'), and for posting a New Discussion ('group') (4.0.1)
1.2 2010-01-23: fixed it to work if you store your css in the filesystem (4.0.1)
1.3 2010-05-05: added fields so it will work with vbcms and editpost (4.0.1)
1.4 2010-10-23: Modified CSS to use new stylevars - you do NOT need to upgrade to this version if your CSS is working just fine for you! (4.0.8 - see note below for 4.1PL1)


To install:

1. Import product-lynne_smilies_below.xml

2. Go to Settings > Options > Message Posting Interface Options > Put smilie box below textarea > Yes

3. Go to Settings > Options > Message Posting Interface Options and make sure you set these two settings:
Smiliebox Total Smilies - this is the total number of smilies you want to show
Smiliebox Rows (smilies below textarea) - this is the number of rows of smilies you would like

NOTE: The Total Smilies must be evenly divisible by the Rows, ie. you can't set the Total to 17 and have 2 Rows as that won't work.

4. OPTIONAL - If you also want the smiliebox to show on the showthread page under the Quick Reply, then you must do the following:
a. Go to Settings > Options > Message Posting Interface Options > Add smiliebox below Quick Reply on showthread page > Yes (Note that the above options, Put smilie box below textarea must also be set to Yes)
b. Make the following template edit in the template "showthread_quickreply".
Find the following:
Code:

        <div class="editor_textbox quickreply">
            <vb:if condition="$show['qr_require_click']">
                <textarea name="message" id="{vb:raw editorid}_textarea" rows="10" cols="80" dir="{vb:stylevar textdirection}" disabled="disabled">{vb:raw click_quick_reply_icon}</textarea>
            <vb:else />
                <textarea name="message" id="{vb:raw editorid}_textarea" rows="10" cols="80" dir="{vb:stylevar textdirection}"></textarea>
            </vb:if>
        </div>   
       
    </div>
</div>

Add in the following line among the bottom divs (for 4.0.8):
Code:

        </div>   
        <vb:if condition="($vbulletin->options['lynne_sb_below'] AND $vbulletin->options['lynne_sb_below_2']) AND THIS_SCRIPT == 'showthread'"><div class="editor_smiliebox">{vb:raw smiliebox}</div></vb:if>
    </div>
</div>


OR
Add in the following line among the bottom divs (for 4.1.0 PL1):
Code:

        </div>   
        <vb:if  condition="($vboptions['lynne_sb_below'] AND  $vboptions['lynne_sb_below_2']) AND THIS_SCRIPT ==  'showthread'"><div class="editor_smiliebox">{vb:raw  smiliebox}</div></vb:if>
    </div>
</div>

OR in 4.1.10 forward, find this code in the SHOWTHREAD template:
Code:

                <div class="blockrow">
                        {vb:raw messagearea}
                </div>

Add directly below there:
Code:

        <vb:if  condition="($vboptions['lynne_sb_below'] AND  $vboptions['lynne_sb_below_2']) AND THIS_SCRIPT ==  'showthread'"><div class="editor_smiliebox">{vb:raw  smiliebox}</div></vb:if>

To get this to work with 4.1.4 (and later) Quick Reply:
Edit the plugin "Add smilies to Quick Reply also" and remove, or comment out, the line:
PHP Code:

    $editor_template_name 'showthread_quickreply'


To uninstall:


1. Uninstall "Move smilies below textarea"
2. If you added the smiliebox to the showthread.php page in the Quick Reply, then remove the template edit done above.

This will not work for pre-beta 5 vB4.

Lynne 12-06-2009 06:41 PM

Reserved for future use.

fourat 12-06-2009 06:41 PM

Nice mod thank you Lynne

Bounce 12-06-2009 06:47 PM

Lynne!!! You are a star, TY!

Off to install now :) :up:

Bounce 12-06-2009 07:28 PM

Any way of having more than 1 row?

:erm:

Lynne 12-06-2009 07:40 PM

Quote:

Originally Posted by hIBEES (Post 1926447)
Any way of having more than 1 row?

:erm:

You would have to increase the height (by 2, if for 2 rows) and decrease the width (by 2, if for 2 rows) for the ".editor_smiliebox ul.smiliebox" I've never tried that, but it should work.

HTML Code:

.editor_smiliebox ul.smiliebox {
height:{vb:math 2*{vb:math 21+2*2}}px;
margin:0 auto;
width:{vb:math 20+.5*{vb:raw vboptions.smtotal}*{vb:math 20+2*2}}px;
}


TalkTemplate 12-06-2009 09:26 PM

Looks awsome! Thanks!

Bounce 12-06-2009 09:44 PM

Quote:

Originally Posted by Lynne (Post 1926457)
You would have to increase the height (by 2, if for 2 rows) and decrease the width (by 2, if for 2 rows) for the ".editor_smiliebox ul.smiliebox" I've never tried that, but it should work.

HTML Code:

.editor_smiliebox ul.smiliebox {
height:{vb:math 2*{vb:math 21+2*2}}px;
margin:0 auto;
width:{vb:math 20+.5*{vb:raw vboptions.smtotal}*{vb:math 20+2*2}}px;
}



Thanks, looks way better now, now to figure out how to make the smilies bigger, seems not to show the correct size but that's nothing to do with your add-on :)

Dr.osamA 12-06-2009 11:58 PM

insalled

thanxx man !
________
SHEMALE FETISH

AzzidReign 12-07-2009 01:40 AM

This should be vb default :(

Delilahs 12-11-2009 03:49 AM

Lynne, whe someone hit's 'reply with quote'

It doesn't show the 'reply' icons after the text box, so there is no way you can then reply to the post.

look at your attachment, the icons to reply don't show in there either.

Lynne 12-11-2009 04:05 AM

1 Attachment(s)
Quote:

Originally Posted by Delilahs (Post 1928674)
Lynne, whe someone hit's 'reply with quote'

It doesn't show the 'reply' icons after the text box, so there is no way you can then reply to the post.

look at your attachment, the icons to reply don't show in there either.

Yes it does, I just didn't make the screen capture go down that far.

Attachment 107364

Delilahs 12-11-2009 04:21 AM

ok, so it doesn't work for me then.

any ideas Lynne?

Lynne 12-11-2009 04:24 AM

All this does is add a css file to the page. Are your editor buttons there when this is off? And if this is on, can you see the editor buttons in your page source?

Delilahs 12-11-2009 04:28 AM

Lynne, ignore that, I didn't read the instructions correctly and put the extra line in the wrong place.

My mistake, and now working fine.

thanks ;)

Lynne 12-11-2009 04:29 AM

Hehe. Glad you got it worked out. :)

Leo Brazil 12-11-2009 10:31 AM

Lynne, you're awesome !!

nomoreturn 12-12-2009 01:38 PM

1 Attachment(s)
installed very nice mod but have one problem not sure its problem or what in my installation its shows above the txt area not in below pic attached and its in default style

Lynne 12-12-2009 05:13 PM

Quote:

Originally Posted by nomoreturn@hotm (Post 1929323)
installed very nice mod but have one problem not sure its problem or what in my installation its shows above the txt area not in below pic attached and its in default style

As I said in the release notes, it will not work in beta 4.

milsirhc 12-22-2009 06:06 AM

Tested on GOLD. Worked well!

Thanks Lynne!

Vaupell 12-22-2009 08:13 AM

Error : XML empty line 1
-------------------------------

Opened the xml and line 1 was empty as if enter was pressed.
deleted line, saved, and installed..

Thank you.. :D

milsirhc 12-22-2009 11:17 PM

How do we make the smilies bigger?

Lynne 12-22-2009 11:26 PM

Quote:

Originally Posted by milsirhc (Post 1935891)
How do we make the smilies bigger?

They are currently defined in .editor_smiliebox ul.smiliebox li which I quoted in the first post of this thread. You can go change them there but then you will need to change all the variables in this mod based on what you change them to (as I outlined in my instructions).

Socloves 12-23-2009 10:40 AM

http://img39.imageshack.us/img39/7308/44674222.jpg

Help me add 15 Smilies :(. Thanks !

Lynne 12-23-2009 04:21 PM

You need to add the smilies yourself in your Smilie Manager. If you need help with that, you need to post over on vb.com.

Whiteyez 12-24-2009 12:33 PM

Is this working for VB4 gold?

Thanks.

Lynne 12-24-2009 01:43 PM

Yes, it works just fine in vB4 Gold.

Bouncer222 12-26-2009 08:17 PM

K i have latest vb 4.0 gold suite and for some reason it shows up as text, the smilies and not as the actual images. Here is a thread you can check out: http://www.brotherhoodofgamers.com/s...ew-app-scrappy

any idea how to fix this?

Lynne 12-26-2009 08:19 PM

That is a problem with your smilies, not this modification. Uninstall this mod and fix your smilies issue first before installing this mod.

Bouncer222 12-26-2009 10:57 PM

Thats strange my smilies do work, but for some reason they are the older 3.8 version smilies, and I also have another issue, when you click advance reply such as here... http://www.brotherhoodofgamers.com/n...ostreply&t=110

it shows you the smilies under the text box without the images as well as the old 3.8 smilies, any idea how to fix this?

And I believe that when you type in the quick reply for example :) as a smile, it shows the image after you submit the post, it shows it as the NEW smilie types, not the old ones.

Could you please help me fix it?

Lynne 12-26-2009 11:04 PM

You will have to uninstall this mod and get the smilie issue fixed first. This is not a problem with this mod since this mod is only CSS. You should go post on vb.com for help with your smilie issue.

I.am 12-27-2009 07:05 AM

Smilies in quick reply for vb 4 gold?

abbasbsp 12-27-2009 07:31 AM

Quote:

Originally Posted by I.am (Post 1939208)
Smilies in quick reply for vb 4 gold?

you can see this link https://vborg.vbsupport.ru/showthread.php?t=231212

Lynne 12-27-2009 02:58 PM

Quote:

Originally Posted by I.am (Post 1939208)
Smilies in quick reply for vb 4 gold?

There are directions in the first post on how to add smilies to your quick reply.

bongwater 12-27-2009 03:47 PM

Thanks for the mod. Is it possible for the smilies to be in multiple rows, instead of a single row? We have a lot of smilies in use, and most of them are not visible .

Lynne 12-27-2009 05:19 PM

Quote:

Originally Posted by bongwater (Post 1939509)
Thanks for the mod. Is it possible for the smilies to be in multiple rows, instead of a single row? We have a lot of smilies in use, and most of them are not visible .

I already answered that question here - https://vborg.vbsupport.ru/showpost....57&postcount=6

movslow 12-28-2009 03:52 AM

Quote:

Originally Posted by Lynne (Post 1939464)
There are directions in the first post on how to add smilies to your quick reply.

I have 2 categories of smilies.

Standard, meaning thats what is shown once you go advanced to the right of the text box.

If you click more you get the rest of the smiles, those are the ones showing up under the txt box now.

Would it be possible to have the regular (more often used) smilies to be posted under the quick reply box, w/o having them below the go advanced page txt box?

Thanks

Lynne 12-28-2009 03:58 AM

The smilies that show up on that page should be the ones that are listed first in your smilie manager - the first smilies in the first category. If you want other smilies, then you need to order them differently.

compact123 12-30-2009 12:44 PM

this is great a mod, i like it for quick reaply =)

carleboy 12-30-2009 09:12 PM

Quote:

Originally Posted by Lynne (Post 1926457)
You would have to increase the height (by 2, if for 2 rows) and decrease the width (by 2, if for 2 rows) for the ".editor_smiliebox ul.smiliebox" I've never tried that, but it should work.

HTML Code:

.editor_smiliebox ul.smiliebox {
height:{vb:math 2*{vb:math 21+2*2}}px;
margin:0 auto;
width:{vb:math 20+.5*{vb:raw vboptions.smtotal}*{vb:math 20+2*2}}px;
}


Quote:

Originally Posted by hIBEES (Post 1926525)
Thanks, looks way better now, now to figure out how to make the smilies bigger, seems not to show the correct size but that's nothing to do with your add-on :)

Could you please give more detail on making more rows please as iv managed to get the smilies to show under without them being cut in half so i can see the full smilie now i just want more rows and iv tried to change numbers by 2 up and 2 down but i just cant get it right i dont understand what numbers to actualy change, just some spercifics would be good please.

Thanks.


All times are GMT. The time now is 08:07 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.01449 seconds
  • Memory Usage 1,842KB
  • 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
  • (5)bbcode_code_printable
  • (3)bbcode_html_printable
  • (1)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete