|
Tutorials Tutorials and articles on using vB Geek stuff. |
Advertisement | |
Learn how to remove ads |
|
Tutorial Tools | Display Modes |
Published by gldtn
10-24-2005 |
||||||||||
|
||||||||||
|
#5
By
gldtn
on
11-20-2005, 08:01 AM
|
The only way I got
gab
to redirect correctly under CMPS(outside from forum dir.) to work was by adding a variable to gab_class_core.php:
Under this code: Code:
$sql=" SELECT ad.id,ad.url, ad.img imgpath,c.track_views, c.track_hits, ad.max_views, ad.width, ad.height, ad.views, ad.template, ad.frequency, c.template cat_template FROM " . TABLE_PREFIX . "GAB_ads ad INNER JOIN " . TABLE_PREFIX . "GAB_cats c ON ad.catid=c.id WHERE ad.isactive = 1 AND ((ad.startdate<1) or (ad.startdate<" . TIMENOW . ")) and ((ad.enddate<1) or (ad.enddate>" . TIMENOW . ")) $forumsx $adtype AND c.scripts like '%," . $scriptname . ",%' $limitids ORDER BY RAND() LIMIT $bannercount "; //echo($sql); exit; Code:
$redirectpg="/forum/"; Code:
$gab_urls.="'./" . $this->settings['redirectpage'] . "?id=$ad[id]&$redirect_url',"; Code:
$gab_urls.="'$redirectpg" . $this->settings['redirectpage'] . "?id=$ad[id]&$redirect_url',"; Makes sense? Perhaps you can add this as an default? Thanks |
Last edited by gldtn; 11-20-2005 at 08:08 AM..
|
Tutorial Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Tutorial | Tutorial Starter | Category | Comments | Last Post |
Gars & Vbadvanced 3.0 CMPS | astranoc | Geek Article and Review System | 7 | 06-11-2008 12:32 AM |
GAB on Vbadvanced questions | ppc | Geek Advertising Banner System | 0 | 07-18-2006 12:44 AM |
vBadvanced CMPS integration | vbStartup | GeekMart | 14 | 06-29-2006 03:18 AM |
GAB does not work with vbadvanced | dongdong | Geek Advertising Banner System | 7 | 04-13-2006 05:52 PM |
adsense only on vBadvanced CMPS | Seeker | Geek Advertising Banner System | 1 | 10-31-2005 09:31 PM |