Help - Search - Members - Calendar
Full Version: Lazyman's smilies problem
Movable Type Community Forum > Additional Resources > Tips and Tricks
shogun
Hi I am trying to use Lazyman's smilies but no smilies appear in my pop up window. Only the text "Click on a smilie" appears.

Why? I have quite a few gif images in my smilies folder.

see http://www.skodun.is/smilies/Index.php

is this code right? smile.gif
[/CODE]
//EDIT THESE PATH
$smiliepath = "/www/skodun.is/smilies";
$serverPathToSmilies = "/www/skodun.is/smilies";
[CODE]
Amethystique
QUOTE
//EDIT THESE PATH
$smiliepath = "/www/skodun.is/smilies";
$serverPathToSmilies = "/www/skodun.is/smilies";


I took the /www/my-site.com/ out of it to get mine to work. I just left it as /smilies
But if your smilies are in lets say, /images/smilies <--- that's what you'll need to put.

It's asking for the smiliepath, not the server path to smilies, which you have correct. smile.gif

Give that a try biggrin.gif
shogun
I tried, but sorry to say it seems to have made no difference sad.gif
shogun
Amethystique: Could you maybe send me your index.php file that works? Then I would modify it to suit my server.
kadyellebee
Shogun - are your smilies in this directory: http://www.skodun.is/smilies/
If so, then this might work:

CODE
$smiliepath = "/smilies";


And is /www/skodun.is/smilies the full path? You might check your Blog Config and see what the Local Site Path is, and that might help you.

mine is formatted more like
CODE
/home/USER/public_html/BLOG/smilies


Kristine
Amethystique
QUOTE (shogun @ Jul 12 2003, 04:50 PM)
Amethystique: Could you maybe send me your index.php file that works? Then I would modify it to suit my server.

biggrin.gif Copied straight from my source code:

CODE
<?
//EDIT THESE PATH
$smiliepath = "/smilies/";
$serverPathToSmilies = "/export/home/amethyst/www/smilies/";
// edit these next two ONLY if they differ from your comments form
$commentsFormName = "comments_form";
$commentsTextName = "text";
?>


Anything after that was HTML. Hope this helps, please let us know! smile.gif
Amethystique
ohmy.gif oh, you know what? This post made me check all my smilie things -- and although they all work. They can't be clicked on on my "comment preview" page. This is bad, LOL
Is there a separate piece of code I need to add on the previews? or something I need to add to the index.php file that adds them to the preview page?
shogun
I dont know the answer to the preview problem. I'm still not seeing any smilies sad.gif and I can't see anything I'm doing wrong...
kadyellebee
Shogun: So what do your paths in the php say now? Have you confirmed those locations are where your smilies actually are uploaded?

Kristine
shogun
Here is my code:

CODE
//EDIT THESE PATH
$smiliepath = "/smilies/";
$serverPathToSmilies = "/www/shogun.skodun.is/smilies/";
// edit these next two ONLY if they differ from your comments form
$commentsFormName = "comments_form";
$commentsTextName = "text";
?>


and all my smilies gifs are in the smilies folder and so is the php file.
girlie
According to mt-check.cgi, your full server path would look like this:

CODE
$serverPathToSmilies = "/homepages/39/d76430358/htdocs/www/shogun.skodun.is/smilies/";


That's why Kristine asked you if /www/skodun.is/smilies was the full server path - apparently, it isn't.

But do I understand that Amethystique is saying it doesn't need to be a full server path? (I guess I should look at the script myself.)

Edit: The example in the script uses a full server path, so try what I posted above after all.
kadyellebee
QUOTE
But do I understand that Amethystique is saying it doesn't need to be a full server path? (I guess I should look at the script myself.)

FWIW, I'm using a modified version of this script, and I have the full path.
girlie
Yeah, it looks to me like that's what's required - and it makes the most sense. smile.gif
shogun
Thanks alot girlie (and all the others). This worked! I thought that the full path to my server was:

CODE
/www/shogun.skodun.is/smilies/


But apparently it is:

CODE
/homepages/39/d76430358/htdocs/www/shogun.skodun.is/smilies/


like girlie pointed out.

Thanks smile.gif
Amethystique
YAY it worked! smile.gif I'm glad your smilies are working now shogun.
shogun
Hmm, I guess I celebrated to soon sad.gif

The smilies dont show up on my page even though the right code is put in my comments. For some reason the url to the smilies vanishes when I publish or something?

Does anyone know a solution to this?

Thanks.
kadyellebee
Can we have a link to the page you are having a problem on? I looked on your site at http://skodun.is but since I don't speak the language, its hard to know where you are seeing the problem.

Kristine
shogun
Here is a direct link to a comment page:
http://www.shogun.skodun.is/mt/mt-comments...try_id=9#skrifa

The Icelandic word for smilies is "Broskallar" smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.