Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2010
    Location
    County Down, Northern Ireland
    Posts
    302
    Plugin Contributions
    0

    Default 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>
    ');

    ?>

  2. #2
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default 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" /> <link rel="stylesheet" type="text/css" href="includes/templates/ZCT Sports 03/css/stylesheet.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/ZCT Sports 03/css/stylesheetORIGINALOCT2010.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/ZCT Sports 03/css/stylesheet_betterCategoriesEzInfo.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/ZCT Sports 03/css/stylesheet_categories_dressing.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/ZCT Sports 03/css/stylesheet_contest.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/ZCT Sports 03/css/stylesheet_css_buttons.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/ZCT Sports 03/css/stylesheet_lightbox.css" /> <link rel="stylesheet" type="text/css" media="print" href="includes/templates/ZCT Sports 03/css/print_stylesheet.css" /> <script type="text/javascript" src="includes/templates/ZCT Sports 03/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" /> <link rel="stylesheet" type="text/css" href="includes/templates/ZCT Sports 03/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" />
    Mark
    Hare Do

  3. #3
    Join Date
    Apr 2010
    Location
    County Down, Northern Ireland
    Posts
    302
    Plugin Contributions
    0

    Default 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 ?

  4. #4
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: paypal logos ad on side box

    <link rel="stylesheet" type="text/css" href="includes/templates/ZCT Sports 03/css/stylesheetORIGINALOCT2010.css" />

    So this tells you that the .ccs file is here:
    Mark
    Hare Do

  5. #5
    Join Date
    Apr 2010
    Location
    County Down, Northern Ireland
    Posts
    302
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,179
    Plugin Contributions
    11

    Default 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.

  7. #7
    Join Date
    Apr 2010
    Location
    County Down, Northern Ireland
    Posts
    302
    Plugin Contributions
    0

    Default 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.

  8. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,179
    Plugin Contributions
    11

    Default 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.

  9. #9
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,179
    Plugin Contributions
    11

    Default 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.

 

 

Similar Threads

  1. Replies: 0
    Last Post: 10 Jun 2010, 09:41 AM
  2. Adding Verified and credit card logos each side of logo
    By chris32882 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 21 Oct 2008, 05:11 PM
  3. Need to change manufacturer side box, not normal side box
    By paha in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 12 Jul 2008, 01:23 AM
  4. Change colour of 'sponsors' side box / enable 'featured' side box
    By flatlander in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 29 May 2008, 07:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR