This says "if not in array..."PHP Code:
if (!in_array(
From the pagenames, it would seem you would want to hide the banner for the listed pages, so you would usewithout the !PHP Code:
if (in_array(
This says "if not in array..."PHP Code:
if (!in_array(
From the pagenames, it would seem you would want to hide the banner for the listed pages, so you would usewithout the !PHP Code:
if (in_array(
Glenn:
That's what I thought but when it didn't work I started to second guess myself. I don't know enough to have confidence in my code.
Anyway, removing the exclamation point may have fixed that part of the statement but it still does not work. I'm guessing that I am not calling out the banner correctly. I have tried banner, banners, bannerThree, and Wide-Banners all to no avail.
I would appreciate if you could guide me a little bit more.
My site is http://poolcuesexpress.com/testsite
Dave
I'm not familiar with banner function and coding, as I don't use them. Someone who has experience with them could probably answer better on this.
Glenn:
Thanks for your help.
Dave
Hi,
I have installed 2.4.1 and worked through the installation but nothing appears. Can anyone see where I am going wrong -
http://veganmealsdelivered.com.au/demo
Thanks
Cancel that, went through it again from scratch and works now. Is good :)
Glad it's working now:) I didn't see anything obvious when I looked at it.
OK. I could use a guiding hand again.
I want to have a separate slideshow for each of my main categories. I got it figured out to get the same slideshow to appear in the main categories, but when I try to copy the code in includes/templates/my template/jscript/jscript_fadeshow_setup.php to create a new slideshow in one of the main category pages and insert the new div I get the following:
Error: DIV with ID fadeshow_ not found on page.
Here is the code I have been playing around with.
<?php
if($category_parent) {// set any desired condition for each slideshow}
?>
<?php
/*
if ($this_is_home_page) {$flag_disable_fadeshow2= true;//set any desired condition for each fadeshow}
*/
?>
<?php
/*
*if (!in_array($current_page_base,explode(",",'main_page,Pool_Cues,shopping_cart,log in,checkout,fec_confirmation,checkout_success')) ) {
* $flag_disable_fadeshow1= true;}
*/
?>
<script type="text/javascript">
/* Ultimate Fade-in slideshow (v2.4)
* Last updated: May 24th, 2010. This notice must stay intact for usage
* Author: Dynamic Drive at http://www.dynamicdrive.com/
* Visit http://www.dynamicdrive.com/ for full source code
*/
/*
This content is intended to be user-modified; it simply invokes the Dynamic Drive code.
Change any parameters to fit your display needs.
*/
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
dimensions: [750, 30], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["/images/slideshow/slide1.jpg", "/index.php?main_page=page&id=4", "", ""],
["/images/slideshow/slide2.jpg", "/index.php?main_page=page&id=4", "", ""],
["/images/slideshow/slide3.jpg", "/index.php?main_page=page&id=7", "", ""],
["/images/slideshow/slide4.jpg", "", "", ""] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:3000, cycles:0, wraparound:false, randomize:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
<?php }?>
<?php
if($category_parent) {// set any desired condition for each slideshow}
?>
<?php
/*
*if ($this_is_home_page) {$flag_disable_fadeshow2= true;//set any desired condition for each fadeshow}
*/
?>
<?php
/*
*if (!in_array($current_page_base,explode(",",'main_page,Pool_Cues,shopping_cart,log in,checkout,fec_confirmation,checkout_success')) ) {
* $flag_disable_fadeshow1= true;}
*/
?>
<script type="text/javascript">
/* Ultimate Fade-in slideshow (v2.4)
* Last updated: May 24th, 2010. This notice must stay intact for usage
* Author: Dynamic Drive at http://www.dynamicdrive.com/
* Visit http://www.dynamicdrive.com/ for full source code
*/
/*
This content is intended to be user-modified; it simply invokes the Dynamic Drive code.
Change any parameters to fit your display needs.
*/
var mygallery=new fadeSlideShow({
wrapperid: "fadeshow2", //ID of blank DIV on page to house Slideshow
dimensions: [750, 30], //width/height of gallery in pixels. Should reflect dimensions of largest image
imagearray: [
["/images/slideshow/slide1.jpg", "/index.php?main_page=page&id=4", "", ""],
["/images/slideshow/slide2.jpg", "/index.php?main_page=page&id=4", "", ""],
["/images/slideshow/slide3.jpg", "/index.php?main_page=page&id=7", "", ""],
["/images/slideshow/slide4.jpg", "", "", ""] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:3000, cycles:0, wraparound:false, randomize:false},
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
descreveal: "ondemand",
togglerid: ""
})
</script>
<?php }?>
Any help would be appreciated.
Dave
Hi, I am currently working on a development site that is hosted on my computer. I want to put the ultimate fade-in slideshow or something similar in the header area directly behind the company logo. Does anyone know if this can be accomplished? I believe I was able to do this once before, but it was years ago and I don't recall how I did it.
If it can be done, what file do I edit, what code should I use and where exactly should I put it? Also it has to be responsive. I tested out version 2.6.1 which is supposed to be responsive on the home page and it seems to work fine. Normally this code gets pasted on the page where you want the slideshow to show, but how do I get it work correctly in the header?
Thanks in advance for your any help you can give.
Bookmarks