Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Open to Sugggestions how to fix Graphics


SpinerC

Recommended Posts

I want to add some pictures for the visual group to my site. I changed the images, once uploaded to 777 and used <img src="\images\name.jpg"> and all I get is little boxes with the X in it.

 

The pics are the right size for the page etc... but, nothing seems to be working.

 

http://www.diamondsahara.ca/questanswer.php

 

I have also tried the long version of the code with http and that didn't work either.

 

I want to add some images to the index page as well so if someone would be so kind as to point me in the ways of my error, I would be grateful! Thank you!

 

Sincerely

Char

Link to comment
Share on other sites

try using forward slashes:

 

<img src="\images\name.jpg">

 

to this:

 

<img src="/images/name.jpg">

 

jon

 

Tried that too and nope, no go.

 

Is there anywhere else other then the:

 

/home/content/M/C/D/MCDiamond/html//includes/languages/english

 

In the file manager that I have to make sure it is right? I found that the other day I had to go into another folder and make the same changes for a script to take.

 

Thanks!

Char :)

Link to comment
Share on other sites

this is the current file path to the images you linked;

/\images\wrist.jpg

it should be /images/wrist.jpg

 

Hello! Thanks for the reply but, I am not sure where you saw I have a link that you showed me? I am a bit confused.

 

http://www.diamondsahara.ca/images/wrist.jpg

 

That's the code that shows up when I right click on the picture that is not there that is suppose to be there lol! :)

 

So I am still not sure where the error is.

 

Thanks Brooke!

Char :)

Link to comment
Share on other sites

Hello! Thanks for the reply but, I am not sure where you saw I have a link that you showed me? I am a bit confused.

 

http://www.diamondsahara.ca/images/wrist.jpg

 

That's the code that shows up when I right click on the picture that is not there that is suppose to be there lol! :)

 

So I am still not sure where the error is.

 

Thanks Brooke!

Char :)

when i right click the broken image and choose "view image" this is the url it takes me to

http://www.diamondsahara.ca/%5Cimages%5Cwrist.jpg

 

Not Found

The requested URL /\images\wrist.jpg was not found on this server.

 

 

if you view source your code is <img src="\images\wrist.jpg">

you need forward slashes not back slashes and no slash before images, like this;

 

<img src="images/wrist.jpg">

What? Yeah, I can do that.

Link to comment
Share on other sites

when i right click the broken image and choose "view image" this is the url it takes me to

http://www.diamondsahara.ca/%5Cimages%5Cwrist.jpg

 

Not Found

The requested URL /\images\wrist.jpg was not found on this server.

if you view source your code is <img src="\images\wrist.jpg">

you need forward slashes not back slashes and no slash before images, like this;

 

<img src="images/wrist.jpg">

 

:'( I did as you have written here Brooke and again, just the x showing up in a box. Anything else we can try? I can't get any graphics on the site by linking to codes, everything else works just fine though.... with the exception of paypal but, I will work on that another day LOL!

 

I appreciate the help, it has been a while since I have had to use any codes so it is like blowing the dust off :)

 

Thanks!

Char :D

Link to comment
Share on other sites

try using forward slashes:

 

<img src="\images\name.jpg">

 

to this:

 

<img src="/images/name.jpg">

 

jon

 

oh geez how did I NOT notice the first slash and advise you remove it. Sorry!

 

<img src="images/name.jpg">

It's all just ones and zeros....

Link to comment
Share on other sites

:'( I did as you have written here Brooke and again, just the x showing up in a box. Anything else we can try? I can't get any graphics on the site by linking to codes, everything else works just fine though.... with the exception of paypal but, I will work on that another day LOL!

 

I appreciate the help, it has been a while since I have had to use any codes so it is like blowing the dust off :)

 

Thanks!

Char :D

in your original post you mention once uploaded you changed to 777, i assumed you were referring to the images folder, but did you set permissions on your images to 777? if so, try re-uploading those images and dont mess with the permissions on them.

What? Yeah, I can do that.

Link to comment
Share on other sites

Hi Charlene

 

If your adding images directly to a php file then you should not use the html, the correct way to add an image to a php page is

 

<?php echo tep_image(DIR_WS_IMAGES . 'my_image.gif', 'my ALT text', '100', '150');?>

 

Hope this helps

 

Mark

Lifes a bitch, then you marry one, then you die!

Link to comment
Share on other sites

oh geez how did I NOT notice the first slash and advise you remove it. Sorry!

 

<img src="images/name.jpg">

 

LOL No problem Jonquil, :D I am learning to be VERY patient when I am changing things in oscommerce. Just worked out the bugs with the paypal payment plan and it works! Yippee! now back to the graphics lol!

 

 

in your original post you mention once uploaded you changed to 777, i assumed you were referring to the images folder, but did you set permissions on your images to 777? if so, try re-uploading those images and dont mess with the permissions on them.

Thanks Brooke :D but, my skills are not quite what they use to be, how would I go about doing this? All I know is that when I uploaded it from my files through Filezilla into the image folder on my server, I changed it then. Hope that helps to understand what I did.

 

Hi Charlene

 

If your adding images directly to a php file then you should not use the html, the correct way to add an image to a php page is

 

<?php echo tep_image(DIR_WS_IMAGES . 'my_image.gif', 'my ALT text', '100', '150');?>

 

Hope this helps

 

Mark

 

Hi Mark! :D wow! you are speaking a whole new language to me lol! K, I am in the page via file manager all the way down through language then into the file where I can actually type what I want to say etc... and then just save it. I think you mean the other file that is available through the Admin folder? Yes? or am I still out to lunch :blink:

 

I appreciate all the help and patience you all have extended to me, thank you soooo much!

 

Sincerely

Char :D

Link to comment
Share on other sites

Thanks Brooke :D but, my skills are not quite what they use to be, how would I go about doing this? All I know is that when I uploaded it from my files through Filezilla into the image folder on my server, I changed it then. Hope that helps to understand what I did. [/b]

re-upload the images and see if they work then. you shouldnt be changing any permissions on images. just re-upload them and see if they appear then.

What? Yeah, I can do that.

Link to comment
Share on other sites

Whhhooooaaaaa there!

 

Dont use the osc file manager, that is probably what is causing all this trouble.

 

Use ftp to download the files to your computer, edit the file in either wordpad or a phpeditor and then reupload using ftp.

 

I am presuming you are talking about your questanswer.php file in your root folder yes? If so post that file here for me to have a look at.

 

Mark

Lifes a bitch, then you marry one, then you die!

Link to comment
Share on other sites

re-upload the images and see if they work then. you shouldnt be changing any permissions on images. just re-upload them and see if they appear then.

Hi Brooke, I should have mentioned, sorry... that is why I changed the permissions, all the other graphics are set to a 777 and the codes in Filezilla all matched in permission so, when it didn't work as uploaded, that was when I converted it but, I will try again in a sec and see if it changes now with the no "/" before images.

 

Thanks a bunch for the input! :D

 

Whhhooooaaaaa there!

 

Dont use the osc file manager, that is probably what is causing all this trouble.

 

Use ftp to download the files to your computer, edit the file in either wordpad or a phpeditor and then reupload using ftp.

 

I am presuming you are talking about your questanswer.php file in your root folder yes? If so post that file here for me to have a look at.

 

Mark

 

Mark, here is where I am when I do my editing etc...

File Manager down to the /html//includes/languages/english

 

Then into the questanswer page.

 

Here is what it looks like:

 

<?php

