Post by Todge on Nov 13, 2012 11:52:12 GMT -8
This is a rewrite of the code in the Code Index, you should be able to simply copy/paste your smilie array from the code in your V4.5 forum into the plugin. The drop-down will appear below the standard smileys on the posting page.
Current Version 4.0.0
There is now a plugin to help you create and edit your smiley array.
Put your smilie array in the large box entitled 'List your smilies here'...
'URL OF SMILIE';
URL OF SMILIE
URL OF SMILIE
URL OF SMILIE
etc..
You can add titles/categories to your smilies by putting the title into the smilie array..
<strong>Happy Smileys</strong>
URL OF SMILIE
URL OF SMILIE
URL OF SMILIE
etc..
Notice you can use simple HTML to style the title.
The rest of the settings are fairly self explanatory (I hope).
This plugin creates the smiley code from the image filename, for example, if you have an image with the URL 'http://myhost/mysmilies/cheerful.png', the smiley code will be ::cheerful::, taking that into account, if your filename is 'cheerful_123_456_xyp.png', then you'll end up with a smiley code of '::cheerful_123_456_xyp::', not very helpful if you want to type it directly.
Please take that into consideration when uploading your smiley images.
There is also a new tab, 'Popup CSS'. Here you can use CSS styling to edit the look of the entire coding.
The classes you need are:-
.smTop {}The top of the smilie box, containing the dropdown selector.
.smMiddle {}The middle of the smilie box, where the selected smilie is displayed.
.smBottom {}The bottom of the smilie box, containing the 'View all smilies' button.
.showsmilies {}The pop-up itself.
.smTitle {}The title bar at the top of the pop-up.
.smTable {}The table containing all the smilies within the pop-up.
.smCell {}The boxes containing each smilie.
.smGroup {}The subtitle cells which separate the smilie groups within the smilie table.
You can also have 'Board Specific' smilies by placing this code in the HEADER of the board(s) you wish to have it's own smilies..
Many thanks to Chris for the awesome function allowing me to add content to the WYSIWYG editor.
4.0.0
Complete re-write, tidying up the code.
Adding the option to display images in the drop-down instead of just the codes.
Added the ability to scroll straight to a smiley category in the pop-up with options in the setting to set the speed of the scrolling.
3.3.0
Added option for extra storage.
3.2.95
Stopped Smiley Management Pop-Up from appearing erroneously.
3.2.94
Updated the way smiley codes are added to the post to fix an issue where URLs with non-standard characters where being ignored.
3.2.93
Removed erroneous spaces that are added when the smileys are converted to their codes.
3.2.9
Update to hide the 'JJ Option' cell that sometimes appeared at the bottom of the page.
3.2.4
Fixed issue that stopped login pop-up from working.
3.2.2
Updated to work with the XL Signature plugin.
3.2.0
Fixed smiley title issue when smileys are displayed along the top of the QR.
3.1.9
Updated the 'JJ' option.
3.1.8
Fixed issue where smiley titles where converted to URLs
3.1.7
Added 'JJ' option
3.1.6
Fixed scroll position after smiley conversion on pageload.
Fixed issue where smiley menu remained visible after pop-up is selected.
3.1.5
Fixed pop-up in shout-box and re-enabled it.
Fixed 'cross-talk' issue when selecting smilies in one area would effect them in the other.
Fixed issue with Signature smiles not showing unless page was refreshed.
Reduced delay on smilies being displayed in the shout-box for those not posting them.
3.1.4
Small bug fix.
3.1.3
Added option to use smilies in chat box.
3.1.2
Updated QR submit call.
3.1.1
Fixed strange QR issue.
3.1.0
No longer necessary to list your smileys in JS format.
3.0.9
Minor bug fix.
3.0.8
Added option to display smileys along the top of the Quick Reply.
3.0.7
Updated Quick Reply function.
3.0.6
Updated quick reply smiley codes.
3.0.5
Updated to reduce oversized images to fit the dropdown.
3.0.4
Added maximum width option for the smiley pop-up box to make it neater for oversized smileys.
3.0.3
Updated cursor position function.
3.0.2
Fixed issue where pop-up box would collapse even if set not to.
Added function to set the caret position after the previously entered smiley in the quick reply box.
3.0.1
Fixed issue where standard smileys would remain open over the top of the pop-up.
Fixed error that stopped smileys from working in PMs.
Fixed conflict with chat-box when adding smileys to your signature.
3.0.0
Complete rewrite, and added option to have smileys in your signatures.
2.1.9
Updated to hopefully make QR selection more reliable.
2.1.8
Corrected issue with matching filenames.
2.1.7
Edited to open smilie pop-up at top of scroll.
2.1.6
Edited to take spaces in URLs into consideration. (again)
2.1.5
Added option for using Eton Bones' UBBC Plugin.
2.1.4
Fixed multiple spaces that occur when previewing post multiple times.
2.1.3
Fixed problem with message QR.
2.1.2
Updated to allow for more CSS styling.
2.1.1
Updated to take shoutbox into consideration when moved to top of forum.
2.1.0
Updated for compatibility with the Smiley Management Plugin.
2.0.3
Edited to allow header array.
2.0.2
Edited to take spaces in URLs into consideration.
2.0.1
Fixed error with smiley categories.
Fixed error when switching from Visual to BBCode in IE.
Updated user interface.
2.0.0
Re-arranged coding into functions and updated QR to eliminate location check.
1.9.94
Updated Quick Reply function call.
1.9.93
Updated location check.
1.9.92
Fixed error on thread creation page.
1.9.91
Fixed small error with pagination.