Re: SOLVED!! - How to Place Fade Slideshow in Category (top of page)
This is excellent that you have got this working, but the code you posted will certainly cause validation errors if not runtime errors. Zen Cart automatically sends all of these tags
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>
<body>
(and matching closing tags)
and including them in file content will duplicate them, which is not good.
Re: SOLVED!! - How to Place Fade Slideshow in Category (top of page)
Quote:
Originally Posted by
gjh42
This is excellent that you have got this working, but the code you posted will certainly cause validation errors if not runtime errors. Zen Cart automatically sends all of these tags
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>
<body>
(and matching closing tags)
and including them in file content will duplicate them, which is not good.
So what you are saying is to remove the tags mentioned above? I was under the impression we had to use these tags when placing inside a ezpage, category...but not when we want in code in a header, specific page, etc. Please explain. If I have this wrong, I want to correct and clarify on the forum. I am not getting any errors, so how can I tell if this is working properly?
Thanks
Re: SOLVED!! - How to Place Fade Slideshow in Category (top of page)
You never need to include the tags in any code you are generating.
See frank18's post #5, and adjust the if test for the category:
/includes/templates/YOUR_TEMPLATE/common/html_header.php and insert this piece of code just before the </head> tag:
PHP Code:
<?php
if ($current_page_base == 'index' and $_GET['cPath'] == 'your_cat_cPath'){
?>
[script code]
<?php } ?>
You would put the empty div he mentions into your category's description.
Re: SOLVED!! - How to Place Fade Slideshow in Category (top of page)
Quote:
Originally Posted by
gjh42
You never need to include the tags in any code you are generating.
See frank18's post #5, and adjust the if test for the category:
/includes/templates/YOUR_TEMPLATE/common/html_header.php and insert this piece of code just before the </head> tag:
PHP Code:
<?php
if ($current_page_base == 'index' and $_GET['cPath'] == 'your_cat_cPath'){
?>
[script code]
<?php } ?>
You would put the empty div he mentions into your category's description.
Glenn---
You are absolutely correct! I removed the tags mentioned and all is good! What was I thinking? I knew those tags didn't belong there... sorry if I misguided anyone. :blush: I was just wanting this to work! All is good!
The script works...just remove the tags Glenn mentioned and you are in business. Thanks Glenn for pointing this out to me. I'm still kinda new to this php stuff but I'm coming around somewhat. :yes:
Thanks,
Pkat
Re: SOLVED!! - How to Place Fade Slideshow in Category (top of page)
I know that works - I did the same thing when I first put the v1.5 slideshow in a site a year ago, stripping the tags - but it still is not the "correct" method. Frank's description gets the script in the head where it belongs, and my tweak above will make it appear only for that category.
Re: can't get Ultimate Fade-in slideshow v2.1 to work on main page
Handy hint Glenn! Much appreciated - thanks
The site in question is now live and up and running (see first link in my signature)
Frank
Re: SOLVED!! - How to Place Fade Slideshow in Category (top of page)
Quote:
Originally Posted by
gjh42
You never need to include the tags in any code you are generating.
See frank18's post #5, and adjust the if test for the category:
/includes/templates/YOUR_TEMPLATE/common/html_header.php and insert this piece of code just before the </head> tag:
PHP Code:
<?php
if ($current_page_base == 'index' and $_GET['cPath'] == 'your_cat_cPath'){
?>
[script code]
<?php } ?>
You would put the empty div he mentions into your category's description.
Thanks Glenn. I am trying to do this the right way. I do have a question about the piece of code you posted. Do I need to alter this in anyway? Sorry...but I don't know much about coding and not sure about the ['cPath'] == 'your_cat_cPath'){
What needs to go in these areas...if anything?
Thanks! You have been a great help with this and I appreciate it.
Pkat
Re: SOLVED!! - How to Place Fade Slideshow in Category (top of page)
your_cat_cPath is a placeholder for the actual cPath to your category. The URL you mention has &cPath=1 which means that the cPath is '1'.
PHP Code:
<?php
if ($current_page_base == 'index' and $_GET['cPath'] == '1'){
?>
Re: can't get Ultimate Fade-in slideshow v2.1 to work on main page
Works great for me:clap:
Thank you all!
Re: can't get Ultimate Fade-in slideshow v2.1 to work on main page
Folks, just noted that a new version (v2.4) has been released. Therefore please take my 'recipe' in post #5 with a pinch of salt. You may want to carefully compare the scripting of v2.4 to the stuff I posted earlier.
Frank