This is a discussion on Article Manager v1.0 within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; This will keep "articles" in breadcrumb and add the topic names afterwards, instead of replacing the "articles&...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| This will keep "articles" in breadcrumb and add the topic names afterwards, instead of replacing the "articles" root with the topic name and preventing the user from returning to articles once in the topics. new format: catalog >> articles>> topic name old format: catalog >> topic name in applications_top.php FIND: // add topic names or the author name to the breadcrumb trail if (isset($tPath_array)) { for ($i=0, $n=sizeof($tPath_array); $i 0) { $topics = tep_db_fetch_array($topics_query); $breadcrumb->add($topics['topics_name'], tep_href_link(FILENAME_ARTICLES, 'tPath=' . implode('_', array_slice($tPath_array, 0, ($i+1))))); } else { break; } } } elseif (isset($HTTP_GET_VARS['authors_id'])) { $authors_query = tep_db_query("select authors_name from " . TABLE_AUTHORS . " where authors_id = '" . (int)$HTTP_GET_VARS['authors_id'] . "'"); if (tep_db_num_rows($authors_query)) { $authors = tep_db_fetch_array($authors_query); $breadcrumb->add(NAVBAR_TITLE_DEFAULT, tep_href_link(FILENAME_ARTICLES)); } } REPLACE WITH: // add topic names or the author name to the breadcrumb trail if (isset($tPath_array)) { for ($i=0, $n=sizeof($tPath_array); $i 0) { $topics = tep_db_fetch_array($topics_query); $breadcrumb->add(NAVBAR_TITLE_DEFAULT, tep_href_link(FILENAME_ARTICLES)); $breadcrumb->add($topics['topics_name'], tep_href_link(FILENAME_ARTICLES, 'tPath=' . implode('_', array_slice($tPath_array, 0, ($i+1))))); } else { break; } } } elseif (isset($HTTP_GET_VARS['authors_id'])) { $authors_query = tep_db_query("select authors_name from " . TABLE_AUTHORS . " where authors_id = '" . (int)$HTTP_GET_VARS['authors_id'] . "'"); if (tep_db_num_rows($authors_query)) { $authors = tep_db_fetch_array($authors_query); $breadcrumb->add('Articles by ' . $authors['authors_name'], tep_href_link(FILENAME_ARTICLES, 'authors_id=' . $HTTP_GET_VARS['authors_id'])); $breadcrumb->add(NAVBAR_TITLE_DEFAULT, tep_href_link(FILENAME_ARTICLES)); } } just this file is included not a full package More...
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
|
#2
| ||||
| ||||
| Michael, Quick question in case you can help, I implemented this fix and it does what it says. But when I look at an article, I get: Top - Catalog - Articles - Topic - Article Title - Articles So I get an unneedeed Articles there at the end (which links back to the same place the first articles). Would you know how to fix that...? |
|
#3
| ||||
| ||||
| LOL, nevermind... I think this post came from some kind of automated script that posts new contributions on oscommerce on this forums? |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Article Manager v1.0 | michael_s | New osCommerce Contributions | 0 | 08-08-2007 04:26 AM |
| Article Manager v1.0 | michael_s | New osCommerce Contributions | 0 | 06-20-2007 12:22 PM |
| Reviews in Article Info (Article Manager) | michael_s | New osCommerce Contributions | 0 | 05-10-2007 02:00 PM |
| Article Manager | pglock | osCMax v2 Features Discussion | 2 | 03-26-2006 12:10 PM |
| Article Manager with MS2-MAX | oakhill | osCMax v1.7 General Mods Discussion | 1 | 03-30-2005 04:25 AM |