The vB Geek

Go Back   The vB Geek > vB Geek Modifications > Tutorials

Tutorials Tutorials and articles on using vB Geek stuff.

Advertisement
  Learn how to remove ads

Comment
 
Tutorial Tools Display Modes
GAB on vBAdvanced CMPS
GAB on vBAdvanced CMPS
Published by gldtn
10-24-2005
Default GAB on vBAdvanced CMPS

Hello GAB users,

It took me a while to figure out why my GAB system was not functioning under the vBadvanced CMPS portal system. So in order to prevent everyone else from those annoying headaches I taught it would be a good idea to show everyone else how to do this properly.

Ok! lets get started.

vBa CMPS Settings:
1. Point your browser to http://www.your_site.com/forum_dir/admincp_dir/[/url] and login into it
Scroll down to vBa CMPS menu and open it up
2. Click on Default Settings
3. Scroll down to the Options settings and look for Portal Output Global Variables
4. On the field to the right add GAB_ads
5. Scroll down and click save

GAB Settings:
1. Go to GAB Manager » Settings
2. Set the Relative UL path to banners folder( geek/gab/images/ ? - note no leading slash!!!) to the FULL URL I.E http://www.youdomain.com/forum_dir/geek/gab/images/

And guess what?

Yes! Your done.

Oops I guess I lied..
  • "..ensure that each category has adv_index ticked." - Geek
  • Point to your vBadvanced CMPS page and make sure it's showing up
Nooww your done

known issues :
If CMPS is in a different directory than forum directory It directs you to an 404 page.

NJoy!
Tutorial for
GAB

Tutorial Tools
Show Printable Version  Email this Page 

  #1  
By COBRAws on 11-07-2005, 04:35 AM
Default

I spent around 40 minutos trying to know how to make it work in vBa. hhhe thanks man
Reply With Quote
  #2  
By gldtn on 11-19-2005, 12:53 AM
Default

Updated Added one more step, cause only the wrapper was showing up on CMPS.
Reply With Quote
  #3  
By gldtn on 11-20-2005, 02:49 AM
Default

Updated: It now needs file edit in order to redirect to work..

Geek,
I need to upload a *.php file but it's a invalid file..

gab_class_core.php:
Invalid File
Reply With Quote
  #4  
By The Geek on 11-20-2005, 07:51 AM
Default

Why does a gab file need an edit? There shouldnt need to be an edit to that file? Plus I would cringe to see one of my scripts posted ;P
Reply With Quote
  #5  
By gldtn on 11-20-2005, 08:01 AM
Default

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;
I Added:
Code:
$redirectpg="/forum/";
And Changed:
Code:
$gab_urls.="'./" . $this->settings['redirectpage'] . "?id=$ad[id]&amp;$redirect_url',";
To this:
Code:
$gab_urls.="'$redirectpg" . $this->settings['redirectpage'] . "?id=$ad[id]&amp;$redirect_url',";
These changes were necessary in order to call gab_redirect.php correctly due to the ./ dir you set in the code and users were unable to set where gab_redirect.php resides on the server(full dir).

Makes sense?

Perhaps you can add this as an default?

Thanks
Last edited by gldtn; 11-20-2005 at 08:08 AM..
Reply With Quote
  #6  
By The Geek on 11-20-2005, 08:13 AM
Default

Ok, I see what youre saying. You mean that if its OUTSIDE the forum directory, you get a 401 error? Ill sort that!

I was starting to set it back up here today however I now have to run - having a party today and the Wife is giving me evils :P
Reply With Quote
  #7  
By gldtn on 11-20-2005, 08:22 AM
Default

Thats exactly it!

Ok will be waiting for the fix.. will also take the edit file part from tutorial.

Have fun at the party!
Reply With Quote
  #8  
By dongdong on 11-27-2005, 09:17 PM
Default

dont work for me in vba portal with this tut

any help?
Reply With Quote
  #9  
By gldtn on 11-29-2005, 04:05 PM
Default

Getting any errors?

Is navbar enabled in vBaCMPS? If not you'll need to add $GAB_ads[x] to you adv_portal main template.
Reply With Quote
Comment

Tutorial Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 06:22 AM.


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

Tutorial powered by GARS 2.1.9 ©2005-2006