vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Integration with vBulletin - Ain - Advanced Google AdSense (https://vborg.vbsupport.ru/showthread.php?t=205713)

PossumX 03-21-2009 02:22 PM

Update:

Did the whole clean and reinstall again, and indeed, the problems still exist. In going through the code, there is too much hardcoding of syntax and size requirements for many snippets in the code views via PlugIn Manager (AdminCP).

for example, in the 5.2 version of "adsense [algdeer.net] postbit", it is clean, but in the 6.0 version there are size and type references everywhere. It is almost as if you have made this AdSense and size centric by the coding of it now. not good for me, since I do not use AdSense code with this mod, nor do I have to in 5.2 or prior. When running 6.0 and no Adsense code in the settings, I still get ads (if I put in my pub ID). If not, I get garbage text where I expect Chitika or another ad to appear.

To compare the 2, specifically where I am referring:

6.0 [leaderboard has too many constricting parameters which is what is causing these symptoms] - this is just one example of it and it is pervasive in the other code components comprising the plugin as well:
Code:

$ain_leaderboard = "<script type=\"text/javascript\"><!--
google_ad_client = \"$ain_publisherid\";
google_ad_slot = \"$ain_code\";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type=\"text/javascript\"
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
</script>";

in 5.2, the above does not exist, and therefore does not drive the issues being encountered. It uses hooks more effectively, in my opinion, and avoids the hardcoding issues noted above.

I will stick with 5.2 until all this is resolved. As stated before, this is a great mod with huge potential, but this latest "upgrade" has introduced troubles for many of us.

Keep the faith and I look forward to the next shot at this. :up:

Sweeks 03-21-2009 03:23 PM

Quote:

Originally Posted by PossumX (Post 1773386)
Update:

Did the whole clean and reinstall again, and indeed, the problems still exist. In going through the code, there is too much hardcoding of syntax and size requirements for many snippets in the code views via PlugIn Manager (AdminCP).

for example, in the 5.2 version of "adsense [algdeer.net] postbit", it is clean, but in the 6.0 version there are size and type references everywhere. It is almost as if you have made this adsense and size centric by the coding of it now. not good for me, since I do not use AdSense code with this mod, nor do I have to in 5.2 or prior.

To compare the 2, specifically where I am referring:

6.0 [leaderboard has too many constricting parameters which is what is causing these symptoms] - this is just one example of it and it is pervasive in the other code components comprising the plugin as well:
Code:

$ain_leaderboard = "<script type=\"text/javascript\"><!--
google_ad_client = \"$ain_publisherid\";
google_ad_slot = \"$ain_code\";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type=\"text/javascript\"
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
</script>";

in 5.2, the above does not exist, and therefore does not drive the issues being encountered. It uses hooks more effectively, in my opinion, and avoids the hardcoding issues noted above.

I will stick with 5.2 until all this is resolved. As stated before, this is a great mod with huge potential, but this latest "upgrade" has introduced troubles for many of us.

Keep the faith and I look forward to the next shot at this. :up:


Im sticking with the older version too. It works flawlessly and does what I need it to do. :)
________
Beautiful brunette melanie enjoys a hardcore ++++

Queball_Beast 03-21-2009 07:54 PM

Is there anyway we could ad a search bar in the header or on some part of forum home?

Thanks

Chirag patel 03-25-2009 06:25 PM

How do you show ads inside the first post?

ryans 03-26-2009 05:32 PM

I added it and it worked great. I installed a new style, deleted the old style, changed the colors in ain and the old colors stick. is there some cache somewhere to fix my colors?

jmw 03-29-2009 05:34 AM

For those interested, Hendrik at duobloger created some tutorials about integrating adsense in the first post and another about adsense section targetting. I was looking for these instructions like crazy and Hendrik was nice enough to create some tutorials.

http://www.duoblogger.com/adsense-se...for-vbulletin/

http://www.duoblogger.com/adsense-in...for-vbulletin/

tafreeh 03-30-2009 05:07 PM

uninstall 6.0 and reinstall 5.2

trickfly 03-30-2009 07:15 PM

Before I install can instead of adsense can I use adbrite code instead ?

luxmail 03-31-2009 04:46 PM

hi any ideea how in share revenue adsense, the user shall not see his own ads ? any ideea ?

nNJ 04-05-2009 12:22 AM

I have a suggestion for a feature in a future release.

To fully explain this, I have to explain my situation first.
My forum has 2 styles that a user can choose from; The default one, and a lighter one.

Now, no matter what I do, google ads are going to stick out on one of the styles.
(If I use a dark template for the google ads, they will stick out on the lighter template, and vice versa).

I suggest that you add an option to enter a set of banners/ads codes for each template.

That way, the user will be able to have a set of ads that blends into every template, instead of blending into one perfectly, and sticking out like a sore thumb on another.

A very simple way of doing this would be to have an option in the Admin CP to set the number of styles on the forum. Then, based on the number entered, display that number of "adsnese codes" boxes (Typo in v5.2 :D - it should be spelt "Adsense")
(These are the boxes that contain the adsense codes that appear on the forum)

Then, underneath each set of boxes, display another field that a user can type the styleid of each style they want.

For example;

A user sets the option to have 3 styles.

3 different sets of adsense code boxes are displayed, with an option underneath that a user types the StyleID of the skin/style that set of google adsense ads are placed on.

You could check which styleID is being used the same way that you check the current user's usergroup ID to decide if ads are shown or not.

Thanks for Considering this,
nNJ

P.S. I sent this same message to you in a PM. I think that it is a relatively simple feature to add, considering the increased level of user custimaztion it will bring

o0_avid_0o 04-06-2009 12:13 AM

hi there.. my partner Paul Schlegel and I are working on a forum at workathometruth.com and we were wondering..

the rev sharing.. can this be used to share between ONLY the admins? like really all we want it for at this point is to split the revenue between the 2 of us for now.. perhaps later on down the road we will use it to share with the users.

I've been poking around in the settings and trying to figure out if this is possible but if it is i don't understand how to get that working.

another thing that boggles me is the field part:

enter the name of the field that contains user adsense publisher id
attention: should build new field, example: field6

i was thinking this might be the way to get it to do what we need. i'm just really not sure what to do with this at all. perhaps a step by step for a simpleton like me would be helpful.

:)

can anyone help us out at all?

thanks guys.. ps i just wanna say to all you coders who have been kind enough to share your work with the rest of us.. Thank you! we might not all always say it, but we appreciate all the hard work you guys do.

thanks in advances, gents.

Rick aka avid/workathometruth.com

crazlunatic 04-11-2009 03:46 AM

Hi. Right now you can only choose between leaderboard, banner, and custom ad.
Can I create two custom ads because for custom ad, I already used it to display image only leaderboards.

I want to make square ads in between posts.

haytham 04-11-2009 10:28 AM

Great. Thanks a lot just installed it and it's working fine on 3.8. Wanna see the cash flow :)

snerd 04-17-2009 06:58 AM

Version 5.2

Using W3C Markup Validation I get one error:

Validation Output: 1 Error

1. Error Line 76, Column 72: ID "ain_Reload" already defined

… id="vbseo_vhtml_0"></div> <div id="ain_Reload" align="center"><script type="

An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

2. Info Line 50, Column 39: ID "ain_Reload" first defined here

</td> </tr> </table> <br /> <div id="ain_Reload" align="center"><script type="

How can I fix this please?

Thank you,
snerd

Scamorz 04-19-2009 05:39 PM

How works google adsense revenue sharing?
Can you post more details?
thanks

al3bed 04-22-2009 12:28 AM

first I want to thanks all people support this mod.

PossumX I will find the better way to modify this mod. thanks for sharing me your experience in this mod.

Quote:

Originally Posted by Queball_Beast (Post 1773645)
Is there anyway we could ad a search bar in the header or on some part of forum home?

well, in this version I guess no. maybe with farther once..

Quote:

Originally Posted by Chirag patel (Post 1776860)
How do you show ads inside the first post?

there is an option for adding ads inside the first post .. see snapshots..

Quote:

Originally Posted by ryans (Post 1777648)
I added it and it worked great. I installed a new style, deleted the old style, changed the colors in ain and the old colors stick. is there some cache somewhere to fix my colors?

I guess it's about cookies + some colors not supported by google adsense

Quote:

Originally Posted by trickfly (Post 1780559)
Before I install can instead of adsense can I use adbrite code instead ?

no, if you want to use it as primary ads
yes, if you want to rotate adsense with adbrite ads.

Quote:

Originally Posted by luxmail (Post 1781177)
hi any idea how in share revenue adsense, the user shall not see his own ads ? any ideea ?

if he can't see his own ads the he will not trust if there are showing or not. but there is a way for this, you need to update some codes. I will try to make sharing options more specific with next version.

TNCclubman 04-22-2009 12:49 AM

I want to use the adsense revenue sharing by displaying the google ads under the pics in the users gallery.

Is this possible?

al3bed 04-22-2009 12:51 AM

nNJ thanks for suggestions but it's hard to do it like what you explain it. I will try to do it in another way.

Quote:

can this be used to share between ONLY the admins
yes .. when you build the user field set Private Field to yes, then choose form usergroups admin groups to apply field to them

o0_avid_0o sharing settings have no advance options yet. let's wait the next version :)

Quote:

Hi. Right now you can only choose between leaderboard, banner, and custom ad.
Can I create two custom ads because for custom ad, I already used it to display image only leaderboards.

I want to make square ads in between posts.
with v6.0 you can't add square ads in between posts.. next version will include more flexible options and optimized codes.


Quote:

Using W3C Markup Validation I get one error:
Validation Output: 1 Error
that because I use one id for many attributes to reloading ads. you can fixed it by editing 'ain_adsense_sideH' template find and delete:

PHP Code:

id="ain_reload" 

after this you will be unable to use reloading option.

I will fix this in the newer version.

Quote:

How works google adsense revenue sharing?
Can you post more details?
if you want to enable adsense revenue share, you should build user field and write the field name in options of adsense revenue share. you can build field as following:
- AdminCP -> User Profile Fields -> Add New User Profile Field
- choose Profile Field Type: single-line text box then continue
- add information like what in this file then save the field.
- copy the name of field and bring it to main options in AGA.

it's simple.. which part you didn't understand?

KevinGupta 04-22-2009 10:24 PM

wonderful... :) THanks

Ogmuk 04-28-2009 03:34 PM

Hi,

First of all, great add-on. :)

Bugs I noticed in 6.0:
1) Main options > main options > choose alignment for ads: at this option left and right are switched.
2) Display Options > display ads in different pages > display ads in archive: yes and no give the same result. Ads are always displayed in the archive.
3) On the page album.php?albumid=* the top ad is displayed after the <br /> and thus isn't displayed correctly (two line breaks before the ad and none after). On the pages album.php and album.php?albumid=*&pictureid=* the ad is showing fine.
4) The option "display after x post" is behaving odd. For instance when using "2" there, on each page of the thread it would show an ad after the first post -and- then 2 posts later, so in-between the 3th and 4th, it would show another, and 2 posts later, etc. So it behaves as if it does "display after first post all page" + the additional x posts later. In addition to this, if this is fixed, could it maybe be possible to have an option "display after x post" and "display after x post all pages"? For instance if you'd like to show the ad after each 2nd post (but not repeat it after every 2 posts like it does now).
5) When viewing pictures in Social Groups, no ads are shown even though ads are turned on for both Social Groups and Albums.
6) If a forum has "Allow Post Icons" set to "No" then the colspan will be wrong and the ad links will be displayed in the wrong area.
7) The link ads show when searching for "Find all posts by user", which uses a different style so they probably shouldn't show then.

Feedback:
1) Could it be possible to add an option to turn off the use of google_ad_slot for archive ads? That way the archive ads would have the default color and would look better with the default colors than with the color scheme I use on the normal (non-archive) version (since that's dark/black instead of white/light).
2) In addition to the feedback above, maybe allow us to put the banner that's showing below the archive at the left side? So 2 side banners and one on top? I've stumbled upon this mod and it gives some more freedom with the archive ads: EZ Archive Ad System. Here an example of a site using it: website.
3) 2 options are missing at the moment. It's impossible to turn off the sidebar in the search results (afaik) and it's also impossible to set the type of banner. I'd like a banner instead of leaderboard and no skyscraper at the side but I can't get this done at the moment:
Display options > display ads in different pages
4) The custom adsense search is showing fine on the forum. Could it be possible to add compatibility with vbadvanced so it will show on the portal page as well?
5) Maybe add the possibility to show ads on forum category pages (i.e. when clicked on category instead of subforum)?



