Smileys not working. They appear to be showing up in node teasers (using the exerpt module) but the same text in the node body only show the alternative text.
I dropped the smileys table and allowed the mysql and examples script to remake them. I have the smileys in the misc/smileys/ directory.
If one right clicks to choose view image, it's looking for the image in www.example.com/node/misc/smileys/ instead of www.example.com/misc/smileys/ .
using drupal 4.7.1, mysql 4.1.19, php 4.4.0, apache 2.0.58. thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | smileys.diff.txt | 1.95 KB | Anonymous (not verified) |
Comments
Comment #1
Shiva Thomas commentedI have the same problem with the current CVS version of Drupal. Here is a quick & dirty patch you can use.
find this line in the smiley.module file:
$content .= '<tr><td align="left"><img src="'. $smiley->image .'" title="'. $alt .'" alt="'. $alt .'" /></td><td align="right"> '. $alt .'</td></tr>';and replace img src="' with img src="/'
There must be a more elegant solution with inclusion of the base url, but it worked for me.
Regards,
Shiva
Comment #2
srlinuxx commentedYes! Thank you. Actually there was 3 instances of it that needed that hack to make it work, but thank you.
Comment #3
frostschutz commentedWithout changing any code, you can also just edit the smileys in the administer menu, and add the / to their path. Still not a nice solution, but this way people without PHP knowledge can work around it too.
Comment #4
Anonymous (not verified) commentedAdding a patch that uses base_path()
Comment #5
Steven commentedFixed with a better patch.
Comment #6
(not verified) commented