Forums / All Other Contributions/Addons / Image Titles Support Thread

Image Titles Support Thread

Views: 28,613

Results 141 to 156 of 156
10 Jun 2012, 5:21 PM
#141
deesan avatar

deesan

New Zenner

Join Date:
Jun 2008
Posts:
25
Plugin Contributions:
0

Image Titles Support Thread

Thank u Glenn for the quick reply. I have the images saved here:
/public_html/includes/templates/avonlee_contempo/buttons/english/boxhead-categories.gif

The Better Categories must have already been installed on the template, I haven't installed any modules.
When I log into the admin, go to modules, the Images for Titles is not showing, even though I've uploaded it through FTP several times.
I haven't tried uploading any other images, I suppose I could try that too.

11 Jun 2012, 3:06 AM
#142
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

There is nothing in the admin for this mod, so of course you are not going to find it mentioned there.

There are two mod files that changed for v1.5.0, product_listing.php and tpl_product_info_display.php, but they each had only one security improvement and product_listing.php had a minor behavior improvement; none of these would affect operability in v1.5.0, nor do they have anything to do with the mod function. Are you certain that the mod files are complete and in the right places?

24 May 2013, 10:42 AM
#143
pointylimbs avatar

pointylimbs

New Zenner

Join Date:
Dec 2011
Posts:
4
Plugin Contributions:
0

Re: Image Titles Support Thread

Hi all,

I've searched the forum but could not find my particular question.

I would like to add a shopping cart icon next to the "Shopping Cart" text in the Shopping Cart Sidebox (without replacing the text).

I understand The Images for Titles mod replaces text for images, which is not what I want to do, just add an image before the text.

Could anybody please advice?
Thanks!

ZC v1.5.1 / Installed mods: JS Loader, FEC, IH4, Fual Slimbox (lightbox), Column Layout Grid 2_3_1, Shopping cart sidebox with checkout button / My Zen Cart website http://www.lacrust.com/shop

28 May 2013, 3:35 PM
#144
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

You don't need any added mods of any kind for this; a simple rule added to your stylesheet will do it.```
#shoppingcartHeading {padding-left: 45px; background: url(../images/your_categories_image.gif) no-repeat left center;}

Adjust to taste.
Check that shoppingcart is the id of the sidebox.
14 Jun 2013, 5:28 PM
#145
pointylimbs avatar

pointylimbs

New Zenner

Join Date:
Dec 2011
Posts:
4
Plugin Contributions:
0

Re: Image Titles Support Thread

That makes perfect sense.
Thanks gjh42!

ZC v1.5.1 / Installed mods: JS Loader, FEC, IH4, Fual Slimbox (lightbox), Column Layout Grid 2_3_1, Shopping cart sidebox with checkout button / My Zen Cart website http://www.lacrust.com/shop

1 Dec 2013, 8:20 PM
#146
azzenner avatar

azzenner

New Zenner

Join Date:
Oct 2005
Posts:
65
Plugin Contributions:
0

Re: Image Titles Support Thread

Hi Glen, Is there any way to use "Image Titles" for the names of the top level categories in a sidebox? (Not the header on the sidebox, but the actual category names.) I'm working on a site with only a few top level categories and they want them to appear as images in the left sidebox, but the sub-categories below them would remain as regular text. We want this only to affect the left sidebox category names. I would think it would require modification to:..includes/templates/templates_default/sideboxes/tpl_categories.php (in a custom directory) in the section where it loops through category-top, but I'm not sure how I would get it to replace multiple category names or ids with images. Any help would be appreciated. I have downloaded the plugin and read the instructions, but can't quite see how to make it do this.

1 Dec 2013, 10:34 PM
#147
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

For that function, you would install Categories Dressing from Plugins. One of its many abilities is to use an image for the category names. You can even use a background image so that it changes on hover, if you want. The mod readme describes these functions.

2 Dec 2013, 12:26 AM
#148
azzenner avatar

azzenner

New Zenner

Join Date:
Oct 2005
Posts:
65
Plugin Contributions:
0

Re: Image Titles Support Thread

Hi Glen. Thanks for your prompt response. I tried Categories Dressing and for some reason it didn't replace the category names with an image. I will have to go back and try it again. I probably did something wrong when I implemented it. (I'm the same person you helped yesterday with the EZ-Pages Improved Menus plugin. <g> It works perfectly now, thanks!) The results I got earlier with Categories Dressing didn't replace my category name with an image, but it inserted an image above it.

Here's a partial screen print attached to illustrate what I mean. See how the actual category name still appears under the image? The image is not a clickable link, only the text category name below it is. I still have to replace the sidebox header text for the word "Categories" with an image, but I know how to do that. I will have another look at Categories Dressing, because I did originally think it was the plugin that would achieve that. It seems very flexible and I thank you for all your really useful contributions.

2 Dec 2013, 8:44 PM
#149
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

Did you perhaps make a define statement for the category heading? The image replacement works strictly by checking to see if there is an image named according to rules matching the category being processed; no defines are involved.

2 Dec 2013, 8:59 PM
#150
azzenner avatar

azzenner

New Zenner

Join Date:
Oct 2005
Posts:
65
Plugin Contributions:
0

Re: Image Titles Support Thread

Hi Glen, We got it working under Categories Dressing on our 1.5.1. cart. We had misunderstood something in the instructions when we tried it earlier. Thanks again for your help. :0)

31 May 2014, 10:12 PM
#151
marta_van_eck avatar

marta_van_eck

New Zenner

Join Date:
Jan 2014
Location:
Essen
Posts:
25
Plugin Contributions:
0

Re: Image Titles Support Thread

I was wondering is the a way to replace with image Recently Viewed Products? I try to name the heading: centerboxhead-recent_products.png but no....it is not showing. I was sure it is center box and the name of the sidebox is recent_products. Can you help me?
http://www.polish-your-art.com/boutique/index.php?main_page=products_all&zenid=430adba702d9e4df3b17c20f43a95976

1 Jun 2014, 1:59 AM
#152
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

I haven't looked at the code for this in a long time, but it probably needs the same (minor) code addition/modification that other centerboxes use to make the image replacement happen. I am pretty busy right now with other projects, but will look at it when I can. If you are able to read and tweak PHP code, you should be able to handle this.

3 Jun 2014, 12:42 PM
#153
yaritai avatar

yaritai

Zen Follower

Join Date:
Apr 2014
Posts:
154
Plugin Contributions:
0

Re: Image Titles Support Thread

Marta van Eck:

I was wondering is the a way to replace with image Recently Viewed Products? I try to name the heading: centerboxhead-recent_products.png but no....it is not showing. I was sure it is center box and the name of the sidebox is recent_products. Can you help me?
http://www.polish-your-art.com/boutique/index.php?main_page=products_all&zenid=430adba702d9e4df3b17c20f43a95976

This has nothing to do with your question, but you may want to know your site has a layout issue where the center column is pushing out the right column to the far right. This is seen when your products are 3 in a row. The 3rd grid is shoving it making your site horizontally scrolling.

6 Sep 2014, 6:08 AM
#155
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Re: Image Titles Support Thread

Hi there

I have installed Images for Titles and it seems to be working fine for the boxhead-xxxx but I am unable to get it to change the subcategory to be a picture. I have renamed my images as categoryname11.gif (11 being the number that ZC assigned that category in my admin) but when I upload the images, nothing changes.

My website is http://www.fnqstockphotos.com/

Amy

9 Sep 2014, 3:51 AM
#156
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

I don't see any subcategories on your website, only top categories. The categorynamexx.gif only works for subcategories in a category listing, not the current category in a product listing page. You can add the current category name to the image replacement set by editing /includes/templates/your_template/templates/tpl_index_categories.php. Around line find ```php
/**

  • require the html_define for the index/categories page
    */
    include($define_page);
    ?></div>
<?php } ?> <?php } else { ?> <h1 id="indexCategoriesHeading"><?php echo $breadcrumb->last(); ?></h1> <?php } ?> <?php if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS_TOP == 'true') { // categories_image ``` Following the instructions in the readme: To use the image-replacing function in other locations (advanced): Call the function in any file where you want to replace text with an image, or add an image before or after text. ```php text_image_replace($text_to_replace, $image_file_name, 'extension_if_different', 'position_if_not_replace') ``` Substitute this whole function call for $text_to_replace in your code. change one line to ```php <h1 id="indexCategoriesHeading"><?php echo text_image_replace($breadcrumb->last(),'categoryname' . $current_category_id); ?></h1>