Advertisement:

Author Topic: Live Emoticon Library  (Read 28942 times)

Offline Dean Williams

  • Jr. Member
  • **
  • Posts: 181
  • Gender: Male
  • Web Developer
    • resplace
Live Emoticon Library
« on: February 18, 2010, 05:57:27 AM »
Link to Mod

Live Emoticon Library

Description: This modification integrates the resplace emoticon library into your fourm and allows users to post emoticons into topics.

Emoticons are added with one click using [e][/e] tags and are downloaded onto your server so that if our service goes down emoticons will still load on your forum (and it saves us bandwidth).

The library of emoticons can be expanded by you and your members using our submission system!

Warning!
This modification connects to a remote server (resplace.net), fetches and parses a XML document.
In addition to this the modification also fetches gif/png images (the emoticons) from resplace.net and stores them on your server as and when they are used within the forum, this is done so that emoticons load more reliably on your forum but also to save us from bandwidth usage (this is a cache and can be cleared anytime!).
The script also uses an iframe, personally I see no risk but the moderators on this site asked me to mention the use of them.

Full care is taken to minimize security risks to your forums, and our system implements admin approval on all submissions to eradicate spam. Although we have taken all the precautions we can with this script the fact still remains that if we was to get hacked you may be compromised, although this seems highly unlikely we all feel you should be warned of this small risk.


Offline Dean Williams

  • Jr. Member
  • **
  • Posts: 181
  • Gender: Male
  • Web Developer
    • resplace
Re: Live Emoticon Library
« Reply #1 on: July 25, 2010, 11:47:30 AM »
Updated this mod so that it can be installed on 2.0 RC1 - RC2 - RC3!

Enjoy :)

Offline ladiewinter

  • Semi-Newbie
  • *
  • Posts: 11
Re: Live Emoticon Library
« Reply #2 on: June 16, 2011, 04:19:52 PM »
I just installed this mod, and the 'More Emoticons...' link gives me this whenever I click on it:

Quote
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@hogwarts.secret-hands.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Now, I can't even uninstall the damned thing.  Can someone help me figure out how to either make this thing work, or make it go away, plz?  Thank you.

Offline yakyakyak

  • Jr. Member
  • **
  • Posts: 303
  • Gender: Male
Re: Live Emoticon Library
« Reply #3 on: June 17, 2011, 03:41:51 AM »
The relatively small amount of edits this makes according to the parser, it should be easy to manually edit them out to remove the package completely


Offline Dean Williams

  • Jr. Member
  • **
  • Posts: 181
  • Gender: Male
  • Web Developer
    • resplace
Re: Live Emoticon Library
« Reply #4 on: June 20, 2011, 07:04:06 PM »
I just installed this mod, and the 'More Emoticons...' link gives me this whenever I click on it:

Quote
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@hogwarts.secret-hands.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Now, I can't even uninstall the damned thing.  Can someone help me figure out how to either make this thing work, or make it go away, plz?  Thank you.

What version of SMF are you using and what do you mean it doesnt work?

I've tested uninstall and it works fine for me :s

Offline T3CHN0

  • Full Member
  • ***
  • Posts: 630
  • Gender: Male
  • knowledge is power
    • Tarago Pravia Estima
Live Emoticon Library
« Reply #5 on: October 12, 2011, 07:22:53 AM »
Just installed this mod no erors on install, only mod installed on 2.0.1 and after Clicking on More Emoticons... I get this error.

Code: [Select]
Not Found The requested URL /resmoticons/frame.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
  Apache Server at www.aussierampage.com Port 80

Offline T3CHN0

  • Full Member
  • ***
  • Posts: 630
  • Gender: Male
  • knowledge is power
    • Tarago Pravia Estima
Re: Live Emoticon Library
« Reply #6 on: October 12, 2011, 10:37:47 AM »
OK with much working out from the time of my last post I found the answer to fix this bug.

if your forum is installed something like www.yourwebsite.com/ you will be OK and mod will work
but like me if your forum is install something like www.yourwebsite.com/smf2.0/ then this mod will not work.
you need to edit the java script to change its directory where to look.

go to your theme\default\scripts\ and edit dragCode.js

find
Code: [Select]
/resmoticons/frame.php\" frameborder=\"0\" scrolling=\ then add your site folder 'example mine is smf2.0' so it should look like this
Code: [Select]
/smf2.0/resmoticons/frame.php\" frameborder=\"0\" scrolling=\
this fixed it for me and works perfect on 2.0.1

another thing you need to do > go to \resmoticons\ and change file permissions to 644 on all php files in that folder
as even the install has the command to pre set this for you it don't work and you need to do it your self
« Last Edit: October 12, 2011, 10:50:37 AM by T3CHN0 »

Offline Dean Williams

  • Jr. Member
  • **
  • Posts: 181
  • Gender: Male
  • Web Developer
    • resplace
Re: Live Emoticon Library
« Reply #7 on: October 26, 2011, 11:47:06 AM »
blimey, thanks for this I will get working on a fix! I didn't realise I did this!!

