Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23
  1. #21
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Missing images??

    If you are coding in a relative image location, leave off the leading slash:
    HTML Code:
    <div id="logoWrapper">
        <div id="logo"><a href="http://www.ampmgraphics.com/demo/"><img src="includes/templates/red_passion/images/logo.gif" alt="etc">

  2. #22
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Missing images??

    Hi... we seem to be talking you round in circles...

    If we go back to your ORIGINAL post:

    I am just setting up a test site here:

    www.ampmgraphics.com/demo

    I want to to be the same as this site www.ampmgraphicsprint.com


    Then it would appear you want a CLONE of your main site to sit in a SUB-DIRECTORY.

    I do this all the time (2 or 3 times a day sometimes) when I create cloned DEMO sites for customers.

    This is how I do it and it is ALL done in my CPANEL and phpMyAdmin

    NB: this is only possible if you are hosting with a host company that allows you to set up several MySQL databases. If your host is a ############## and gives you only one MySQL database, the following is not possible. You will have to adapt my method to install 2 ZC databases (use different prefixes) into one MySQL database.

    STEP ONE - DATABASE
    Create a new, empty database in C-Panel, associate it with the SAME USER as the live database. (for the purpose of my explanation, my NEW database is called adevert_hotstuff.

    Navigate to your phpMyAdmin. Open the admin screen for your main database. Click OPERATIONS tab. COPY this live database to your new, empty database (eg: adevert_hotstuff). (You can de-select the radio button that says "Create database")

    You now have TWO identical databases (process takes about 5 seconds).

    STEP TWO - COPYING THE FOLDERS VIA CPANEL
    Create a new folder under public_html (or your equivalent root) called "zenshop" (or whatever you wish). I call it zenshop for the purpose of this explanation.

    Using CPANEL "COPY" FEATURES, copy all zc folders and files into the folder - "zenshop". (refer to cpanel docs for procedure, but it's very easy - process takes about 5 minutes).

    STEP THREE - RECONFIGURE CLONED SITE.

    As you now have an indentical CLONE in a subfolder, you must now edit the two configure.php files to reflect the different PATHS and the different DATABASE.

    For example, here is a clip of the configure.php code showing a ROOT INSTALLATION:

    PHP Code:
      define('HTTP_SERVER''http://www.yoursite.com');
      
    define('HTTPS_SERVER''https://www.yoursite.com');

      
    // Use secure webserver for checkout procedure?
      
    define('ENABLE_SSL''false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
      // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
      
    define('DIR_WS_CATALOG''/');
      
    define('DIR_WS_HTTPS_CATALOG''/'); 
    Now, the CLONE will read:-

    PHP Code:
      define('HTTP_SERVER''http://www.yoursite.com');
      
    define('HTTPS_SERVER''https://www.yoursite.com');

      
    // Use secure webserver for checkout procedure?
      
    define('ENABLE_SSL''false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
      // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
      
    define('DIR_WS_CATALOG''/zenshop/');
      
    define('DIR_WS_HTTPS_CATALOG''/zenshop/'); 
    ... and so on ... you see where I put /zenshop/ to reflect the PATH for the cloned site?

    .. and the same for the database... The ORIGINAL configure.php for the database section may read:

    PHP Code:
    // define our database connection
      
    define('DB_TYPE''mysql');
      
    define('DB_PREFIX''zen_');
      
    define('DB_SERVER''localhost');
      
    define('DB_SERVER_USERNAME''adevert_caspar');
      
    define('DB_SERVER_PASSWORD''x2er456457');
      
    define('DB_DATABASE''adevert_spookie');
      
    define('USE_PCONNECT''false'); // use persistent connections?
      
    define('STORE_SESSIONS''db'); // use 'db' for best support, or '' for file-based storage 
    The ONLY CHANGE is the new database name you created earlier (because you are keeping the same username / passwd)

    PHP Code:
    // define our database connection
      
    define('DB_TYPE''mysql');
      
    define('DB_PREFIX''zen_');
      
    define('DB_SERVER''localhost');
      
    define('DB_SERVER_USERNAME''adevert_caspar');
      
    define('DB_SERVER_PASSWORD''x2er456457');
      
    define('DB_DATABASE''adevert_hotstuff');
      
    define('USE_PCONNECT''false'); // use persistent connections?
      
    define('STORE_SESSIONS''db'); // use 'db' for best support, or '' for file-based storage 
    When you have edited the TWO cloned configure.php files to reflect all the PATH and DATABASE changes... you're practically done!!!

    Now, the only ftp action required is to Fix the Cache Key, so, go grab Dr Bytes fix_cache_key.php file (free add-ons), FTP it to the clone's folder (in my case zenshop), and "run" the file via your browser.

    This will correct the anomoly in the cloned database that still references your root-level cache.

    You now have two identical sites - one in the ROOT, and one in a sub-folder.

    This process takes me about 8 minutes in total...
    20 years a Zencart User

  3. #23
    Join Date
    Nov 2007
    Posts
    555
    Plugin Contributions
    0

    Default Re: Missing images??

    Thanks for your replies.

    Thanks schoolboy for the explanation. I have managed to make a zen cart shop similar to my main site (non zen cart shop)...I just have a problem with the main background image within the centre. I have copied over the datebase etc.

    Thanks also to gjh42, I'll have a look and see if that solves it.

    Thanks for your time

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Images Missing
    By smokey2376 in forum General Questions
    Replies: 1
    Last Post: 10 Dec 2012, 01:03 PM
  2. Images missing
    By BigAl49 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 4 Jun 2010, 06:07 PM
  3. Missing images
    By ctcentralinfo in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 20 Apr 2009, 08:24 PM
  4. Missing images
    By russa2 in forum General Questions
    Replies: 2
    Last Post: 25 Sep 2008, 08:31 PM

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