Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2013
    Location
    Southampton, United Kingdom
    Posts
    40
    Plugin Contributions
    0

    Default Scam advisor logo and link into sidebox

    Hi I need to put this code into a seperate sidebox and tried pasting the html into blank_sidebox. When I turned the box on i lost everything below the header. site is bikeporndotcodotuk.

    Any thoughts on why?


    <div>
    <div id='sealImage' imageSize='110' sealType='1'></div>
    <script language="javascript" src='//seal.scamadviser.com/seal.js'></script>
    </div>
    <script language="javascript" src='//seal.scamadviser.com/sealCheck.php'></script>

    Regards

    Phil
    Last edited by Phil Lomas; 16 May 2013 at 04:18 PM. Reason: forgot to put code in

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Scam advisor logo and link into sidebox

    There's nothing inherently wrong with the code you posted; therefore, there must have been an error in the way you put it into the blank sidebox file. If you got a partial blank page, that indicates a PHP fatal error, which would have generated an error log. Look in your Zen Cart /cache/ or /logs/ folder, depending on your Zen Cart version, for the latest mydebug file and post it here. The other information requested in the Posting Tips may also be helpful.

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: Scam advisor logo and link into sidebox

    Instead of starting with blank sidebox, maybe this would be a better starting point:

    http://www.zen-cart.com/downloads.php?do=file&id=265
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Feb 2013
    Location
    Southampton, United Kingdom
    Posts
    40
    Plugin Contributions
    0

    Default Re: Scam advisor logo and link into sidebox

    Hi swguy

    This looks like a better option however is php.

    do you know if the code could be easily integrated.

    Regards

    Phil

  5. #5
    Join Date
    Feb 2013
    Location
    Southampton, United Kingdom
    Posts
    40
    Plugin Contributions
    0

    Default Re: Scam advisor logo and link into sidebox

    Hi

    Nothing in the error logs. If I changed the sidebox to the righthand side the left hand boxes then appear. But still can't work it out.

    Regards

    Phil

    Quote Originally Posted by gjh42 View Post
    There's nothing inherently wrong with the code you posted; therefore, there must have been an error in the way you put it into the blank sidebox file. If you got a partial blank page, that indicates a PHP fatal error, which would have generated an error log. Look in your Zen Cart /cache/ or /logs/ folder, depending on your Zen Cart version, for the latest mydebug file and post it here. The other information requested in the Posting Tips may also be helpful.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Scam advisor logo and link into sidebox

    Only a PHP error can make output stop at a certain point. If the output is just getting misdirected after that point, it will be apparent from View Source. Can you reactivate the sidebox for a bit so I can look at the source code? The version info and other Posting Tips questions may give clues, and we probably can't help without knowing more. Posting the complete blank sidebox file (whichever one you put your custom content in) will also help diagnose the issue.

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Scam advisor logo and link into sidebox

    You can always put HTML output content into a PHP file. There is nothing tricky about it, but you do need to understand how PHP to HTML output works. That is something you can look up online if you need to.

  8. #8
    Join Date
    Feb 2013
    Location
    Southampton, United Kingdom
    Posts
    40
    Plugin Contributions
    0

    Default Re: Scam advisor logo and link into sidebox

    Hi GJH42 entire php file is below


    <?php
    /**
    * blank sidebox - allows a blank sidebox to be added to your site
    *
    * @package templateSystem
    * @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: blank_sidebox.php 2007-05-26 kuroi $
    */

    $content = '';
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';

    // Replace the text and HTML tags between the apostophes on lines 19 and 20.
    // Use as many or as few lines using this model as you need for your custom content.
    // If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
    // If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
    $content .= '<p>' . TEXT_BLANK_SIDEBOX . '</p>';
    $content .= '
    <div>
    <div id='sealImage' imageSize='110' sealType='1'></div>
    <script language="javascript" src='//seal.scamadviser.com/seal.js'></script>
    </div>
    <script language="javascript" src='//seal.scamadviser.com/sealCheck.php'></script>';

    $content .= '</div>';
    ?>

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Scam advisor logo and link into sidebox

    You have mixed single and double quotes inside the single-quoted content string. The single quotes in the content are terminating the string and causing a PHP error, which would be in the error log if you have one. What version of Zen Cart do you have? Older versions do not have debug logging built in. If this is the case for you, you urgently need to upgrade to a newer version or else you will get hacked by the first hacker who finds your site. The older versions (v1.3.8a and older) have a serious security vulnerability that was discovered (and patched) in June 2009.

    For your content, either replace the single quotes with double quotes, or escape them like this: \' .
    PHP Code:
    $content .= '
    <div>
    <div id='
    sealImage' imageSize='110' sealType='1'></div>
    <script language="javascript" src='
    //seal. 
    PHP Code:
    $content .= '
    <div>
    <div id="sealImage" imageSize="110" sealType="1"></div>
    <script language="javascript" src="//seal.(etc...) 
    PHP Code:
    $content .= '
    <div>
    <div id=\'sealImage\' imageSize=\'110\' sealType=\'1\'></div>
    <script language="javascript" src=\'//seal.(etc...) 

  10. #10
    Join Date
    Feb 2013
    Location
    Southampton, United Kingdom
    Posts
    40
    Plugin Contributions
    0

    Default Re: Scam advisor logo and link into sidebox

    Hi

    Version 1.5.1

    Thanks the \ have sorted it. I read about them but ran the code through a php checker and it passed so thought it was something else. Also couldn't see the \'s on another site that I looked at the code for. Anyway it is sorted and thanks for your help

    Phil

 

 

Similar Threads

  1. v151 I want to add my SSL logo into a sidebox
    By 82dewey in forum General Questions
    Replies: 2
    Last Post: 23 Jun 2013, 05:34 PM
  2. Make header logo image into link?
    By kirkbross in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 22 Feb 2010, 01:40 AM
  3. Replies: 1
    Last Post: 8 Dec 2008, 05:18 PM
  4. Extending Logo into Sidebox
    By Michael V in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 29 Sep 2008, 07:40 PM
  5. Replies: 0
    Last Post: 5 Nov 2007, 02:27 AM

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