Products Cycle Slideshow
#41
Posted 04 October 2008 - 09:37 PM
$headcontent
<script type="text/javascript" src="js/jquery-1.2.6.js"></script>
<script type="text/javascript" src="js/jquery.cycle.all.pack.js"></script>
#42
Posted 05 October 2008 - 01:53 AM
I have Found further issues with a conflict of Javascript prototype clashes with Jquery, JQuery is widely referenced as $ this contrib therefore clashes with other contribs containing javascript and needs to be re-referenced to remove this conflict, ( i believe it is the Prototype.js that is causing issue)
at the bottom of each of the 3 files you modified or copied over
Specials.php
Whats_new.php
Best_sellers.php
you will find the following code similar to the following (may differ slightly due to how you have configured your slideshows)
<script type="text/javascript">
$(function(){
$('#BSContainer').cycle({
fx: 'fade',
pause: 1,
delay: 2000
});
});
</script>
what you are looking for is to change the $(function(){ and the $('#BSContainer) changed both $ to $J, do this for all 3 PHP files
it should now look like this
<script type="text/javascript">
$J(function(){
$J('#BSContainer').cycle({
fx: 'fade',
pause: 1,
delay: 2000
});
});
</script>
NOW Part 2, wherever you have added your Script lines (i have mine in my head section of my STS template) Immediatly below them add the folowing highlighted in RED
<script type="text/javascript" src="/catalog/js/jquery-1.2.6.js"></script>
<script type="text/javascript" src="/catalog/js/jquery.cycle.all.pack.js"></script>
<script> var $j = jQuery.noConflict(); </script>
Appears to work perfectly!! - fireplace2u.co.uk
Smiler
#43
Posted 05 October 2008 - 07:38 AM
smiler99, on Oct 4 2008, 06:29 PM, said:
\catalog\includes\boxes\best_sellers.php in the original has a $, in replacement does not, as shown below
if (isset($current_category_id) && ([color="#FF0000"][b]$[/b][/color]current_category_id >0)){
Also
when you go into product info page, the Javascript sources do not get loaded, and the slideshow does not work, unsure if i missed something or have a modofies index.php which causes the issue but i fixed it by adding the javascript sources into catalog\product_info.php
//--></script> <script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js?load=effects"></script> <script type="text/javascript" src="js/lightbox.js"></script> <script type="text/javascript" src="js/builder.js"></script> [color="#FF0000"]<script type="text/javascript" src="js/jquery-1.2.6.js"></script> <script type="text/javascript" src="js/jquery.cycle.all.pack.js"></script>[/color] ** please note may not have all these scripts installed but the above indicates roughly where you should place the new lines)
see this contrib in action here - fireplace2u.co.uk
(still work in progress)
Prototype and Jquery may work bad together as they both use the function name '$'.
To not miss things in installations; use Beyond Compare ^^
#44
Posted 05 October 2008 - 10:09 AM
Not sure if you mis interpreted my replies,
i installed the contrib perfectly, nothing got missed, however the instructions leave problems that needs to be fixed as explained above. the slideshow does not work on all pages unless you install the fix and re-assign the $ to another variable, once done this work perfect, i believe those adjustments should be added back into the contrib and a revised edition uploaded (if you agree and validate what i have said, i dont have time at this point to do that but may do in the future).
#45
Posted 06 October 2008 - 08:10 PM
smiler99, on Oct 5 2008, 10:09 AM, said:
Not sure if you mis interpreted my replies,
i installed the contrib perfectly, nothing got missed, however the instructions leave problems that needs to be fixed as explained above. the slideshow does not work on all pages unless you install the fix and re-assign the $ to another variable, once done this work perfect, i believe those adjustments should be added back into the contrib and a revised edition uploaded (if you agree and validate what i have said, i dont have time at this point to do that but may do in the future).
Sorry, I missed some posts you wrote.
Yes, to use var $j = jQuery.noConflict(); is a solution. However other contributions might use jquery in it's $ form... Perhaps usage of var $j = jQuery.noConflict(); will make this contribution unusable with other contributions...
#46
Posted 09 October 2008 - 08:55 AM
I've searched how to delete the white background underneath each image, but couldn't guess how : int CSS, int the cyle js file, it's always remaining white.
Why,
Thanks a lot
Patrick
#47
Posted 09 October 2008 - 09:29 AM
patrickb42, on Oct 9 2008, 08:55 AM, said:
I've searched how to delete the white background underneath each image, but couldn't guess how : int CSS, int the cyle js file, it's always remaining white.
Why,
Thanks a lot
Patrick
The white color is in the css and in each generated jpg image. JPG does not support transparency. You would have to reprogramm the code to use PNG with transparency and change the CSS ^^
#48
Posted 12 October 2008 - 02:29 PM
#49
Posted 12 October 2008 - 05:58 PM
koollayed, on Oct 12 2008, 02:29 PM, said:
Currently not supported by the contribution... Why would you want to do that?
Reasons Not to simply adjust size:
*Browser resized images look ugly in most browsers
*Image size is larger
#50
Posted 13 October 2008 - 11:26 PM
koollayed, on Oct 12 2008, 03:29 PM, said:
if you have the cont 3 pictures for the produt, you have products_image; products_image_med and products_image_pop.
try replace in the products_cycle_slideshow.php all products_image for products_image_med.
And when you enter the picture in the product you can control the image size
jn
#51
Posted 20 October 2008 - 08:01 PM
Product_Short_Description (i added it on specials.php and in shopping_cart.php)
City Shipping Rates With Admin (fixed the error that was giving wrong total shipping charges)
I had Created :
UTF bug fix on standard reviews system (admin & block)
Corrupted character on mysql with utf-8
#52
Posted 21 October 2008 - 09:50 AM
I installed your contribution, v1.3a and all ican see is a white box with the product title description scrolling on the top. Under the white box, I can see the same description and image number buttons, but no image is to be seen. In IE, it shows a red "X" in a box, as imaage not found. It does show ERROR 1 in the image properties.
Where is it looking for the images? CATALOG/IMAGES folder? I do have an image "sub-directory' modification installed. Could that be causing the problem?
Thank you!
'Rexx
#53
Posted 21 October 2008 - 05:58 PM
rexx, on Oct 21 2008, 09:50 AM, said:
I installed your contribution, v1.3a and all ican see is a white box with the product title description scrolling on the top. Under the white box, I can see the same description and image number buttons, but no image is to be seen. In IE, it shows a red "X" in a box, as imaage not found. It does show ERROR 1 in the image properties.
Where is it looking for the images? CATALOG/IMAGES folder? I do have an image "sub-directory' modification installed. Could that be causing the problem?
Thank you!
'Rexx
Yeah could be. Check in the products_cycle_slideshow.php. You can find the text error1 there. I don't have time to explain the solution for you but somewhere you call pcs_href_image($src_path) and $src_path does not exist.
Good luck.
#54
Posted 22 October 2008 - 04:59 PM
i got the same problem. I have sts template install. does anybody know how to fix this.
www.signartistic.com/catalog
Thanks,
NL
#55
Posted 23 October 2008 - 02:26 AM
tibolam, on Oct 22 2008, 11:59 PM, said:
i got the same problem. I have sts template install. does anybody know how to fix this.
www.signartistic.com/catalog
Thanks,
NL
edit your products_cycle_slideshow.php
find
function pcs_href_image($src_path){
$strRet = DIR_WS_IMAGES.'pcs_images/'.basename($src_path).'_'.PCS_MAX_IMAGE_HEIGHT.'_'.PCS_MAX_IMAGE_WIDTH.'_'.PCS_IMAGE_QUALITY.'.jpg';
change to
function pcs_href_image($src_path){
$strRet = DIR_WS_IMAGES.'/'.basename($src_path).'_'.PCS_MAX_IMAGE_HEIGHT.'_'.PCS_MAX_IMAGE_WIDTH.'_'.PCS_IMAGE_QUALITY.'.jpg';
#56
Posted 23 October 2008 - 06:30 AM
#57
Posted 25 October 2008 - 06:40 PM
i got this contri working, it is very nice; however, the flash (box) cover the sub-categories. Does any body know how to fix this, please help.
I haves sts template installed.
www.signartistic.com/catalog.
move the mouse over the categories.
the flash box cover the sub-categories.
Thanks,
NL
#58
Posted 25 October 2008 - 08:49 PM
tibolam, on Oct 25 2008, 07:40 PM, said:
i got this contri working, it is very nice; however, the flash (box) cover the sub-categories. Does any body know how to fix this, please help.
I haves sts template installed.
www.signartistic.com/catalog.
move the mouse over the categories.
the flash box cover the sub-categories.
Thanks,
NL
Tibolam, i just had a look and your menu sits on top of your product box ( then box in the middle that is rotating products, which is what i presume you meant by your flash box)
im am viewing using IE7
#59
Posted 26 October 2008 - 01:13 AM
abenk, on Oct 22 2008, 10:26 PM, said:
find
function pcs_href_image($src_path){
$strRet = DIR_WS_IMAGES.'pcs_images/'.basename($src_path).'_'.PCS_MAX_IMAGE_HEIGHT.'_'.PCS_MAX_IMAGE_WIDTH.'_'.PCS_IMAGE_QUALITY.'.jpg';
change to
function pcs_href_image($src_path){
$strRet = DIR_WS_IMAGES.'/'.basename($src_path).'_'.PCS_MAX_IMAGE_HEIGHT.'_'.PCS_MAX_IMAGE_WIDTH.'_'.PCS_IMAGE_QUALITY.'.jpg';Awesome contribution. Having same problem, images do not appear with same "Error1". Above suggestion did not help. I'm not using a template system. I'm on RC2a, PHP 5, MySQL 5.0.
I do not understand the purpose of this boldfaced section of `products_cycle_slideshow.php`, Line 13:
Quote
#60
Posted 26 October 2008 - 09:11 AM
Authors: "Olof Larsson"
New in this version:
* Bugfix. In previous version i forgott to add the folder catalog/images/pcs_images. This empty foler is added now and that's the only change. For you who experienced a slideshow without images this is the solution. Sorry ^^









