Page 1 of 2 12 LastLast
Results 1 to 10 of 80

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: jQuery Scrolling Sideboxes [Support Thread]

    I'll make a note of your enhancement request!

  2. #2
    Join Date
    Aug 2014
    Location
    Polska
    Posts
    20
    Plugin Contributions
    0

    Default Re: jQuery Scrolling Sideboxes [Support Thread]

    How does this work? I can see new "Featured [MORE]" and "WHAT'S NEW [MORE]" and the rest if I turn it on in Layout Boxes Controller, but these are empty and useless.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: jQuery Scrolling Sideboxes [Support Thread]

    Quote Originally Posted by khejit View Post
    How does this work? I can see new "Featured [MORE]" and "WHAT'S NEW [MORE]" and the rest if I turn it on in Layout Boxes Controller, but these are empty and useless.
    Just like with the built-in featured and what's new sideboxes, if you don't have any products defined as featured or up-coming then these sideboxes won't have content ... so you should turn them off.

  4. #4
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: jQuery Scrolling Sideboxes [Support Thread]

    Question: (yep here I go pushing the envelope again.. )

    I haven't downloaded this yet to take a looksee, but I would like to add this kind of functionality to the Testimonials and reviews sideboxes.. In your opinion, will it be fairly OBVIOUS looking at your code to figure out how to apply this to the Testimonials and reviews sideboxes??
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: jQuery Scrolling Sideboxes [Support Thread]

    Quote Originally Posted by DivaVocals View Post
    Question: (yep here I go pushing the envelope again.. )

    I haven't downloaded this yet to take a looksee, but I would like to add this kind of functionality to the Testimonials and reviews sideboxes.. In your opinion, will it be fairly OBVIOUS looking at your code to figure out how to apply this to the Testimonials and reviews sideboxes??
    Yes. In each case, the plugin's sideboxes were cloned from their built-in Zen Cart sidebox of a similar name. The jQuery that handles the scrolling is a common function, invoked via the sidebox's tpl_ file.

  6. #6
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: jQuery Scrolling Sideboxes [Support Thread]

    Quote Originally Posted by lat9 View Post
    Yes. In each case, the plugin's sideboxes were cloned from their built-in Zen Cart sidebox of a similar name. The jQuery that handles the scrolling is a common function, invoked via the sidebox's tpl_ file.
    Cool!!! Thanks.. I'll have a looksee..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: jQuery Scrolling Sideboxes [Support Thread]

    I've checked this plugin; it's compatible with Zen Cart v1.5.4 and v1.5.5 (no core-file changes).

  8. #8
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    458
    Plugin Contributions
    1

    Default Re: jQuery Scrolling Sideboxes [Support Thread]

    Quote Originally Posted by DivaVocals View Post
    Question: (yep here I go pushing the envelope again.. )

    I haven't downloaded this yet to take a looksee, but I would like to add this kind of functionality to the Testimonials and reviews sideboxes.. In your opinion, will it be fairly OBVIOUS looking at your code to figure out how to apply this to the Testimonials and reviews sideboxes??
    Hi Crystal, did you ever get this plugin to work with the Reviews Box?
    I started to copy/merge some info from this plugin to the review files but my brain started to fade away and I gave up
    Hope you had luck with this at least.

    Quote Originally Posted by lat9 View Post
    Yes. In each case, the plugin's sideboxes were cloned from their built-in Zen Cart sidebox of a similar name. The jQuery that handles the scrolling is a common function, invoked via the sidebox's tpl_ file.
    Thank you very much Cindy for this plugin, works well out of the box on 1.5.7c on PHP 7.4 on responsive_classic :)
    Hopefully I can manage to expand it to the reviews box.

  9. #9
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    458
    Plugin Contributions
    1

    Default Re: jQuery Scrolling Sideboxes [Support Thread]

    Ok, so I had another go at it and I'm almost there, just need more help please as I'm very sure I've done a few things wrong
    Can't seem to get the product to change, it stays on the same product.
    Here's the snapshot of the reviews box at the test site: https://i.imgur.com/JegnOTQ.png

    1) This is the new file created in (includes/modules/sideboxes/reviews_scrolling.php):
    Code:
      $review_status = " and r.status = 1 ";
    
    
      $scrolling_review_sql = "select r.reviews_id, r.reviews_rating, p.products_id, p.products_image, pd.products_name,
                        substring(reviews_text, 1, 70) as reviews_text
                        from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd, "
                               . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
                        where p.products_status = '1'
                        and p.products_id = r.products_id
                        and r.reviews_id = rd.reviews_id
                        and rd.languages_id = '" . (int)$_SESSION['languages_id'] . "'
                        and p.products_id = pd.products_id
                        and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'" .
                        $review_status;
    
    
      if (isset($_GET['products_id'])) {
        $scrolling_review .= " and p.products_id = '" . (int)$_GET['products_id'] . "'";
      }
    
    
      $scrolling_review = $db->ExecuteRandomMulti($scrolling_review_sql, MAX_RANDOM_SELECT_REVIEWS);
      
      
      if (!$scrolling_review->EOF) {
        require($template->get_template_dir('tpl_reviews_random_scrolling.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_reviews_random_scrolling.php');
      } elseif (isset($_GET['products_id']) and zen_products_id_valid($_GET['products_id'])) {
    // display 'write a review' box
        require($template->get_template_dir('tpl_reviews_write.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_reviews_write.php');
      } else {
    // display 'no reviews' box
        require($template->get_template_dir('tpl_reviews_none.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_reviews_none.php');
      }
      $title =  BOX_HEADING_REVIEWS_SCROLLING;
      $title_link = FILENAME_REVIEWS;
      require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    ?>
    2) This is the new file created in (includes/templates/template_default/sideboxes/tpl_reviews_random_scrolling.php):
    Code:
      $content = '<div class="sideBoxContent centeredContent">';
      $review_box_counter = 0;
      while (!$scrolling_review->EOF) {
        $review_box_counter++;
    	$rs_pid = $scrolling_review->fields['products_id'];
        $rs_pname = $scrolling_review->fields['products_name'];
        $content .= '<br />' . $rs_pname . '</a>';
    //	$content .= "\n" . '  <div class="sideBoxContentItem hiddenField reviewsScroller">'; (If I un-comment this, website jumbles up)
        $content .= '<div class="' . str_replace('_', '-', $box_id . 'Content') . ' sideBoxContent centeredContent">';
    //    $content .= '<a href="' . zen_href_link(zen_get_info_page($rs_pid), 'cPath=' . zen_get_generated_category_path_rev($scrolling_review->fields['master_categories_id']) . "&products_id=$rs_pid") . '">' . zen_image(DIR_WS_IMAGES . $scrolling_review->fields['products_image'], $rs_pname, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . nl2br(zen_trunc_string(zen_output_string_protected(stripslashes($scrolling_review->fields['reviews_text'])), 60)) . '</a><br /><br />' . zen_image(DIR_WS_TEMPLATE_IMAGES . 'stars_' . $scrolling_review->fields['reviews_rating'] . '.gif' , sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $scrolling_review->fields['reviews_rating']));
        $content .= '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $scrolling_review->fields['products_id'] . '&reviews_id=' . $scrolling_review->fields['reviews_id']) . '">' . zen_image(DIR_WS_IMAGES . $scrolling_review->fields['products_image'], $scrolling_review->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . nl2br(zen_trunc_string(zen_output_string_protected(stripslashes($scrolling_review->fields['reviews_text'])), 60)) . '</a><br /><br />' . zen_image(DIR_WS_TEMPLATE_IMAGES . 'stars_' . $scrolling_review->fields['reviews_rating'] . '.gif' , sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $scrolling_review->fields['reviews_rating']));
        $content .= '</div>';
        $scrolling_review->MoveNextRandom();
      }
    $content .= '</div><script type="text/javascript">$("div.reviewsScroller").cycle(5000);</script>' . "\n";
    3) I added this to includes/languages/english/extra_definitions/scrolling_sideboxes.php:

    Code:
    define('BOX_HEADING_REVIEWS_SCROLLING', 'Reviews');

  10. #10
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    458
    Plugin Contributions
    1

    Default Re: jQuery Scrolling Sideboxes [Support Thread]

    p.s: If I set the Admin/Configuration/Maximum Value --> Random Product Reviews for SideBox to a value More than 1, the sidebox will display several reviews all at once under each other in the sidebox, not scrolling.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Best Seller's Scrolling Images - support thread
    By chaiavi in forum Addon Sideboxes
    Replies: 32
    Last Post: 25 Jun 2022, 03:23 AM
  2. v152 jQuery Banners (Support Thread)
    By rbarbour in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 30 Sep 2015, 02:07 AM
  3. Jquery Zoom [Support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 384
    Last Post: 11 Dec 2013, 02:41 AM
  4. Jquery Lightbox [Support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 257
    Last Post: 2 Aug 2012, 10:57 PM
  5. Scrolling Featured Sidebox support thread
    By misty in forum Addon Sideboxes
    Replies: 86
    Last Post: 28 May 2010, 05:14 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