News module extra field iimages don't work in Firefox

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
tractorboy
Forum Members
Forum Members
Posts: 21
Joined: Thu Mar 23, 2006 11:06 am

News module extra field iimages don't work in Firefox

Post by tractorboy »

Extra fields of type "file" let you upload images & add them to a story.  The images appear ok in IE, but not in FF, because the URL uses "\" not "/" in the {$entry->file_location} tag.

To fix this change line 267 of News\Action.default.php :
//Old : $onerow->file_location = cms_join_path('uploads','news','id'.$row['news_id']);
$onerow->file_location = 'uploads/news/id'.$row['news_id'];

Are there any potential side-effects of this change ?
tractorboy
Forum Members
Forum Members
Posts: 21
Joined: Thu Mar 23, 2006 11:06 am

Re: News module extra field iimages don't work in Firefox

Post by tractorboy »

line 81 of action.detail.php needs the same fix
Post Reply

Return to “Modules/Add-Ons”