vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   GTSmiliebox - Move Below Editing Area (https://vborg.vbsupport.ru/showthread.php?t=106747)

Princeton 01-29-2006 10:00 PM

GTSmiliebox - Move Below Editing Area
 
Sites with a lot of simlies and fixed-width layouts occasionally run into the "smilie-box-stretch-outside-box" problem.

View attachment image to see what I mean.

With this template modification the smilie toolbar box will now display below the editing area NOT beside it.

PayPal Donations Accepted

FIND IN editor_toolbar_on template:
HTML Code:

    <tr valign="top">
        <td class="controlbar"><textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea></td>
        <if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if>
    </tr>

REPLACE WITH:
HTML Code:

    <tr valign="top">
        <td class="controlbar"><textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea></td>
    </tr>
    <if condition="$smiliebox">
    <tr>
        <td class="controlbar">$smiliebox</td></td>
    </tr>
    </if>

OPTIONAL
This template edit moves the "More" link.
REPLACE editor_smilibox TEMPLATE WITH:
HTML Code:

<if condition="$show['smiliebox']">
<fieldset class="fieldset" id="{$editorid}_smiliebox" title="$vbphrase[smilies]">
    <legend>$vbphrase[smilies]
    <if condition="$show['moresmilieslink']">
    [<a href="#" onclick="vB_Editor['$editorid'].open_smilie_window(smiliewindow_x, smiliewindow_y); return false" title="<phrase 1="$vboptions[smtotal]" 2="$totalsmilies">$vbphrase[showing_x_smilies_of_y_total]</phrase>">$vbphrase[more]</a>]
    </if>
    </legend>
    <table cellpadding="2" cellspacing="0" border="0" align="center">
    $smiliebits
    </table>
</fieldset>
<else />
<div id="smiliebox" style="display:none"></div>
</if>

Edit your vboptions / Message Posting Interface Options to change the number of smilies displayed per row.

Click https://vborg.vbsupport.ru/ for updates.

AshokForums.com 01-30-2006 10:11 PM

nice hack.. Installed..

sellbuydomain 01-30-2006 10:21 PM

nice work, thanks so much

AshokForums.com 01-30-2006 10:36 PM

There is a problem.. Check out the screen shot

sellbuydomain 01-30-2006 10:38 PM

yes, try it redo it right now, follow the the new codes up there, will works this time. i just did it work.

Princeton 01-30-2006 10:43 PM

it's fixed now ... thanks to sellbuydomain (code typo)

BoYagoob 01-31-2006 05:12 AM

installed .. :)

gothicuser 01-31-2006 07:04 AM

Great. Thankyou very much.

Snake 01-31-2006 11:23 AM

This is quite good. Thanks!

shadowdancer36 01-31-2006 05:43 PM

Yes! I needed that. Do you know how to change how many cols it shows? I want it to show 4 or 5 columns.

DS MrSinister 01-31-2006 06:14 PM

Nice Job m8 thanks.

PtP 02-01-2006 12:48 AM

Quote:

Originally Posted by shadowdancer36
Yes! I needed that. Do you know how to change how many cols it shows? I want it to show 4 or 5 columns.

Thats adjustable in vBulletin Options just like normal ;)

Gripemaster 02-01-2006 01:51 AM

*Clicks Install* Thank you! Very nice!

Princeton 02-01-2006 12:28 PM

Quote:

Originally Posted by shadowdancer36
Yes! I needed that. Do you know how to change how many cols it shows? I want it to show 4 or 5 columns.

Edit your vboptions / Message Posting Interface Options to change the number of smilies displayed per row.

poprulz 02-01-2006 01:10 PM

Nice simple hack....

The text area looks od now as it is just half the page...is it possible to resize it so that it strecthes its width to the space the smiley box earlier was.

The $stylevar[messagewidth] does i guess...

Princeton 02-01-2006 01:34 PM

populz,
I believe you can edit the editor's width via STYLES & TEMPLATES/ StyleVars.

poprulz 02-01-2006 05:00 PM

thx alot prince..it did the trick!

vietfancy 02-01-2006 05:54 PM

Installed

Quarterbore 02-02-2006 06:40 PM

Awsome!

Have you looked at moving icons over to where the smilies were yet? Not a big deal as the smilies were my nightmare...

EasyTarget 02-02-2006 06:42 PM

great hack, thanks.

can you include the instructions in a text file? The mods make you do it anyways and it makes it easy to archive the hacks I've installed.

CoreIssue 02-23-2006 11:58 AM

Sweet.

I think it looks way better than the default and allows a better text posting area!:nervous:

Princeton 02-23-2006 12:09 PM

thanks for the feedback! :D

Doc.Blade 03-08-2006 11:53 AM

nice work Princeton, this is a great help on my site, thank you :nervous:

>>Installed<<

Princeton 03-08-2006 12:22 PM

feedback appreciated .. thank you :up:

FARMER 03-12-2006 07:42 AM

Greatest Idea!!

Thank you!

|oR|Greg 03-23-2006 01:41 PM

Installed, however I wanted the Message Area Width at 100%, but it doesn't seem to accept percent as a value, just px. Anyone know how to fill the Message Area Width completely regarding width?

Princeton 03-23-2006 01:59 PM

table/editor width is based on the value that you enter in STYLES / STYLEVAR

|oR|Greg 03-23-2006 02:20 PM

Right but it doesn't accept %, only px, do you know a way to have it accept either %, or some other way to fill the space?

JJR512 04-04-2006 02:49 AM

If you like your smilies below your message editing box, here's something else you might want to do. If you just move the smilies to below the edit box, the More link will still be left-aligned under the smilies. To center it, make the following change to the template editor_smiliebox:

Find:
Code:

<td class="smallfont" colspan="$vboptions[smcolumns]">
Change to:
Code:

<td align="center" class="smallfont" colspan="$vboptions[smcolumns]">
Save it and you're done. :)

quang188 05-24-2006 06:25 PM

Thanx a lot man. APpreciate it greatly :D

UncoderMom 05-26-2006 04:55 PM

Installed Thanks!

This should be default! I only had three rows and it was still breaking my templates! NOT no more ;)

Kroby 05-26-2006 07:53 PM

Many thanks, installed :)

dan35 05-28-2006 04:08 AM

Installed! Thank you, Princeton!

akanevsky 05-28-2006 12:56 PM

Nice mod, thanks. Clean and simple.

Princeton 05-29-2006 02:10 PM

thank you :up:

Christie189 07-20-2006 03:59 PM

Installed and working great. Thank you so much!

zooki 07-24-2006 10:47 AM

I would like to thank Joe for this Template Mod code! Its very useful.

glorify 08-16-2006 02:54 AM

Very Nice. Two rows of 15 look great :)

UncoderMom 10-14-2006 02:19 PM

3.6.2 ?

*edit*

Works GREAT with 3.6! Thank you again!

EMBX 10-20-2006 02:45 AM

Installed, very nice and clean indeed


All times are GMT. The time now is 09:11 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.01332 seconds
  • Memory Usage 1,791KB
  • 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
  • (3)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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