vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Geek Advertising Banner system RC1 (https://vborg.vbsupport.ru/showthread.php?t=79791)

fogua 05-10-2005 03:32 PM

Quote:

Originally Posted by The Geek
That test is saying that
You dont have a valid script to test (ie there is no banner specified for that script)

Make sure you have valid scripts ticked in the settings and a banner that is also ticked for those scripts


Please Geek Sorry
But Im desperate couse is the only thing missing before going online. Can you go to my admin and check its ok
I allready check and re ckeck and dont seem to find the problem

Thanks 100000 :)

The Geek 05-10-2005 03:48 PM

Quote:

Originally Posted by fogua
Please Geek Sorry
But Im desperate couse is the only thing missing before going online. Can you go to my admin and check its ok
I allready check and re ckeck and dont seem to find the problem

Thanks 100000 :)

There were a few problems.
1- Admin usergroup had the option of turning off ads if the bio was blank.
2- No $GAB_ad1 appeared in your templates (so no ad would appear)
3- Only forumhome was ticked - I did forumdisplay for you.

fogua 05-10-2005 04:36 PM

Quote:

Originally Posted by The Geek
There were a few problems.
1- Admin usergroup had the option of turning off ads if the bio was blank.
2- No $GAB_ad1 appeared in your templates (so no ad would appear)
3- Only forumhome was ticked - I did forumdisplay for you.


Ok thanks
so the 2 point is the one missing
How do I add $GAB_ad1 and on what file?

The Geek 05-10-2005 04:45 PM

Quote:

Originally Posted by fogua
Ok thanks
so the 2 point is the one missing
How do I add $GAB_ad1 and on what file?

you ad it to whatever template you want ads to appear in (i.e. navbar). Read the README as it explains all.

zell_11 05-10-2005 05:15 PM

ok when i go into packages i get

Database error in vBulletin 3.0.6:

Invalid SQL: SELECT * FROM GAB_packages ORDER BY ordinal,title,id asc
mysql error: Table 'zenoga.GAB_packages' doesn't exist

mysql error number: 1146

Date: Tuesday 10th of May 2005 07:13:46 PM
Script: http://www.zenogaming.com/forums/adm...isplaypackages
Referer: http://www.zenogaming.com/forums/adm...dex.php?do=nav
Username: Cid
IP Address: 81.158.97.160


and when i try and add one i get

Invalid SQL: INSERT INTO GAB_packages
(title,description,price,currency,duration,frequen cy,scripts,forumids,ordinal,hits,views) VALUES (
'',
'',
,
'GBP',
0,
0,
'',
'101,113,114,115,116,98,106,105,104,103,102,100,11 0,111,112,99,107,108,109,22,29,30,31,32,33,34,35,5 7,23,24,25,26,27,28,80,87,88,81,82,92,117,95,40,85 ,41,42,43,55,86,',
0
0,
0
)
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '
'GBP',
0,
0,
'

mysql error number: 1064

Date: Tuesday 10th of May 2005 07:15:18 PM
Script: http://www.zenogaming.com/forums/admincp/GAB_admin.php
Referer: http://www.zenogaming.com/forums/adm...?do=addpackage
Username: Cid
IP Address: 81.158.97.160


i have tried reinstalling the database but still no luck, anyone able to give me a manual run of the sql or somthing

The Geek 05-10-2005 05:19 PM

packages are not implimented yet. You dont need them for the ads.

kafi 05-10-2005 07:19 PM

Hi, thank you for your system. I am keen to work with it.

I found mistake during my installation. I had to change index in admincp and global.php myself.
I got message to do it so it is ok up to now.

But then i was directed to do as follow:
step 200
--------------------------------------------------------------------------------

in admincp/index.php, replace:

--------------------------------------------------------------------------------

$printhr = false;
if (can_administer('canadminstyles'))
{
--------------------------------------------------------------------------------

with:

--------------------------------------------------------------------------------

= false;
// === GAB ===
construct_nav_option($vbphrase['GAB_settings'], 'GAB_admin.php?do=settings');
construct_nav_option($vbphrase['GAB_display_ads'], 'GAB_admin.php');
construct_nav_option($vbphrase['GAB_add_ad'], 'GAB_admin.php?do=add');
construct_nav_option($vbphrase['GAB_display_packages'], 'GAB_admin.php?do=displaypackages');
construct_nav_option($vbphrase['GAB_add_package'], 'GAB_admin.php?do=addpackage');
construct_nav_option($vbphrase['GAB_display_frequency'], 'GAB_admin.php?do=displayfrequency');
construct_nav_option($vbphrase['GAB_add_frequency'], 'GAB_admin.php?do=addfrequency');
construct_nav_option($vbphrase['GAB_test'], 'GAB_admin.php?do=test');
construct_nav_group($vbphrase['GAB_CP']);
$printhr = true;
$printhr = false;
// === GAB ===
$printhr = false;
if (can_administer('canadminstyles'))
{


I got error in admincp, so I tried to figure out what is wrong /i am not coder/.
I have instead of your "replace with" but everything in "// === GAB ===" between "$printhr = false;" and "if (can_administer('canadminstyles'))
{"

Hope it is ok, because it works.

kafi 05-10-2005 08:22 PM

I am trying to add banner, but do not now how. I copied the image to gab folder. What is next. Trying to add banner i am getting this message:

Warning: copy(./gab/toto.gif): failed to open stream: No such file or directory in /home/www/xxxxxxxx/www/admincp/GAB_admin.php on line 716

The Geek 05-10-2005 08:23 PM

Quote:

Originally Posted by kafi
I am trying to add banner, but do not now how. I copied the image to gab folder. What is next. Trying to add banner i am getting this message:

Warning: copy(./gab/toto.gif): failed to open stream: No such file or directory in /home/www/xxxxxxxx/www/admincp/GAB_admin.php on line 716

you sure you have a folder in your forum directory called gab and its chmod to 0777?

kafi 05-10-2005 08:38 PM

somhow i mannaged to add banner but i am getting same error message as fogua with test:

Variables passed varibales: Usergroup: Administrators (6), script=index (0), forum=blablablabla(10)
Problem No script was passed therefore no ad can be pulled.
Usergroup Passed usergroup. This usergroup is set to view an ad.
Toggle Passed usergroup toggle test. This usergroup could toggle ads on or off.
Script Passed script test. We are in a script that is set to view an ad.
Results: Um. err... No ads matched the criteria:
SELECT DISTINCT ad.id,ad.img,ad.track_shown, ad.max_views, ad.views FROM GAB_ads ad INNER JOIN GAB_listing lst on ad.id=lst.adid WHERE (lst.script = 'forumdisplay') AND ((startdate<1) or (startdate<1115761084)) and ((enddate<1) or (enddate>1115761084)) AND isactive=1 AND (lst.forumid = 10) ORDER BY RAND() LIMIT 2

.....after 5 min.

I have change dates, so it works now and I am getting this:
Variables passed varibales: Usergroup: Administrators (6), script=index (0), forum=Mzdové účtovníctvo, personalistika, odvody(10)
Problem No script was passed therefore no ad can be pulled.
Usergroup Passed usergroup. This usergroup is set to view an ad.
Toggle Passed usergroup toggle test. This usergroup could toggle ads on or off.
Script Passed script test. We are in a script that is set to view an ad.
Results: $GAB_ad1


All times are GMT. The time now is 07:44 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01744 seconds
  • Memory Usage 1,756KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete