Easynews FAQs

This section covers the Frequently Asked Questions about Easynews.

Questions

Answers

Where are uploaded images located? I need the path to link them.

All images are uploaded into the /images/ folder inside Easynews main folder, if you want the thumbnail to link to the original sized image, simply leave the image link field blank.

Do I need to insert break line tag [br] every time I want a carriage return?

No, you can simply hit return on your keyboard, the script will replace automatically every carriage return with a break line. Actually as of version 1.7.1 you don't need the [br] anymore anyway.

How can I insert (X)HTML code into the news post?

Easynews only allows BBCode in order to prevent technical and security issues. Insertion of (X)HTML code might result in major breaks in the page layout, both in the admin panel and the webpage where it is included, as well as risks of malicious code insertion. If you are aware of these issues and you are willing to take the risk anyway, you only need to modify the script as follows:

target file: setup.php
target rows: 671

find:
$stringMod = nl2br(htmlspecialchars($string));

replace with:
$stringMod = nl2br($string);

Important Note: This modification has one more major flaw in addition to it's security and technical problems. When inserting (X)HTML code in the news, every carriage return will be translated in a line break tag (<br />).

We strongly discourage this modification and we also don't respond for problems caused by it and will not give support for it.

I correctly installed Easynews but even though I can see my language specific characters displayed correctly through the administrator panel preview, when I post the news text on my page, the characters aren't displayed.

You need to declare the charset in the page where Easynews is included to either utf-8 (recommended) or your language specific charset, as you can see in the preview.php page code.

Sometimes this operation is not sufficient to send the correct charset declaration to the http header because the server is configured to override this command. If this is the case, you should contact your web space provider.

How can I have links associated to the image inserted in the news (either to the full sized image or to an external link) to open in a new window?

We chose not to allow links to be opened in a new window because it breaks the browser's back button and is deprecated by W3C and also forbidden by the WAI Guidelines for Accessibility. If you still want to use this deprecated function and you're aware that by using it you will invalidate the Easynews code and cause trouble to all the special categories users, you simply need this modification:

target file: easynews.php
target row: 102

find:
if ($link!='') $image = '<a href="'.$link.'">';

replace with:
if ($link!='') $image = '<a href="'.$link.'" target="_blank">';

and this:

target file: easynews.php
target row: 105

find:
else $image = '<a href="'.$imgpath.$imageName.'">';

replace with:
else $image = '<a href="'.$imgpath.$imageName.'" target="_blank">';
How can I have links inserted in the news post through the [url] BBCode tag, to be opened in a new window?

We chose not to allow links to be opened in a new window because it breaks the browser's back button and is deprecated by W3C and also forbidden by the WAI Guidelines for Accessibility. If you still want to use this deprecated function and you're aware that by using it you will invalidate the Easynews code and cause trouble to all the special categories users, you simply need this modification:

target file: setup.php
target row: 668

find:
'<a href="\1\2">\6</a>'

replace with:
'<a href="\1\2" target="_blank">\6</a>'

Important Note: This modification does not affect links in existing entries since they are already written in the database.
In order to have existing links to open in new windows, you have to manually edit every single news with a link in it and save it again.

When I upload images, they are correctly placed in the /images/ directory on server and I can see them through the administration panel preview, but they don't show up in the page where I included Easynews.

You probably forgot to configure (or set it wrong) the "$enPath" parameter. Check the help section or the readme file included in the Easynews package for instruction on how to configure this parameter.

[Back to Top]