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();
}
You'd have to create (hard code) the array without pulling any information from the database.
Right...do I put something like
PHP Code:
$content .= '<br /><a href="http://babygiftbasketsplace.com/store/birth-announcements.htm">' . BOX_INFORMATION_LINKS_CATEGORY1 . '</a>';
and 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.
----------
This is the code that creates the the scrollbox: (includes/templates/YOUR_TEMPLATE/sideboxes/tpl_links_select.php
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();
Do I enter in my hardcoded links somewhere within this code?
Bookmarks