Forums / Addon Sideboxes / paypal logos ad on side box

paypal logos ad on side box

Views: 1,714

Results 1 to 9 of 9
15 May 2011, 4:58 PM
#1
irishshopper avatar

irishshopper

Zen Follower

Join Date:
Apr 2010
Location:
County Down, Northern Ireland
Posts:
302
Plugin Contributions:
0

paypal logos ad on side box

http://www.irishshopper.com

I have added in the PayPal credit cards side box and also included inside this a similar image for Nochex.

I need to get rid of at least 1 blank line at the top of the side box before he first image appears and similarly at least one line from the bottom after the Nochex image.

<?php /** * paypal creditcards sidebox - allows a sidebox to be added to your site displaying the paypal creditcards acceptance logo with a "no paypal account required" statement beneath the logo. * * @package templateSystem * @copyright 2010 Tom Fowler [email protected] * @copyright 2007 Kuroi Web Design * @copyright Portions Copyright 2003-2007 Zen Cart Development Team * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: paypal_creditcards_sidebox.php 2010-09-21 Tom Fowler $ */ define('BOX_HEADING_PAYPAL_CREDITCARDS_SIDEBOX', 'PAYPAL / NOCHEX'); define('TEXT_PAYPAL_CREDITCARDS_SIDEBOX', '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=xpt/Marketing/popup/OLCWhatIsPayPal-outside" target="_blank"><img src= "includes/includes/images/paypal14.gif" alt="IrishShopper accepts PayPal" width="117" height="136"></img></a> <br> <img src= "includes/includes/images/nochex.gif" alt="IrishShopper accepts NoChex" width="117" height="132"></img><br> <b><center><FONT color="red">NO PAYPAL / NOCHEX<br>ACCOUNT NEEDED</font></center></b><br> '); ?>
15 May 2011, 5:11 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Re: paypal logos ad on side box

First of all when I click view source to figure out why your stylesheets are doubling...

<link rel="stylesheet" type="text/css" href="[includes/templates/ZCT Sports 03/css/style\_imagehover.css](http://www.zen-cart.com/forum/view-source:http://www.irishisbest.com/includes/templates/ZCT%20Sports%2003/css/style_imagehover.css)" /> <link rel="stylesheet" type="text/css" href="[includes/templates/ZCT Sports 03/css/stylesheet.css](http://www.zen-cart.com/forum/view-source:http://www.irishisbest.com/includes/templates/ZCT%20Sports%2003/css/stylesheet.css)" /> <link rel="stylesheet" type="text/css" href="[includes/templates/ZCT Sports 03/css/stylesheetORIGINALOCT2010.css](http://www.zen-cart.com/forum/view-source:http://www.irishisbest.com/includes/templates/ZCT%20Sports%2003/css/stylesheetORIGINALOCT2010.css)" /> <link rel="stylesheet" type="text/css" href="[includes/templates/ZCT Sports 03/css/stylesheet\_betterCategoriesEzInfo.css](http://www.zen-cart.com/forum/view-source:http://www.irishisbest.com/includes/templates/ZCT%20Sports%2003/css/stylesheet_betterCategoriesEzInfo.css)" /> <link rel="stylesheet" type="text/css" href="[includes/templates/ZCT Sports 03/css/stylesheet\_categories\_dressing.css](http://www.zen-cart.com/forum/view-source:http://www.irishisbest.com/includes/templates/ZCT%20Sports%2003/css/stylesheet_categories_dressing.css)" /> <link rel="stylesheet" type="text/css" href="[includes/templates/ZCT Sports 03/css/stylesheet\_contest.css](http://www.zen-cart.com/forum/view-source:http://www.irishisbest.com/includes/templates/ZCT%20Sports%2003/css/stylesheet_contest.css)" /> <link rel="stylesheet" type="text/css" href="[includes/templates/ZCT Sports 03/css/stylesheet\_css\_buttons.css](http://www.zen-cart.com/forum/view-source:http://www.irishisbest.com/includes/templates/ZCT%20Sports%2003/css/stylesheet_css_buttons.css)" /> <link rel="stylesheet" type="text/css" href="[includes/templates/ZCT Sports 03/css/stylesheet\_lightbox.css](http://www.zen-cart.com/forum/view-source:http://www.irishisbest.com/includes/templates/ZCT%20Sports%2003/css/stylesheet_lightbox.css)" /> <link rel="stylesheet" type="text/css" media="print" href="[includes/templates/ZCT Sports 03/css/print\_stylesheet.css](http://www.zen-cart.com/forum/view-source:http://www.irishisbest.com/includes/templates/ZCT%20Sports%2003/css/print_stylesheet.css)" /> <script type="text/javascript" src="[includes/templates/ZCT Sports 03/jscript/jscript\_imagehover.js](http://www.zen-cart.com/forum/view-source:http://www.irishisbest.com/includes/templates/ZCT%20Sports%2003/jscript/jscript_imagehover.js)"></script> </head>

