Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

easiest way to add a linking graphic to left hand column.


krislyn5559

Recommended Posts

Posted

I was wondering what would be the easiest way to add a graphic to the bottom of the left hand column under the info_box I would like to have this graphic link to a page within the site (the sign up for an account page) is there a way I could drop the html code of the above mentioned graphic ? or is it more complicated ? I don't really have any PHP experience aside from what I have done with the gracious help of oscommerce members and all other sites I have done prior were with wysiwyg editors. here is the link to my site Visit My Website

 

I would really appreciate and ideas and feel free to point me to another thread that addresses this question if there is I have searched for the answer but can't seem to find one that meets my exact requirements and I am not experienced enough to know how to alter them.

Posted
I was wondering what would be the easiest way to add a graphic to the bottom of the left hand column under the info_box I would like to have this graphic link to a page within the site (the sign up for an account page) is there a way I could drop the html code of the above mentioned graphic ? or is it more complicated ? I don't really have any PHP experience aside from what I have done with the gracious help of oscommerce members and all other sites I have done prior were with wysiwyg editors. here is the link to my site Visit My Website

 

I would really appreciate and ideas and feel free to point me to another thread that addresses this question if there is I have searched for the answer but can't seem to find one that meets my exact requirements and I am not experienced enough to know how to alter them.

 

Hi Krislyn,

I would think you want to keep things balanced so you would insert the graphic into your footer.php file.

Look for this code -

 

<td><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #DADDE2;">

<tr>

<td width="150" style="padding:24px; padding-right:0px;"> </td>

 

Insert your image and link code where the blue   is shown above. ;)

You'll have to play with the padding size to keep it consistent.

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted
I was wondering what would be the easiest way to add a graphic to the bottom of the left hand column under the info_box I would like to have this graphic link to a page within the site (the sign up for an account page) is there a way I could drop the html code of the above mentioned graphic ? or is it more complicated ? I don't really have any PHP experience aside from what I have done with the gracious help of oscommerce members and all other sites I have done prior were with wysiwyg editors. here is the link to my site Visit My Website

 

I would really appreciate and ideas and feel free to point me to another thread that addresses this question if there is I have searched for the answer but can't seem to find one that meets my exact requirements and I am not experienced enough to know how to alter them.

The Knowledgebase has a good tutorial on this:

 

http://oscommerce.info/kb/osCommerce/Gener..._and_Tricks/252

 

Hope this helped you out,

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Posted
Hi Krislyn,

I would think you want to keep things balanced so you would insert the graphic into your footer.php file.

Look for this code -

 

<td><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #DADDE2;">

<tr>

<td width="150" style="padding:24px; padding-right:0px;"> </td>

 

Insert your image and link code where the blue   is shown above. ;)

You'll have to play with the padding size to keep it consistent.

Thanks for the help that would be great to have it there I just thought it would be more difficult. How do you write the code for the graphic the graphic name is newsletter.gif and I want to link it to url the url I want or create_account.php is there a specific format to write this out ?

 

 

Thanks in advance

Posted

I've been trying for DAYS to get info put into my footer. Noone seems to be able to help.

The problem is I don't have that line in my footer.

<td width="150" style="padding:24px; padding-right:0px;"> </td>

Wally

Posted
I've been trying for DAYS to get info put into my footer. Noone seems to be able to help.

The problem is I don't have that line in my footer.

<td width="150" style="padding:24px; padding-right:0px;"> </td>

Wally

 

I was able to find the line but I can't figure out what exactly to replace the blue with

Posted

wallygreen

 

That code isn't standard so you won't find it. Just put your image/info into a cell and see how it looks. Always make a copy first and you can't go wrong.

 

 

 

krislyn5559

 

Try this, replacing the image names with your own.

 

<?php if (tep_session_is_registered('customer_id')) { echo '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'log_out.jpg', 'Log Out') . '</a>'; } else { echo '<a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'log_in.jpg', 'Log In') . '</a>'; } ?>

Posted
wallygreen

 

That code isn't standard so you won't find it. Just put your image/info into a cell and see how it looks. Always make a copy first and you can't go wrong.

krislyn5559

 

Try this, replacing the image names with your own.

 

<?php if (tep_session_is_registered('customer_id')) { echo '<a href="' . tep_href_link(FILENAME_LOGOFF, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'log_out.jpg', 'Log Out') . '</a>'; } else { echo '<a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'log_in.jpg', 'Log In') . '</a>'; } ?>

 

Thanks everyone for all the help but I think I must be pretty dense I have tried a few differnt thing and the most I seem to be able to accomplish is putting a text link to the correct page even though I am trying for a graphic link. Since I don't really know what I am doing I am not sure what i am doing wrong this is what my code looks like.

<?php echo '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT) . '">' . tep_image(DIR_WS_IMAGES . 'newsletter.gif', 'graphic text') . '</a>'; ?>

can anyone tell me where I am making a mistake ? the text shows up where i want it to and the link goes where I want but no picture.

Posted

I thought you wanted a log in link, soz!

 

There isn't anything wrong with your code so it must be the image. Is newsletter.gif in the images directory? Are you sure it is a gif, not a jpg or png? Does the spelling in the code match the actual image name?

 

It will be something simple like that.

Posted
I thought you wanted a log in link, soz!

 

There isn't anything wrong with your code so it must be the image. Is newsletter.gif in the images directory? Are you sure it is a gif, not a jpg or png? Does the spelling in the code match the actual image name?

 

It will be something simple like that.

 

 

Thanks I didn't realize the graphic had to be uploaded to the images folder I only had it in the public folder once I moved it everything worked great I took it down to re work the size and will have it up in no time.

 

 

Thanks everyone you were a great help !

Archived

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

×
×
  • Create New...