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

Image Titles Support Thread

Views: 28,613

Results 101 to 120 of 156
1 Oct 2010, 3:35 PM
#101
gjh42 avatar

gjh42

Black Belt

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

Image Titles Support Thread

Bugfix:

Symptom: New Products centerbox when in a category and not using image replacement shows only the category name, and not the "New Products for Month" text.

Solution: In /includes/modules/your_template/new_products.php, line 86, replace the . with , as shown:

title_image_exists(sprintf(TABLE_HEADING_NEW_PRODUCTS . strftime('%B'))

title_image_exists(sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B'))

This fix will be in v2.1, which I will submit as soon as I finish testing the flexible centerbox images.

I see you already found the bug:)

1 Oct 2010, 3:47 PM
#102
crunch avatar

crunch

Zen Follower

Join Date:
Mar 2009
Posts:
227
Plugin Contributions:
0

Re: Image Titles Support Thread

That new fix worked to bring back the New Products for the month text on the category pages, but it will not replace the text with the image on category page.

1 Oct 2010, 4:41 PM
#103
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

I have finished testing the new code for new_products.php, so I will attach a zip of the file for now. You can replace your copy with this one.

1 Oct 2010, 5:24 PM
#104
crunch avatar

crunch

Zen Follower

Join Date:
Mar 2009
Posts:
227
Plugin Contributions:
0

Re: Image Titles Support Thread

ok, I uploaded the new file...

Now it's back to the text on main page (no image replacement) and on the category pages, it's still just text as well...

1 Oct 2010, 5:27 PM
#105
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

From the v2.1 readme:

Name your header title images centerboxhead-featured.gif, centerboxhead-new.gif, and centerboxhead-specials.gif and save in /your_template/buttons/your_language/.
If you want distinct images for the current month and category where applicable, name the images like centerboxhead-new-03.gif or centerboxhead-new-03-cat23.gif.
Replace 03 with the month number (01 = January) and 23 with the category id.

Other languages may have special characters like umlauts in month names; since I don't know if those could cause problems when used in filenames, I changed the filename code to use the month number instead of name.

1 Oct 2010, 5:35 PM
#106
crunch avatar

crunch

Zen Follower

Join Date:
Mar 2009
Posts:
227
Plugin Contributions:
0

Re: Image Titles Support Thread

Ah, didn't know you just now changed the image naming convention. I changed the image filename to reference the month in digit and it's working now. Image showing on both main page and category pages. Thanks for quick update.

27 Nov 2010, 2:54 PM
#107
digidiva_kathy avatar

digidiva_kathy

Zen Follower

Join Date:
May 2006
Posts:
323
Plugin Contributions:
0

Re: Image Titles Support Thread

I have installed this and it just isn't working for me. I can't even see the code for the image when I view the source. It is a freshly upgraded site, runnign 1.3.9h, with a custom template and all of the files loaded to the appropriate folders. Can you help?

http://www.paperbagstudios.com/shoppe

Thanks!

27 Nov 2010, 5:20 PM
#108
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

The most likely cause if the files are in the correct places is image names, What titles are you trying to replace, and what are the filenames you are using?

27 Nov 2010, 5:22 PM
#109
digidiva_kathy avatar

digidiva_kathy

Zen Follower

Join Date:
May 2006
Posts:
323
Plugin Contributions:
0

Re: Image Titles Support Thread

But it doesn't even show any image names at all in the source code...and, I did already change the file to reflect a .jpg instead of a .gif and the file name is boxhead-categories.jpg. I've only put one in to check and see if it worked and since I can't even see the code, I don't know for sure what to name the others, anyway...

27 Nov 2010, 5:49 PM
#110
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

The title for the categories sidebox, then? That would be the correct filename; what folder did you save it in?

It might be helpful to post a copy of the actual define for filetype as it is now.

27 Nov 2010, 5:59 PM
#111
digidiva_kathy avatar

digidiva_kathy

Zen Follower

Join Date:
May 2006
Posts:
323
Plugin Contributions:
0

Re: Image Titles Support Thread

I saved it in my custom template/buttons/english folder, just as it says to in the instructions.

Here's the code, all I changed was the file extension:

<?php
/**
 *
 * @copyright Copyright 2010 Glenn Herbert
 * @license http://www.gnu.org/licenses/ GNU Public License V3.0
 * //includes/languages/english/extra_definitions/your_template/image_titles_defines.php
 * Images for Titles  by Glenn Herbert (gjh42)    2010-09-01
 */
 
define('IMAGE_TITLES_EXT','.jpg');// or .jpg, .png, etc.
?>

Thanks for the help. I've triple checked that all files are in the right place and still, no code is even showing up for any of the title images at all. I just don't know what's up.

27 Nov 2010, 6:14 PM
#112
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

That is odd. Everything you describe is correct. I would probably need to be inside your admin to get any more useful info. The filename would not show in view source unless the replacement code found the file; thus, it is not looking in the same place as your file is. Check if all the mod files look like good files. One could be corrupted and disable the function - in that case, re-uploading the files would fix it.

27 Nov 2010, 6:25 PM
#113
digidiva_kathy avatar

digidiva_kathy

Zen Follower

Join Date:
May 2006
Posts:
323
Plugin Contributions:
0

Re: Image Titles Support Thread

I figured it out, please forgive. I had used an underscore instead of a hyphen in the image name...habit, I suppose :) . Thanks for your help and for the mod!

15 Jan 2011, 5:42 PM
#114
nummell avatar

nummell

New Zenner

Join Date:
May 2010
Location:
Portugal
Posts:
17
Plugin Contributions:
0

Re: Image Titles Support Thread

Hi,

Anyone knows how to get this to work with the center box also purchased products?
I can´t get it to work

here´s a example
http://pedradatattoosupplies.com/index.php?language=en&main_page=product_info&cPath=8&products_id=1093

Thx in advance

17 Jan 2011, 5:20 PM
#115
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

The code that calls the substitution could be put in the "also purchased" file, probably quite easily. I don't have access to my test site right now to locate the file, but I can do it when I get home.

18 Jan 2011, 1:56 PM
#116
nummell avatar

nummell

New Zenner

Join Date:
May 2010
Location:
Portugal
Posts:
17
Plugin Contributions:
0

Re: Image Titles Support Thread

I´ve been trying to figure it out but I don´t know much about coding... The background image just disapeared after I installed the images 4 titles, so some file must be in conflict...

Just in case if you want to check it out here´s the example again
http://pedradatattoosupplies.com/ind...oducts_id=1093

Thx in advance

18 Jan 2011, 3:40 PM
#117
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

The file to edit would be
/includes/modules/your_template/also_purchased_products.php.

Find line 47:```php
$title = '<h2 class="centerBoxHeading">' . TEXT_ALSO_PURCHASED_PRODUCTS . '</h2>';

//change to

$title = '<h2 class="centerBoxHeading">' . title_image_exists(TEXT_ALSO_PURCHASED_PRODUCTS, 'centerboxhead-alsopurchased') . '</h2>';
Save your image as centerboxhead-alsopurchased.gif.
19 Jan 2011, 10:09 AM
#119
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

Re: Image Titles Support Thread

Hi I'm using the mod which is great!!

Should the headings or can the headings categories, Search, information etc be clickable or links?

I'm not sure if it's this mod or what but I've got text under the images. I did post about this in another part of the forum but I'm still not sure how to get rid of it.

Here's what I posted in another thread

"On my website I noticed that the featured products banner looks like the bottom has colour missing from it.
If you get your mouse and click the left mouse button while scrolling across underneath the banner there is wording that also says featured product??

Any idea how I remove the text??"

website is https://www.lovetovape.com.au

Mitch B
www.lovetovape.com.au
love the Zen-Cart forums!!!

19 Jan 2011, 6:02 PM
#120
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

You may have installed Images for Titles, but it is not being used for any of your headings that I can see. You are still seeing the effects of the previous replacement or addition of background-images; you probably need to remove those (I don't know how since I don't know what originally put them there). IT will replace the text in the output with <img> code, not a background-image. You do need to have your image files named and saved exactly according to the instructions.