PDA

View Full Version : Article Manager v1.0



michael_s
10-30-2007, 08:00 PM
Fixed the bug to allow this block to be used on the sites with multiple languages.

Just drop the file in your includes/boxes directory and include it in your column_right.php like this:
require(DIR_WS_BOXES . 'articles_lastN.php');

Or if you want to go fancy and display it only on certain pages (e.g. anywhere else but the articles themselves) do it this way

if ((isset($HTTP_GET_VARS['articles_id'])) || ($_SERVER['PHP_SELF'] == '/articles.php') || (sizeof($HTTP_GET_VARS) < 1)){
require(DIR_WS_BOXES . 'articles.php');
}
else {
require(DIR_WS_BOXES . 'articles_lastN.php');
}

Enjoy

More... (http://addons.oscommerce.com/info/1709)