Page 3 of 7 FirstFirst 12345 ... LastLast
Results 21 to 30 of 63
  1. #21
    Join Date
    Aug 2007
    Location
    UK
    Posts
    66
    Plugin Contributions
    0

    Default Re: Sidebox Anywhere mod - Please Help

    Quote Originally Posted by DrByte View Post
    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.

    ahh just seen this replay.

    sorry for previous posts.

    So I can't actually have this anywhere.

    Is there a way to get this working so i can have this on any website?

  2. #22
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Sidebox Anywhere mod - Please Help

    For the images ... this gets more challenging ...
    You can try adding the following define() into your index.php file that calls single_sidebox:

    <?php
    $zcSBmodule='whats_new.php';
    define('DIR_WS_IMAGES' , 'http://www.tjrstores.com/images/');
    require('/path/to/single_sidebox.php');
    ?>
    .

    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. #23
    Join Date
    Aug 2007
    Location
    UK
    Posts
    66
    Plugin Contributions
    0

    Default Re: Sidebox Anywhere mod - Please Help

    hahahaha

    you read my mind..

    PHP Code:
    /*
     * Determine working directory
     */
      
    $startingDir getcwd();
      
    $zcDir realpath(dirname(__FILE__));
      
    chdir($zcDir);
        
    define('STRICT_ERROR_REPORTING'false);
    /*
     * Set default image dir, which overrides the usual Zen Cart settings in case the working dir is not the same
     */
    //  define('DIR_WS_IMAGES', $zcDir . '/images/'); 
    You just gave me the code to sort the images.


    What is this bit for?
    PHP Code:
    /**
     * Load common library stuff 
     */
      
    require('includes/application_top.php'); 

  4. #24
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Sidebox Anywhere mod - Please Help

    Quote Originally Posted by TJR Stores View Post
    What is this bit for?
    PHP Code:
    /**
     * Load common library stuff 
     */
      
    require('includes/application_top.php'); 
    That part of the code, and all the way to the end, is what runs the Zen Cart core and reads data and builds appropriate output based on the module selected.
    .

    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.

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

    Default Re: Sidebox Anywhere mod - Please Help

    Quote Originally Posted by DrByte View Post
    For the images ... this gets more challenging ...
    You can try adding the following define() into your index.php file that calls single_sidebox:

    <?php
    $zcSBmodule='whats_new.php';
    define('DIR_WS_IMAGES' , 'http://www.tjrstores.com/images/');
    require('/path/to/single_sidebox.php');
    ?>
    OK. I have added the piece of code into every file that is relevant to what we are trying to do here and still no images showing.

  6. #26
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Sidebox Anywhere mod - Please Help

    It's still trying to use the default of 'images/'

    ie:
    <img src="images/img4622040.jpg" alt= ...

    I'm not sure if that's a result of the files being on separate domains/accounts, or if the change just wasn't uploaded to the server completely.

    It's probably the separate domains issue

    Did you do the stylesheet part too?
    .

    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. #27
    Join Date
    Aug 2007
    Location
    UK
    Posts
    66
    Plugin Contributions
    0

    Default Re: Sidebox Anywhere mod - Please Help

    It could well be. Which is a real shame because if we could get this working so it will work on separate server sites etc then it would be of great use for a lot of things in the future.

    Alot of members on IWAC Stores have Zen Carts and this woudl be a great tool for them to use to cross promote etc.

  8. #28
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Sidebox Anywhere mod - Please Help

    Hmmm ... I just did the DIR_WS_IMAGES thing, using a full URL, and it seems to pull the images from the other domain just fine ... and they're on servers on opposite sides of the continent.

    So that makes me wonder if the new line got uploaded right.
    .

    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.

  9. #29
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Sidebox Anywhere mod - Please Help

    You've got it working, with full URL for images, on your new_stock.php script, but not on the iwac site.

    What's the code look like now, on the server, for the iwac site's setup?
    .

    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.

  10. #30
    Join Date
    Aug 2007
    Location
    UK
    Posts
    66
    Plugin Contributions
    0

    Default Re: Sidebox Anywhere mod - Please Help

    Quote Originally Posted by DrByte View Post
    You've got it working, with full URL for images, on your new_stock.php script, but not on the iwac site.

    What's the code look like now, on the server, for the iwac site's setup?
    This is what is in the page where i want the side box to show.

    PHP Code:
    <?php
      $zcSBmodule 
    'whats_new.php';
      
    $zcSBlayout 'left';
      
    define('DIR_WS_IMAGES''http://www.tjrstores.com/images/');
      require (
    "http://www.tjrstores.com/single_sidebox.php");
    ?>

 

 
Page 3 of 7 FirstFirst 12345 ... 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

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