I hope some of that is of use to you and thanks again for the great mod!

Oren MAZDASPEED 05-02-2009 10:15 AM

Installed ver 6 with no problems exept one problem:

In explorer 8 it works without broblems but some users with explorer 6 and 7 complain about ads being aligned sometimes on the left side and sometimes on the center randomly,
(choose alignment for ads - center)

can you check this please?

thanks.

Scamorz 05-05-2009 02:21 PM

Bug:

- if you active ads for social groups the mod is in conflict with "transfer group" system.

Ogmuk 05-06-2009 07:56 PM

Quote:

Originally Posted by Ogmuk (Post 1800618)
3) On the page album.php?albumid=* the top ad is displayed after the <br /> and thus isn't displayed correctly (two line breaks before the ad and none after). On the pages album.php and album.php?albumid=*&pictureid=* the ad is showing fine.

This is the most annoying bug of the ones I reported. If anyone knows how to fix it, let me know. :)

Ogmuk 05-09-2009 11:26 AM

Quote:

Originally Posted by Ogmuk (Post 1800618)
3) On the page album.php?albumid=* the top ad is displayed after the <br /> and thus isn't displayed correctly (two line breaks before the ad and none after). On the pages album.php and album.php?albumid=*&pictureid=* the ad is showing fine.

Download 6.0 again.

Edit product-ain_adsens.xml, search for:
Quote:

$vbulletin->templatecache['album_picturelist'] = str_replace($search_text, $search_text.'<br />$adsense_tableh'.'$adsense_tablef', $vbulletin->templatecache['album_picturelist']);}

Replace with:
Quote:

$vbulletin->templatecache['album_picturelist'] = str_replace($search_text, $search_text.'$adsense_tableh<br />'.'$adsense_tablef', $vbulletin->templatecache['album_picturelist']);}

Go to Plugins & Products -> Add/Import Product -> Allow Overwrite -> YES!

ArnyVee 05-09-2009 01:30 PM

I definitely want to add this one in the near future. I'm especially interested in the revenue sharing aspect of it.

Once you create the new user profile field(s) and they put their Google Adsense info into the field(s) where will that code display?

I'd want them to have the 'within first post' option so that it encourages them to post new threads since it shows their ads and possible money for them! :D

Is that the way it does (or can) work?

al3bed 05-10-2009 09:50 AM

Ogmuk I appreciate your hard work on testing this mod .. I am working to fix these issuses. btw social groups in 6.0 shown in 3 places: discussion, group and grouplist without any problem.
group.php?do=grouplist&cat=*
group.php?groupid=*
group.php?do=discuss&group=&discussionid=*

Quote:

if you active ads for social groups the mod is in conflict with "transfer group" system
I check that and non problems found.

Quote:

This is the most annoying bug of the ones I reported. If anyone knows how to fix it, let me know.
you fixed it for yourself .. :D
good luck

Quote:

Once you create the new user profile field(s) and they put their Google Adsense info into the field(s) where will that code display?
if you put profile field name in option of revenue sharing, ads of users - who verify conditions - will displayed on their thread pages.

there is improvement for revenue sharing coming with version 7.0

Ogmuk 05-10-2009 10:36 AM

Quote:

Originally Posted by al3bed (Post 1807914)
Ogmuk I appreciate your hard work on testing this mod .. I am working to fix these issuses.

Thank you again for the great mod. ;)

Quote:

Originally Posted by al3bed (Post 1807914)
btw social groups in 6.0 shown in 3 places: discussion, group and grouplist without any problem.
group.php?do=grouplist&cat=*
group.php?groupid=*
group.php?do=discuss&group=&discussionid=*

Sorry, I should have been more clear. I mean when viewing pictures from social groups, so: group.php?do=grouppictures and group.php?do=picture

militarytuners 05-10-2009 07:32 PM

Much appreciated.

ArnyVee 05-10-2009 10:50 PM

Quote:

Originally Posted by ArnyVee (Post 1807472)
I definitely want to add this one in the near future. I'm especially interested in the revenue sharing aspect of it.

Once you create the new user profile field(s) and they put their Google Adsense info into the field(s) where will that code display?

I'd want them to have the 'within first post' option so that it encourages them to post new threads since it shows their ads and possible money for them! :D

Is that the way it does (or can) work?