This two are fighting one another...

<link rel="stylesheet" type="text/css" href="[includes/templates/ZCT Sports 03/css/stylesheet.css](http://www.zen-cart.com/forum/view-source:http://www.irishisbest.com/includes/templates/ZCT%20Sports%2003/css/stylesheet.css)" /> <link rel="stylesheet" type="text/css" href="[includes/templates/ZCT Sports 03/css/stylesheetORIGINALOCT2010.css](http://www.zen-cart.com/forum/view-source:http://www.irishisbest.com/includes/templates/ZCT%20Sports%2003/css/stylesheetORIGINALOCT2010.css)" />

Figure out which one you want to use and name one like this:

<link rel="stylesheet" type="text/css" href="[includes/templates/ZCT Sports 03/css/stylesheetORIGINALOCT2010.css.old](http://www.zen-cart.com/forum/view-source:http://www.irishisbest.com/includes/templates/ZCT%20Sports%2003/css/stylesheetORIGINALOCT2010.css)" />

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

16 May 2011, 12:17 AM
#3
irishshopper avatar

irishshopper

Zen Follower

Join Date:
Apr 2010
Location:
County Down, Northern Ireland
Posts:
302
Plugin Contributions:
0

Re: paypal logos ad on side box

Thanks for this. I see now what you mean. I too get the two CSS files listed when I do a View Source but cannot find the actual file they are both listed in despite doing various searches in the Developers Tool Kit.

Where can I go to delete the ORIGINAL 2010 CSS line ?

16 May 2011, 12:18 AM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Re: paypal logos ad on side box

<link rel="stylesheet" type="text/css" href="[includes/templates/ZCT Sports 03/css/stylesheetORIGINALOCT2010.css](http://www.zen-cart.com/forum/view-source:http://www.irishisbest.com/includes/templates/ZCT%20Sports%2003/css/stylesheetORIGINALOCT2010.css)" />

So this tells you that the .ccs file is here:
> includes/templates/ZCT Sports 03/css/stylesheetORIGINALOCT2010.css

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

16 May 2011, 4:55 PM
#5
irishshopper avatar

irishshopper

Zen Follower

Join Date:
Apr 2010
Location:
County Down, Northern Ireland
Posts:
302
Plugin Contributions:
0

Re: paypal logos ad on side box

Yes I known where that file is located OK on the server but what I need to know is exactly which file this coding is in so I can go in and delete the entry for the reference to the ORIGINAL2010.css file.

stylesheetORIGINALOCT2010.css

but it cannot be find despite me seeing in in View Source

16 May 2011, 5:16 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,848
Plugin Contributions:
17

Re: paypal logos ad on side box

Editing php code is NOT a good idea when dealing with stylesheet insertion.
You simply need to name the file something other than *****.css and Zen Cart will stop loading it.
Like Haredo said, add .old to the end of the file and it will not load. However, it would be better for security to name it something other than .old or .bak. I generally use my inititials. I can find it easier if I need it and it is less likely to "expose" data to the world.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

16 May 2011, 5:48 PM
#7
irishshopper avatar

irishshopper

Zen Follower

Join Date:
Apr 2010
Location:
County Down, Northern Ireland
Posts:
302
Plugin Contributions:
0

Re: paypal logos ad on side box

Again thank you for your help and advice. Have put XX at start of name and added at end .old but still no change to the text links in the left side boxes.

Thank you.

16 May 2011, 5:50 PM
#8
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,848
Plugin Contributions:
17

Re: paypal logos ad on side box

Fixing the double css would only solve the stylesheets from fighting each other. Now, you can work on the other problem without wondering which css to fix.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

16 May 2011, 5:57 PM
#9
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,848
Plugin Contributions:
17

Re: paypal logos ad on side box

You can create a new call at the end of the stylesheet something like> #paypalcreditcardssideboxContent {

padding-top: 0px;
}and adjust the 0 to the negative or positive to make it work OR...
Modify the file for the sidebox as it has several p calls that are controlling things incorrectly including the two empty p tags at the end of the box.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com