PDA

View Full Version : My Most Used Link in Admin



michael_s
08-15-2008, 08:00 AM
osCommerce My_Most_Used_Link_in_Admin_v2.0
August 14, 2008
Author: Simon Randall www.westonehosting.com
http://forums.oscommerce.com/index.php?showuser=137110

Support for this contribution is provided at: http://forums.oscommerce.com/index.php?showtopic=311957

What this contrib does:
========================
It gracefully link website and or documentation that you find you use while you use your osCommerce.
The are linked in to your osCommerce Admin My Most Used Link.
This contribution attempts to address that need.


Known Issues:
=======================
I now that each page does not have the header this is to give the best use.
If you do not like this then change:

this:



to:



and then if you can fix this then post the fix in the forum.



Installation:
==============
The following files are new:
admin/mul_page_01.php
admin/mul_page_02.php
admin/mul_page_03.php
admin/mul_page_04.php
admin/mul_page_05.php
admin/mul_page_06.php
admin/mul_page_07.php
admin/mul_page_08.php
admin/mul_page_09.php
admin/mul_page_10.php

The following files need to be edited:
admin/includes/filenames.php
admin/includes/boxes/mul_page.php
admin/includes/languages/english.php
admin/mul_page_01.php
admin/mul_page_02.php
admin/mul_page_03.php
admin/mul_page_04.php
admin/mul_page_05.php
admin/mul_page_06.php
admin/mul_page_07.php
admin/mul_page_08.php
admin/mul_page_09.php
admin/mul_page_10.php


===============================================
STEP 1 (upload files)
===============================================
Upload:
admin/mul_page_01.php
admin/mul_page_02.php
admin/mul_page_03.php
admin/mul_page_04.php
admin/mul_page_05.php
admin/mul_page_06.php
admin/mul_page_07.php
admin/mul_page_08.php
admin/mul_page_09.php
admin/mul_page_10.php

===============================================
STEP 2 (admin/includes/filenames.php)
===============================================
Add the following lines near the bottom of the file, just prior to the closing ?> :

// My_Most_Used_Link contrib
define('FILENAME_MUL_INK_PAGE_01', 'mul_page_01.php');
define('FILENAME_MUL_INK_PAGE_02', 'mul_page_02.php');
define('FILENAME_MUL_INK_PAGE_03', 'mul_page_03.php');
define('FILENAME_MUL_INK_PAGE_04', 'mul_page_04.php');
define('FILENAME_MUL_INK_PAGE_05', 'mul_page_05.php');
define('FILENAME_MUL_INK_PAGE_06', 'mul_page_06.php');
define('FILENAME_MUL_INK_PAGE_07', 'mul_page_07.php');
define('FILENAME_MUL_INK_PAGE_08', 'mul_page_08.php');
define('FILENAME_MUL_INK_PAGE_09', 'mul_page_09.php');
define('FILENAME_MUL_INK_PAGE_10', 'mul_page_10.php');
// My_Most_Used_Link contrib


===============================================
STEP 3 (admin/includes/languages/english.php) RENAME "Rename me in admin/includes/languages/english.php" AS NEEDED
===============================================
Add the following lines near the bottom of the file, just prior to the closing ?> :

// My_Most_Used_Link contrib
define('BOX_HEADING_MY_MOST_USED_LINK_MUL_INK_PAGE ', 'My Most Used Link');
define('BOX_MY_MOST_USED_LINK_MUL_INK_PAGE_01', 'Rename me in admin/includes/languages/english.php');
define('BOX_MY_MOST_USED_LINK_MUL_INK_PAGE_02', 'Rename me in admin/includes/languages/english.php');
define('BOX_MY_MOST_USED_LINK_MUL_INK_PAGE_03', 'Rename me in admin/includes/languages/english.php');
define('BOX_MY_MOST_USED_LINK_MUL_INK_PAGE_04', 'Rename me in admin/includes/languages/english.php');
define('BOX_MY_MOST_USED_LINK_MUL_INK_PAGE_05', 'Rename me in admin/includes/languages/english.php');
define('BOX_MY_MOST_USED_LINK_MUL_INK_PAGE_06', 'Rename me in admin/includes/languages/english.php');
define('BOX_MY_MOST_USED_LINK_MUL_INK_PAGE_07', 'Rename me in admin/includes/languages/english.php');
define('BOX_MY_MOST_USED_LINK_MUL_INK_PAGE_08', 'Rename me in admin/includes/languages/english.php');
define('BOX_MY_MOST_USED_LINK_MUL_INK_PAGE_09', 'Rename me in admin/includes/languages/english.php');
define('BOX_MY_MOST_USED_LINK_MUL_INK_PAGE_10', 'Rename me in admin/includes/languages/english.php');
// My_Most_Used_Link contrib


===============================================
STEP 4 (admin/mul_page_01.php TO admin/mul_page_10.php)
===============================================
Find this:



and change as needed:



===============================================
STEP 5 (admin/includes/column_left.php)
===============================================
Add to admin/includes/column_left.php before the closing ?>

// My_Most_Used_Link contrib
require(DIR_WS_BOXES . 'mul_page.php');
// My_Most_Used_Link contrib


===============================================
FINISHED
===============================================



Disclaimer: This contrib has been designed for and tested with osCommerce 2.2 RC2.a. While it should easily work, perhaps with minor modifications, with other versions of osCommerce, it has not been tested as such.

If you find this contribution useful, please support the osCommerce project by becoming an osCommerce Community Sponsor. At the time of this writing, details of Community Sponsorship can be found at http://www.oscommerce.com/about/support .

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