Thread: Layout issues!

Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Jun 2011
    Posts
    194
    Plugin Contributions
    0

    Default Re: Layout issues!

    Quote Originally Posted by schoolboy View Post

    So the scripts seem to be in the correct location already.

    Describe to us how you installed the slider...
    Thanks for your help I packaged it as a mod for future use download it here the read me describes how i installed it - i ripped it out of a free template in the downloads section but i can't find the original template now!!

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

    Default Re: Layout issues!

    Picaflor Azul's ALL BUSINESS template uses this technique - but the difficulty with it is the inclusion of PHP code in the define_main_page.php content.

    The instructions in ALL BUSINESS indicate that when you wish to EDIT define_main_page.php in your webshop admin panel (admin >>> tools >>> define pages editor), it is essential that this is done in PLAIN TEXT mode.

    So, before you open the page for editing, you have to make sure that the WYSIWYG editor (perhaps you use HTMLArea), is SWITCHED OFF FIRST.

    If you don't do this, and open the page with HTMLArea switched ON, then when you save the page, HTMLArea will say "what on earth is all this "dross"... ?" And it will "re-shape" it in a way it thinks it ought to be.

    This effectively removes the <?php stuff ...
    PHP Code:
    <?php       


          define
    (URL1,'http://www.limelightproducts.net/');
          
    define(URL2,'http://www.limelightproducts.net/');
          
    define(URL3,'http://www.limelightproducts.net/');
          
    define(URL4,'http://www.limelightproducts.net/');
          
    define(URL5,'http://www.limelightproducts.net/');
         
          
    define(IMAGE1,'01.jpg');// recommend width 630px height=280px /
          
    define(IMAGE2,'02.jpg');
          
    define(IMAGE3,'03.jpg');
          
    define(IMAGE4,'04.jpg');
          
    define(IMAGE5,'05.jpg');
         
    ?>
    ... which until then, was "hard-coded" into the page.

    So... the slider stops working.

    Ideally, you should not be putting PHP statements into a defined page. So sliders that use this as part of their protocol are not ideal for zencart.

    If you do use this slider, and you do "paste" these PHP defines into define_main_page.php, then make sure you switch off your WYSIWYG editor BEFORE you open that page for editing.

    You can ONLY edit it in PLAIN TEXT MODE.
    20 years a Zencart User

  3. #13
    Join Date
    Jun 2011
    Posts
    194
    Plugin Contributions
    0

    Default Re: Layout issues!

    Quote Originally Posted by schoolboy View Post
    Picaflor Azul's ALL BUSINESS template uses this technique - but the difficulty with it is the inclusion of PHP code in the define_main_page.php content.

    The instructions in ALL BUSINESS indicate that when you wish to EDIT define_main_page.php in your webshop admin panel (admin >>> tools >>> define pages editor), it is essential that this is done in PLAIN TEXT mode.

    So, before you open the page for editing, you have to make sure that the WYSIWYG editor (perhaps you use HTMLArea), is SWITCHED OFF FIRST.

    If you don't do this, and open the page with HTMLArea switched ON, then when you save the page, HTMLArea will say "what on earth is all this "dross"... ?" And it will "re-shape" it in a way it thinks it ought to be.

    This effectively removes the <?php stuff ...
    PHP Code:
    <?php       


          define
    (URL1,'http://www.limelightproducts.net/');
          
    define(URL2,'http://www.limelightproducts.net/');
          
    define(URL3,'http://www.limelightproducts.net/');
          
    define(URL4,'http://www.limelightproducts.net/');
          
    define(URL5,'http://www.limelightproducts.net/');
         
          
    define(IMAGE1,'01.jpg');// recommend width 630px height=280px /
          
    define(IMAGE2,'02.jpg');
          
    define(IMAGE3,'03.jpg');
          
    define(IMAGE4,'04.jpg');
          
    define(IMAGE5,'05.jpg');
         
    ?>
    ... which until then, was "hard-coded" into the page.

    So... the slider stops working.

    Ideally, you should not be putting PHP statements into a defined page. So sliders that use this as part of their protocol are not ideal for zencart.

    If you do use this slider, and you do "paste" these PHP defines into define_main_page.php, then make sure you switch off your WYSIWYG editor BEFORE you open that page for editing.

    You can ONLY edit it in PLAIN TEXT MODE.
    Yes i have figured that out and can edit it in the define_main_page.php in the text view. Sorry maybe my original questions was not worded very good but, all i am trying to do is get rid of my errors on the validation - but maybe that is not possible with this kind of slider!

    I will have to start digging for a better one if that is the case!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. layout issues?
    By munchie in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Jul 2011, 06:43 PM
  2. layout issues
    By lucianman in forum General Questions
    Replies: 2
    Last Post: 18 Jun 2010, 11:12 AM
  3. layout issues
    By chill123 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Dec 2008, 10:13 AM
  4. Major issues with Column Layout / Grid Layout for Products Listing
    By kinget in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 27 Jul 2007, 10:11 PM
  5. layout issues
    By clint88 in forum General Questions
    Replies: 4
    Last Post: 22 Jul 2006, 02:42 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