Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Sep 2011
    Posts
    8
    Plugin Contributions
    0

    Default JS Easy slider- not so easy!

    I am helping a Zen Cart user (version 1.3.9h) with some issues about his site as he seems to have been left high & dry by his developer.

    I am new to Zencart but have had quite a lot of CMS experience generally. The one problem he has is with a jscript Easy Slider. He wants to make changes to the images; his developer has refused to help, which is where I come in.

    I have used EasySlider in a CMS program but in that instance there was an editing facility to manipulate the images used, type of transition and so on.

    For the life of me I can't find anything like this either on the Zen Admin Panel or on the server.

    I am not an expert in JScript and would appreciate some advice. The script SRC path to the slider (using 'inspect element') is includes/templates/*****/jscript/jscript_easySlider.js

    It would be strange if there was not a simple way of changing images but I can't find it!

    Thanks for any help that you can give

    Regards

    Martin

  2. #2
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: JS Easy slider- not so easy!

    1) a link to the site, would help
    2) Where is the slideshow appearing on your site
    Is it the main page, if so the try going to

    admin --> Tools --> Define pages editor --> select "define_main_page" from the dropdown and make sure editor is set to plain text

    You should see the slides there, there isn't a fancy tool for zencart yet, its just editing the image links there
    Webzings Design
    Semi retired from Web Design

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: JS Easy slider- not so easy!

    We've put in Easy Slider HERE

    We followed (up to a point) the install method KERRIN HARDY advocates (Google for her site).

    Where we disagree with Kerrin is her instruction to put the HTML <div> code into index_default.php .

    No need to do this... You can put the HTML into the define_main_page.php using the tools >>> define pages editor, remembering of course to toggle out of WYSIWYG and into source mode, before you paste the DIV.
    20 years a Zencart User

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: JS Easy slider- not so easy!

    Quote Originally Posted by nigelt74 View Post

    admin --> Tools --> Define pages editor --> select "define_main_page" from the dropdown and make sure editor is set to plain text

    You should see the slides there, there isn't a fancy tool for zencart yet, its just editing the image links there
    Nigel is functionally 100% accurate here... but if the original developer used Kerrin's method, then you won't see the HTML block in define_main_page.php

    It is probably in the tpl_index_default.php file.

    My advice would be to cut it from that file, and use the define pages editor to put it into the main page... Follow Nigel's advice...
    20 years a Zencart User

  5. #5
    Join Date
    Sep 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: JS Easy slider- not so easy!

    Thank you both for such speedy replies.

    The site in question is: http://www.barnwoodcomputers.co.uk/ and the banners are the large display top middle. The one that needs deleting is the PC with a 'no longer available' notice which I put on the image

    Nigel: you suggested 'admin --> Tools --> Define pages editor --> select "define_main_page". however, there is no text in these or indeed other files in this Tool.
    On checking the files via CPanel, there is nothing there either.

    I have found the banners both in /images and in a database table zen_banners but I cannot find where they are called from.

    I have downloaded all the public_html files to my PC and have done extensive keyword searches under the banner file name, the product ID and so on. Can't find anything at all!

    I am tempted to delete one of the banners from the table zen_banners to see what happens to the display. I have downloaded a copy of the table as backup so, subject to any further advice, I will try and see what happens.

    Any more thoughts?

    Thanks

    Martin

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: JS Easy slider- not so easy!

    Try this.

    go to your webshop admin screen.

    Under the TOOLS menu, go to Developer Toolkit.

    When the toolkit loads, scroll to the very bottom input field and type in:

    <div id="slider">

    Then, choose to search in catalog, and conduct the search.

    Let us know the results - ie: the names of the PHP file(s) in which this is shown.
    20 years a Zencart User

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: JS Easy slider- not so easy!

    By the way... don't confuse the zencart banner system with what's happening with this slider. Don't touch the database!
    20 years a Zencart User

  8. #8
    Join Date
    Sep 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: JS Easy slider- not so easy!

    Schoolboy

    I think we are getting somewhere!

    PHP file is:

    /home/barnwood/public_html/includes/templates/barnwood/common/tpl_main_page.php

    AND

    Line #127 : echo '<div id="slider"><ul>';

    I have been in to this file and :-

    <div id="featured_show">
    <div id="left_wrapper">
    <script type="text/javascript" src="includes/templates/barnwood/jscript/jscript_easySlider.js"></script>

    <script type="text/javascript">
    $(document).ready(function(){

    $("#slider").easySlider({
    auto: true,
    continuous: true,
    numeric: true
    });

    });
    </script>
    <?php

    global $db;
    $sql = "SELECT banners_title,banners_url,banners_image FROM ".TABLE_BANNERS." z where status='1' and banners_group ='Wide-Banners'";
    $result = $db->Execute($sql);
    $path = HTTP_SERVER.DIR_WS_CATALOG.DIR_WS_IMAGES;
    if ($result->RecordCount() > 0) {
    echo '<div id="slider"><ul>';
    while (!$result->EOF) {

    echo '<li><a href="'.($result->fields['banners_url']).'"><img src="'.$path.($result->fields['banners_image']).'" class="clip" title="'.($result->fields['banners_title']).'" /></a></li>';

    $result->MoveNext();
    }
    echo '</ul></div>';
    } else {
    echo 'no value';
    }
    ?>
    </div>

    I have looked at the zen_banners table again and assume I just change the 'status' of the affected banner from 1 to eg 0

    Am I right?

    Martin

  9. #9
    Join Date
    Sep 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: JS Easy slider- not so easy!

    IT WORKED!!

    I changed the Status from 1 to 0 and, bingo, the image has gone.

    Wow!!

    Many thanks for your patience.

    Still a bit of a mystery to me though why it is so user-unfriendly.


    Martin

  10. #10
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: JS Easy slider- not so easy!

    This is a rather sophisticated way of getting the core zencart banner system to "integrate" with Easy Slider.

    In fact... it is rather neat, and I shall "clip" the code for later use!

    So indeed your banner images are being controlled in the zencart banner manager, and this is where you will make changes to the images (banners).
    20 years a Zencart User

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Centering Easy Slider
    By matchlock in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 30 May 2014, 09:51 AM
  2. v1.2.x easy slider 1.7 after adding line and borders messed up
    By drpradipingale in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Jul 2012, 07:26 AM
  3. v150 Installing jQuery Easy Slider 1.7 CSS problem
    By jono.low in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 May 2012, 07:22 AM
  4. easy slider problem need your help
    By sshh2 in forum Addon Templates
    Replies: 2
    Last Post: 30 Jun 2011, 03:42 PM
  5. Replies: 22
    Last Post: 12 Aug 2009, 06:29 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