/*

$Id: shipping.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'Question & Answer');

define('HEADING_TITLE', 'Question & Answer');

 

define('TEXT_INFORMATION', '<font color="000 099"><center><b><font size="2">Do you use beading thread on Diamond Sahara Manufactured Jewelry?</font></center></b>

NO! We use Tiger Tail, Beadalon and other brands of Nylon Coated Stainless Steel, Stainless Cable or Nylon Coated Sterling Silver Beading Wire. It is coated so it does not damage the Crystals or Beads and is constructed of the same material as large construction cables. That\'s is why we are confident when we say, we are creating Heirloom One of a Kind Pieces and can make the Guarantee we do.

<br>

<br>

<center><b><font size="2">What if my Diamond Sahara Manufactured Jewelry broke 95 days after my purchase?<br> Will Diamond Sahara do anything for me?</font></b>

<br>

YES! What the Warrantee covers is cast in stone, the actual time is a bit more flexible. Should something happen beyond the date of the Warrantee, contact us via E-mail and we will do our very best to accommodate you. It is usually a minor fee to cover shipping and supplies.

<br>

<br>

<center><b><font size="2"> What if my purchase is a gift for Christmas but, I am buying it in October? <br>When does the Warrantee start?</font> </b></center>

December 25th of course! If is a gift for Mother\'s Day, Valentine\'s Day, Wedding etc... there is a section when you complete your order that allows for "comments". Please place that information there and it will also be recorded on your invoice. What if you forget? Just send us an e-mail and we can manually add it to the invoice prior to shipping.

<br>

<br>

<b><center><font size="2">I placed my order on line and I need to add to it, can I do that?</font></b>

<br>

Maybe. If you have received an "Pending" notification, that means we still have the order. Send us an e-mail with the word <b>URGENT</b> in the Subject Line, in Caps and tell us the item number and quantity of what you wanted to add. We will instruct you how to pay for that individual item, so you are not charged shipping and IF you have caught the package in time. We will do our best!

<br>

<br>

<center><b><font size="2">I am getting married and would like a design for myself and my bridal party.<br>Would you be able to do that? Are there any fees?</font></b></center>

Depending on the time frame, such as the date of your wedding, how many items you require, we may be able to accommodate your request. Each of these requests are handled on an individual basis. We require an e-mail with the following particulars:

<br>

<br>1. Date of the Wedding

<br>2. Date you require items delivered

<br>3. Breakdown of how many designs (different or same)

<br>4. Color choices

<br>5. Sizes (wrist, nect etc..)

<br>6. Anything else you deem relavent

<br><br>

<b>Please Note,</b> we normally charge a 15 percent surcharge on individual custom orders. In the case of a Bridal Party of more then 3 people <i>(example - Bride, Maid of Honor and Flower Girl)</i>, the custom fee is reduced to only 10 percent per piece. The surcharge is to cover our additional expenses for custom orders.

<br>

<br>

<b><center><font size="2">How do you measure the Dangle of an earring?</font></center></b>

Great Question! We actually have a little tool we use, one part at the end or bottom of the earring and the other, at the point where it attaches to the Earwire. We do not include the Earwires in our measurements. Here is a picture illustration, this Earring would be approx 20mm in Dangle. Remember also, Dangle Earrings give the illusion of a longer neck or height. Short hair or long, both can wear a dangle nicely!

<br>

<br>

<center>

<img src="images/dangle.jpg">

</center>

<br>

<br>

<b><center><font size="2">How do I measure to make sure a bracelet or watch will fit me properly?</font></center></b>

Even if you ordered an incorrect size, or the one on display is the wrong size, we can custom it for you. The fee is a flat rate of 15 percent. E-mail communication is required prior to the order. Measurements are very easy to explain. If you look at your wrist, between your hand and your arm, there is a bump, a small bone that sticks up on the outer side of the wrist. If you take a tape measure and wrap it around, snug to that area, that is the measurement we require. As illustrated in the photo below. If your measurement is 6.5 inches, you could wear a 7 inch bracelet comfortably. The rule of thumb, you need at least half an inch of space, however, you can go up to three quarter\’s of an inch and it would still be a good fit. Another good way to know if an item is going to be a good fit? Take something you already own, measure it and whala! You have YOUR fit!

<br><br>

<center>

<img src="images/wrist.jpg">

</center>

<br>

<br>

<center>

<img src="images/tape.jpg">

<br><b>Example of How to Measure Your Jewelry<br>We use this method for our measurements.</b></center></font>

<br><br>

<center></b><font color="330 0CC"> Any and all other questions we have not covered are welcomed! <br>Someone else is probably asking themself the same thing.</font></b></center>

<br>

<br>');

?>

 

Now if it the OTHER php file you want to see..... hang tight and I will post it after this one due to the length.

 

Thanks for the help I sooooooooo appreciate all of you helping me!

Char :D

Link to comment
Share on other sites

Mark, here is the other Q&A page which I think is the one you want to see:

 

<?php

/*

$Id: shipping.php,v 1.22 2003/06/05 23:26:23 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_Q_A);

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_Q_A));

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

<!-- body //-->

<table border="0" width="100%" cellspacing="3" cellpadding="3">

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

<td class="pageHeading" align="right"></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="main"><?php echo TEXT_INFORMATION; ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

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

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

<!-- body_text_eof //-->

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table></td>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

<br>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

 

Thanks again!

Char :D

Link to comment
Share on other sites

Hi Brooke,

 

K I renamed the file, just added a 1 to the end of it cause, I noticed sometimes it (oscommerc) doesn't want to let go of an image when you give it to it. Had that happen with a pair of earrings, no matter how many times I wanted to change the image, it hung on to the last one grrrrrrrr! lol!

 

I also did not alter it after uploading and didn't put the firs slash in and made sure the only one, was in the correct direction, no go :'(

 

Thanks for trying though.

 

Sincerely

Char :D

Link to comment
Share on other sites

Are you using OSC's File Manager to edit files? This is extremely buggy and causes all sorts of problems with files. Use FTP to transfer files instead.

 

I guess I am, I haven't had any problems beyond it wanting to hang on to old files and in that case, I usually keep 2 backups on hand, make a copy of what I want, then delete the file completely, and redo it. If that makes sense.

 

Yes, I guess I am using the file manager to edit my files, thus far, no real problems and I don't know any other method :huh:

 

It is the graphics I am having problems with, just getting them to show up on a file :'( and I needssssssss them lol!

 

Thanks!

Char :)

Link to comment
Share on other sites

I guess I am, I haven't had any problems beyond it wanting to hang on to old files and in that case, I usually keep 2 backups on hand, make a copy of what I want, then delete the file completely, and redo it. If that makes sense.

 

Yes, I guess I am using the file manager to edit my files, thus far, no real problems and I don't know any other method :huh:

 

It is the graphics I am having problems with, just getting them to show up on a file :'( and I needssssssss them lol!

 

Thanks!

Char :)

im sorry, i didnt catch earlier that you were using the osc file manager to edit your pages. thats most likely the source of your problems. you need to get an FTP program, download the files to your computer, edit them on your computer with a text editor, then upload them back via FTP.

What? Yeah, I can do that.

Link to comment
Share on other sites

im sorry, i didnt catch earlier that you were using the osc file manager to edit your pages. thats most likely the source of your problems. you need to get an FTP program, download the files to your computer, edit them on your computer with a text editor, then upload them back via FTP.

 

That's ok Brooke, thanks for trying, I am do have the FTP uploader, Filezilla, but, don't know how to edit the pages unless it can be done in something like notepad? Then save it under the same name and upload? Would that work?

 

I haven't had to do anything since about 2000 when I built a webpage then.... since then, I got lazy :blush: and started to use many forms of automated goodies that you really don't have think much, just point, drag and drop lol!

 

All of you folks have been just great at suggestions and guidence! Thanks from an ole gal! ;)

 

Sincerely

Char :D

 

NEED sleep! Been at this now for about 2 weeks running from 7:30AM to 2AM most nights, crashed a couple lol! :P

Link to comment
Share on other sites

Make sure that your File Transfer settings in FileZilla are set to Auto Detect. If I surf to the image directly - I get a piece of text instead of an image:

 

http://diamondsahara.ca/images/dangle1.jpg

 

What do you mean you don't know any other method other than File Manager? You said earlier you have been using FileZilla to FTP your images up to your webserver???

 

Edit your file on your PC (use Notepad if you have to - or a decent text editor (NOT MS Word!) and then use FileZilla to FTP it up to your server. Job done. Whatever you do - take the advice you've been given on here by more than one person and stop using OSC's File Manager. It's extremely buggy and causes lots of problems.

Link to comment
Share on other sites

Make sure that your File Transfer settings in FileZilla are set to Auto Detect. If I surf to the image directly - I get a piece of text instead of an image:

 

http://diamondsahara.ca/images/dangle1.jpg

 

What do you mean you don't know any other method other than File Manager? You said earlier you have been using FileZilla to FTP your images up to your webserver???

 

Edit your file on your PC (use Notepad if you have to - or a decent text editor (NOT MS Word!) and then use FileZilla to FTP it up to your server. Job done. Whatever you do - take the advice you've been given on here by more than one person and stop using OSC's File Manager. It's extremely buggy and causes lots of problems.

Hi Jason :D

 

K, this is what I do....

 

I make a graphic in my JASC Program, I save it as a jpg, then use the FileZilla to upload it, that is all I know how to do with FileZilla. I'm sorry maybe I am not explaining myself very well.

 

I will definitely take the advice and not use the file manager, I have a friend, he is out of town right now and he helps me tons! with the site. I will check with him when he gets back.

 

Problems are one thing I don't need, especially this close to my Grand Opening, I am doing a bit of a kick off in local advertising and need everything to run smoothly.

 

Thanks again! And I mean that.

 

Sincerely

Char :)

Link to comment
Share on other sites

Hi Jason! :D

 

K, I didn't know you could configure FileZilla do to what you just gave me, I set up the Notepad for editing and configured it to auto detect.

 

NOW this makes sense to me, sorry I have been running for about 2 and a bit weeks on about 5 hour sleep a day, and obviously, I need more :)

 

Thanks more then I can say, I appreciate your help and patience.

 

Sincerely

Char :)

Link to comment
Share on other sites

I make a graphic in my JASC Program, I save it as a jpg, then use the FileZilla to upload it, that is all I know how to do with FileZilla. I'm sorry maybe I am not explaining myself very well.

This is not rocket science.... FTP works both ways - you can upload images and files from your computer to your webserver and vice versa. Just drag and drop between the two - it's quite simple.

 

Drag all your store files and folders from your webserver (the big pane on the right of filezilla) to your computer (the big pane on the left of filezilla). Open the file you want to edit in Notepad. Save it. Go back to Filezilla, surf to that file - and drag it across to your webserver.

 

Congratulations - you've just FTP'd your first file....

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...