Forums / Basic Configuration / Categories title displaying in Firefox but not IE or Chrome

Categories title displaying in Firefox but not IE or Chrome

Locked

Views: 2,239

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
9 Feb 2010, 12:07 PM
#1
roryhy avatar

roryhy

New Zenner

Join Date:
Jan 2010
Posts:
9
Plugin Contributions:
0

Categories title displaying in Firefox but not IE or Chrome

Can anyone help me solve this? This is the IE view of my categories sidebox title, its displays similar in chrome but works fine in firefox. Help appreciated:smile:

9 Feb 2010, 12:35 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Categories title displaying in Firefox but not IE or Chrome

Can anyone help me solve this? This is the IE view of my categories sidebox title,
What is wrong with it?

Need a link because can not troubleshoot an image

Zen-Venom Get Bitten

9 Feb 2010, 12:41 PM
#3
roryhy avatar

roryhy

New Zenner

Join Date:
Jan 2010
Posts:
9
Plugin Contributions:
0

Re: Categories title displaying in Firefox but not IE or Chrome

sorry- http://beanybags.com/

edit: problem being the x displayed, it should simply say categories like my other sideboxes, thanks

9 Feb 2010, 1:43 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories title displaying in Firefox but not IE or Chrome

The HTML is trying to display an image for the categories title, and not finding it. Firefox quietly displays the alt text in the applicable font, but IE needs to alert everyone that there is a missing image and put the alt text in small print.```html

<div class="leftBoxContainer" id="categories" style="width: 200px"> <div class="sidebox-header-left main-sidebox-header-left"><h3 class="leftBoxHeading main-sidebox-header-right" id="categoriesHeading"><img src="includes/templates/template_default/images/Categories" alt="Categories" title=" Categories " /></h3></div> ``` <img src="includes/templates/template_default/images/Categories"

Categories is not a filename; somehow the code is not getting the .gif on the end of the filename.

9 Feb 2010, 1:54 PM
#5
roryhy avatar

roryhy

New Zenner

Join Date:
Jan 2010
Posts:
9
Plugin Contributions:
0

Re: Categories title displaying in Firefox but not IE or Chrome

Thanks for the effort but as you can see i'm a new zenner, have you got a solution for me? i dont know where to find the code above, thanks

I also have another problem you might be able to solve for me, my about us, f.a.q. & payment options pages dont display the content i insert in my define pages editor. I have gone through everything i can think of over the past hour but can find nothing. thanks again

9 Feb 2010, 2:25 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories title displaying in Firefox but not IE or Chrome

Your template is customized in that area, so I don't know exactly what has been done to mess it up. That output code does not exist as such in any file; it is made up from several files working together each time a page is requested by a viewer. It could be /includes/modules/sideboxes/your_template/categories.php, or /includes/templates/your_template/sideboxes/tpl_categories.php, or /includes/templates/your_template/common/tpl_box_default_left.php, or it could be a botched define in (probably) /includes/languages/english/your_template/english.php.

How are you inserting the content? Are you typing it in, or pasting from another program? If the latter, what program?

9 Feb 2010, 2:44 PM
#7
roryhy avatar

roryhy

New Zenner

Join Date:
Jan 2010
Posts:
9
Plugin Contributions:
0

Re: Categories title displaying in Firefox but not IE or Chrome

just typing it in myself.

I'm going through the files you mentioned now to try find the problem. I'll get back to you, thanks.

9 Feb 2010, 3:16 PM
#8
roryhy avatar

roryhy

New Zenner

Join Date:
Jan 2010
Posts:
9
Plugin Contributions:
0

Re: Categories title displaying in Firefox but not IE or Chrome

I can find nothing that stands out as being wrong. I'll post some of the code that might be relevant-

includes/modules/sideboxes/categories.php
$check_categories = $db->Execute("select categories_id from " . TABLE_CATEGORIES . " where categories_status=1 limit 1");
if ($check_categories->RecordCount() > 0) {
$box_categories_array = $main_category_tree->zen_category_tree();
}

require($template->get_template_dir('tpl_categories.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_categories.php');

$title = zen_image($template->get_template_dir(BOX_HEADING_CATEGORIES, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . BOX_HEADING_CATEGORIES, Categories);
$title_link = false;

require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);

?>

includes/templates/pure_orange/common/tpl_box_default_left.php

<!--// bof: <?php echo $box_id; ?> //--> <div class="leftBoxContainer" id="<?php echo str_replace('_', '-', $box_id ); ?>" style="width: <?php echo $column_width; ?>"> <div class="sidebox-header-left <?php echo $header_left; ?>"><h3 class="leftBoxHeading <?php echo $header_right; ?>" id="<?php echo str_replace('_', '-', $box_id) . 'Heading'; ?>"><?php echo $title; ?></h3></div> <?php echo $content; ?> </div> <!--// eof: <?php echo $box_id; ?> //-->

includes/templates/template_default/templates/tpl_index_categories.php

// categories_image
if ($categories_image = zen_get_categories_image($current_category_id)) {
?>

<div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?></div> <?php } } // categories_image
9 Feb 2010, 3:20 PM
#9
roryhy avatar

roryhy

New Zenner

Join Date:
Jan 2010
Posts:
9
Plugin Contributions:
0

Re: Categories title displaying in Firefox but not IE or Chrome

The particularly strange thing about the define pages editor problem is that it edits the main page fine, its just the more information pages that it doesnt work on:(

9 Feb 2010, 4:34 PM
#10
roryhy avatar

roryhy

New Zenner

Join Date:
Jan 2010
Posts:
9
Plugin Contributions:
0

Re: Categories title displaying in Firefox but not IE or Chrome

I found the categories heading problem-

located in includes/modules/sideboxes/categories.php

zen_image($template->get_template_dir(BOX_HEADING_CATEGORIES, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . BOX_HEADING_CATEGORIES, Categories);

changed to-

BOX_HEADING_CATEGORIES;

If anyone has any ideas on my other problem, posted above, i'd really appreciate it, im stumped:shocking:

9 Feb 2010, 4:42 PM
#11
roryhy avatar

roryhy

New Zenner

Join Date:
Jan 2010
Posts:
9
Plugin Contributions:
0

Re: Categories title displaying in Firefox but not IE or Chrome

Have now solved define page issue-

Admin- Configuration - Change define page value from 0 to 1.

So simple in the end.

Thank you to gjh42 & kobra. :bigups:

9 Feb 2010, 4:51 PM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Categories title displaying in Firefox but not IE or Chrome

Yep, good spotting. The image code was incomplete, and if you don't want the image, just replacing it with the stock title constant is best.

It is possible that you typed something that caused a PHP or HTML error in the define pages, but not possible to advise further without seeing exactly what you typed (not necessarily what you thought you typed).

OK, mystery solved! :) Much better than trying to diagnose an unknown typing error from long distance...