Jump to content

Archived

This topic is now archived and is closed to further replies.

JenRed

www.redinstead.com.au - almost ready

Recommended Posts

To add a link follow this:

echo '<a href="' . HEADER_IMAGE_LINK . '">' . tep_image(DIR_WS_IMAGES . HEADER_IMG_PIC, HEADER_IMG_ALT) . '</a>

 

But I'm not sure how to add height and width. But that shouldn't be a problem if the images are the proper size.

 

I don't know about the javascript. If I were you, I'd post a seperate question in the general questions forum about the size and javascript.

 

However, I find it wierd that you didn't do anything. Most of your images are showing up fine in SSL. Could you post the code that you are using for the header image tabs?

Share this post


Link to post
Share on other sites

Mark

 

I figured it out!

 

1) You improved the secure serving of your images. But you still have four images that you need to update. header_03.gif, header_04.gif, header_04b.gif, and in the footer cards.gif all need to be served securly. Again, you need to do all images or you'll get that security error.

 

The only thing different about 03, 04, 04b and the cards.gif are that they have the full URL ie. http://www.redinstead.com.au/images/blah.gif - and the first one is done in the PHP code way, like I said before.

 

Does this mean that you can hardcode as long as you don't include the full URL I wonder? I have had a bit of a read-thru of those two posts you linked but it was the other day - I may have to go back to them.

 

Also I'm not sure I quite understand this:

echo '<a href="' . HEADER_IMAGE_LINK . '">' . tep_image(DIR_WS_IMAGES . HEADER_IMG_PIC, HEADER_IMG_ALT) . '</a>

 

Would this be correct?

echo '<a href="' . http://www.redinstead.com.au/customer_info.php . '">' . tep_image(DIR_WS_IMAGES . header_04.gif, Customer Information) . '</a>

 

thanks

 

Jen


I haven't lost my mind - I have it backed up on disk somewhere.

Share this post


Link to post
Share on other sites

Hey Jen...

 

Does this mean that you can hardcode as long as you don't include the full URL I wonder? I have had a bit of a read-thru of those two posts you linked but it was the other day - I may have to go back to them.

 

I'm not sure about this. it seems to make sense as long as your secure server is set up well. It seems to work for you though despite the security warning. All visable images are loading in secure mode, although I still get an error that something is loading unsecure. Did you hard code a bunch of spacer images that are being pulled up via http rather than https? Maybe that's the problem. However, the little gold lock box is showing up properly. Maybe someone who knows more than me will be able to answer this.

 

As for the proper OSC way to code linked images... Here is the link code for one of my header images...

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'wowzen/header_01.gif', 'Wow & Zen - Fine Asian antiques and Chinese furniture.  Located in Chicago, Illinois.'); ?>

 

The FILENAME_DEFAULT (or whatever page you are going to link to) is defined in application_top.php.

 

Does that help?

 

And I am also having what seems to be Javascript errors on your site. When you first load the site, no problem, but by the second page, then I get a page error in the status bar.

 

Great work.

Share this post


Link to post
Share on other sites
As for the proper OSC way to code linked images... Here is the link code for one of my header images...  

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'wowzen/header_01.gif', 'Wow & Zen - Fine Asian antiques and Chinese furniture.  Located in Chicago, Illinois.'); ?>

 

 

The FILENAME_DEFAULT (or whatever page you are going to link to) is defined in application_top.php.  

 

Does that help?

 

That last sentence about defining helped a lot! The penny dropped...

 

But in my code I have found a different way of doing the links:

<a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>"><?php echo tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></a>

 

Only I guess you would change it to:

<a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>"><?php echo tep_image(DIR_WS_IMAGES . 'wowzen/header_01.gif', 'Wow & Zen - Fine Asian antiques and Chinese furniture.  Located in Chicago, Illinois.'); ?></a>

 

Are they both (your way and the one just above) correct?

 

Jen


I haven't lost my mind - I have it backed up on disk somewhere.

Share this post


Link to post
Share on other sites

They both look fine to me. They're just splitting up the PHP tag in a different way. If there's a PHP standard for this, I'm not familiar with it.

Share this post


Link to post
Share on other sites

Just to clear it up (we have gone rather off topic here but still...)

 

I added this bit of code:

<a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>"><?php echo tep_image(DIR_WS_IMAGES . 'header_01b.gif', 'Red Instead sells Clothing and Accessories for Children from Newborn to age 14'); ?></a>

 

and then Viewed Source and it seems that it grabs the height and width and border=0 info from somewhere, so you don't need to include it in the code:

<a href="http://www.redinstead.com.au/default.php"><img src="images/header_01b.gif" border="0" alt="Red Instead sells Clothing and Accessories for Children from Newborn to age 14" title=" Red Instead sells Clothing and Accessories for Children from Newborn to age 14 " width="305" height="50"></a>

 

 

And it seems that adding the code that way is indeed getting rid of those "Done, but with errors on the page" messages in IE.

 

thanks

 

Jen


I haven't lost my mind - I have it backed up on disk somewhere.

Share this post


Link to post
Share on other sites

Hi Jen, noticed you mentioned in a post that you installed the newsletter contrib. When I went to the one you linked to in the quote box, the new April 2004 update- the description is totally in french. Is the contrib itself in english. I didn't want to download it if it in the wrong language for my customers (english).

 

Nice day :)

Share this post


Link to post
Share on other sites

×