osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Using a table backround image

This is a discussion on Using a table backround image within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hello I have my store mostly working correctly in secure and non-secure mode. My problem is Im using a backround ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-15-2003, 04:47 AM
New Member
 
Join Date: Sep 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
fragzilla
Default Using a table backround image

Hello

I have my store mostly working correctly in secure and non-secure mode.

My problem is Im using a backround image in one of the tables on my mainpage.tpl. When you switch to secure mode, Non secure warning
comes up and my backround image is missing making the cart
content not visible. Do I need to set the full secure path for this image
on mainpage.tpl? where I placed the image?

Or is this a config setting?
All other "standard" images are fine even the flash banner
I added in the header shows in SSL just not my table backround


I dont have ssl enabled right now because of this error
but here is the site:
http://awesomegiftstogo.com/giftcatalog


msaek : thanks again for this excellent work
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 09-15-2003, 12:59 PM
Lurker
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
wlcmbeck
Default

Use below info when you link or getting your images from mainpage.tpl
<a href="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?></a>
<img src="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>images/your_image.gif" width="25" height="20">

good luck
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 09-15-2003, 09:12 PM
New Member
 
Join Date: Sep 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
fragzilla
Default Can I ????

ok on the above problem

In dremweaver I added another table to the mainpag.tpl and set a backround img. for it. (to achieve the look the client wanted)
So.....In ssl mode I get the non secure items warning.

Can i set up a class for that table in stylesheet.css define the image
and cure my ssl woes? This is the only img Im using outside osc standard.

other than a header img
(which is flash swf embeded with the https: link) correct????

that @!&# ssl lock is eluding me

Does this sound like it will fly?? ... anyone?

wlcmbeck: thanks for that info Ill try that first
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 09-15-2003, 09:52 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,489
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Just use a relative link to the image and you will avoid this problem.

Intstead of putting a full url in the img src tag or in the stylesheet, just use a relative path.

example:

dont use : http://mysite.com/images/image.jpg

use : images/image.jpg
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 09-16-2003, 06:17 AM
New Member
 
Join Date: Sep 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
fragzilla
Default

Ive tried a couple of different ways, but still got the warning in SSL

So I guess I need to find out which items are secure and which are not.

Is there a way to find out which items are non-secure?

So Im not chasing the wrong image

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 09-16-2003, 11:06 AM
New Member
 
Join Date: Sep 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
fragzilla
Default Now I did it

after trying all of the "fixes" for SSL in the forums testing and then put it back to orig ive found that the cart
will not even carry contents over to ssl with yes or no on the secure items warning.
I dont quite understand what happened I have a plain - jane osCommerce
store on the same shared server and have no problems

BTW this works fine on the plain shop, contents carry over and orders complete in SSL mode no probs

my host had me change this
Code:
if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
in application top.php to cure my original ssl conn problems with the
plain shop (my first osc shop). If this helps anyone

Now this shop I tried to add a few foo-fooey backround pics and
Blam it blew up on me.

unfortunately its a live store that I was rushed to put up and Im trying my best to get the @#$%! Lock to show up

Now it wont even remember your cart contents

I might go with a plain style cart in SSL mode (because I need a copy of the shop in the secure area)to stop all
these shenanigans
with secure and non secure items
eg.. table backround Images
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Products image missing popup image islander osCMax v2 Installation issues 7 08-10-2005 12:30 PM
table file flexx osCommerce 2.2 Modification Help 1 05-19-2005 05:15 AM
Backround image wont fill page acrylictribesmen osCMax v1.7 Discussion 4 07-06-2004 03:42 AM
.css cant seem to fix table Gus osCommerce 2.2 Modification Help 3 11-21-2003 07:32 AM
Add new fields/table to product table Anonymous osCommerce 2.2 Modification Help 0 10-21-2002 04:23 AM


All times are GMT -8. The time now is 09:46 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax