Forums / All Other Contributions/Addons / ZX Slideshow support thread

ZX Slideshow support thread

Views: 295,213

Results 61 to 80 of 767
14 Jun 2012, 3:33 PM
#61
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

ZX Slideshow support thread

I tested that SQL patch on my test install and it worked just fine. I'm not sure why it's not working for you. And, it's supposed to be ran from admin->Tools->Install SQL Patches only, it won't work from phpmyadmin. You'll have to manually delete it as I described above using phpmyadmin.

My site - Pro ZC Help
My portfolio | My plugins

14 Jun 2012, 3:37 PM
#62
weezee avatar

weezee

Zen Follower

Join Date:
May 2006
Location:
Louisiana
Posts:
259
Plugin Contributions:
0

Re: ZX Slideshow support thread

Thanks, I removed with the phpmyadmin browse. I reuploaded the files when I was trying to remove the config settings. I'm going to try again. I'm let you know after I get it configured and see if it works this time.

15 Jun 2012, 1:57 PM
#63
weezee avatar

weezee

Zen Follower

Join Date:
May 2006
Location:
Louisiana
Posts:
259
Plugin Contributions:
0

Re: ZX Slideshow support thread

I tried the slide show again and It won't work on my site. I configured: using wide banner3 position three, I assigned image side1.jpg, slide2.jpg and slide3.jpg, I also tried different Effects and none worked.

15 Jun 2012, 2:31 PM
#64
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: ZX Slideshow support thread

That's because you have categories showing on your main page set to true. Take a look at the code attached and upload it to your includes/templates/bookshelf/templates/tpl_index_categories.php. Since I believe your file might be customized, make sure to merge it (my file is commented, 6 new lines at the beginning). It should work after that.

<?php
/**
 * Page Template
 *
 * Loaded by main_page=index<br />
 * Displays category/sub-category listing<br />
 * Uses tpl_index_category_row.php to render individual items
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_index_categories.php 4678 2006-10-05 21:02:50Z ajeh $
 */
?>
<div class="centerColumn" id="indexCategories">

<!-- begin edit for ZX Slideshow -->
<?php 
	if(ZX_SLIDESHOW) { ?>
	<?php require($template->get_template_dir('zx_slideshow.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/zx_slideshow.php'); ?>
<?php } ?>    
<!-- end edit for ZX Slideshow -->

<?php if ($show_welcome == true) { ?>
<h1 id="indexCategoriesHeading"><?php echo HEADING_TITLE; ?></h1>

<?php if (SHOW_CUSTOMER_GREETING == 1) { ?>
<h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2>
<?php } ?>

<!-- deprecated - to use - uncomment
<?php if (TEXT_MAIN) { ?>
<div id="" class="content"><?php echo TEXT_MAIN; ?></div>
<?php } ?>-->

<!-- deprecated - to use - uncomment
<?php if (TEXT_INFORMATION) { ?>
<div id="" class="content"><?php echo TEXT_INFORMATION; ?></div>
<?php } ?>-->

<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
<div id="indexCategoriesMainContent" class="content"><?php
/**
 * require the html_define for the index/categories page
 */
  include($define_page);
?></div>
<?php } ?>

<?php } else { ?>
<h1 id="indexCategoriesHeading"><?php echo $breadcrumb->last(); ?></h1>
<?php } ?>

<?php
if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS_TOP == 'true') {
// categories_image
  if ($categories_image = zen_get_categories_image($current_category_id)) {
?>
<div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?></div>
<?php
  }
} // categories_image
?>

<?php
// categories_description
    if ($current_categories_description != '') {
?>
<div id="categoryDescription" class="catDescContent"><?php echo $current_categories_description;  ?></div>
<?php } // categories_description ?>
<!-- BOF: Display grid of available sub-categories, if any -->
<?php
  if (PRODUCT_LIST_CATEGORY_ROW_STATUS == 0) {
    // do nothing
  } else {
    // display subcategories
/**
 * require the code to display the sub-categories-grid, if any exist
 */
   require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php');
  }
?>
<!-- EOF: Display grid of available sub-categories -->
<?php
$show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_CATEGORY);

while (!$show_display_category->EOF) {
  // //  echo 'I found ' . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS);

?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_FEATURED_PRODUCTS') { ?>
<?php
/**
 * display the Featured Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
<?php } ?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_SPECIALS_PRODUCTS') { ?>
<?php
/**
 * display the Special Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
<?php } ?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_NEW_PRODUCTS') { ?>
<?php
/**
 * display the New Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
<?php } ?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_CATEGORY_UPCOMING') { ?>
<?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php } ?>
<?php
  $show_display_category->MoveNext();
} // !EOF
?>
</div>

My site - Pro ZC Help
My portfolio | My plugins

15 Jun 2012, 2:32 PM
#65
jagall avatar

jagall

Zen Follower

Join Date:
Mar 2011
Location:
Ireland
Posts:
286
Plugin Contributions:
0

Re: ZX Slideshow support thread

hi are using ver 1.3.9h

15 Jun 2012, 5:17 PM
#66
weezee avatar

weezee

Zen Follower

Join Date:
May 2006
Location:
Louisiana
Posts:
259
Plugin Contributions:
0

Re: ZX Slideshow support thread

jagall:

hi are using ver 1.3.9h

Yes I'm using ver 139h, I have tried all different effects and none work, I have tried it with the categories on home page off, still didn't work. nothing I do seens to work.

15 Jun 2012, 6:40 PM
#67
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: ZX Slideshow support thread

Weezee, I gave you the code for tpl_index_categories.php which should do the trick.

My site - Pro ZC Help
My portfolio | My plugins

15 Jun 2012, 9:32 PM
#68
weezee avatar

weezee

Zen Follower

Join Date:
May 2006
Location:
Louisiana
Posts:
259
Plugin Contributions:
0

Re: ZX Slideshow support thread

balihr:

Weezee, I gave you the code for tpl_index_categories.php which should do the trick.

No that didn't work either. My template didn't have tpl_index_categories.php, it is in the template_default, so I added your tpl_index_categories.php to my template and it still didn't work with or without the categories set to true or off. I also added the tpl_index_categories.php from the template_default, it didn't work, Must be something else, Thanks any way for your help.

15 Jun 2012, 10:21 PM
#69
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: ZX Slideshow support thread

Well, then, I'm sorry, but there's nothing else I can do for you without seeing your site's code. Sorry. My guess is there was some other type of customization done and it's preventing the slideshow files to load...

My site - Pro ZC Help
My portfolio | My plugins

16 Jun 2012, 2:36 PM
#70
probtc avatar

probtc

New Zenner

Join Date:
May 2012
Location:
SOUTH KOREA
Posts:
21
Plugin Contributions:
0

Re: ZX Slideshow support thread

Attachment 10642Attachment 10643

Hi,
Firstly thanks for this addon...
I am testing my store on my localhost.I was trying to move my slideshow container to under navigation bar.On home page everything is fine script works great but when click another links, I cant see buttons and images sliding to different position, it looks like something is missing or css problem. what am i doing wrong? could you help me about this issue please?

16 Jun 2012, 4:55 PM
#71
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: ZX Slideshow support thread

probtc:

On home page everything is fine script works great but when click another links, I cant see buttons and images sliding to different position, it looks like something is missing or css problem. what am i doing wrong? could you help me about this issue please?

This slideshow was intended to run ONLY on home page. If you want it to run on any other page, you'll need to move the block of code in tpl_index_default.php to another file, probably tpl_header.php (to run on all pages). You'll also need to load the css sitewide so you'll have to copy all content from index_home.css to stylesheet.css

But, do you REALLY want that to run on every inner page?

My site - Pro ZC Help
My portfolio | My plugins

16 Jun 2012, 5:00 PM
#72
weezee avatar

weezee

Zen Follower

Join Date:
May 2006
Location:
Louisiana
Posts:
259
Plugin Contributions:
0

Re: ZX Slideshow support thread

balihr:

Well, then, I'm sorry, but there's nothing else I can do for you without seeing your site's code. Sorry. My guess is there was some other type of customization done and it's preventing the slideshow files to load...

I tried the slide with HTML banners, it works but I can't get it to center. I wrapped the html code in <center> </center> it still didn't center.

16 Jun 2012, 5:08 PM
#73
probtc avatar

probtc

New Zenner

Join Date:
May 2012
Location:
SOUTH KOREA
Posts:
21
Plugin Contributions:
0

Re: ZX Slideshow support thread

Thank you for quick reply..
Actually I am trying to find out different and better views. But I think you're right.It doesnt make a sense.I ll try to configure this addon for dynamic product images such as (last added 10 products or best seller products.)
Thanks alot again..

16 Jun 2012, 10:43 PM
#74
jagall avatar

jagall

Zen Follower

Join Date:
Mar 2011
Location:
Ireland
Posts:
286
Plugin Contributions:
0

Re: ZX Slideshow support thread

Hi balihr, I solved my sql issue and now have your module working perfectly thank you, much sleeker and quicker than what I had. Just one wee question, how to I stop it showing the red blank slide?

17 Jun 2012, 12:39 AM
#75
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: ZX Slideshow support thread

weezee:

I tried the slide with HTML banners, it works but I can't get it to center. I wrapped the html code in <center> </center> it still didn't center.

I will assume that you want to center the slider. Edit index_home.css at line 93 and change to margin: 0 auto;
This is how that block should look like: ```
.theme-default .nivoSlider {
position:relative;
background:#fff url("../images/loading.gif") no-repeat 50% 50%;
margin: 0 auto;
-webkit-box-shadow: 0px 1px 5px 0px #4a4a4a;
-moz-box-shadow: 0px 1px 5px 0px #4a4a4a;
box-shadow: 0px 1px 5px 0px #4a4a4a;
}


BTW, glad to hear you finally got it working.

My site - Pro ZC Help
My portfolio | My plugins

17 Jun 2012, 12:44 AM
#76
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: ZX Slideshow support thread

probtc:

Thank you for quick reply..
Actually I am trying to find out different and better views. But I think you're right.It doesnt make a sense.I ll try to configure this addon for dynamic product images such as (last added 10 products or best seller products.)
Thanks alot again..

Honestly, I don't think this is your best choice for products... If I were you, I'd use Scrollable from jquerytools.org - that's what I used for homepage Bestsellers on Jonamaria (link in signature) and I find it much better than Nivo for that purpose...

My site - Pro ZC Help
My portfolio | My plugins

17 Jun 2012, 12:50 AM
#77
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: ZX Slideshow support thread

jagall:

Hi balihr, I solved my sql issue and now have your module working perfectly thank you, much sleeker and quicker than what I had.
Glad to hear that. :smile:
Just one wee question, how to I stop it showing the red blank slide?
Huh? What red blank slide? The code was written so that a slide doesn't show unless it's configured and enabled in the Banner Manager. Check if your banners are set properly and if there's something wrong there... (a link to your site would probably help me be more specific).

My site - Pro ZC Help
My portfolio | My plugins

17 Jun 2012, 7:34 AM
#78
jagall avatar

jagall

Zen Follower

Join Date:
Mar 2011
Location:
Ireland
Posts:
286
Plugin Contributions:
0

Re: ZX Slideshow support thread

thanks for getting back to me. I think it is something to do with slider stopper Firebug on the 'red' slide revealed <a id="slider-stopper" href="#" class="nivo-imageLink" style="display: none;">Stop</a>. The slides themselves seem okay. Link to site here.

17 Jun 2012, 10:40 AM
#79
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: ZX Slideshow support thread

jagall:

thanks for getting back to me. I think it is something to do with slider stopper Firebug on the 'red' slide revealed <a id="slider-stopper" href="#" class="nivo-imageLink" style="display: none;">Stop</a>. The slides themselves seem okay. Link to site here.

You have some code that I have no idea where it's from.

First of all, you have
includes/templates/sweet/jscript/startstop-slider.js
includes/templates/sweet/jscript/jscript_coin-slider.js
includes/templates/sweet/jscript/jscript_coin-slider.min.js

It seems that you've been using some very bad practice for loading javascript and/or css files so I suggest you start by cleaning that up. You obviously have some js paths hard coded in your html_header.php file, you have some duplicating scripts etc.

Anyway, this red slide that you're seeing is coming from something else that you have installed, this is not a part of ZX Slideshow. Once you clean up the mess, I'm sure this red slide will go away.

My site - Pro ZC Help
My portfolio | My plugins

17 Jun 2012, 10:02 PM
#80
jagall avatar

jagall

Zen Follower

Join Date:
Mar 2011
Location:
Ireland
Posts:
286
Plugin Contributions:
0

Re: ZX Slideshow support thread

thanks balihr. yes you were right about the js conflict, removed it and now fine, wee bit slow to load. have cleaned up the js files, should i only have the jquery library files in the /mytemplate/jscript folder and put others in a js root folder? I have 10 slides and I notice it bumps up the hit counter on one click of the page but probably nothing can be done on this, after a while the hit counter gives kinda false interpretation but not really that important I suppose.