Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / black pure free missing tell a friend button image

black pure free missing tell a friend button image

Views: 1,410

Results 1 to 9 of 9
7 Jan 2012, 3:27 PM
#1
hiddensecurity avatar

hiddensecurity

New Zenner

Join Date:
Nov 2011
Location:
Enid, OK USA
Posts:
16
Plugin Contributions:
0

black pure free missing tell a friend button image

I don't know how I did this, or if I just noticed it but the Tell a friend button is showing up as a broken image file. :oops:

I am not sure what file it uses to point to the image.

Main site page.
http://www.hiddensecuritysolutions.com

Example shown:
http://hiddensecuritysolutions.com/index.php?main_page=product_info&cPath=1&products_id=1

7 Jan 2012, 6:58 PM
#2
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: black pure free missing tell a friend button image

For some reason it's pointing to the wrong source:

includes/templates/template_default/buttons/english/BUTTON_IMAGE_TELLAFRIEND

Should be pointing to:

includes/templates/black_pure_free/buttons/english/button_TellAFriend.gif

7 Jan 2012, 7:03 PM
#3
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: black pure free missing tell a friend button image

The coding is screwed up:

<img src="includes/templates/template_default/buttons/english/BUTTON_IMAGE_TELLAFRIEND" alt="BUTTON_TELLAFRIEND_ALT" title=" BUTTON_TELLAFRIEND_ALT " />

Looks like it's been manually edited. What happens if you upload a fresh copy of tpl_product_info_display.php?

7 Jan 2012, 8:03 PM
#4
hiddensecurity avatar

hiddensecurity

New Zenner

Join Date:
Nov 2011
Location:
Enid, OK USA
Posts:
16
Plugin Contributions:
0

Re: black pure free missing tell a friend button image

<!--bof Tell a Friend button --> <?php if ($flag_show_product_info_tell_a_friend == 1) { ?> <div id="productTellFriendLink" class="buttonRow forward"><?php echo ($flag_show_product_info_tell_a_friend == 1 ? '<a href="' . zen_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_TELLAFRIEND, BUTTON_TELLAFRIEND_ALT) . '</a>' : ''); ?></div> <?php } ?> <!--eof Tell a Friend button -->

snipped from /includes/templates/black_pure_free/templates/tpl_product_info_display.php

I deleted the file /includes/templates/black_pure_free/templates/tpl_product_info_display.php and replaced the original file back from the zip it came in.

I also deleted the file

includes/templates/template_default/buttons/english/tpl_product_info_display.php and replaced the original file back from the zen cart zip file.

I have not edited either file in the past and this is the first time I have opened it to look inside.

Even if it's pointing the the template_default it still should show up because the .jpg files are there also in my non programmer logic it would show something vs a broken link? :frusty:

7 Jan 2012, 8:21 PM
#5
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: black pure free missing tell a friend button image

The code it's generating on the page is a mix of the code from the tpl_product_info_display.php template file and the way the link should be rendered. I don't know why it's doing that. What mods do you have installed?

7 Jan 2012, 8:25 PM
#6
hiddensecurity avatar

hiddensecurity

New Zenner

Join Date:
Nov 2011
Location:
Enid, OK USA
Posts:
16
Plugin Contributions:
0

Re: black pure free missing tell a friend button image

Fairly fresh install. I have only added the USPS.php mod for shipping.... other than that and the pure black template, edited couple of files to change wording on checkout page and conditions.php nothing has been changed.

7 Jan 2012, 8:33 PM
#7
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: black pure free missing tell a friend button image

edited couple of files to change wording on checkout page and conditions.php nothing has been changed.

Put back fresh copies of any files you edited. There is a symbiotic relationship between many of the files in Zen Cart so a coding mistake in one can generate errors in another.

7 Jan 2012, 9:12 PM
#8
hiddensecurity avatar

hiddensecurity

New Zenner

Join Date:
Nov 2011
Location:
Enid, OK USA
Posts:
16
Plugin Contributions:
0

Re: black pure free missing tell a friend button image

Guess since I'm not that far along with the setup, I will delete and fresh install. Wanted to upgrade to v1.5 any how.

Thanks for you help ..

7 Jan 2012, 9:25 PM
#9
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: black pure free missing tell a friend button image

The black_pure_free template does work in 1.50, so if that's the one you like you're good to go.