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)

al3bed 10-28-2009 01:10 AM

Quote:

Originally Posted by fredang85 (Post 1906004)
I won't give up on you! :D

I don't know why you still get errors even when you completely removed the product then installed it again (without any errors during the installation process)?! if you insist, try to modify plugin 'adsense [algdeer.net] options' you may find the missing bracket there. this is the only plugin used includes/adminfunctions_options.php file.

Quote:

Originally Posted by sjr4x4 (Post 1906386)
This a fantastic add on, and I've got it just how I want it for registered users, but no adsense units show for visitors?

Quote:

Looks like I've worked it out for myself
Quote:

Originally Posted by Animemike (Post 1906827)
"enable this option if you want to border your ads with css tables.
you can also choose this option from display options"

Just dont work for me i get no Boxes and i cant find the CSS you used :(

Quote:

Edit am a idiot lol all fixed

good luck all and you are welcome

fredang85 10-28-2009 10:27 AM

Quote:

Originally Posted by al3bed (Post 1907231)
I don't know why you still get errors even when you completely removed the product then installed it again (without any errors during the installation process)?! if you insist, try to modify plugin 'adsense [algdeer.net] options' you may find the missing bracket there. this is the only plugin used includes/adminfunctions_options.php file.

I scanned through for 10 mins, doesn't seem to have anything wrong with it..
This is inside:

if($vbulletin->options['ain_adsense_enable'] AND $vbulletin->options['ain_adsense_client'] == ''){
print_table_start();
print_table_header("Google Adsense",1);

echo "<tr><td class=\"alt1\">
publisherid is empty. <font color=\"red\"><strong>ads will not work until you update it.</strong></font> please visit <a href=\"options.php?do=options&amp;dogroup=ain_adse nse_ads\">ads setup options page</a> to update it
</td></tr>";

print_table_footer(1, '', '', 0);
}

On top of that, I don't think it has anything to do with why the things won't appear correctly in my ads manager right?

al3bed 10-31-2009 09:38 PM

not that plugin, I mean the plugin named by 'adsense [algdeer.net] options'

I still don't know why it's not working for you :) good luck

mcyates 11-01-2009 08:14 AM

How do i rotate ads? I've inserted the code and clicked on rotate ads "yes" but nothing happpens.

Tize. 11-01-2009 10:00 AM

Excellent Thanks man.
Installed!!!

mcyates 11-01-2009 11:02 AM

The ad rotation feature is not working. I have tried to of my ad networks and nothing comes up, it just keeps on showing the google ads. If I insert a link to an image like

Code:

http://www.myfootballforum.com/images/banner1.jpg
I added the link above to the image and it shows it like that. No image just the link to the image, I know I have to add the <img> tag but when I do nothing shows.

ALSO

This html code doesn't show anything:

Code:

<iframe allowtransparency="true" src="http://ads.betfair.com/ad.aspx?bid=2463&pid=13952" width="728" height="90" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
Is this a known problem?

al3bed 11-01-2009 01:44 PM

Quote:

Originally Posted by mcyates (Post 1908925)
How do i rotate ads? I've inserted the code and clicked on rotate ads "yes" but nothing happpens.

you can rotate ads by clicked yes then put any code html/javascript in 2 boxes (texarea) below that option .. the rotate options needed to be more customized I will work for this next week. the problem is that when you click yes randomly will change all ads by 33.3% my code it's look like:

PHP Code:

mt_srand((double)microtime() * 1234567);
    
$banner_picked mt_rand(13);}
else{
$banner_picked 1

seems too stupid for rotate things :) I'm working to enhance it

Quote:

Originally Posted by Tize. (Post 1908962)
Excellent Thanks man.
Installed!!!

welcome

Quote:

Originally Posted by mcyates (Post 1908974)
The ad rotation feature is not working. I have tried to of my ad networks and nothing comes up, it just keeps on showing the google ads. If I insert a link to an image like

Code:

http://www.myfootballforum.com/images/banner1.jpg
I added the link above to the image and it shows it like that. No image just the link to the image, I know I have to add the <img> tag but when I do nothing shows.

ALSO

This html code doesn't show anything:

Code:

<iframe allowtransparency="true" src="http://ads.betfair.com/ad.aspx?bid=2463&pid=13952" width="728" height="90" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
Is this a known problem?

yes, you need to skip each double quotation " by slash \ like this:
PHP Code:

<iframe allowtransparency=\"true\" src=\"http://ads.betfair.com/ad.aspx?bid=2463&pid=13952\" width=\"728\" height=\"90\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"no\"></iframe> 

or you can use single quote for the attributes e.g. 'true' rather than \"true\" if you are using xhtml 4.0 and same for the images

rgvtruck 11-04-2009 02:33 AM

1 Attachment(s)
al3bed how do i remove the gap of my sites signature? I turned ON the mod for having adsense in the first post but theres a gap between the sig picture. Here's a picture so you can get and idea of what im talking about it even does it when pictures are added to the post.

Pictures Attached

al3bed 11-04-2009 07:35 AM

there is a gap accully because the ad unit excute with message (post) in one variable. which I mean that (ad unit + post) is one block and sig data is another block. so if your post too short it's will shown like above.

you can solve this by using new version of this mod v7.0
add your ad units info then, in 'postbit' or/and 'postbit_lagecy' template
add where ever you want:
PHP Code:

<if condition="$post[postcount] == 1">$ain_adsense[xx]</if> 

xx you ad unit id

best luck

rgvtruck 11-04-2009 06:52 PM

Quote:

Originally Posted by al3bed (Post 1910097)
there is a gap accully because the ad unit excute with message (post) in one variable. which I mean that (ad unit + post) is one block and sig data is another block. so if your post too short it's will shown like above.

you can solve this by using new version of this mod v7.0
add your ad units info then, in 'postbit' or/and 'postbit_lagecy' template
add where ever you want:
PHP Code:

<if condition="$post[postcount] == 1">$ain_adsense[xx]</if> 

xx you ad unit id

best luck

Ived tried it and i still cant get it to work, now it floats on top of the post not on the side like i wanted to. Can you tell me which template to modify? What to replace?


All times are GMT. The time now is 04:25 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.01395 seconds
  • Memory Usage 1,766KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_php_printable
  • (10)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
  • (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