Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 1999
Posts: 282
Enthusiast
Enthusiast
Offline
Joined: Oct 1999
Posts: 282
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.
Attachments
2382-7HackSmileyDropdownv1.txt (1.27 KB, 85 downloads)

Sponsored Links
Joined: Jan 2007
Posts: 70
Power User
Power User
Joined: Jan 2007
Posts: 70
Thanks.

smile

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
I was always thinking that it could be made cleaner with a table (:gasp:)


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Sep 2006
Posts: 75
Power User
Power User
Offline
Joined: Sep 2006
Posts: 75
Me too, Gizmo. smile If I knew the slightest thing about writing PHP, I'd do it.

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
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


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Sep 2006
Posts: 75
Power User
Power User
Offline
Joined: Sep 2006
Posts: 75
Ian, care to share the bit that starts it closer to the left? I could sure do with that. smile

Joined: Sep 2006
Posts: 75
Power User
Power User
Offline
Joined: Sep 2006
Posts: 75
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

Joined: Sep 2004
Posts: 1
mag Offline
Junior Member
Junior Member
Offline
Joined: Sep 2004
Posts: 1
Yes, Please. My IE smiley box is way over to the right and needs scrolling.

Joined: Oct 2007
Posts: 11
Newbie
Newbie
Offline
Joined: Oct 2007
Posts: 11
Doesn't seem to work for 7.2.2.
Has anyone got an update?

Sponsored Links
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
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)

Joined: Oct 2007
Posts: 11
Newbie
Newbie
Offline
Joined: Oct 2007
Posts: 11
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

Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
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

Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
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

Joined: Feb 2007
Posts: 329
Yarp™
Yarp™
Offline
Joined: Feb 2007
Posts: 329
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

Joined: Oct 2007
Posts: 11
Newbie
Newbie
Offline
Joined: Oct 2007
Posts: 11
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

Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
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 ?

Joined: Oct 2007
Posts: 11
Newbie
Newbie
Offline
Joined: Oct 2007
Posts: 11
Indeed - I'll wait. I can't *poof* the way you do grin

Joined: Feb 2007
Posts: 329
Yarp™
Yarp™
Offline
Joined: Feb 2007
Posts: 329
Yes you can, wait for 7.3, and *poof* the functionality is there smile


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)