I'll hopefully upload a fix tonight, may add some new functionality if I've got time :)

Offline Dean Williams

  • Jr. Member
  • **
  • Posts: 181
  • Gender: Male
  • Web Developer
    • resplace
Re: Live Emoticon Library
« Reply #8 on: October 27, 2011, 05:35:15 AM »
I have now uploaded a fix :) thank you for bringing this to my attention!

The CHMOD issue is due to your server not allowing PHP to CHMOD... Unfortunately there is no work around for servers which disable CHMOD. Ive added some instructions for such problems. Thanks again!!

Offline T3CHN0

  • Full Member
  • ***
  • Posts: 630
  • Gender: Male
  • knowledge is power
    • Tarago Pravia Estima
Re: Live Emoticon Library
« Reply #9 on: October 27, 2011, 07:24:09 AM »
Your welcome.. I'm not a good moder but if I want something to work bad enough I will spend hours on it till I get it working :)
if I can help I will...

Just tested this mod on a new site 2.0.1 that I am working on.
1st/
Downloading zip with FireFox7 Live Emoticon Library.zip firefox does not recognise spaces in download links and most users will download (live) the first past of the name, changing the download link to Live_Emoticon_Library.zip will fix this problem for when others download the file..

2nd/
logs fill up with chmod errors. "can the 3 lines for this be removed"

3rd/
Installs perfect on default theme 2.0.1 but on custom theme it dose not.
might be better if install option changed to
Find
Code: [Select]
                <form id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'add before
Code: [Select]
                <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/dragCode.js"></script>and this would over come that problem as well.

everything else is good and works perfect.

one thing that could be change.. but not needed to is the donation tab, kind of stands out there doesn't it :Dnot a bad thing but I have members from my other forum asking if it could be removed as they feel like therebeing pushed to make a donation and they don't like it.. Not a problem to me but most of my members don't like it... maybe still have something there but no so much in everyone face, or maybe just on install of the modlike most moders do.

cheers...

Offline Dean Williams

  • Jr. Member
  • **
  • Posts: 181
  • Gender: Male
  • Web Developer
    • resplace
Re: Live Emoticon Library
« Reply #10 on: October 27, 2011, 08:20:58 AM »
1) LIVE problem:
Yeah I saw this today, very strange! Didnt know it was down to the spaces though, thats a real bad bug for both SMF and firefox, SMF should really automatically rename the file to use _.

2) CHMOD error logs:
I dont want to remove them as it is useful for hosts that allow the CHMOD to operate, but I can place @ before which SHOULD stop the logs, I'll see what I can do.

3) Install:
Okay brilliant I'll look at changing it :)

4) Donation:
Okay, sorry I did not realise it was so prominent, it is only at the bottom though? so I thought it would be out of the way a little. But I will look at reducing its size/colors or something as I dont want people to be upset by it, but at the same time a few pennies would go very gratefully :p.

------
Thanks for your insight so far, and yes I may be requiring a little help soon actually, I want to add some settings into SMF's settings panel and I have no idea how to accomplish it. Do you know at all?
I was just going to look at some other small mods to figure it out. :)

-----
I'll be working on a new version over the next few weeks, I've been expanding the Emoticon Library with new features such as category images and ability to know if emoticons are animated or adult orientated (eventually I want an option in SMF so you can stop adult emoticons etc).

I guess though the most important thing at the moment is adding more emoticons into the system, how are you finding my library at the moment? Any suggestions for features and/or improvement? What about the API have you looked at that at all?

Offline T3CHN0

  • Full Member
  • ***
  • Posts: 630
  • Gender: Male
  • knowledge is power
    • Tarago Pravia Estima
Re: Live Emoticon Library
« Reply #11 on: October 29, 2011, 12:36:55 PM »
Quote
1) LIVE problem:
Yeah I saw this today, very strange! Didnt know it was down to the spaces though, thats a real bad bug for both SMF and firefox, SMF should really automatically rename the file to use _.
I agree as who knows if or when firefox will fit it?

Quote
2) CHMOD error logs:
I dont want to remove them as it is useful for hosts that allow the CHMOD to operate, but I can place @ before which SHOULD stop the logs, I'll see what I can do.
I was asking this for my self but if putting an @ in it will fix the error, that's a good idea.

3) Install:
Okay brilliant I'll look at changing it :)

------
Quote
Thanks for your insight so far, and yes I may be requiring a little help soon actually, I want to add some settings into SMF's settings panel and I have no idea how to accomplish it. Do you know at all?
I was just going to look at some other small mods to figure it out. :)
I don't know how & I do the same by looking at other mods. I have a busy life but I will help when I can. custom box mod would be a good mod
to inspect how to do what you want. simple edits but works the treat.

