Community Add-Ons
Article Manager v1.0
for osCommerce Online Merchant v2.2
Article Manager is a comprehensive article publishing system written for 2.2MS2. So if you want to offer articles on your
site with the option of cross-selling to your products, then this contribution is a must. It is easy to install and will
require minimal alteration to your existing site. Screen captures are included in a separate download.
Article Manager includes the following features:
- Articles can be stored in multi-leveled topics (use of topics optional)
- New Articles and All Articles lists included
- Article listings include: Article Title, Article Abstract, Author Name, Topic, Expected or Published Date (details can be turned on or off via the admin console)
- Articles accessible from Article and Authors box added to left or right column
- Articles can be assigned to Authors (optional)
- Author details include name and description (can include pictures)
- Optional Topic and Author filters lists available from Articles Info page
- Article Reviews built in, including approval or reviews by admin (use of reviews optional)
- Includes optional Tell a Friend link
- Article cross-selling included so you can associate articles with products in your shop (optional)
- WYSIWYG HTMLArea Editor (MS2 v1.7) built in for editing of Articles and Topic/Author descriptions (optional)
- Supports pre-loading of articles to appear on a certain date (until then they are viewable but not accessible)
- Supports management of Draft and Published article statuses
- Full Header Tags support for article-related meta-tagging
- Breadcrumb support included so Topic path and Article/Author name appear in breadcrumbs
- Full admin console with over 30 different configuration options
- Full multi-language capable (sorry, only English language files included in this version)
- And much, much more!
Note: Header Tags Controller and WYSIWYG HTMLArea Editor (MS2 v1.7) DO NOT need to be installed throughout the rest of your
site.
Bugs and suggestions: http://forums.oscommerce.com/index.php?act=ST&f=7&t=68866
Rob Anderson
Legend:
Download
Report
if no new image for the author, keep the last one.
if checked, delete the association with an image
hope it will help
no package
1 - add a checkbox for delete an association image<>authors
find this line (315)
<tr>
<td class="smallText"><?php echo TEXT_AUTHORS_IMAGE; ?></td>
<td><?php echo tep_draw_input_field('authors_image_name', $authors['authors_image'], 'disabled size="20"') . ' ' . tep_draw_file_field('authors_image'); ?></td>
</tr>
add below :
<td class="smallText"></td>
<td class="smallText"><input type="checkbox" name="supp_img" value="supp_img"> Supprimer l'image de l'auteur</td>
</tr>
2 - script remove/change image/don't change
find this (58)
$authorsImg = '';
$authors_image = new upload('authors_image');
$authors_image->set_destination(DIR_FS_CATALOG_IMAGES .'article_manager_uploads/');
if ($authors_image->parse() && $authors_image->save()) {
$authorsImg = tep_db_input($authors_image->filename);
}
$sql_data_array = array('authors_name' => $authors_name,
'authors_image' => $authorsImg,
);
replace with
$authors_img_query = tep_db_query("select authors_image from " . TABLE_AUTHORS . " where authors_id = '" . $_GET['auID'] . "'");
$authors_img = tep_db_fetch_array($authors_img_query);
$supp_img = $_GET['supp_img'];
$authorsImg = '';
$authors_image = new upload('authors_image');
$authors_image->set_destination(DIR_FS_CATALOG_IMAGES .'editor/images/Auteurs/');
if ($authors_image->parse() && $authors_image->save()) {
$authorsImg = tep_db_input($authors_image->filename);
}
//s'il n'y a pas de nouveau nom d'image
if ($authorsImg=='') {
//si coché pour supprimer
if (!empty($_POST['supp_img'])) {
$sql_data_array = array('authors_name' => $authors_name,
'authors_image' => '',
);
}
else {
$sql_data_array = array('authors_name' => $authors_name,
'authors_image' => $authors_img['authors_image'],
);
}
}
else { //s'il y'a une nouvelle image
$sql_data_array = array('authors_name' => $authors_name,
'authors_image' => $authorsImg,
);
}
