News:

Wondering if this will always be free?  See why free is better.

Main Menu

Live Emoticon Library

Started by Dean Williams, February 18, 2010, 05:57:27 AM

Previous topic - Next topic

T3CHN0

#40
Sweet works now.
still get error from this line in the logs from this line
            $filename2 .= $filename[$i].'/';
but remove that line and no more error and everything still works.
still had to change file permissions to 644 as well
other then that she's all good and working... love the new layout looks awesome.

Dean Williams

Yes!  ;D

I have noticed that the code you mention is code which I believe may be legacy to an older version of LEL and is possibly not required, however I dont have the time right now to remove it and test. But as part of the next version hopefully coming on the weekend I will attempt to remove this code and see if it has any effect.

For now though, enjoy!

T3CHN0

#42
thankyou for all your time and efforts today with making sure the mod is working again..

Ohh and one other thing I just found. clicked on link to give you a donation but got blank page
like before :) emotions work well but donation link don't lol after you fix this on the weekend I will
make a small donation for you.

Dean Williams

 ;D hey hey that's awesome!

It's because paypal wont load inside a iframe and I have forgotten to make it open into a new window, easy fix thanks for bringing it to my attention :p... and I just found another problem so I will probably fix this tonight when I get back from work!

madman71

Quote from: Dean Williams on November 10, 2011, 05:15:40 AM
Right okay madman71, I know why your getting that error. It's because your server is setup to block CHMOD for security reasons, I forgot to drop @ symbols before the functions so any warnings are ignored.

You could fix this temporarily by placing @chmod on all "chmod" lines in /resmoticons/frame.php.

And Techno, I did hear your suggestion but I could not do it that way because the script really needs to be in the <head> area of the site, but using your suggestion I have now changed that to something that should be more compatible.

BTW GUYS THERE IS A NEW VERSION 2.5 ... I'll release 2.5.1 soon to fix the CHMOD warnings!

Quote from: madman71 on November 09, 2011, 04:57:56 PM
hi,


im getting these errors when i click on the More Emoticons button

Warning: chmod() [function.chmod]: Operation not permitted in /home/madman71/domains/xxxxxxxxxxxxxxx/public_html/forum/resmoticons/frame.php on line 12

Warning: chmod() [function.chmod]: Operation not permitted in /home/madman71/domains/xxxxxxxxxxxxx/public_html/forum/resmoticons/frame.php on line 13

Warning: chmod() [function.chmod]: Operation not permitted in /home/madman71/domains/xxxxxxxxxx/public_html/forum/resmoticons/frame.php on line 14

Warning: chmod() [function.chmod]: Not a directory in /home/madman71/domains/xxxxxxxxxxxxxx/public_html/forum/resmoticons/frame.php on line 15

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/madman71/domains/xxxxxxxxxxxxxxx/public_html/forum/resmoticons/frame.php:12) in /home/madman71/domains/xxxxxxxxxxxx/public_html/forum/resmoticons/frame.php on line 18



thanks Dean! that fixed those errors. Now another small issue.  The icons do not appear or are broken in posts (depending on which browser that is being used)
Also, the UPLOAD, REFRESH, and DONATE icons are broken as well.

any ideas?


madman71


Calman

I don't wish to display the Sexual Emoticons, can this be hidden/removed?

All the best.

T3CHN0

Quote from: Calman on November 11, 2011, 02:40:18 PM
I don't wish to display the Sexual Emoticons, can this be hidden/removed?

All the best.
I feel the same way, but this is a great addon mod for any forum and I think we just have to take the good with the bad

Dean Williams

There isnt a way right now, but it's in the works. The main site already has a flag for sexual/adult emoticons, I just need to feed this in the API and then obviously build the option into LEL.

It's a very high priority though, so expect it fairly soon! (2 - 3 weeks)


madman71

Quote from: Dean Williams on November 11, 2011, 09:09:41 PM
Quote from: madman71 on November 10, 2011, 03:48:21 PM
I'll send you details VIA PM

I got your details but was at work, looking at this tomorrow morning :)
Great! no rush :)

Dean Williams

Quote from: Calman on November 11, 2011, 02:40:18 PM
I don't wish to display the Sexual Emoticons, can this be hidden/removed?

All the best.


LEL 2.6.0 is now out, and in there I have put a feature so you can stop adult orientated emoticons from showing in LEL. Obviously there may be a few still appearing at the moment as I have to audit all the emoticons in the library. I have already set "Sexual" as an adult category so all those are gone (for now).

In order to bring these features I have extended the API vastly today so that it includes all the data kept on emoticons (width, height, adult, transparent, animated) there's quite a few options!! All these will be appearing in the LEL soon, so people can filter them and view only animated ones for instance.

Also the Emoticon Library front-end itself will get some updates so forum owners like you can report or suggest changes to emoticons/categories/sets to help improve the library and make it more organised etc. All this is coming SOON!

BTW donate button works now, silly it being broken :p

Biology Forums

I like this mod, but it makes the post template appear messy. I would like if it were better integrated.

Dean Williams

 ;D thanks!

Okay, I'll work on making it layout the code better. To be honest it's an oversight.

T3CHN0

#55
Hello Dean
I was working on trouble shooting another mode and hadn't got back to this one for a while.
but fixing the file permissions after install and stopping the 3 chmod errors still showing in my logs

I did the following
In frame.php I removed
//Quick CHMOD checks here

//The if will mean if it fails we dont waste time trying on all of them.

//@ will stop warnings appearing

if (chmod('frame.php', 0644)) {

    @chmod('emote.php', 0644);

    @chmod('liveemotelib.english.php', 0644);

    @chmod('Emoticons/', 0755);

}

I was reading in the php support forums that I googled.
And found we shouldn't put permission settings in the file we are setting permissions for.

I then tested what php files need permissions set for the mod to work and found only frame.php & emote.php needs to be set to 755

so I added this to post.template.php & PersonalMessage.template.php



        //Live Emoticon Library :: resplace.net
        global $boardurl;

        $filename = explode("/", $_SERVER['PHP_SELF']); // THIS WILL BREAK DOWN THE PATH INTO AN ARRAY
       
        $filename2 = "";

       
        for( $i = 0; $i < (count($filename) - 1); ++$i ) {
            $filename2 .= $filename[$i].'/';
        }

//Quick CHMOD checks here

//The if will mean if it fails we dont waste time trying on all of them.

//@ will stop warnings appearing

     if (chmod('resmoticons/frame.php', 0755)) {
    @chmod("resmoticons/emote.php", 0755);

}


I then set all the files permissions in /resmoticons/ to 666 before testing
I then went to a post to do a reply and use emoticons >> everything tested perfect, the file frame.php & emote.php changes to 755
and emoticons worked in both the iframe and in the post message body.

I redid the test 4 times and each time perfect. and no more errors in my logs.

I hope this info is useful to you.

Cheers.

P.S.With more testing found 2 files needed permissions (frame.php & emote.php) set not just the one.frame shows the emoticons in the iframe and emote will display in the post.I made the changes up above and corrected my passed post.So far no error's in my logs, I will monitor it and correct any faults found.

Dean Williams

 ;D Brilliant TECHNO, I'll get this into the next build!

Your work is very much appreciated :)

T3CHN0

FOOD FOR THOUGHT

I noticed only a few of my members are taking notice to the extra emoticons link
under the emoticons already displaying.

So I thought what if I made the text a image instead and centered it to stand out more.

So I played around for a little and managed to do what I wanted by doing this

Go to themes/Themes/default/languages
edit Post.english.php

Find
$txt['live_emoticon_library_show_more'] = 'Show Emoticons...';
$txt['live_emoticon_library_show_less'] = 'Hide Emoticons...';
$txt['live_emoticon_library_show_add'] = 'Add Emoticons...';


Replace with
$txt['live_emoticon_library_show_more'] = '<p align="center"><img src="http:resmoticons/images/emoticon.png" alt="Show/Hide More Emoticons" title="Show or Hide the More Emoticons you can choose from"></img></p>';
$txt['live_emoticon_library_show_less'] = 'Hide Emoticons...';
$txt['live_emoticon_library_show_add'] = 'Add Emoticons...';


Put the attached image emoticons.png I have added here in /resmoticons/images/

and you should see it look like this.

plus I included >
if image is missing to still display the text, and a hover message with a little explanation
as to what the option is.

Might not be for everyone but thought it was a good idea and wanted to share it :)

Cheers

chinaren

How did I miss this mod?   ???


I've been looking for something like this since Smiley Pops went belly up, at least as far as updating.   However, looking at the screen shots I think the categories take up rather a lot of space.  When I had Smiley Pops I had categories that I created (I do have a lot of smileys), but kept them to about four or five in total.  So, a few questions if I may:


If I use this mod can I, as admin of my forum, choose which categories to display on the forum? 

Can I create new categories? (and populate?)  (I'd actually prefer a local version).

Will the default (local) smileys still be there?


Sorry if these are silly questions, just want to confirm things.


Also, looking at the images, I think the boxes around the categories are what make it look a bit big.  Is it possible not to have these?


Apologies if this all sounds me me me want want want!  I appreciate the work put in to making a mod, which I cannot do, so I don't wish to sound all whiny and unappreciative.  :laugh:
The Opus Path - The Next Generation of the Written Word

Dean Williams

Hey chinaren,
I dont think this mod is quite what your looking for because you want a mod which categorizes YOUR emoticon collection HOWEVER Live Emoticon Library is a mod which enables people to upload/organise/create a resource of emoticons which are used by everyone.

Saying that though, with a little compromise this could be useful to you. For instance:
>> your emoticon collection could be added to our database (either email me your emotes or upload them using the website http://fun.resplace.net/Emoticons/).
>> I will be releasing an update shortly that will enable you to hide specific categories and later perhaps options so you can only show specific emoticons.
>> I could update the interface a little more, perhaps provide layout options so we can have more condensed layouts (as you suggest).
>> Perhaps I COULD allow for local emoticons somehow, however this wouldn't benefit the project and in fact goes against it's purpose?

To answer your other questions:
>> You can add more emoticons/categories/sets on the resplace link above, LEL is a community orientated project so anything you contribute helps others.
>> The default smileys are untouched and work just as they did before.

Hope I have answered anything sufficiently, please come back to me and provide a response... I would really like to help... Perhaps I could start up a new project based on your requirements.

Quote from: chinaren on December 30, 2011, 10:02:44 PM
How did I miss this mod?   ???


I've been looking for something like this since Smiley Pops went belly up, at least as far as updating.   However, looking at the screen shots I think the categories take up rather a lot of space.  When I had Smiley Pops I had categories that I created (I do have a lot of smileys), but kept them to about four or five in total.  So, a few questions if I may:


If I use this mod can I, as admin of my forum, choose which categories to display on the forum? 

Can I create new categories? (and populate?)  (I'd actually prefer a local version).

Will the default (local) smileys still be there?


Sorry if these are silly questions, just want to confirm things.


Also, looking at the images, I think the boxes around the categories are what make it look a bit big.  Is it possible not to have these?


Apologies if this all sounds me me me want want want!  I appreciate the work put in to making a mod, which I cannot do, so I don't wish to sound all whiny and unappreciative.  :laugh:

Advertisement: