MyBB Community Forums

Full Version: how to add external smilies in smilies manager
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
hello all,

i want to add some external images as my smiley's on my forum.

like http://external.com/images/1.gif

to my forum which is situated at http://myforum.com/forum

Sad

i tried it won't work

but i tried changing option in server setting and optimization plugin

and i removed my site address from there

but i am sure its not a solution. cause when activation code is sent to my members. they get only code like this actioncode......

before that there is no link of my forumSad

please help
isn't there anybody to help?
Well, your question confuses me. You have to upload smiles to have them in your smilies manager. If you want to use a link, you just put the url code into your reply!
In inc/class_parser.php

Find
$this->smilies_cache[$smilie['find']] = "<img src=\"{$this->base_url}{$smilie['image']}\" style=\"vertical-align: middle;\" border=\"0\" alt=\"{$smilie['name']}\" title=\"{$smilie['name']}\" />";

Replace with:
$this->smilies_cache[$smilie['find']] = "<img src=\"{$smilie['image']}\" style=\"vertical-align: middle;\" border=\"0\" alt=\"{$smilie['name']}\" title=\"{$smilie['name']}\" />";
I don't think there is a way to have remote smileys at the moment without making modifications to the code.
fyi- remote smilies are a bad idea. If the remote host has any problems it will slow your page loads. Also remote hosts could go down or even replace the image. What if they decide to place a porno image in the smilies place?

It's easy to right click and download an image then upload it to your own server. There are plenty of free smiley packs out there as well. Make sure you have permission to use any smilies you find. I just want to encourage you to do the right thing for your forums. Remote smileys aren't it.
Permission to use smilies?  They are public domain!  If you find them, feel free to use them! It isn't as if you are trying to sell them!!!
judel Wrote:Permission to use smilies?  They are public domain!  If you find them, feel free to use them!  It isn't as if you are trying to sell them!!!

That's not true. Please don't give such bad advice.
A lot of smilies/images are copyrighted, keep this in mind when hot linking from pages, a lot of pages has hot linking disabled though.
Be very careful when downloading and even using an external smilies, make sure you have permission first.

Think about it like this Judel. If you spent your whole day working on a impressive graphic and uploaded it to your site, then somebody downloads it and uses it on their own site. They take all the credit for something you spent all that time on, would you be mad, angry? Lets take this a step further, what if they sell it and keep all of the profit? That's the same principle here, taking somebody's property and using it without their permission.
Pages: 1 2