Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

royally confused


Guest

Recommended Posts

Hi all,

 

I created a new banner I wanted to put up in my header - swap out my current site banner.

 

I uploaded the new image to the same file as the original.

 

I updated the header.php to reflect the new file name.

 

I have cleared cookies and cache.

 

And yet, the new site banner will not show.

 

Am I missing something blantantly obvious?

Link to comment
Share on other sites

This is the relevant part of the header.php file..... All I did was change the file name from images/sitebanner.jpg to images/sitebanner1.jpg - like I said, the new image file is uploaded to the same file as the old one.

 

 if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
 }
?>
<table width="100%" height="150" border="0" cellpadding="0" cellspacing="0">
<tr class="header"><td align="right" valign="middle" background="images/sitebanner1.jpg" bgcolor="#8ABFF5" style="background-repeat: no-repeat"></td>
<td align="right" valign="center"><img src="images/productbanner2.jpg"></td>
</tr>
<tr class="headerNavigation">
<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

<td align="center" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td></tr></table>

Link to comment
Share on other sites

<table width="100%" height="150" border="0" cellpadding="0" cellspacing="0">
<tr class="header"><td align="right" valign="middle" background="images/sitebanner1.jpg" bgcolor="#8ABFF5" style="background-repeat: no-repeat"></td>
<td align="right" valign="center"><img src="images/productbanner2.jpg"></td>

 

 

instead of "sitebanner1.jpg" save the picture thats on your computer to oscommerce.gif then upload it into your catalog/images folder it will overlap the existing folder. or at least it should anyway.

Link to comment
Share on other sites

I had it originally as sitebanner.jpg - the banner you currently see when you go to the store........... so, I have already successfully uploaded a banner to the store, months ago.

 

Now I have a new banner to put up, which I named sitebanner1.jpg. All I needed to do was upload that banner to the file (which I did) and change the image name in the header.php (which I did) - all the steps I did to put up my first banner .... it should show the new banner.

 

I took out oscommerce.gif when I uploaded the first banner months ago. So, your approach no longer exists for me.

Link to comment
Share on other sites

if the original site banner worked just put it back to the way it was, and save the new banner to the original sitebanner.jpg. because if it worked the first time and all your doing is changing the picture and keeping the same name, it should work. if you deleted the oscommerce.gif from just your catalog/images and no where else, than it will still work, so you should try it anyways.

what you may have to do is get a program like php editor or something like that. unfortunatly i cant help you all that much because i too am new at all of this. what i did was take all the default images and saved over them with my own. for example, if you goto your site, right click one of the dumb default pictures, go to properties and see that its in /images folder and named table_barckground_default.gif you just copy the image name and paste it for the name of one of the pictures on your computer. then upload in you /images folder. if you deleted all of the default stuff, i have no clue. there seems to be no one else helping you, so ask around or better yet make a new thread asking the same question. that way someone with more nerd like skills could see your problem and help you out. good luck!

Link to comment
Share on other sites

Well, just out of nothing better to do, I did save the sitebanner1.jpg as sitebanner.jpg and the new image shows.

 

But why in the word, nothing I do to change that area of the header changes? I changed the background color.... doesn't change. I delete images .... doesn't change. It's like it's stuck with the same code I put in a few months back (and hadn't touch until now), and it's doesn't want to change at all. It's weird.

 

I've tried the changes in Admin, via cPanel, and FTP. All the codes SHOW the changes, but nothing shows on the pages themselves when viewing on FireFox, IE, or AOL browsers... just plain odd. I can change other areas of the store and the .html pages just fine. It's just the header doesn't want to. It's possessed I tell ya! *chuckles*

Link to comment
Share on other sites

my idea is that you have changed the chmodd settings on the header.php file--

check if it is read/write or just read--that is all that makes any sense--that would be where I would start anyway

"I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings."

---Margaret Mead---

 

"The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer.

--Ken Kesey"

Link to comment
Share on other sites

chmod settings are the same as per usual - never touched them once I got them set up.

 

I can edit the file. It saves my changes. Just the changes are not reflected on the webpage when you view it from the visitor standpoint.

 

I've edited this file before. *shrugs*

Link to comment
Share on other sites

Now the file isn't being read on my .html site pages - and it's in a different file from the cart ..... both are pointing to the right places. It was reading it a few hours ago, why not now? What the heck is going on????????????????????? I'm doing basic stuff here....

Link to comment
Share on other sites

Ok, I THINK I fixed it.

 

Now, mind you, I haven't done any changes to the site in a few weeks...code-wise.

 

Yet, for some reason, it changed my site from www.mysite.com to just mysite.com and that wasn't how my HTML code was set up my html pages to view the banner. It was looking for www.mysite.com...but everything was pointing to mysite.com. Have no clue why all my paths changed by themselves. Had to go into the configure.php and fix it.

 

All appropriate pages still have the SSL https as needed.

 

SOOOOOooooooooooooooooo weird.

 

However, that still doesn't explain why, in header.php, I changed the code to reflect a slight change in the header....the code was there, just changed values. Let's say from 100 to 125 type thing. And the changes are not being reflected.

 

*hums the twilight zone theme* They are not cruicle (however you spell it) changes, but cosmetic. *sighs*

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...