Contributions
Latest News
There are already a number of 'news' contributions that have been made for osCommerce. I tried all of these first, the following were the outcomes:
- one implored me _not_ to install it if my admin
folder was installed in my catalog folder (which
it is).
- the other two were in German, and BabelFish didn't
translate them very well.
This contribution aims to alleviate all of these problems. It currently has the following features:
- News is stored in the database.
- News display on homepage -- achieved with a
'module' type interface, similar to the 'new
products for ...' box that is already there.
- Doesn't display the module if there is no news
to display.
- Number of news items to display can be configured
from the existing administration interface.
- The news can be controlled from a new administration
page that ties in both visually and behaviourally
with the existing interface.
- Articles can be activated and deactivated -- If
you write up an article then realise you put it up
too soon, you don't have to re-type it!
Expand All / Collapse All
####[ OPEN ]######
admin/includes/boxes/catalog.php
####[ FIND ]###
" array(
'code' => FILENAME_PRODUCTS_EXPECTED,
'title' => BOX_CATALOG_PRODUCTS_EXPECTED,
'link' => tep_href_link(FILENAME_PRODUCTS_EXPECTED)
)
####[ ADD AFTER ]###
"
,
array(
'code' => FILENAME_LATEST_NEWS,
'title' => BOX_CATALOG_LATEST_NEWS,
'link' => tep_href_link(FILENAME_LATEST_NEWS)
)
"
Updated install.txt:
- added in includes/languades/english.php
define('TABLE_HEADING_LATEST_NEWS', 'Latest News');
- removed from includes/filenames.php and admin/includes/filenames.php
define('TABLE_LATEST_NEWS', 'latest_news');
- added in includes/database_tables.php and admin/includes/dtabase_tables.php
define('TABLE_LATEST_NEWS', 'latest_news');
changed in admin/boxes/catalog.php
'<a href="' . tep_href_link(FILENAME_LATEST_NEWS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_LATEST_NEWS . '</a>');
into
'<a href="' . tep_href_link(FILENAME_LATEST_NEWS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_LATEST_NEWS . '</a><br>' .
- added to execute the sql file: latest_news.sql in phpmyadmin
- new method of install
- add polish language
- clear copy of data base
This excellent little contribution still works well if you require a simple Latest News / Announcement on the index page of your Store.
There is no package, just a note for the .sql file.
On line 4 you'll find:
news_id int(11) DEFAULT '0' NOT NULL auto_increment
--
Change to:
news_id int(11) NOT NULL auto_increment
and run!
--
Default '0' is not required due to auto_increment
That's it!
I have only updated the install file so that people may know how to install it with ms1,
have fun
thanks
kristofor
This is version v1.1.0
New in this version:
- bugfixes -- date & SQL file
- spanish admin interface translation
- skeleton for german admin interface
- 'New news item' button (forgot it last time)
Currently has the following features:
- News is stored in the database.
- News display on homepage -- achieved with a
'module' type interface, similar to the 'new
products for ...' box that is already there.
- Doesn't display the module if there is no news
to display.
- Number of news items to display can be configured
from the existing administration interface.
- The news can be controlled from a new administration
page that ties in both visually and behaviourally
with the existing interface.
- Articles can be activated and deactivated -- If
you write up an article then realise you put it up
too soon, you don't have to re-type it!
If you are using windows, it's best to view the documentation in Wordpad -- it utilises unix line breaks.
This is version v1.0.0
There are already a number of 'news' contributions that have been made for osCommerce. I tried all of these first, the following were the outcomes:
- one implored me _not_ to install it if my admin
folder was installed in my catalog folder (which
it is).
- the other two were in German, and BabelFish didn't
translate them very well.
This contribution aims to alleviate all of these problems. It currently has the following features:
- News is stored in the database.
- News display on homepage -- achieved with a
'module' type interface, similar to the 'new
products for ...' box that is already there.
- Doesn't display the module if there is no news
to display.
- Number of news items to display can be configured
from the existing administration interface.
- The news can be controlled from a new administration
page that ties in both visually and behaviourally
with the existing interface.
- Articles can be activated and deactivated -- If
you write up an article then realise you put it up
too soon, you don't have to re-type it!
If you are using windows, it's best to view the documentation in Wordpad -- it utilises unix line breaks.
Note: Contributions are used at own risk.