PDA

View Full Version : Links Manager



glynn
06-11-2011, 11:45 PM
I am trying to install Links MangerII_1.23. I am doing fine except I cannot fiqure out which files the following go in.

11: In catalog/admin/includes/column_left.php

ADD right before : // EOF: MOD - Admin w/access levels

// ADDED: LinksManager
if (tep_admin_check_boxes('links.php') == true) {
require(DIR_WS_BOXES . 'links.php');
}

7: In catalog/includes/boxes/information.php

AFTER:

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .

ADD:
'<a href="' . tep_href_link(FILENAME_LINKS) . '">' . BOX_INFORMATION_LINKS . '</a><br>' . // Links Manager II v1.00 added

pgmarshall
06-12-2011, 02:19 AM
column_left has been removed entirely and replaced by the suckerfish menu (the horizontal one across the top) ... you will need to add the files into the admin levels module.

7: In catalog/includes/boxes/information.php
Add the line after:

if (PRODUCT_LIST_ENABLE == 'true') {
$boxContent .= '<a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGE S, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '</a><br>' ;
}
Try here for some tips: http://wiki.oscdox.com/v2.5/install_a_module

Regards,

glynn
06-12-2011, 03:43 AM
Sorry this is about as clear as mud. What admin module?
Do I still add it to information.php

glynn
06-12-2011, 05:08 AM
Ok I have worked out the admin side. You have to re-write links.php. Now I just have to link at the catalog end.

pgmarshall
06-12-2011, 05:14 AM
11: In catalog/admin/includes/column_left.php

ADD right before : // EOF: MOD - Admin w/access levels

// ADDED: LinksManager (http://www.linksmanager.com/)
if (tep_admin_check_boxes('links.php') == true) {
require(DIR_WS_BOXES . 'links.php');
} Needs to go in catalog/admin/includes/menu.php as per the wiki instructions I posted. (Code needs editing a bit)



7: In catalog/includes/boxes/information.php

AFTER:

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .

ADD:
'<a href="' . tep_href_link(FILENAME_LINKS) . '">' . BOX_INFORMATION_LINKS . '</a><br>' . // Links Manager II v1.00 addedJust add: <a href="' . tep_href_link(FILENAME_LINKS) . '">' . BOX_INFORMATION_LINKS . '</a><br>

After:
if (PRODUCT_LIST_ENABLE == 'true') {
$boxContent .= '<a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGE S, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '</a><br>' ;
}

Regards,