On the website I made is a weblog with the possibility to add coments. There is one small problem:
1. The smiley’s don’t appear as images in the comments, just the html-code (in cp the “display smileys in emoticon preferences” is Yes). The pop-upform with all the smileys is working fine, and inserting the code works, only the images aren’t displayed.
Of course I checked all the settings, but everything appears to be normal and logical. What do I overlook?
When you say you have checked all the settings I guess you mean the path to your emoticons here at :
Admin->System Preferences->Emoticon Preferences
The two settings in there are correct?
Also do you definitely have those images in their respective folder uploaded to your site in that path? Check their file permissions are also readable so that they can show on the page if so.
One last thing if you post a comment with a smiley code in it what appears on the rendered page and more importantly in the source code of the page. Do you see anything on the page at all such as a missing image icon or anything like that. If you don’t get anything at all on the page then check in your source code of a rendered page with a comment on and see what the code is for where the smiley should be.
The settings are correct. I added a preview-page and on that page the image of the smiley is visible… but when I submit, then the image changes in the code, like > - ) (without spaces)
Do you perhaps have a page where we can see this happening?
Also what code are you using on the final page to show the comments? Are you just (for now) trying using the Comment Entry Tag?
One thing to note with that tag also is that it shouldn’ttypically be nested within any weblog tags. Not sure if that would cause this problem or not but definitely something to check anyway.
I checked both of the URLs that you sent via PM and neither of the pages even show the :-) type text in them. It is as though nothing is being inserted into the database. When I checked the source of the pages also then there was just the text that you had posted and no textual representation of the smileys either which is a little weird really.
At this point it’s a little difficult to tell what is going on really and so I will step back for a little while and wait for one of the moderators to step in and see if they have any ideas on this if you don’t mind.
I haven’t posted the links to the site here as I was not sure if you wanted it posting or not so will leave that up to you but it would definitely help out the moderators and support staff here if they were posted.
Note to moderators - Words show fine on rendered page but that is all that is there, no textual representation of the smiley at all and no converted smiley to image code either!
Hope you get this sorted soon Marcel and want to find out what this is myself but without any access to the site it is a little difficult to say at this stage so I am hoping that perhaps someone else on the forums here has already seen this type of thing before and can offer some assistance.
Are you au fait with looking through database tables at all? I am just wondering if you can look through that post and see if the smiley is stored in the post text at all? That would let us know if the smiley is being saved and not then spat out again or whether it isn’t even being saved in the first place.
In the database the smileys are stored as code, eg “: cheese :’ And in my view also on the rendered pages… I guess that is a textual representation… only not a link to the image source of the smiley…:)
Thanks for the help Mark.
If someone has a clue: see http://www.geenemc.nl/discussie or http://www.geenemc.nl/site. The last link is to the original template of expression engine. Nice for comparing and concluding that the problem isn’t in my template.
Actually it’s a little weird as I just tested turning Display Smileys to off and they still show up as textual representations instead of being converted into image code so I think this is kind of weird really.
I think I will definitely back out for a little while on this one to allow the support staff to come in with any ideas on this as I am probably missing something obvious somewhere but without access to your site it is obviously more difficult.
I’m sure one of the support staff will get this figured out for you in no time though and I will still think of anything else that I can do in the meantime.
For what it is worth. I had a smiley problem a while back that turned out to be a problem with how the network was set up at the customer’s place. The smily had a url that did noit have the “www” in it. The internal network configuration would hijack anything like that. When I added the “www” to the url it resolved the problem.
No. In the final html code smilies are actually a url to the image. The problem was that I had two possible urls:
http://domain.com/images/smilies/wink.gif
or
http://www.domain.com/images/smilies/wink.gif
Because of a local network configuration any URL that did not have a www in it went to the local server. If it went to the local server I did not get the image. All the user got was a broken image symbol.
EDIT - Marcel hopefully you haven’t read this post yet or else you will have missed this edit but I am thinking perhaps something to try would be to re-upload the comments module to your server again, maybe something got messed up in transmission, just a thought
Ah I see what you mean now. The problem with Marcel’s setup though is that it appears as though the smileys (upon bringing back the comments) are being completely stripped out.
Let’s say there is :
This is some text with a smiley at the end of it :-)
when the page with the comments is returned this is what is shown both on the page and in the source code.
This is some text with a smiley at the end of it
Very weird. As Marcel has said the smiley is stored in the database comment in exp_comments so somewhere they are being stripped out but not being converted into the image tags.
Even if you turn smileys off they should still get sent back to the browser but instead of being converted into image tags they just get sent back as the textual representation. Not really too sure what is going on.
Marcel did you have any luck on this yet and also have you checked what code you are using to bring back the comments as I mentioned before. Also make sure that the tag that brings back the comments isn’t somehow nested within a weblog tag.
It is weird- I tested on http://www.geenemc.nl/site/comments/is_de_wereld_rond/- see the unparsed smileys. Aren’t being converted or anything. I will note- they showed in the preview, and when I submitted I got a white screen. Though when I went back to the page, the comment had submitted. Smiley was still unparsed.
Has this always been broken? I think I’d go in, delete system/modules/emoticon/ and upload a fresh folder, just in case something got ‘off’ in transfer. If the array is ok- then about the only setting I’m seeing that matters is the ‘System Prefs- Emoticons’ one, which has already been mentioned. I’d say double check the module is installed- but shouldn’t work on preview if it wasn’t. Still- make sure it shows as installed in ‘Modules’. Heh.
And- are you running any extensions? Wonder if something odd could be going on there.
It is weird- I tested on http://www.geenemc.nl/site/comments/is_de_wereld_rond/- see the unparsed smileys. Aren’t being converted or anything. I will note- they showed in the preview, and when I submitted I got a white screen. Though when I went back to the page, the comment had submitted. Smiley was still unparsed.
Hadn’t actually thought about testing a post on there. Didn’t want to add anything to the site without permission so didn’t. Good call though. Actually seeing that now shows as you say Robin that the textual representation is coming back and that the emoticons aren’t being converted to image tags. When I looked at the site and the comment that was on there already then there isn’t even the textual representation which threw things a little
Robin Sowell - 18 May 2008 08:55 AM
Has this always been broken? I think I’d go in, delete system/modules/emoticon/ and upload a fresh folder, just in case something got ‘off’ in transfer. If the array is ok- then about the only setting I’m seeing that matters is the ‘System Prefs- Emoticons’ one, which has already been mentioned. I’d say double check the module is installed- but shouldn’t work on preview if it wasn’t. Still- make sure it shows as installed in ‘Modules’. Heh.
And- are you running any extensions? Wonder if something odd could be going on there.
Yep as I mentioned I would also just re-upload the comments module first to see if that does things. With the setting Robin is there any way that it could show in the admin panel as being turned on but in fact might be stuck off? Perhaps try re-uploading the comments module folder ensuring all permissions are correct on the files and then if that doesn’t work try flicking the System Preference from On to Off a couple of times see if that shakes anything up?