Hi Glenn,
Thank you for trying to help - I have managed to install the images for titles - after a little bit of a workaround - it was not letting me upload or change filenames that were already the same as the one's there - so I followed the template path and just created the folders and copied / pasted the contents - and I think I am finally on the right track. However, there is one part of the directions and the php code that is confusing me just a bit, because I am wanting multiple (different) images for each of my sidebox headings - I will paste the code and then hopefully you can clarify just a bit on what I need to do, and where:
I have added my images to "your_template"/buttons/"your_language"/ but I'm sure that it is in the tpl_box_default file that I'm not changing/adding the images correctly.
First in includes/templates/"your_template"/common/tpl_box_default_left.php >>>>>>
//image titles - box header image if file exists 2007-10-04
$title = (file_exists(DIR_WS_TEMPLATE . 'buttons/' . $_SESSION['language'] . '/boxhead-' . $box_id . '.gif') ? zen_image(DIR_WS_TEMPLATE . 'buttons/' . $_SESSION['language'] . '/boxhead-' . $box_id . '.gif') : $title);
if ($title_link) {
if (file_exists(DIR_WS_TEMPLATE . 'buttons/' . $_SESSION['language'] . '/boxhead-' . $box_id . '.gif')) {
$title = '<a href="' . zen_href_link($title_link) . '">' . $title . '</a>';
} else {
$title = '<a href="' . zen_href_link($title_link) . '">' . $title . BOX_HEADING_LINKS . '</a>';
}
}
//
I have changed it like this:
//image titles - box header image if file exists 2007-10-04
$title = (file_exists(DIR_WS_TEMPLATE . 'buttons/' . $_SESSION['language'] . '/boxhead-' . $informationHeading . 'aboutus.gif') ? zen_image(DIR_WS_TEMPLATE . 'buttons/' . $_SESSION['language'] . '/boxhead-' . $ezpagesHeading . 'clientresources.gif') : $title);
if ($title_link) {
if (file_exists(DIR_WS_TEMPLATE . 'buttons/' . $_SESSION['language'] . '/boxhead-' . $box_id . '.gif')) {
$title = '<a href="' . zen_href_link($title_link) . '">' . $title . '</a>';
} else {
$title = '<a href="' . zen_href_link($title_link) . '">' . $title . BOX_HEADING_LINKS . '</a>';
}
}
//
with no results?? I'm pretty sure that I'm not doing something right, and I'm not sure what to try next.
I want to completely remove the word categories up at the top - which I know I can do with display: none in the css. If you go further down, I want an image called clientresources.gif to replace the sidebox heading client resources, which according the the page source is this:
<div class="leftBoxContainer" id="ezpages" style="width: 250px">
<h3 class="leftBoxHeading" id="ezpagesHeading">Client Resources</h3>
<div id="ezpagesContent" class="sideBoxContent">
so would the id be ezpages or ezpagesHeading - I've tried both and neither does anything?
and I want the image aboutus.gif to replace the information sidebox heading - which the corresponding page source for the information box is this:
<!--// bof: information //-->
<div class="leftBoxContainer" id="information" style="width: 250px">
<h3 class="leftBoxHeading" id="informationHeading">Information</h3>
<div id="informationContent" class="sideBoxContent">
Can you help me with the code and tell me where exactly to add the images and the box id's or if I'm looking at the right place?


Reply With Quote
