Zen Cart Logo
Forums / All Other Contributions/Addons / Image Titles Support Thread

Image Titles Support Thread

Views: 28,582

Results 1 to 20 of 156
1 Oct 2007, 2:30 PM
#1
gjh42 avatar

gjh42

Black Belt

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

Image Titles Support Thread

Image Titles is now available in Downloads.

This mod allows you to substitute images for text in certain locations.

If an image file is found for a title, the image will be displayed; if not, the original text will be displayed.
Each replacement location can be omitted if not wanted.

  • You can replace the standard Zen Cart sidebox headers on all pages with images.

  • You can replace product titles on product info pages with images.

  • Other functions may be added in future versions if requested here.

2 Oct 2007, 7:31 AM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Image Titles Support Thread

Great addition.. Thank You
Would it be possible to add images for text on main index page
i.e. Featured Products, New Products etc centre boxes?

2 Oct 2007, 7:47 AM
#3
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

Do you mean centerbox heading titles? I expect I can add that. I've got a big craft show coming up in two weeks so don't have much time at the moment, but I'll accumulate some ideas and work on them when I can.

2 Oct 2007, 7:53 AM
#4
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Image Titles Support Thread

gjh42:

Do you mean centerbox heading titles? .
Yes please.

10 Oct 2007, 6:45 AM
#5
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Image Titles Support Thread

Thanks for adding option I requested
:clap:

10 Oct 2007, 7:06 AM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

This turned out to require editing three different files, but it is essentially the same edit for each of them.
Also, I was notified that Image Titles did not support multiple languages. I confess it had never occurred to me since I use only English, but the fix was quite simple, using $_SESSION['language'] and the /buttons/your_language/ subfolder instead of /images/. So:

Version 1.1 is now available in Downloads.
Added support for multiple languages and centerbox headers.

  • You can replace the standard Zen Cart featured/new/specials centerbox headers on all pages with images.
  • If you use multiple languages, you can automatically display a different image for each language.
1 Nov 2007, 3:03 PM
#7
crabdance avatar

crabdance

Zen Follower

Join Date:
Sep 2007
Posts:
318
Plugin Contributions:
0

Re: Image Titles Support Thread

Hi Glenn,

I'm not really sure how to use your mod. I'm new somewhat to Zen Cart and like everyone, still learning. Can you give me a small example that might help me to understand how to implement your mod? I would appreciate it very much!

Also I have an image that I want to use for the "categories" sidebox but I don't know what directory to put it in or what I should name the image file.

thanks

1 Nov 2007, 3:36 PM
#8
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

The readme included with the download gives complete instructions. I have to run right now, but if you still need more help after going over the readme, post again and I'll help when I get back.

1 Nov 2007, 4:38 PM
#9
crabdance avatar

crabdance

Zen Follower

Join Date:
Sep 2007
Posts:
318
Plugin Contributions:
0

Re: Image Titles Support Thread

gjh42:

The readme included with the download gives complete instructions. I have to run right now, but if you still need more help after going over the readme, post again and I'll help when I get back.

Hi Glenn... I have got it to work with one image so far so I hope that I can get it to work with all the others. Will let you know how things go... GREAT mod BTW:

1 Nov 2007, 5:20 PM
#10
crabdance avatar

crabdance

Zen Follower

Join Date:
Sep 2007
Posts:
318
Plugin Contributions:
0

Re: Image Titles Support Thread

ok... here's an update. I have got it to work on everything but:

Who's Online sidebox
New Products [more] sidebox
We Accept... (credit card mod sidebox)

I'm guessing that it's a naming convention error but I have tried most logical name changes and don't seem to be able to come up with one that works.

1 Nov 2007, 6:34 PM
#11
crabdance avatar

crabdance

Zen Follower

Join Date:
Sep 2007
Posts:
318
Plugin Contributions:
0

Re: Image Titles Support Thread

Hi again Glenn,

Have got everything working (after reading the instructions again) Thanks for the mod and have a great one!

1 Nov 2007, 8:55 PM
#12
crabdance avatar

crabdance

Zen Follower

Join Date:
Sep 2007
Posts:
318
Plugin Contributions:
0

Re: Image Titles Support Thread

After doing yet some more reading I was able to come up with all the answers to my questions. Thanks for your help.

6 Dec 2007, 8:57 PM
#13
ojm avatar

ojm

New Zenner

Join Date:
Oct 2007
Posts:
68
Plugin Contributions:
0

Re: Image Titles Support Thread

Just installed the image titles mod, but my images 'spill' over the sidebox;

I can't find what could be causing it - I've removed the padding within the css file, but only moved it left slightly.

Any ideas at all please?

Thanks

7 Dec 2007, 4:27 PM
#14
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

The images are used as foreground images, so if they are larger than the "standard" space your title occupies they will expand the header box.

Also, if the standard title has padding, that will be added to the image dimensions. Code to account for this is posted in the Hiding the sidebox heading fonts/links.... thread, post #14.

16 Feb 2008, 7:45 AM
#15
scrapwithnikki avatar

scrapwithnikki

New Zenner

Join Date:
Feb 2008
Posts:
1
Plugin Contributions:
0

Re: Image Titles Support Thread

I hope someone can help --

I am trying to change the Whos Online text in the sidebox to an image. I originally used the instructions HERE and was successful in changing everything except whos online.

So then I downloaded and installed the Image Titles and I am a bit confused about this part

Name your header title images like boxhead-categories.gif and save in /your_template/buttons/your_language/. Look in view source to get the box id at the top of each sidebox output.

Ok so what exactly do you do with the box id - where exactly does it go?
Thanks!

http://scrapwithnikki.com/shoppe

16 Feb 2008, 5:53 PM
#16
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

The image filename for each sidebox needs to include the name (id) of the sidebox.

The categories box has an id of categories, so its image file will be named boxhead-categories.gif.

1 May 2008, 2:55 AM
#17
barleywine avatar

barleywine

New Zenner

Join Date:
May 2008
Posts:
14
Plugin Contributions:
0

Re: Image Titles Support Thread

Hi Glenn,
I've been chipping away at this all afternoon, looking at endless posts but have not found a similar problem.
Let me just start by saying the same thing everyone else does - I'm a total ZenCart noob - I've put together quite a few other CMS sites, and see how dramatically different ZC is from the others I've done.
So, I installed the awesome Image Titles mod so that I could add images to my sidebar boxes, and hopefully eventually to the main level of my dropdown menu as well (but that's a whole nother problem right now!). The template is a heavily modified version of Apple Zen (not even close to being finished tweaking with yet...)
The very first thing that happened was that I lost all the sideboxes and the main navigation bar on the main page - they just completely disappeared when I refreshed the page after the initial install of the files. When you click on the link for "Great Gifts" it takes you to a different page, and there they are again! I'm trying not to panic, but...why??? :huh: All I did was rename the folders as instructed, and add some images (at least some are correctly named, or they wouldn't show up at all, right?), although I MIGHT have touched some other files while I floundering around before I discovered the mod... Do you have any ideas about what I could have done to mess this up??
Here's the link to the main page
http://purple-eggplant.com/zc

This is such a great mod - absolutely perfect for my needs!
Thanks so much in advance,
barleywine

4 May 2008, 8:55 PM
#18
barleywine avatar

barleywine

New Zenner

Join Date:
May 2008
Posts:
14
Plugin Contributions:
0

Re: Image Titles Support Thread

Anybody???

I really need some help with this - and I don't know where to start...:frusty:
I'm sure it's a simple fix, but I really need some help!

Actually, I just looked at the page again and found this error message at the bottom of the index page:

Fatal error: Call to undefined function: zen_get_generated_category_path_rev() in PATHREMOVED/includes/modules/aubizenred/new_products.php on line 69

Does this help?
Thanks

6 May 2008, 4:46 AM
#19
gjh42 avatar

gjh42

Black Belt

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

Re: Image Titles Support Thread

I just double-checked, and there is no difference between the stock v1.3.8 version of /includes/modules/new_products.php and the Image Titles version in /includes/modules/your_template/new_products.php except for the comment at the top of the file and the actual mod code on lines 84-87. I don't see how this could cause the reported error on line 69, so I think you need to investigate what other files you might have touched.

The new products mess up only on the home page, and work fine on others, so I doubt it is directly caused by the mod. If you don't need to use image titles for the new products centerbox, you can delete /includes/modules/aubizenred/new_products.php without affecting anything else. (You might try changing it temporarily to /includes/modules/aubizenred/new_products.bak to see if the problem still exists with the default copy of the file.)

6 May 2008, 5:15 PM
#20
barleywine avatar

barleywine

New Zenner

Join Date:
May 2008
Posts:
14
Plugin Contributions:
0

Re: Image Titles Support Thread

[QUOTE=gjh42;552620
The new products mess up only on the home page, and work fine on others, so I doubt it is directly caused by the mod. If you don't need to use image titles for the new products centerbox, you can delete /includes/modules/aubizenred/new_products.php without affecting anything else. (You might try changing it temporarily to /includes/modules/aubizenred/new_products.bak to see if the problem still exists with the default copy of the file.)[/QUOTE]

Thanks Glenn!
http://www.zen-cart.com/forum/images/smilies/clap.gif
I did rename the file and immediately got back my navigation and sideboxes on the home page. I'm still a bit (ok, a lot) confused about what I might've done to other files to mess this up, but I'll keep looking at it.

Now I have another question:
Does this mod allow me to use an image for the top level in the horizontal menu bar? How should I name the images for that?

Thanks again!