PDA

View Full Version : GAB does not work with PhotoPost.


RBasil
11-29-2005, 12:40 AM
I added the new script for the PotoPost index (ppindex). The banner rotates and shows correctly, but all of the banner links point to (domain name removed).

http://www.domain-name-removed.com/gallery/index.php#top

RBasil
11-29-2005, 12:43 AM
Same problem with PhotoPost Classifieds:

http://www.domain-name-removed.com/classifieds/#top

RBasil
11-29-2005, 06:58 AM
I know the links above normally redirect you to the advertisers URL but when used on PhotoPost gallery and calssifieds the redirection does not work.

RBasil
11-29-2005, 07:13 AM
The link is looking for the gab_redirect.php file in the current directory. Of course since both the gallery and classifieds are in their own directory it bombs.

I tried setting the full URL to the gab_redirect.php file in the settings but no luck.

I've also tried adding the gab_redirect.php file to both the gallery and classifieds directories. No luck,

I then tried to enter the full path to the global.php file statement inside the gab_redirect.php file. No luck.

So it looks like at this time GAB will only work inside of your forums root directory. :(

I'm going to have to go back to using PHPAdsNew until we can find a workaround.

RBasil
11-29-2005, 10:17 AM
Hmmmm.... thats odd.

Do this:

Edit your GAB_item_image and change:

$GAB_settings[url_to_banners] to http://www.yourdomain.com/forums/

If you use rotating and/or flash banners, edit the GAB_item_flash and GAB_item_rotating templates accordingly.

HTHs'

I think I need to explain myself a little better. :)

The images are showing (and rotating) just fine. It's the link when I click on them that is not working. Changing the $GAB_settings[url_to_banners] in the template would only change where to look for the image (which is not the problem).

The Geek
11-29-2005, 10:27 AM
actually, I did understand you however I am being a doofus. You are right, ignore that (in fact, Im deleting it after this!)

This is what you need to do:

For Standard Banners:

Edit your GAB_item_images template and change:

href="$ad[url]"

to

href="http://www.mysite.com/forum/$ad[url]"


For ROLLOVERS:

Edit geek/gab/includes/gab_class_core.php and change:

$gab_urls.="'./" . $this->settings['redirectpage'] . "?id=$ad[id]&$redirect_url',";

to

$gab_urls.="'http://www.YOURSITE.com/forums/" . $this->settings['redirectpage'] . "?id=$ad[id]&$redirect_url',";



HTHs!!!

RBasil
11-29-2005, 10:18 PM
For ROLLOVERS:

Edit geek/gab/includes/gab_class_core.php and change:

$gab_urls.="'./" . $this->settings['redirectpage'] . "?id=$ad[id]&$redirect_url',";

to

$gab_urls.="'./" . $this->settings['redirectpage'] . "?id=$ad[id]&$redirect_url',";



HTHs!!!

The two lines above are exactly the same. :confused:

The Geek
11-29-2005, 10:31 PM
Thats because I was testing you :P

I jsut edited my doofusness :)

RBasil
11-30-2005, 12:57 AM
Worked like a charm. Thanks. :)