PhotoPlog

PhotoPlog (http://www.photoplog.com/forum/index.php)
-   Troubleshooting & Problems (http://www.photoplog.com/forum/forumdisplay.php?f=6)
-   -   Photoplog Lite Redirecting To Wrong URL (http://www.photoplog.com/forum/showthread.php?t=20)

furst 01-13-2006 08:27 AM

Photoplog Lite Redirecting To Wrong URL
 
I have sub-domain forwarding and sub-domain script in place and I can't get photoplog to work properly with it. Every time someone clicks a picture or goes to a user gallery while they are in a sub-domain they get redirected back to the /www dir.

If you can help me out I would appreciate it greatly. I posted this on vb.org before but everything you said was tried to no avail. I can show exactly what I mean, I just didn't want to post the link to my site here incase you would consider it to be spam.

Morgan 01-13-2006 05:24 PM

As you are looking for help, you can post a link without worry. ;)

Does you vB Homepage URL setting have www or something else?

furst 01-13-2006 08:19 PM

I'll post links to individual threads as I've taken photoplog off the main page and the navbar. Look for "gallery" in the postbit.

http://hiphop.bowrd.com/showpost.php?p=201&postcount=4

http://judgecryptic.bowrd.com/showpo...56&postcount=3


See. When you just enter the gallery everything is fine. The trouble comes when clicking a link inside the gallery. The sub-domain is not maintained and I'm taking back to bowrd.com instead of the proper sub-domain.. no bueno. I'd love to have this on my site but if I can't get it to work I'll have to spend the $60.00 on the vbgallery.

Morgan 01-13-2006 08:35 PM

Can't see the gallery, no guests allowed.

furst 01-13-2006 08:47 PM

Oi, sorry.. check now.

Morgan 01-14-2006 12:03 AM

In settings.php find:
Code:

// this assumes version 1.0.6.1...
$photoplog_location = $photoplog_schemehost.$vbulletin->options['photoplog_script_dir'];

// otherwise it is something like...
$photoplog_location = 'something here...';

And replace with:
Code:

$photoplog_location = 'http://hiphop.bowrd.com/gallery';

furst 01-14-2006 12:09 AM

That wont work. I have more than one sub-domain. What am I to do for the judgecryptic sub-domain then?

Morgan 01-14-2006 12:31 AM

Code:

if (eregi("^http://hiphop",$_SERVER['HTTP_REFERER']))
{
    $photoplog_location = 'http://hiphop.bowrd.com/gallery';
}
else if (eregi("^http://judgecryptic",$_SERVER['HTTP_REFERER']))
{
    $photoplog_location = 'http://judgecryptic.bowrd.com/gallery';
}
else
{
    // don't know where to go as there is no referrer so exit
    exit();
}



All times are GMT. The time now is 05:39 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.