-----
Quote
I'll be working on a new version over the next few weeks, I've been expanding the Emoticon Library with new features such as category images and ability to know if emoticons are animated or adult orientated (eventually I want an option in SMF so you can stop adult emoticons etc).
I don't think you can monitor adult emotions but maybe just remove them, if others want them they can include them later them selves.
I for one would rather not see them on my forum, but take the good with the bad
Quote
I guess though the most important thing at the moment is adding more emoticons into the system, how are you finding my library at the moment? Any suggestions for features and/or improvement? What about the API have you looked at that at all?
I haven't looked at the  API. only good with finding solutions but not real good with understanding code yet. HTML I am all over it. PHP still learning..

I like what you have already. buttons with sample emotion in stead of text would be awesome and I might be able to help with that bit.
yes more emotions would be good as well and I might be able to help there as well, but I would simple image google for emotions and collect them :)

P.S.
I removed this mod and re-installed to test it. and good work on the java fix. works on first install now. no more having to edit the java to fix it

Offline T3CHN0

  • Full Member
  • ***
  • Posts: 630
  • Gender: Male
  • knowledge is power
    • Tarago Pravia Estima
Re: Live Emoticon Library
« Reply #12 on: November 01, 2011, 01:52:21 AM »
I wanted to have the extra emotions in my PM's as well so I added
the same edits from Post.Template.php to PersonalMessage.Template.php
and it worked the treat.

still get error
2: chmod() [<a href='function.chmod'>function.chmod</a>]: No such file or directory
from these three

Code: [Select]
        chmod($_SERVER['DOCUMENT_ROOT'].'smf2.0/resmoticons/frame.php', 0644);
        chmod($_SERVER['DOCUMENT_ROOT'].'smf2.0/resmoticons/emote.php', 0644);
        chmod($_SERVER['DOCUMENT_ROOT'].'smf2.0/resmoticons/liveemotelib.english.php', 0644);

I thought by adding /smf2.0/ like I did with the java script would have fixed it :(
I removed this line
$filename2 .= $filename[$i].'/';
and no longer get that unknown filename2 error

just 3 to go so I get no more error's
« Last Edit: November 01, 2011, 04:17:20 AM by T3CHN0 »

Offline Dean Williams

  • Jr. Member
  • **
  • Posts: 181
  • Gender: Male
  • Web Developer
    • resplace
Re: Live Emoticon Library
« Reply #13 on: November 02, 2011, 06:19:22 PM »
Thats awesome Techno, I wasnt aware that you couldnt do that! I'll add your code suggestions into the official mod.

Also ahh yes now I see why your getting the errors, I'll make sure the paths are right with some PHP magick (I think I got the code wrong :p)

I should be able to work on this firday, cant tomorrow as I'm in london :)

Offline Surf3rDud3

  • Jr. Member
  • **
  • Posts: 201
  • Gender: Male
  • Gamer
Re: Live Emoticon Library
« Reply #14 on: November 08, 2011, 02:05:07 AM »
I just installed this and when i Create a new topic the "More Emotions..." link does do anything... I running a custom template does that have anything to do with it?

Offline T3CHN0

  • Full Member
  • ***
  • Posts: 630
  • Gender: Male
  • knowledge is power
    • Tarago Pravia Estima
Re: Live Emoticon Library
« Reply #15 on: November 08, 2011, 03:52:18 AM »
I just installed this and when i Create a new topic the "More Emotions..." link does do anything... I running a custom template does that have anything to do with it?
did you install it with errors. ?
what is the folder path of your forum? www.yoursite.com or www.yoursite.com/something

Offline Dean Williams

  • Jr. Member
  • **
  • Posts: 181
  • Gender: Male
  • Web Developer
    • resplace
Re: Live Emoticon Library
« Reply #16 on: November 08, 2011, 06:13:12 AM »
Can you give me a link to your forums please, I will investigate :)

Also just to update you guys, I'm currently working on 1.5, it's looking pretty good at the moment, I've moved the CHMOD bits, moved around the UI so it's more compact and less emphasis on donations and applying some style and more functionality... In fact I'm going to have to update the API for some more functionality I want :p

Offline Surf3rDud3

  • Jr. Member
  • **
  • Posts: 201
  • Gender: Male
  • Gamer
Re: Live Emoticon Library
« Reply #17 on: November 08, 2011, 10:03:15 PM »
I did not install with any errors... and my path is like www.yoursite.com my forum is installed in the main directory.

www.xswatx.info

Offline T3CHN0

  • Full Member
  • ***
  • Posts: 630
  • Gender: Male
  • knowledge is power
    • Tarago Pravia Estima
Re: Live Emoticon Library
« Reply #18 on: November 09, 2011, 03:10:11 AM »
I did not install with any errors... and my path is like www.yoursite.com my forum is installed in the main directory.

www.xswatx.info
More Emoticons... showing error JavaScript:moreEmots();
Make sure /resmoticons/ emote.php frame.php liveemotelib.english.php chmod permissions are set to 755 or 644
and also make sure /Themes/default/scripts dragCode.js is in there

Offline Surf3rDud3

  • Jr. Member
  • **
  • Posts: 201
  • Gender: Male
  • Gamer
Re: Live Emoticon Library
« Reply #19 on: November 09, 2011, 03:29:25 AM »
It was CMOD to 644 and the dragCode.js was there...