Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Google Adsense Banners (or others) in Your Archive Details »»
Google Adsense Banners (or others) in Your Archive
Version: 1.00, by amykhar amykhar is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.0 Beta 3 Rating:
Released: 12-26-2007 Last Update: Never Installs: 171
Uses Plugins
 
No support by the author.

This is a mod that has been working since 3.5.x. It still works in 3.7 beta 3 from my testing. I am reposting it to make it easier for people to find.

It is tested on my vbulletin 3.7 test forum and can be seen at http://eaforums.com/forums/archive/index.php/


Essentially, this product allows you to have adsense (or other) banners in your forum archives.

To install:
Import the product. Edit the plugin code to substitute your adsense code.

Note: I have marked this mod as using external content because just about any ad banner system you use pulls in content from another site, unless you host the banner images locally.

Unfortunately, I work full time now and am not actively supporting my mods. Thank you for understanding.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 05-04-2008, 01:23 PM
Julie's Avatar
Julie Julie is offline
 
Join Date: Mar 2005
Location: Oslo, Norway
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by veenuisthebest View Post
I believe your conditional is wrong..

Use this instead

Code:
<if condition="is_member_of($vbulletin->userinfo, 21, 26, 6, 1)"><p>No ads</p><else /><div align="center">
<p>Ads code</p>
</div>
</if>
Thanks for your help, but that didn't do the trick either :S
Reply With Quote
  #33  
Old 05-04-2008, 01:47 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it shouldn't be !!

Its definitely something to do with conditional.. also try this:-

Code:
<if condition="is_member_of($vbulletin->userinfo, array(1, 2, 3))">
anyways Visit here for a nice Template Conditionals list.. it should solve your problem !!
Reply With Quote
  #34  
Old 05-04-2008, 02:10 PM
Julie's Avatar
Julie Julie is offline
 
Join Date: Mar 2005
Location: Oslo, Norway
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by veenuisthebest View Post
it shouldn't be !!

Its definitely something to do with conditional.. also try this:-

Code:
<if condition="is_member_of($vbulletin->userinfo, array(1, 2, 3))">
anyways Visit here for a nice Template Conditionals list.. it should solve your problem !!
Nope, that didn't work either Maybe it has something to do with the <phpcode> tag in the xml file?

Oh well... It wasn't meant to be I guess Hehe...

Thanks for the link by the way, will definitely take a look at it!
Reply With Quote
  #35  
Old 05-04-2008, 03:45 PM
Phornixx Phornixx is offline
 
Join Date: Feb 2008
Location: Macedonia
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Phornixx View Post
I dont seem to get this working, I dont use Adsense, I use AdutAdWorld ads, my code is as follows:

Header

Code:
$output.='
<div align="center">

<!-- begin Ad World Media for channel: Amateur , publisher: XXX http://XXXXXXX.com , Ad Dimension: Super Banner - 728 x 90 -->
<script language="javascript">
document.write('<iframe src="http://newt1.adultadworld.com/jsc/z5/ff2.html?n=607;c=2437;s=6320;d=14;w=728;h=90;p=6320" frameborder=0 marginheight=0 marginwidth=0 scrolling="no" allowTransparency="true" width=728 height=90></iframe>');
</script>
<!-- end Ad World Media for channel: Amateur , publisher: XXX http://XXXXXXXX.com , Ad Dimension: Super Banner - 728 x 90 -->

</div>
</td>
</tr>
</table>
';
The error in the archive page is this:

Code:
Parse error: syntax error, unexpected T_STRING in /usr/www/XXXX/www.XXXXXX.com/archive/index.php(254) : eval()'d code on line 6
And the same for the footer code, any help?


Thanks in advance...
And what about me? Any help?
Reply With Quote
  #36  
Old 05-04-2008, 06:00 PM
Julie's Avatar
Julie Julie is offline
 
Join Date: Mar 2005
Location: Oslo, Norway
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Phornixx View Post
And what about me? Any help?
It might have something to do with the single quotes you've used in the document.write('') statement.

Code:
$output.='
^ is started and ended with a single quote ('), and I don't know for sure, but maybe the single quotes in the document.write statement causes the $output to be ended earlier than it should...

You can try changing the single quotes to double quotes;

Code:
document.write("Hello World!")
I have no idea if that'll do the trick though :/
Reply With Quote
  #37  
Old 05-04-2008, 08:25 PM
Phornixx Phornixx is offline
 
Join Date: Feb 2008
Location: Macedonia
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Julie View Post
It might have something to do with the single quotes you've used in the document.write('') statement.

Code:
$output.='
^ is started and ended with a single quote ('), and I don't know for sure, but maybe the single quotes in the document.write statement causes the $output to be ended earlier than it should...

You can try changing the single quotes to double quotes;

Code:
document.write("Hello World!")
I have no idea if that'll do the trick though :/
Nice try, the error is gone now but my ads dont show up because I changed the Code. Any other way I could modify the outside Ad code? Thanks!
Reply With Quote
  #38  
Old 05-04-2008, 09:31 PM
Julie's Avatar
Julie Julie is offline
 
Join Date: Mar 2005
Location: Oslo, Norway
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Phornixx View Post
Nice try, the error is gone now but my ads dont show up because I changed the Code. Any other way I could modify the outside Ad code? Thanks!
Hm, then try changing the $output.=' single quote to double quote. Don't forget the last one on the end, after your own code finishes...
Reply With Quote
  #39  
Old 05-04-2008, 10:31 PM
Phornixx Phornixx is offline
 
Join Date: Feb 2008
Location: Macedonia
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Julie View Post
Hm, then try changing the $output.=' single quote to double quote. Don't forget the last one on the end, after your own code finishes...
That was the first thig I tried but no success, I get the same arror again and again. How can I change the $output.=' ??
Reply With Quote
  #40  
Old 05-07-2008, 04:46 PM
Julie's Avatar
Julie Julie is offline
 
Join Date: Mar 2005
Location: Oslo, Norway
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Phornixx View Post
That was the first thig I tried but no success, I get the same arror again and again. How can I change the $output.=' ??
I have no idea :/ I don't know a lot about vbulletin/php programming. Sorry!
Reply With Quote
  #41  
Old 05-12-2008, 09:52 AM
Derek_Trotter Derek_Trotter is offline
 
Join Date: Oct 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed the product but right adsense ads does not apear?
Why?
Reply With Quote
Reply

Thread Tools

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


All times are GMT. The time now is 04:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04935 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (9)bbcode_code
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete