[SOLVED] page template jquery slideshow
I'm trying to do add this to a template file and not use a plugin. Using all latest versions - Wordpress ATA 3.711 and WP 3.5.1. I'm pretty new to WP programming so may be going about this all wrong. I'm attempting to read in files from an image folder for a slideshow. Gets hung up after
HTML Code:
<div id="myslides"> HTML Code:
<a href="http://74.115.229.75/kids-camp/">Here's the page</a> PHP Code:
PHP Code:
Code:
<?php |
Why don't you want to use a plugin? Most are built to intergrate easily, you won't have to maintain it yourself.
What do you mean that it gets hung up? depending on your host the '../../' may be violating a security rule, try using the full url |
If you view source on page it doesn't get any further than the div for the slideshow. I have code that works (outside of WP) so would rather just keep it simple and not use a plugin that may or may not do what I want. I have some other complicated plugins to add in later so using as few as I can so as not to bog down the system.
Used full URL for scripts and still nothing. Seems to be broken at Code:
foreach ( new DirectoryIterator($img_directory) as $item ) { Code:
<?php |
I have part of problem narrowed down to issue with opendir and path to images folder. Could you take a quick look and let me know why folder is wrong. I've asked wordpress forum but no response from anyone. I can see image at http://74.115.229.75/wp-content/them...amp/KCimg1.jpg but script tells me - There is an error with your image directory! Page is at http://74.115.229.75/kids-camp/ and here is php code:
Code:
<?php |
Do a google search on 'wordpress bloginfo' and see what it returns
|
Hmmm I can see exactly what it returns as I have an echo on the variable. If you look at the page you can see what I get back which seems right but its not working. Sorry I don't get the sense you are looking at my problem/
|
Quote:
What is the file permission for the folder? |
Thanks for yur help so far! I think I am getting closer. I have loaded following code into header.php before wp_head ();
PHP Code:
Put styles in proper place. My template php to load images is working now. I needed server path to get opendir to work right. I'm still unsure how to handle the actual jquery function. Should I make another js file for this function (with conditional statement added for template) and where do I call / load it? Here's latest template code and page I'm testing: Code:
<?php |
Hey I got it working
|
congratulations!
|
All times are GMT -6. The time now is 12:14 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.