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)

tomshawk 06-30-2005 01:23 PM

OK, This is wierd.

I create a banner, and upload the image but it doesn't show up, even in the admincp banner setting screen.
I ftp in, to verify the image got copied in, it did, I see it sitting there!
But...

In the admincp, banner setting, the image does not display.

I told it to load in the header, as well as forumhome template.
Nothing shows, no banner and no image.

I try setting up an adsense, using my adsense code in the adsense template, Still nothing in header or forumhome.

Any ideas, as to what I may have done wrong?

The Geek 06-30-2005 02:05 PM

Quote:

Originally Posted by tomshawk
OK, This is wierd.

I create a banner, and upload the image but it doesn't show up, even in the admincp banner setting screen.
I ftp in, to verify the image got copied in, it did, I see it sitting there!
But...

In the admincp, banner setting, the image does not display.

I told it to load in the header, as well as forumhome template.
Nothing shows, no banner and no image.

I try setting up an adsense, using my adsense code in the adsense template, Still nothing in header or forumhome.

Any ideas, as to what I may have done wrong?

Just check your templates for me. Another user upgraded yesterday and for some odd reason only a couple templates installed resulting in something similar. After running the template portion of the install again, it worked.
If you want to see a list of the templates that should be there, click settings->templates. The right hand columns are templates that should have installed.

tomshawk 06-30-2005 02:23 PM

These are te template I have

GAB_item_image
GAB_item_flash
GAB_custom_adsense
GAB_custom_custom1
GAB_item_rotating
GAB_wrapper_standard

I went ahead and reinstalled them for giggles, same thing

There is one odd thing, in Gab manager\Settings\Templates
The GAB_item_rotating template does not show up on that list, I just noticed it in the Style Manager

Because of that, I added a new Template called Rotating Banner with that template, but it did not matter.

Also, I did not upgrade, I did a fresh install to my testvb forums to get a clean start.

The Geek 06-30-2005 02:42 PM

Quote:

Originally Posted by tomshawk
These are te template I have

GAB_item_image
GAB_item_flash
GAB_custom_adsense
GAB_custom_custom1
GAB_item_rotating
GAB_wrapper_standard

I went ahead and reinstalled them for giggles, same thing

There is one odd thing, in Gab manager\Settings\Templates
The GAB_item_rotating template does not show up on that list, I just noticed it in the Style Manager

Because of that, I added a new Template called Rotating Banner with that template, but it did not matter.

Also, I did not upgrade, I did a fresh install to my testvb forums to get a clean start.

The rotating template is hard coded for selection when you set up an ad that rotates.

Tom, caould you spare me an admin account to have a look at your settings?

The Geek 06-30-2005 02:47 PM

BTW: is it adsense you are setting up? Did you put the adsense (or any text) in the GAB_custom_adsense template? Did you set up the ads in the scripts correctly?

The ads are defined in the script (generally MASTER while all others 'use master' unless you want to override the setting). For adsense, you need to have an ad block in the script in question, the wrapper template needs to be set to standard and the custom/adsense put in the ad pull down box

Also, all have to be marked as 'active' ;)

tomshawk 06-30-2005 06:11 PM

Private Message sent,

Yes, I placed my adsense code in the adsense template ;)

waza 06-30-2005 06:16 PM

I get this error:
Fatal error: Cannot redeclare class gab_base in /home/wazabe/public_html/forum/includes/gab_class_core.php on line 4

The Geek 06-30-2005 06:24 PM

Quote:

Originally Posted by waza
I get this error:
Fatal error: Cannot redeclare class gab_base in /home/wazabe/public_html/forum/includes/gab_class_core.php on line 4

You most likely did the file change twice. Double check your global.php file edits (search for gab)

waza 06-30-2005 06:28 PM

Uhu, indeed.
But you know, file change 101 was done, and file change 100 and 200 weren't ?? :s

The Geek 06-30-2005 06:32 PM

Quote:

Originally Posted by waza
Uhu, indeed.
But you know, file change 101 was done, and file change 100 and 200 weren't ?? :s

ah.

Sometimes people miss the 'couldnt complete step xxx' message that is a link to the manual change.

nJoy

The Geek 06-30-2005 06:32 PM

Quote:

Originally Posted by tomshawk
Private Message sent,

Yes, I placed my adsense code in the adsense template ;)