al3bed, whenever you get a chance can you answer this question for me? Thank you! :up:

fmntprsv 05-17-2009 03:10 PM

I have a question about this mod. I?m searching a mod that put this advertisement:


<script type="text/javascript">
sas_pageid='9614/72079'; // P?gina : RAZORMAN/foro
sas_formatid=3854; // Formato : 300x250 300x250
sas_target=''+wlrcmd; // Targeting
SmartAdServer(sas_pageid,sas_formatid,sas_target);
</script>

in the right corner of the first post, but nothing work for me ( vb 3.8.1 and vbseo 3.3.0 )

?This mod should done this? :erm:

Please excuse my poor english, i?m desperated.... :o

Zilvia 05-23-2009 04:38 PM

Excellent mod! Keep up the good work. I have a few suggestions for future development.

1. Allow for finer usergroup permissions, preferably unique display rights per ad. I like to show the top ad (under navbar) to guests only.

2. Ability to add multiple custom code(s) per ad location, since Google only allows 3 ads per page we are limited to use only a fraction of the available locations. If we can rotate between custom code and Adsense we can deliver our content focused ads we sell through normal advertisement offerings, and not go over the three ad limit. Example, I rotate between ads delivered by OpenX and Adsense in posts.

3. Ability to define the display post ad after every x post. For instance, we could enter 1,15,30,45,60. Then it would display an ad after that post #.

Much of these features are available in karim004's Ad Management - https://vborg.vbsupport.ru/showthread.php?t=179083

Thanks!!

abdobasha2004 05-31-2009 04:20 PM

I want to thank you very much al3bed
you really solved much of my problems
if I can do any thing for you to pay you back for such gr8 mod I will be happy to do

abdobasha2004 05-31-2009 04:35 PM

I want the ads inside posts to work with revenue share
also link units !!
it is very important olz help

abdobasha2004 05-31-2009 04:50 PM

It is not allowed in google adsense to publish 2 different acoounts on same page
however it is allowed to publish different accounts on same site

abdobasha2004 05-31-2009 08:43 PM

I want the ads inside posts to work with revenue share
also link units !!
it is very important olz help
It is not allowed in google adsense to publish 2 different acoounts on same page
however it is allowed to publish different accounts on same site

mmurtha 06-02-2009 04:13 PM

Hi Al3bed,

I was using you 4,0 mod on my forum using vb 3.7.4 with patch level 1 and it was working fantastic. Then I upgraded the forum to 3.8.2. Once I upgraded the forum, I tried to upgrade your Mod to the 6.0 version and over right it. Now I am having a couple of problems trying to get everything to work right again, and can use your help.

Can you please tell me how to fix the way these ads are showing?

- 468x60 is showing like --> "; google_ad_width = 468; google_ad_height = 15; //-->
-Text links ads are showing like --> "; google_ad_width = 468; google_ad_height = 15; //-->

Most of the ads display like this so ...

Plus, this may sound a little stupid, but where can I get the table ID from for the revenue sharing? Edited - Got this part figured out

Also, did I have to enter the IDs for the forums I want displayed in the main opions sections for these ads to show properly?

Thanks - any help would be appreciated ...

Mary

abdobasha2004 06-02-2009 05:12 PM

the revenue share is allowed only for 2 ad blocks on show thread !!
and not allowed in adsense inside posts
so if i allow rev. share together with adsense inside post the member pub-id appear in 2 blocks and mine appear on inside post

mmurtha 06-02-2009 08:09 PM

Question, does anyone know if the 6.0 version of this Mod can be reverted back to the 5.2 if I re upload the product xml file in the admincp?

That 6.0 version isn't working on VB 3.82, and I'd rather not go thru the hassle of uninstalling the product and setting it all back up.

Thanks!

mmurtha 06-04-2009 11:05 AM

Hey Al3bed,

Never mind! I got someone whi fixed everything up by stripping out the old code and only entering the #s code in the ad setup boxes.

Appriceate the mod a lot. ;)

apnifry 06-06-2009 01:59 AM

Database Error Occurs, if Threads are merged without leaving redirect. If you try to access old urls which has been merged with new thread, you will see error.

The error will appear only if revenue sharing is enabled.


All times are GMT. The time now is 04:37 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.02063 seconds
  • Memory Usage 1,886KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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