both product info pages and product listing pages or just the product info pages?
Printable View
1. unzip the attached file and upload to your server:
includes/modules/sideboxes/YOUR_TEMPLATE/links_box.php
Attachment 5227
2. you can have either a scrollbox or a dropdown list
settings are available in admin -> configuration -> links manager -> Links List - Scroll Box Size/Style
thanks Clyde, it works great !
i have another question, now the form background color is white and the form text is black, how do i change those colors ? i cant change them in links.css and lins_submit.css
add a background-color declaration to the fieldset in links_submit.css as indicated by the highlighted portion
You can change the color of the label by changing the color declaration
fieldset {
float: left;
clear: left;
width: 100%;
margin: 0 0 1.5em 0;
padding: 0;
background:#eee; /*make this any color you wish*/
}
label {
float: left;
width: 11em;
margin-right: 1em;
color: #000;
font-weight: bold;
}
Clyde, if I wanted to hardcode the sidebox to go to link category pages that have been created by a program I have instead of pulling everything from Links Manager Database, how would I go about altering the code in the sidebox file? I have already made the proper declarations in my language file. I just need to know how to do the code for my pages and to keep them in the scrollbox like there is currently.
Dunno if my request makes sense! Please let me know if I need to elaborate. Thanks!
Amy,
Here's the code that creates the array for the the sidebox: (includes/modules/sideboxes/YOUR_TEMPLATE/link_listing.php
You'd have to create (hard code) the array without pulling any information from the database.Code:$links_query= ("select lc.link_categories_id, lc.link_categories_sort_order, lcd.link_categories_id, lcd.link_categories_name from " . TABLE_LINK_CATEGORIES . " lc, " . TABLE_LINK_CATEGORIES_DESCRIPTION . " lcd where lc.link_categories_status = '1' and lc.link_categories_id = lcd.link_categories_id and lcd.language_id = '" . (int)$_SESSION['languages_id'] . "' order by lc.link_categories_sort_order, lcd.link_categories_name");
$links = $db->Execute($links_query);
if ($links->RecordCount()>0) {
$number_of_rows = $links->RecordCount()+1;
$links_array = array();
if ($_GET['link_categories_id'] == '' ) {
} else {
$links_array[] = array('id' => '', 'text' => PULL_DOWN_LINKS_MANAGER);
}
while (!$links->EOF) {
$link_categories_name = ((strlen($links->fields['link_categories_name']) > MAX_DISPLAY_LINK_NAME_LEN) ? substr($links->fields['link_categories_name'], 0, MAX_DISPLAY_LINK_NAME_LEN) . '..' : $links->fields['link_categories_name']);
$links_array[] = array('id' => $links->fields['link_categories_id'],
'text' => $link_categories_name);
$links->MoveNext();
}
----------
This is the code that creates the the scrollbox: (includes/templates/YOUR_TEMPLATE/sideboxes/tpl_links_select.php
Hope this helpful.Code:$content .= zen_draw_pull_down_menu('lPath', $links_array, (isset($_GET['lPath']) ? $_GET['lPath'] : ''), 'onchange="this.form.submit();" size="' . MAX_LINKS_LIST . '" style="width: 90%; margin: auto;"') . zen_hide_session_id();
Hello Clyde,
I just recently upgraded to the latest version, and encountered a division by zero error pertaining to tpl_links_default.php (lines 25 and 27). And the configuration link was empty also.
So I just ran the upgrade script through the host PHPMyadmin, and got the configuration menu working. But now, the links pages themselves are empty store side, but as they were admin side. Not sure if I have messed something up, I appreciate any help with this.
Regards,
Heathenmagic
[quote=clydejones;675220]
You'd have to create (hard code) the array without pulling any information from the database.Code:$links_query= ("select lc.link_categories_id, lc.link_categories_sort_order, lcd.link_categories_id, lcd.link_categories_name from " . TABLE_LINK_CATEGORIES . " lc, " . TABLE_LINK_CATEGORIES_DESCRIPTION . " lcd where lc.link_categories_status = '1' and lc.link_categories_id = lcd.link_categories_id and lcd.language_id = '" . (int)$_SESSION['languages_id'] . "' order by lc.link_categories_sort_order, lcd.link_categories_name");
$links = $db->Execute($links_query);
if ($links->RecordCount()>0) {
$number_of_rows = $links->RecordCount()+1;
$links_array = array();
if ($_GET['link_categories_id'] == '' ) {
} else {
$links_array[] = array('id' => '', 'text' => PULL_DOWN_LINKS_MANAGER);
}
while (!$links->EOF) {
$link_categories_name = ((strlen($links->fields['link_categories_name']) > MAX_DISPLAY_LINK_NAME_LEN) ? substr($links->fields['link_categories_name'], 0, MAX_DISPLAY_LINK_NAME_LEN) . '..' : $links->fields['link_categories_name']);
$links_array[] = array('id' => $links->fields['link_categories_id'],
'text' => $link_categories_name);
$links->MoveNext();
}
Right...do I put something likeand where do I insert that in my code? I have fiddled and fiddled with it and can't figure out how to get it to work.PHP Code:
$content .= '<br /><a href="http://babygiftbasketsplace.com/store/birth-announcements.htm">' . BOX_INFORMATION_LINKS_CATEGORY1 . '</a>';
----------
This is the code that creates the the scrollbox: (includes/templates/YOUR_TEMPLATE/sideboxes/tpl_links_select.php
Do I enter in my hardcoded links somewhere within this code?Code:$content .= zen_draw_pull_down_menu('lPath', $links_array, (isset($_GET['lPath']) ? $_GET['lPath'] : ''), 'onchange="this.form.submit();" size="' . MAX_LINKS_LIST . '" style="width: 90%; margin: auto;"') . zen_hide_session_id();
I just installed this and Lightbox stopped working. Are they incompatible? I searched through the thread for any references and there was one but it didn't give any info.
Do I need to reinstall Lightbox or use Slimbox instead????