Yeah I put it in afterwards
define('BOX_HEADING_GIFT_CERTIFICATES', 'Gift Certificates');
//Logo number 1
define('GIFT_CERTIFICATES_IMAGE_WIDTH', '125');
define('GIFT_CERTIFICATES_IMAGE_HEIGHT', '125');
define('GIFT_CERTIFICATES_IMAGE', 'gift_certificates.jpg');
define('GIFT_CERTIFICATES_IMAGE_TEXT', 'Gift Certificates');
define('LOGO_IMAGE', zen_image($template->get_template_dir(GIFT_CERTIFICATES_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . GIFT_CERTIFICATES_IMAGE, GIFT_CERTIFICATES_IMAGE_TEXT, GIFT_CERTIFICATES_IMAGE_WIDTH, GIFT_CERTIFICATES_IMAGE_HEIGHT));
//this is optional if you want to use the logo as a link
//add your link information to the define statement below
//example
//define('GIFT_CERTIFICATES_LINK', '" rel="external" target="_blank"');
define('GIFT_CERTIFICATES_LINK', 'index.php?main_page=index&cPath=3718"');
//DO NOT edit below this line
if (GIFT_CERTIFICATES_LINK == '') {
define('LOGO_IMAGES', LOGO_IMAGE);
}else {
define('LOGO_IMAGES', '<a href="' . GIFT_CERTIFICATES_LINK . '>' . LOGO_IMAGE . '</a>');
}
//
I think I am making this more difficult that it is but I am making three side logo boxes.
I noticed that when I created a second one the same image appeared for both boxes even though I typed in a different image name.
Here is what I did for one as an example and even went and changed what you said not to change in the file.
gift_certificated_defines.php
define('BOX_HEADING_GIFT_CERTIFICATES', 'Gift Certificates');
//Logo number 1
define('GIFT_CERTIFICATES_IMAGE_WIDTH', '150');
define('GIFT_CERTIFICATES_IMAGE_HEIGHT', '150');
define('GIFT_CERTIFICATES_IMAGE', 'gift_certificates.jpg');
define('GIFT_CERTIFICATES_IMAGE_TEXT', 'Gift Certificates');
define('GIFT_CERTIFICATES_IMAGE', zen_image($template->get_template_dir(GIFT_CERTIFICATES_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . GIFT_CERTIFICATES_IMAGE, GIFT_CERTIFICATES_IMAGE_TEXT, GIFT_CERTIFICATES_IMAGE_WIDTH, GIFT_CERTIFICATES_IMAGE_HEIGHT));
//this is optional if you want to use the logo as a link
//add your link information to the define statement below
//example
//define('GIFT_CERTIFICATES_LINK', '" rel="external" target="_blank"');
define('GIFT_CERTIFICATES_LINK', 'index.php?main_page=index&cPath=3718"');
//DO NOT edit below this line
if (GIFT_CERTIFICATES_LINK == '') {
define('GIFT_CERTIFICATES_IMAGES', GIFT_CERTIFICATES_IMAGE);
}else {
define('GIFT_CERTIFICATES_IMAGES', '<a href="' . GIFT_CERTIFICATES_LINK . '>' . GIFT_CERTIFICATES_IMAGE . '</a>');
}
gift_certificates.php
$show_gift_certificates = true;
if ($show_gift_certificates == true) {
require($template->get_template_dir('tpl_gift_certificates.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_gift_certificates.php');
$title = BOX_HEADING_GIFT_CERTIFICATES;
$left_corner = false;
$right_corner = false;
$right_arrow = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>
tpl_gift_certificates.php
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$content .= GIFT_CERTIFICATES_IMAGES;
$content .= '</div>';
?>
I did the same for the other boxes, changing the wording to make diff boxes and this is what I get for the images
the links, but the top text heading link goes to the review page
wherever you see GIFT_CERTIFICATES it was change to PAYPAL_EXTRAS_MASTERCARD
and vice cersa for gift_certificates in lower case.
and I'm using the newest one off your site, not off the downloads section.
I'm not sure where this is coming from
Gift Certificates [MORE]
since you haven't define the [MORE] for the heading.
define('BOX_HEADING_GIFT_CERTIFICATES', 'Gift Certificates');
I can only guess that one or more of the preceding sideboxes has not been properly implemented.
As a matter of fact, Yes. Actually 3 logo sideboxes.
You can see them here ( clydedesigns.com/designdemo/index.php )
They're three on the right just after the important links box.
To clone this sidebox you would rename these files
includes/languages/english/extra_definitions/YOUR_TEMPLATE/logo_sidebox_defines.php
includes/modules/sideboxes/YOUR_TEMPLATE/logo_sidebox.php
includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php
to the following:
includes/languages/english/extra_definitions/YOUR_TEMPLATE/logo2_sidebox_defines.php
includes/modules/sideboxes/YOUR_TEMPLATE/logo2_sidebox.php
includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo2_sidebox.php
The contents of the files would similarly be renamed to reflect the logo2 designation.
logo2_sidebox_defines.php
logo2_sidebox.phpCode:define('BOX_HEADING_LOGO2_SIDEBOX', ''); //Logo number 1 define('LOGO2_SIDEBOX_IMAGE_WIDTH', '128'); define('LOGO2_SIDEBOX_IMAGE_HEIGHT', '128'); define('LOGO2_SIDEBOX_IMAGE', 'label_new_red.png'); define('LOGO2_SIDEBOX_IMAGE_TEXT', 'My Logo two'); define('LOGO2_IMAGE', zen_image($template->get_template_dir(LOGO2_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO2_SIDEBOX_IMAGE, LOGO2_SIDEBOX_IMAGE_TEXT, LOGO2_SIDEBOX_IMAGE_WIDTH, LOGO2_SIDEBOX_IMAGE_HEIGHT)); //this is optional if you want to use the logo as a link //add your link information to the define statement below //example //define('LOGO2_SIDEBOX_LINK', 'http://your_link.com/" rel="external" target="_blank"'); define('LOGO2_SIDEBOX_LINK', ''); //DO NOT edit below this line if (LOGO2_SIDEBOX_LINK == '') { define('LOGO2_IMAGES', LOGO2_IMAGE); }else { define('LOGO2_IMAGES', '<a href="' . LOGO2_SIDEBOX_LINK . '>' . LOGO2_IMAGE . '</a>'); }
tpl_logo2_sidebox.phpCode:// test if box should display $show_logo2_sidebox = true; if ($show_logo2_sidebox == true) { require($template->get_template_dir('tpl_logo2_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_logo2_sidebox.php'); $title = BOX_HEADING_LOGO2_SIDEBOX; require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default); }
Code:$content = ''; $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">'; $content .= LOGO2_IMAGES; $content .= '</div>';
Bookmarks