sorted you ;)

tomshawk 06-30-2005 07:07 PM

Quote:

Originally Posted by The Geek
sorted you ;)

sort of, you got the Master working, but, I still cant get adverts I create working.

Thoughts?

tomshawk 06-30-2005 07:24 PM

Quote:

Originally Posted by tomshawk
sort of, you got the Master working, but, I still cant get adverts I create working.

Thoughts?

Bingo, got it now

Thank you The Geek

Most excellent, maybe its just me, you may want to revise the instructions a little, but, again, sometimes I'm a little thick headed. :p

You rock

The Geek 06-30-2005 07:41 PM

I agree. I dont think its clear enough how to set up the ads - I am going to revise my readme ;)

Hanif 07-02-2005 09:17 AM

Geek a further error, when you do a search the following error is displayed,

Database error in vBulletin 3.0.7:

Invalid SQL:
SELECT postid
FROM vb3_postindex
WHERE wordid IN(760)

mysql error: Can't open file: 'vb3_postindex.MYD'. (errno: 145)

mysql error number: 1016

Date: Saturday 02nd of July 2005 11:12:28 AM
Script: http://www.muslimprofessionals.org.uk/forums/search.php
Referer: http://www.muslimprofessionals.org.u...ms/search.php?

The Geek 07-02-2005 09:31 AM

Quote:

Originally Posted by Hanif
Invalid SQL:
SELECT postid
FROM vb3_postindex
WHERE wordid IN(760)

Hey hanif - this cant have anything to do with GAB. Looks like you have a corrupt table.

Marco van Herwaarden 07-02-2005 10:55 AM

Try repairing your tables (more then once if needed). This is a database file corruption and has nothing to do with vB or a hack.

Quote:

Error code 145: Unknown error 145
145 = Table was marked as crashed and should be repaired
Quote:

Originally Posted by Hanif
Geek a further error, when you do a search the following error is displayed,

Database error in vBulletin 3.0.7:

Invalid SQL:
SELECT postid
FROM vb3_postindex
WHERE wordid IN(760)

mysql error: Can't open file: 'vb3_postindex.MYD'. (errno: 145)

mysql error number: 1016

Date: Saturday 02nd of July 2005 11:12:28 AM
Script: http://www.muslimprofessionals.org.uk/forums/search.php
Referer: http://www.muslimprofessionals.org.u...ms/search.php?


Hanif 07-02-2005 04:30 PM

Apologies for Geek and everyone on here thinking that it was something to do with GAB.

I should have researched a bit more before barging in.

Sadly, I have got a SQL database problem and the damn thing wont load up now.

So peed.

Kind regards,

Hanif

Philipf 07-03-2005 10:10 PM

Right, I dont normally post unless I absolutly have to. But I have tried installing this twice now, and both time I have got nowhere. The problem Im having is....well Im not sure, it doesn't kick out any errors or problems, but it doesn't show any banners either.

I am setting it up correctly, I am putting the required code into the correct templates, but stilll no luck, I am using 3.0.5, so could that be the problem? I didn't think there was much between the 2.

It is currently uninstalled because I was trying to implement phpadsnew, but that gave me the same problem. But I wanted something that was meant for vB anyway. Maybe its the skin?

Any help would be appreciated.

Thanks, Philip

The Geek 07-04-2005 06:31 AM

Quote:

Originally Posted by Philipf
Right, I dont normally post unless I absolutly have to. But I have tried installing this twice now, and both time I have got nowhere. The problem Im having is....well Im not sure, it doesn't kick out any errors or problems, but it doesn't show any banners either.

I am setting it up correctly, I am putting the required code into the correct templates, but stilll no luck, I am using 3.0.5, so could that be the problem? I didn't think there was much between the 2.

It is currently uninstalled because I was trying to implement phpadsnew, but that gave me the same problem. But I wanted something that was meant for vB anyway. Maybe its the skin?

Any help would be appreciated.

Thanks, Philip

Hey Philip, have you checked your global.php file edits?

Then check the following settings:
1- Make sure the categories you upload banners into have the correct scripts and forums ticked
2- Make sure that the banners are active
3- Make sure that the categories are active
4- Make sure that the script is active
5- Make sure that the script has at least 1 ad block (or has the 'use master' option ticked. In that case make sure that the master script has at least 1 ad block)

