Page 2 of 7 FirstFirst 1234 ... LastLast
Results 11 to 20 of 63
  1. #11
    Join Date
    Aug 2007
    Location
    UK
    Posts
    66
    Plugin Contributions
    0

    Default Re: Sidebox Anywhere mod - Please Help

    I have a place in mind to test it out.

    It is one file that helps create the end result that you would see on the web

  2. #12
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Sidebox Anywhere mod - Please Help

    You haven't said "where" you intend to use it.
    I have no idea what exactly you're trying to do at this point.

    It's already been stated that the Sidebox Anywhere mod is written to be used on PHP pages, not HTML pages. It is a PHP script. It is called from within existing PHP scripts. A simple PHP "require" command is all that's needed.

    Quote Originally Posted by TJR Stores View Post
    The instructions seem to be a little vague to me.
    Code:
    USAGE INSTRUCTIONS:
     *   1. Upload this single_sidebox.php file to the same folder as your Zen Cart files.
     *   2. On a PHP page where you desire to show Zen Cart sidebox content, insert the following code:
     *        $zcSBmodule = 'name.php';  // name of sidebox or centerbox to be displayed (see filenames in the /includes/modules/sideboxes folder) (if not set, uses "whats_new.php")
     *        $zcSBlayout = 'left';      // 'left' or 'right' sidebox template style (if not specified, uses 'left')
     *        require ("path/to/zencart/single_sidebox.php");
    Now can someone tell me what format the require ("path/to/etc should be?
    Translation:
    1. Upload the single_sidebox.php file, as instructed, to the same folder as your Zen Cart files. Make no changes to it.

    2. On a PHP page ... ie: one that has a .php extension, (not a .html extension), insert the 3 lines of code shown. Usually this would be an existing PHP page on your site.

    3. the "path/to/zencart/" would be the server's filesystem path to your Zen Cart store, such as /home/yourname/public_html/store/

    Quote Originally Posted by TJR Stores View Post
    Can anuone help me get this onto a page and in working order too please.
    Sure.
    1. Upload single_sidebox.php as instructed.
    2. Create a call_my_sidebox.php file in your /public_html/ folder.
    3. Put this in it, making appropriate edits to suit your server:
    Code:
    <?php
      $zcSBmodule = 'whats_new.php';
      $zcSBlayout = 'left';
      require ("/home/tjrstores_user_name/public_html/zencart/single_sidebox.php");
    ?>
    4. Run the file in your browser: www.tjrstores.com/call_my_sidebox.php
    Your Zen Cart whats-new sidebox content will show up in the browser.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #13
    Join Date
    Aug 2007
    Location
    UK
    Posts
    66
    Plugin Contributions
    0

    Default Re: Sidebox Anywhere mod - Please Help

    Thank you fr the clear instruction.

    Maybe a slight update to the file in the downloads section to avoind this in future could be a good idea..?

  4. #14
    Join Date
    Aug 2007
    Location
    UK
    Posts
    66
    Plugin Contributions
    0

    Default Re: Sidebox Anywhere mod - Please Help

    OK I got it working on its own separate page, thank you DrByte for that.

    My question is what code do I need to insert it in this section of the page...

    Code:
      <div align="center"><a href="rss_feed.php"><img src="themes/<?=$setts['default_theme'];?>/img/system/rss.gif" border="0" alt="" align="absmiddle"></a></div>
    HERE IS WHERE I WANT TO INSERT THE SIDEBOX
          <div><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="180" height="1"></div></td>
       <td width="100%">
    This piece of code is related to this website www.iwacstores.com/testsite/index.php

    and will place it under the RSS Auctions image on the left hand side.

    BUT I also would need to know if the code used would be suitable to use on any page, as most are similar to this one.

    Thanks
    Rob

  5. #15
    Join Date
    Aug 2007
    Location
    UK
    Posts
    66
    Plugin Contributions
    0

    Default Re: Sidebox Anywhere mod - Please Help

    Wouldn't let me edit the post for some reason..

    would like to add in http://www.tjrstores.com/new_stock.php which is the link to how the side box is displayed.

  6. #16
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Sidebox Anywhere mod - Please Help

    I'd do it like this:
    Code:
      <div align="center"><a href="rss_feed.php"><img src="themes/<?=$setts['default_theme'];?>/img/system/rss.gif" border="0" alt="" align="absmiddle"></a></div>
    <?php
      $zcSBmodule = 'whats_new.php';
      $zcSBlayout = 'left';
      require ("/home/iwac_user_name/public_html/testsite/single_sidebox.php");
    ?>
          <div><img src="themes/<?=$setts['default_theme'];?>/img/pixel.gif" width="180" height="1"></div></td>
       <td width="100%">
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #17
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Sidebox Anywhere mod - Please Help

    Hmmm ... your tjrstores site is different from your iwacstores site.
    They need to be on the same server ... and ideally on the same hosting account.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #18
    Join Date
    Aug 2007
    Location
    UK
    Posts
    66
    Plugin Contributions
    0

    Default Re: Sidebox Anywhere mod - Please Help

    OK.. with the page being on a separate website and server I changed the path/to/
    to this

    http://www.tjrstores.com/single_sidebox.php

    and it worked, but the images of the products are not loading.

    So would I therefore need to create the single_sidebox.php file on the IWAC Stores server for this to work properly?

    or

    Have i missed something in the code?

  9. #19
    Join Date
    Aug 2007
    Location
    UK
    Posts
    66
    Plugin Contributions
    0

    Default Re: Sidebox Anywhere mod - Please Help

    OK

    I tried to add the pages etc onto iwac stores' server and got an error 500 internal server error.


    The sidebox is trying to call for the images in http://iwacstores.com images dir

    of course these images are not there.

    How do I change this?

  10. #20
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Sidebox Anywhere mod - Please Help

    For the styling:

    Add this to the very bottom of the single_sidebox.php file (*after* the closing ?> line):
    Code:
    <style type="text/css"> @import "/includes/templates/tjrwatches/css/stylesheet.css"; </style>
    You may have to even make that an entire URL:
    Code:
    <style type="text/css"> @import "http://www.tjrstores.com/includes/templates/tjrwatches/css/stylesheet.css"; </style>
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 2 of 7 FirstFirst 1234 ... LastLast

Similar Threads

  1. SideBox Anywhere Help
    By Ampboy in forum Addon Sideboxes
    Replies: 4
    Last Post: 5 Sep 2011, 07:28 PM
  2. not getting anywhere PLEASE HELP! ! !
    By mindapolis in forum General Questions
    Replies: 9
    Last Post: 14 Dec 2010, 06:34 PM
  3. More than One Sidebox Anywhere Mod
    By HDuane in forum All Other Contributions/Addons
    Replies: 12
    Last Post: 10 Jan 2010, 12:41 AM
  4. Error when calling Sidebox Anywhere Mod
    By Jerry5763837 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 12 Dec 2009, 03:51 AM
  5. Please anybody please help with Scrolling Sidebox Mod. in IE8
    By hcd888 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 2 Oct 2009, 03:42 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