
Originally Posted by
creyesx6
Hi I believe I updated according to the above instructions but am obviously missing something. Here is the code for the database config. Any help would be greatly appreciated. Thank you
('', 'Fine Jewelry', 'index.php?main_page=index&cPath=1', 'banners/ad1.jpg', 'homead1', NULL, '0', NULL, NULL, '0001-01-01 00:00:00', NULL, '1', '0', '1', '6'),
('', 'Great Tops!', 'index.php?main_page=index&cPath=2', 'banners/ad2.jpg', 'homead2', NULL, '0', NULL, NULL, '0001-01-01 00:00:00', NULL, '1', '0', '1', '7'),
('', 'Lorem Ipsum', 'index.php?main_page=index&cPath=3', 'banners/ad3.jpg', 'homead3', NULL, '0', NULL, NULL, '0001-01-01 00:00:00', NULL, '1', '0', '1', '8'),
('', 'Home Top', 'http://www.picaflor-azul.com', 'banners/home-top.png', 'hometop', NULL, '0', NULL, NULL, '0001-01-01 00:00:00', NULL, '1', '1', '0', '9'),
('', 'Furniture4', 'index.php?main_page=index&cPath=4', 'banners/ad4.jpg', 'homead1', NULL, '0', NULL, NULL, '0001-01-01 00:00:00', NULL, '1', '0', '1', '10'),
('', 'Furniture5', 'index.php?main_page=index&cPath=5', 'banners/ad5.jpg', 'homead2', NULL, '0', NULL, NULL, '0001-01-01 00:00:00', NULL, '1', '0', '1', '11'),
('', 'Furniture6', 'index.php?main_page=index&cPath=6', 'banners/ad6.jpg', 'homead3', NULL, '0', NULL, NULL, '0001-01-01 00:00:00', NULL, '1', '0', '1', '12');");
#$db->Execute("DELETE FROM " . TABLE_CONFIGURATION . " WHERE configuration_group_id = 0;");
$db->Execute("DELETE FROM " . TABLE_CONFIGURATION . " WHERE configuration_key = '';");
$db->Execute("INSERT IGNORE INTO " . TABLE_CONFIGURATION_GROUP . " (configuration_group_title, configuration_group_description, sort_order, visible) VALUES ('" . BOX_CONFIGURATION_WESTMINSTER_NEW. "', 'Set Westminster New Template Options', '1', '1');");
$configuration_group_id = $db->Insert_ID();
$db->Execute("UPDATE " . TABLE_CONFIGURATION_GROUP . " SET sort_order = " . $configuration_group_id . " WHERE configuration_group_id = " . $configuration_group_id . ";");
$db->Execute("INSERT IGNORE INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES
('Version', 'WESTMINSTER_NEW_VERSION', '1.1', 'Version installed:', " . $configuration_group_id . ", 0, NOW(), NOW(), NULL, NULL),
('Home Page Slideshow', 'WES_SLIDER_STATUS', 'true', 'Activate Home Page Slideshow', " . $configuration_group_id . ", 1, NOW(), NOW(), 'zen_cfg_select_option(array(\'true\', \'false\'),', NULL),
('Banner Display Groups Custom Tab', 'SHOW_BANNERS_GROUP_SETCUSTOMTAB', 'Custom Tab', 'Custom Tab for product info page', " . $configuration_group_id . ", 2, NOW(), NOW(), NULL, NULL),
('Banner Display Groups Top Home Ad', 'SHOW_BANNERS_GROUP_SETHOMETOP', 'hometop', 'Custom ad next to home page slide show', " . $configuration_group_id . ", 3, NOW(), NOW(), NULL, NULL),
('Banner Display Groups Home Ad 1', 'SHOW_BANNERS_GROUP_SETHOMEAD1', 'homead1', 'Custom ad 1 for home page', " . $configuration_group_id . ", 4, NOW(), NOW(), NULL, NULL),
('Banner Display Groups Home Ad 2', 'SHOW_BANNERS_GROUP_SETHOMEAD2', 'homead2', 'Custom ad 2 for home page', " . $configuration_group_id . ", 5, NOW(), NOW(), NULL, NULL),
('Banner Display Groups Home Ad 3', 'SHOW_BANNERS_GROUP_SETHOMEAD3', 'homead3', 'Custom ad 3 for home page', " . $configuration_group_id . ", 6, NOW(), NOW(), NULL, NULL),
('Banner Display Groups Home Ad 4', 'SHOW_BANNERS_GROUP_SETHOMEAD4', 'homead4', 'Custom ad 4 for home page', " . $configuration_group_id . ", 7, NOW(), NOW(), NULL, NULL),
('Banner Display Groups Home Ad 5', 'SHOW_BANNERS_GROUP_SETHOMEAD5', 'homead5', 'Custom ad 5 for home page', " . $configuration_group_id . ", 8, NOW(), NOW(), NULL, NULL),
('Banner Display Groups Home Ad 6', 'SHOW_BANNERS_GROUP_SETHOMEAD6', 'homead6', 'Custom ad 6 for home page', " . $configuration_group_id . ", 9, NOW(), NOW(), NULL, NULL),
The define_main_page.php:
<div class="view view-tenth">
<div class="hover">
<?php
if (SHOW_BANNERS_GROUP_SETHOMEAD4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SETHOMEAD4))
{
if ($banner->RecordCount() > 0)
{
echo zen_display_banner('static', $banner) . '</div><div class="mask"><h2>' . $banner->fields['banners_title'] . '</h2><a href="' . zen_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner->fields['banners_id']) . '" class="info">' . SHOP_NOW . '</a>';
}
}?>
</div>
</div>
<div class="view view-tenth ad-right">
<div class="hover">
<?php
if (SHOW_BANNERS_GROUP_SETHOMEAD5 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SETHOMEAD5))
{
if ($banner->RecordCount() > 0)
{
echo zen_display_banner('static', $banner) . '</div><div class="mask"><h2>' . $banner->fields['banners_title'] . '</h2><a href="' . zen_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner->fields['banners_id']) . '" class="info">' . SHOP_NOW . '</a>';
}
}?>
</div>
</div>
<div class="view view-tenth ad-right">
<div class="hover">
<?php
if (SHOW_BANNERS_GROUP_SETHOMEAD6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SETHOMEAD6))
{
if ($banner->RecordCount() > 0)
{
echo zen_display_banner('static', $banner) . '</div><div class="mask"><h2>' . $banner->fields['banners_title'] . '</h2><a href="' . zen_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner->fields['banners_id']) . '" class="info">' . SHOP_NOW . '</a>';
}
}?>
</div>
</div>
Bookmarks