Also, if you hazve multiple skins, make sure that $GAB_ads[0] appears in the style you are using.

HTH's

[email protected] vbmenu_register("postmenu_731204", true); 07-06-2005 01:07 AM

I'm tripping on on two things:

I seem to have the system installed (I get to the control panel)

But I can't figure out the right call to make (I'm not a PHP coder) get the ad into the template.

Also, unless I'm missing something, I can't see via FTP where the ads are being kept (I thought in GAB directory).

It's entirely possible I'm a moron, though, and missed something obvious.

Help.

The Geek 07-06-2005 07:05 AM

Quote:

Originally Posted by mmcgann11@mac.c
I'm tripping on on two things:

I seem to have the system installed (I get to the control panel)

But I can't figure out the right call to make (I'm not a PHP coder) get the ad into the template.

Also, unless I'm missing something, I can't see via FTP where the ads are being kept (I thought in GAB directory).

It's entirely possible I'm a moron, though, and missed something obvious.

Help.

The banners (images and flash files) will get uploaded into the gab folder as long as your settings are correct (i.e. the server path is correct and the url path is correct).

You also need to make sure that you have $GAB_ads[0] in your tempalte somewhere (i.e. the top of the navbar template) and make sure you moved over the edited files from gish/gab/rc1

IF still having problems, PM me an admin account to check it out.

sm00nie 07-06-2005 01:54 PM

Hiya,

I'm having a similiar prolbem as phillpf. The banner images are uploading to 'gab/0' . I have $GAB_ads[0] in my template aswell. Also, When I go to edit an image there is no image already displaying.

I've gone through your list and all looks checked off.
Any ideas ?

Thanks,
Shawn

The Geek 07-06-2005 03:43 PM

Hey Shawn, was this an upgrade from the earlier beta?

Can you check that the templates listed in settings->templates exist in your styles? (i.e. gab_item_image)

beatyourtruck 07-06-2005 05:37 PM

First off, I am a new Vbulletin user (former phpBB2) and an very pleased to find this mod! It is exactly what I am looking for (I have never liked phpAdsNew...too hard to operate). Thank you for all the hard work and effort The Geek!

Anyway, downloaded and installed the mod today. No errors, only had to do the save phrase thing to get the words to show in the GAB menu. All is cool with that. Also was able to upload a banner! Excellent.

Now the problem, my forum (brand new 3.0.7 install with only CSS style changes done to it) just comes up with a blank screen. I placed the old Global file back in the root and the forum comes up! Hmmm! So I uninstalled the mod...reinstalled and the same thing.

Any ideas? Something goofed with Global or......?

sm00nie 07-06-2005 06:14 PM

Yep, it shows in my default template ( as well as custom_custom1, custom_adsense, item_flash, item_image, rotating, wrapper_standard).
When I create another banner, and up another image it goes to the same folder (gab/0), could that be the problem ?

The Geek 07-06-2005 07:04 PM

Quote:

Originally Posted by sm00nie
Yep, it shows in my default template ( as well as custom_custom1, custom_adsense, item_flash, item_image, rotating, wrapper_standard).
When I create another banner, and up another image it goes to the same folder (gab/0), could that be the problem ?

The folder (in this case 0) is a structure based on the userid (in other words, userid 0).

Gimme a few - im looking into it.

The Geek 07-06-2005 07:04 PM

Quote:

Originally Posted by beatyourtruck
First off, I am a new Vbulletin user (former phpBB2) and an very pleased to find this mod! It is exactly what I am looking for (I have never liked phpAdsNew...too hard to operate). Thank you for all the hard work and effort The Geek!

Anyway, downloaded and installed the mod today. No errors, only had to do the save phrase thing to get the words to show in the GAB menu. All is cool with that. Also was able to upload a banner! Excellent.

Now the problem, my forum (brand new 3.0.7 install with only CSS style changes done to it) just comes up with a blank screen. I placed the old Global file back in the root and the forum comes up! Hmmm! So I uninstalled the mod...reinstalled and the same thing.

Any ideas? Something goofed with Global or......?

definatly sounds like a bad global.php edit. Try making the edits manually.

beatyourtruck 07-06-2005 07:38 PM

Thank you....I did try that earlier (several times) but I must have included some spaces or did something wrong?! I think sometimes it is good to walk away from this stuff for a couple of hours and then come back to it :)

