Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (edited)

Hi everyone,

 

I've just installed the NEWS SECTION Add-on (http://addons.oscommerce.com/info/4394).

 

I followed the instruction file perfectly and re-check many time that everything is ok ... and it is!!

 

My problem is on the Front End. Everything works, except one thing... the READ MORE link appear like this :

 

http://website.com/FILENAME_NEWS

 

If I click on it, its a 404 Error.

 

I guess the catalog/include/filenames.php must have something missing...! I added this myself to try : define('FILENAME_NEWS', 'news'); to refer to the news.php in the catalog root! doesn't work.

 

I also tried to edit the news.php and replace this

<a href="<?=tep_href_link(FILENAME_NEWS)?>" class="column_link">Read more<br>

with

<a href="news.php" class="column_link">Read more<br>

 

When I click on it, it gives me a Blank Page.

 

The Setup.txt file read like this :

copy all files in same folder

 

make the table the sql in ur database

 

1. add the line in admin/includes/boxes/tools/

 

'<a href="' . tep_href_link(FILENAME_NEWS_SECTION) . '" class="menuBoxContentLink">' . BOX_TOOLS_NEWS_SECTION . '</a><br>' .

 

CONFIRMED/DONE :

  if ($selected_box == 'tools') {
   $contents[] = array('text'  => '<a href="' . tep_href_link(FILENAME_NEWS_SECTION) . '" class="menuBoxContentLink">' . BOX_TOOLS_NEWS_SECTION . '</a><br>' .
                                  '<a href="' . tep_href_link(FILENAME_BACKUP) . '" class="menuBoxContentLink">' . BOX_TOOLS_BACKUP . '</a><br>' .

 

2. add the box at front end any where u want

 

catalog/includes/column_left.php

 

require(DIR_WS_BOXES . 'news.php');

 

CONFIRMED/DONE :

  Released under the GNU General Public License
*/
require(DIR_WS_BOXES . 'news.php');
 if ((USE_CACHE == 'true') && empty($SID)) {

 

Any suggestion contact me :

 

[email protected]

[email protected]

 

3. Add to admin/includes/languages/english.php

 

define('BOX_TOOLS_NEWS_SECTION', 'Site News');

 

CONFIRMED/DONE - Also done in french.php :

define('BOX_TOOLS_NEWS_SECTION', 'Site News');

?>

 

4. Add to admin/includes/filenames.php

 

define('FILENAME_NEWS_SECTION', 'news_section.php');

 

CONFIRMED/DONE :

  define('FILENAME_NEWS_SECTION', 'news_section.php');

?>

 

5. Add to admin/includes/databse_tables.php

 

define('TABLE_NEWS_SECTION', 'news');

 

CONFIRMED/DONE :

define('TABLE_HOLDING_ORDERS_PRODUCTS_DOWNLOAD', 'holding_orders_products_download');
 define('TABLE_HOLDING_ORDERS_STATUS_HISTORY', 'holding_orders_status_history');
 //fin de l'ajout

 define('TABLE_NEWS_SECTION', 'news');
?>

 

6. Add to includes/databse_tables.php

 

define('TABLE_NEWS', 'news');

 

CONFIRMED/DONE :

  define('TABLE_HOLDING_ORDERS_PRODUCTS_DOWNLOAD', 'holding_orders_products_download');
 define('TABLE_HOLDING_ORDERS_STATUS_HISTORY', 'holding_orders_status_history');
 // fin de l'ajout

 define('TABLE_NEWS', 'news');
?>

 

The files to upload are :

 

news.php (uploaded)

include/boxes/news.php (uploaded)

admin/news_section.php (uploaded)

admin/include/languages/english/images/buttons/button_add_new.gif (uploaded)

 

The SQL Command is (DONE):

CREATE TABLE `news` (
 `newsID` int(250) NOT NULL auto_increment,
 `newsDate` date NOT NULL default '0000-00-00',
 `newsTitle` text,
 `newsDescription` text,
 `newsAuthor` varchar(250) NOT NULL default '',
 PRIMARY KEY  (`newsID`)
);

 

Anyone have an idea what can be wrong ??

 

Thx

Edited by Heckza
  • 3 years later...
Posted

the first thing I see is the missing 'end-anchor'

 

if you have a start anchor

<a

 

with the link-to information behind it

<a href= link codes- etc.>text that people see

 

you need a stop anchor

</a>

 

so you get...

<a href=linkcodes>text people see</a>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...