Hi everyone. Newbie question here. Where/how do I edit the path to the main album page?
You can check it out here:
http://www.travelalongwithme.com/gallery/. If you scroll over the album link you'll see it directs to:
http://www.travelalongwithme.com/www.travelalongwithme.com//gallery/index.php?album=Indiawhen it should just be
http://www.travelalongwithme.com/gallery/index.php?album=India.
Why is the extra "domain/" included in the path to the main folder? As a result all my links are off on the gallery, album, and image pages. They work for some reason, but their wrong.
Extra info: this is installed on a subdomain, with mod_rewrite off.
Thanks in advance for anyone who can help me out.
Comments
What changes (if any) have you made to the theme? You should not have to do anything for things to work right. Have you tried one of the unmodified themes to see if it works?
Anything else you might have done, such as edits to your zp-config.php file?
The only changes I made to the theme were to change the background and some minor styling. I reuploaded the original light.css with no effect on the href, so that's not it.
Here's the guts of the zp-config file:
$conf['mysql_database'] = "travelalongwithme_com";
$conf['album_folder'] = '/albums/';
$conf['external_album_folder'] = null;
The path overrides at the bottom are still commented.
Do you have any other ideas?
Thx
Where is zenphoto pulling that href from? Is there not a file in zenphoto with code that controls what href shows up on the on the gallery, album, and image pages?
" title="View album: <?php echo getAlbumTitle();?>"><?php printAlbumThumbImage(getAlbumTitle()); ?>
<?php echo getAlbumLinkURL();?> is the one that generates the link
i searched the forum pretty well earlier today and the only thing i saw similar was this thread
which had double slashes in the href url. about midway down, the posts by aitf311 & acrylian.
anyone else have any ideas? this is driving me crazy.
whats the subdomain it is installed on ? or is it installed in a subdirectory ?
the master domain is www.tilakpyle.com, and all of the below urls work:
www.travelalongwithme.com/gallery/
www.travelalongwithme.com/www.travelalongwithme.com/gallery/
www.tilakpyle.com/www.travelalongwithme.com/gallery/
What did you enter for gallery url within admin options? There your domain zenphoto is installed in should go like this `http://www.domain.com`
You could try uncommenting and adjusting these lines at the bottom of zp-config.php too:
`// define('WEBPATH', '/zenphoto');
// define('SERVERPATH', '/full/server/path/to/zenphoto');`
It looks like the serverpath was messing it up. My phpinfo file showed this as the serverpath: "/export/home/tilakpyle.com/public_html/www.travelalongwithme.com//gallery/". If I used this to define the server path in zp-config (without the webpath defined), it gives me the double name at the beginning of the url. But defining the webpath takes care of it, even if the above serverpath is defined right after it.
Thanks for everyone's help!
Now to see if mod_rewrite works. <fingers crossed>