It is working now.....I have banners uploaded and will now attempt to get them to show up on the board!

Thanks very much for the fast reply!!!

beatyourtruck 07-06-2005 08:06 PM

Is it possible to have specific banners appear only on specific forums? I think so if I am understanding the logic correctly (or maybe I am not understanding it):

If I wanted a specific banner to appear on a specific forum, could I create a new category (with for instance, "showthread", "forumdisplay") that only applied to that specific forum and then set the desired banner to that category? Then I would have to add "$GAB_ads[x]" ("x" being the Banner ID number) to my header template and it would only show when that forum came up? Am I thinking about this too hard or.......

One more thing.....I tried putting the $GAB_ads code into the navbar template but nothing happened. I just created a table <table width="100%" align="center"><tr><td>$GAB_ads[2]</td></tr></table> but I am thinking that is the wrong way to do it?

Please help! :)

Sorry for the stupid questions! I seem to know just enough to get myself in trouble :) And for what it is worth, I will be happy to donate some cash for this. It will be a GREAT tool!

The Geek 07-06-2005 08:15 PM

There are no stupid questions. Theres just eggplant. Now thats stupid.

First off - I just updated the package. It was slightly premature so the stas thing is a bit crude... however I released it to help with debuging mysterious missing code blocks. If everyone would be so kind to install the latest version (follow the readme upgrade instructions - its pretty mild).

Now onto your Q.

Forst off... no need to stick $GAB_ads[0] in a table. Just stick it as the first line in your navbar template (you can move it about when you feel advanced ;) )

If you want a specific banner in specific forums, do as you suggested:
1- Create a new category (always smarter) and tick the scripts AND forums you want them in.
2- Make sure it and the scripts are active.
3- Make sure the scripts have at least 1 ad block (or better - make sure 'use master' is ticked and that has at least 1 ad block).

Thats about it. If you are still having problems getting it to appear, install the latest package and give me the debug info.

HTH's

Protoman 07-06-2005 08:41 PM

found 1 bug..
it tries to make changes to admincp/ files
but it assumes your folder is called admincp.. it needs to look at the config or something to get the correct path.

Protoman 07-06-2005 08:46 PM

ok 2.
need to tell the user to delete the install file.

make that 3
Warning: move_uploaded_file(htdocs/forum/banners//0/bannerfinal.gif): failed to open stream: No such file or directory in /includes/gab_class_admin.php on line 400

Warning: move_uploaded_file(): Unable to move '/var/tmp/phpHN8muV' to 'htdocs/forum/banners//0/bannerfinal.gif' in /includes/gab_class_admin.php on line 400
Got some freaky error.

The Geek 07-06-2005 08:47 PM

yea, its stated in the readme just to rename your admincp back to admincp during the install to prevent any problems.

Otherwise its no big deal... just means you have to do a manual file change there.

The Geek 07-06-2005 08:48 PM

Your settings are incorrect. you need to set your server path.

Protoman 07-06-2005 08:51 PM

I removed the /home/sites/blahblahblah part.. paths are correct.

The Geek 07-06-2005 08:55 PM

Quote:

Originally Posted by corollasbest
blahblahblah

Well, whats with the /forum/banners//0/banner.gif it should read /forum/gab/0/bannerfinal.gif

An invalid settings is usually the culprit for 'No such file or directory'. The other possability is that the php process doesnt have the ability to write to the gab folder. Try either changing ownership of the folder, or chmod to 777 to see if that sorts it

HTH's

Protoman 07-06-2005 09:00 PM

server ignored my chmod the first time.. works now :D

Protoman 07-06-2005 09:12 PM

ok, totally lost now. I created an ad.. went to edit it and the macromedia flash thingy was where the image would appear.
I hit save, and now the ad is gone. And every other thing I hit now.. ad blocks will not save.., different ads will not save. nothing saves :/
no clue.

The Geek 07-06-2005 09:15 PM

Quote:

Originally Posted by corollasbest
ok, totally lost now. I created an ad.. went to edit it and the macromedia flash thingy was where the image would appear.
I hit save, and now the ad is gone. And every other thing I hit now.. ad blocks will not save.., different ads will not save. nothing saves :/
no clue.

Make sure that the category you put it in is active (for that matter - best make them all active)


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

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.01844 seconds
  • Memory Usage 1,849KB
  • 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
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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