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.

CommentFileSizeAuthor
#4 smileys.diff.txt1.95 KBAnonymous (not verified)

Comments

Shiva Thomas’s picture

Status: Active » Needs work

I 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">&nbsp;'. $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

srlinuxx’s picture

Yes! Thank you. Actually there was 3 instances of it that needed that hack to make it work, but thank you.

frostschutz’s picture

Without 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.

Anonymous’s picture

StatusFileSize
new1.95 KB

Adding a patch that uses base_path()

Steven’s picture

Status: Needs work » Fixed

Fixed with a better patch.

Anonymous’s picture

Status: Fixed » Closed (fixed)