Welcome Guest [Log In] [Register]
Support Staff Recommendation
All communities remaining on zIFBoards/InvisionFree should check their conversion opt-in selection in their Admin CP (menu item Tapatalk Conversion)
(Read More)
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Add Reply
Add Remote Clickable Emoticons
Topic Started: Aug 2 2013, 06:11 PM (2,580 Views)
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code Name: Add Remote Clickable Emoticons

What the code does: Instead of adding an emoticon via the Admin CP, this code allows you to add an emoticon with JavaScript, which is a remote image URL that does not have an upload limit.

How to use the code: Modify the capitalized text in the addEmot lines and you can repeat the addEmot line as many times as you like to add more emoticons.

How to install the code:

Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
//<![CDATA[
function addEmot(shortcut, iURL) {
$('#emot_list').append('<li><img title="' + shortcut + '" alt="' + shortcut + '" src="' + iURL + '" /></li>');
var re = new RegExp(shortcut, 'ig');

$('td:contains(' + shortcut + '):not(:has(textarea)), div.search_results:contains(' + shortcut + ')').each(function () {
$(this).html($(this).html().replace(re, '<img src="' + iURL + '" alt="' + shortcut + '" />'));
});
}

addEmot('SHORTCUT', 'IMAGE_URL');
addEmot('SHORTCUT', 'IMAGE_URL');
addEmot('SHORTCUT', 'IMAGE_URL');
//]]>
</script>
Offline Profile Quote Post Goto Top
 
Replies:
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Just host the script externally: http://docs.zetaboards.com/themes/fullwrappers
Offline Profile Quote Post Goto Top
 
polocolo
Member Avatar
Member
[ *  *  * ]
The best code for Zetaboards!!!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply