UBB.Dev
Posted By: Maze [7.1] Nicer look for smiley dropdown box - 04/02/2007 7:52 PM
Nicer look for smiley dropdown box v1.0
Take a look at the smiley dropdown box on the "New Post" page. If you added some of your own smileys with different widths, it will look messy, because always six smileys are put in one row. This hack simply inserts a linebreak after a given width has been exceeded.

This is an easy hack with just a few modifications in one place.

Working Under
Has been tested with v7.1

Files Modified
/libs/ubbthreads.inc.php

Instructions
Follow the steps in the attached text file.

Attached File
Posted By: Stephen G Re: [7.1] Nicer look for smiley dropdown box - 04/03/2007 12:37 AM
Thanks.

smile
Posted By: Gizmo Re: [7.1] Nicer look for smiley dropdown box - 04/03/2007 7:15 AM
I was always thinking that it could be made cleaner with a table (:gasp:)
Posted By: Rose Re: [7.1] Nicer look for smiley dropdown box - 04/04/2007 1:52 AM
Me too, Gizmo. smile If I knew the slightest thing about writing PHP, I'd do it.
Posted By: Gizmo Re: [7.1] Nicer look for smiley dropdown box - 04/04/2007 6:26 AM
I've been quite busy lately, and my birthday is on the 8th, so I won't be able to take a look at it for a while wink
Posted By: Ian_W Re: [7.1] Nicer look for smiley dropdown box - 04/06/2007 11:05 AM
Thanks. I have altered mine, so that it starts much closer to the left hand side of the page, and I have increased the number of smilies to 16 per line.

For some of the wider images, I had to database dive to split them up, so maybe your idea in conjunction with my changes would work well smile
Posted By: Rose Re: [7.1] Nicer look for smiley dropdown box - 04/07/2007 12:33 AM
Ian, care to share the bit that starts it closer to the left? I could sure do with that. smile
Posted By: Rose Re: [7.1] Nicer look for smiley dropdown box - 04/20/2007 10:30 PM
I'm wondering if anyone knows how I can make the graemlins menu move over to the left? I need this badly.

Can anyone give me a hint on where I could start looking? Any help would be most appreciated.

Thanks. smile
Posted By: mag Re: [7.1] Nicer look for smiley dropdown box - 06/01/2007 3:38 PM
Yes, Please. My IE smiley box is way over to the right and needs scrolling.
Posted By: luckie Re: [7.1] Nicer look for smiley dropdown box - 11/01/2007 4:52 PM
Doesn't seem to work for 7.2.2.
Has anyone got an update?
Posted By: sirdude Re: [7.1] Nicer look for smiley dropdown box - 11/01/2007 5:26 PM
bleh, i did it for 7.2.2 and never really thought much of it.

seemed simple to do..

you want to:

1. move the smiley icon (toolbar) over to the left.. same thing
2. then you change the width deal to iterate over the smileys..

should be VERY similar, if you just look @ the subtle differences.

if it's not obvious, i can maybe look a little closer at some point and try to gin it up for the 'coding impaired' laugh (no disrespect intended)
Posted By: luckie Re: [7.1] Nicer look for smiley dropdown box - 11/01/2007 7:16 PM
It's indeed not thát obvious for people who never experimented with the code. No idea even what the difference between 7.1 and 7.2 is, how should I know where to adjust then... smirk

It's not out of laziness I ask an update, it's due to not knowing..

If this forum is for developpers only, let me know, then I shouldn't be here cool
Posted By: sirdude Re: [7.1] Nicer look for smiley dropdown box - 11/01/2007 7:55 PM
no no. sorry luckie. i meant no disrespect (as i stated above).

you are MORE than welcome to ask for modifications..

i can look @ 7.2.2 and see what the subtle differences might be.

then if there is time, i can post it..

that is if Yarp™ doesn't beat me to it.. he's a sly coder laugh
Posted By: sirdude Re: [7.1] Nicer look for smiley dropdown box - 11/01/2007 8:01 PM
ok, i looked @ the mod posted.. and that doesn't change at all. just do exactly as it states there.

then to move the smiley icon to the left you would do:

open up /templates/default/standard_text_editor.tpl

find:
PHP Code
<a href="javascript: void(0);" onclick="showHTML('smileys');" title="{$lang.SMILIES}" alt="{$lang.SMILIES}"><img id="smiley" onmouseover="raiseButton(this.id);" onmouseout="normalButton(this.id);" onmousedown="lowerButton(this.id);" class="markup_panel_normal_button" src="{$config.BASE_URL}/images/{$style_array.markup_panel}/smiley.gif" /></a>


cut that out (line ~53ish) and move it before:

PHP Code
<a href="javascript: void(0)" onclick="DoPrompt('url');" title="{$lang.HYPER_ALT}" alt="{$lang.HYPER_ALT}"><img id="link" onmouseover="raiseButton(this.id);" onmouseout="normalButton(this.id);" onmousedown="lowerButton(this.id);" class="markup_panel_normal_button" src="{$config.BASE_URL}/images/{$style_array.markup_panel}/hyperlink.gif" /></a> 

that line (29 ish)

*poof* done smile
Originally Posted by luckie
If this forum is for developpers only, let me know, then I shouldn't be here cool


You should be here! If you can follow do-this and do-that stuff, you are more then welcome. Heck, even if you can't do that, you are more then welcome here smile
Posted By: luckie Re: [7.1] Nicer look for smiley dropdown box - 11/01/2007 9:03 PM
Oh, I didn't mean to imply that you were disrespectful, I really was wondering if this is for developers only wink

Well, it worked cool, thanks.
Is there any way to adjust the order of the smileys? Or can this only be done by removing them all and adding them in the right order.. smirk
Posted By: sirdude Re: [7.1] Nicer look for smiley dropdown box - 11/01/2007 9:19 PM
7.3 addresses this by adding another field to that table.. ie: 'GRAEMLIN_SORT_ORDER' wink

as for 7.2.2 the easiest way would be to quickly add that field in your table and then manually use phpMyAdmin and put the numbers in the order you want.. this replaces having to write an admin cpanel interface for it..

then just change the query in ubbthreads to add 'ORDER BY GRAEMLIN_SORT_ORDER' and *poof* done..

might be easier for you to wait for 7.3 ?
Posted By: luckie Re: [7.1] Nicer look for smiley dropdown box - 11/01/2007 9:21 PM
Indeed - I'll wait. I can't *poof* the way you do grin
Yes you can, wait for 7.3, and *poof* the functionality is there smile
© UBB.Developers