Hi!
I have a site, e.g. www.michaelsite.com/michaelspages/wordpress which displays a random thumbnail and does so rather well
However, I also want to display it in my zenphoto directory, so if I type in:
www.michaelsite.com/michaelspages/zenphoto/gallery1 the random photo will appear, however, this does not work. When I right-click the image to see the src, it has an extra 'zenphoto' in the address
How do I get around this issue?
Is it to do with my 'template-functions.php' file?
Or is there a bit of PHP I can do to eliminate any 'extra' zenphotos from the image src address.
Basically my use of the printRandomImages function is in a small php file held in www.michaelsite.com/michaelspages which then does the function and displays the pic - is this causing the issue?
Many thanks for any help.
Am happy to supply a link, if it could be removed at a later stage.
Did you set the right home (main) page path in the zenphoto options? That needs to be a full path like http://www.michaelsite.com.
Did you use the "zenphoto as a plugin" solution from our extenstions page?
I guess it would be easier if you post a link, we of course can remove it later if you wish.
Thanks for the reply
OK.
As you can see bottom left:
it works great
However as you can see bottom left:
it doesn't work
The file I'm using(that stores the printRandomImages() function) is at:
The code for 'test.php' is:
`
`
Any help at all, you can give, would be brilliant.
Thank you.
It's has clearly to do with the WEBPATH, but I just don't see right now...
Did you try exactly the solution "zenphoto as a plugin" on our extensions page: http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin
I have to admit I never tried that personally...(I just built two themes....;-))
Ah, try this, set for WEBPATH your full basic path `http://www.domain.com".
Well, I fear I am not gaining any glory from this today...I guess we better wait until one of my fellow devs who actually used it himself appears...
How do I check what version it is?
I see the Stopdesign code(it also doesn't work when I take it down to to the zenphoto directory). I just don't know why it can display a random image on one part, but not the other
Is it because my 'test.php' is in the WordPress folder?
Would it make more sense to have ZenPhoto in the 'wordpress' directory, so it'd be wordpress/zenphoto/
try
define('WEBPATH', '/flannigan/zenphoto');
Man, no matter what I do, it won't work
I've now got it so 'zenphoto' is below my 'wordpress', but it's still adding the 'zenphoto/eric-flannigan' part TWICE to my URL, when in zenphoto
E.g visit: - look at the random pic, bottom left and look at the img src for it.
I'm losing the will to live. Someone please help me out
`
`
GOT IT WORKING!!!
Runs off to play Boston - More than a Feeling so loud, it'll become popular again
Moderator:
Please remove the links to my temp site. Thanks!
Thank you once again for all your input.
In the end, I made two 'test.php' files and tweaked one of them.