Getting images out of a message. [message #32132] |
Sat, 10 June 2006 11:58 |
acollins22
Messages: 11 Registered: June 2005 Location: Leicestershire, England
Karma: 0
|
Junior Member |
|
|
Hello everyone,
I've written a small piece of code for the front page of my site [url]www.hovercraft.org.uk[.url] to extract messages from an "Announcement" forum using fudAPI.
It works very well except that any in-line images don't load. Looking a the source it looks as if the '&' chars have been turned into their HTML equivs i.e. "&"
As I'm using the fud_fetch_msg function to get the message, I'm assuming the FUD itself has a way to sort this out as the messages display perfectly in the announcement forum, just not on the front page.
Please can someone help me out here with a solution.
Thanks.
Andy.
|
|
|
Re: Getting images out of a message. [message #32133 is a reply to message #32132] |
Sun, 11 June 2006 04:26 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
& inside an href or src tag is actually fine and will be parsed properly by the browser. What you need to make sure that the path to index.php?t=getfile is pointing @ the file.
FUDforum Core Developer
|
|
|
|
|
|
Re: Getting images out of a message. [message #32146 is a reply to message #32145] |
Mon, 12 June 2006 14:18 |
acollins22
Messages: 11 Registered: June 2005 Location: Leicestershire, England
Karma: 0
|
Junior Member |
|
|
Hi Ilia,
Quote: | Also, do you have "Attachment Referrer Check" setting enabled (if it is, disable it).
|
That was it thank you.
I turned that off and it's working fine now.
All the best.
Andy.
|
|
|