vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Smilie popup (https://vborg.vbsupport.ru/showthread.php?t=302641)

Bubble #5 09-25-2013 03:37 PM

Smilie popup
 
How do you set up posting so that when someone clicks on the editor smilie icon, it opens the bigger smilie box instead of the smaller one?

Right now you have to click on the 'more' button every time and trying to skip that step. Thanks.

tbworld 09-27-2013 06:15 AM

This works for me.

Set the right side "smiliebox" off.
admincp->options->Message Posting Interface Options -> Smilebox Total Smiles = 0

Now when I click on the ckeditor smilie icon it opens up the smilie popup-box directly.

Hope it works for you :)

Bubble #5 09-27-2013 04:16 PM

Sorry, tbworld, that's the wrong smilie box. On the bottom of that smilie box it says "More". When you click it another (bigger) smilie box opens up.

That's the one I'm talking about :) I need it to go directly there.

tbworld 09-27-2013 11:04 PM

That is a bit more difficult. One is a plugin for the Ckeditor the other is not. I have a feeling vbulletin had a problem implementing the smiliebox code in the container div -- what you are referring to as the "more" popup box -- as an internal plugin.

I will mess around with it a bit and see what I can see.

--------------- Added 27 Sep 2013 at 18:02 ---------------

I just worked this up for another user on vbulletin. Simple hack but it might help you for now, until I look at your proposal -- which is interesting.

Hack: Set the minimum height and width of the Ckeditor plugin smiliebox

Edit:
Use a good editor (Do not use Notepad or Wordpad or something similar.
You can use the vbulletin uncompressed source or just edit the compressed since it is just a few parameter
changes.

Edit in vbulletin file area:
"/clientscript/ckeplugins/vbsmiley/dialogs/smiley.js"

Search for "270," <-- Do not include the quotes

The code you are searching for is the following.
Code:

        minWidth  : 270,
        minHeight : 120,

Change this to the minimum width of your desired popup box.
NOTE: This should be less than the smallest device resolution you support.

Examples:
minWidth : 450,
minHeight : 290,

minWidth : 610,
minHeight : 450,

It is your environment so experiment.

Save and Recompress:
For final production version always recompress.
YUI compressor is easy to use and does a good job most of the time.


All times are GMT. The time now is 10:05 AM.

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.01051 seconds
  • Memory Usage 1,716KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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