Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-11-2008, 11:40 PM
Black_Widow Black_Widow is offline
 
Join Date: Aug 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Adsense for Feed code in external.php. How?

Hello
I'm running vbulletin ver. 3.5 and I'm trying to put adsense code for feed into external.php

Code:
<![CDATA[<p><map name="google_ad_map_<$MTEntryDate format="%y%m%d%H%M%S"$>">
<area shape="rect" href="http://imageads.googleadservices.com/pagead/imgclick/<$MTEntryDate format="%y%m%d%H%M%S"$>?pos=0" coords="1,2,367,28"/>
<area shape="rect" href="http://services.google.com/feedback/abg" coords="384,10,453,23"/></map>
<img usemap="#google_ad_map_<$MTEntryDate format="%y%m%d%H%M%S"$>" border="0" src="http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=CLIENTIDXXX&amp;channel=&amp;output=png&amp;cuid=<$MTEntryDate format="%y%m%d%H%M%S"$>&amp;url=<$MTEntryPermalink encode_url="1" archive_type="Individual"$>"/></p>]]>
Anyone has been able to perform successfully this modification to external.php?

I've tried changing RSS2 code in external in this way:

Code:
	case 'RSS2':
					echo "\r\n\t<item><![CDATA[<p><map name=\"google_ad_map_<" .vbdate($vbulletin->options['dateformat'], $thread['dateline']) . " format=\"%d%m%y\"$>\">
<area shape=\"rect\" href=\"http://imageads.googleadservices.com/pagead/imgclick/<" .vbdate($vbulletin->options['dateformat'], $thread['dateline']) . " format=\"%d%m%y\"$>?pos=0\" coords=\"1,2,367,28\"/>
<area shape=\"rect\" href=\"http://services.google.com/feedback/abg\" coords=\"384,10,453,23\"/></map>
<img usemap=\"#google_ad_map_<" .vbdate($vbulletin->options['dateformat'], $thread['dateline']) . " format=\"%d%m%y\"$>\" border=\"0\" src=\"http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=CLIENTIDXXXXX&amp;channel=&amp;output=png&amp;cuid=<" .vbdate($vbulletin->options['dateformat'], $thread['dateline']) . " format=\"%d%m%y\"$>&amp;url=<$MTEntryPermalink encode_url=\"1\" archive_type=\"Individual\"$>\"/></p>]]>\r\n";
where CLIENTIDXXXXX is my adsense code.
But it doesn't work.

Have some of you been able to use adsense for feed with vbulletin?

Thanks
Reply With Quote
  #2  
Old 04-13-2008, 10:01 PM
Black_Widow Black_Widow is offline
 
Join Date: Aug 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uhm noone is using adsense for feed? :-(
Reply With Quote
  #3  
Old 04-14-2008, 06:05 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I even doubt it is allowed according to their TOS.
Reply With Quote
  #4  
Old 04-14-2008, 06:10 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think you understand what RSS feeds are. RSS feeds are used as a standard for other sites to fetch data (usually news) from yours. Even if you did use such advertisement HTML, any good programmer would filter out bad HTML (ie. Javascript).
Reply With Quote
  #5  
Old 04-14-2008, 09:01 AM
Black_Widow Black_Widow is offline
 
Join Date: Aug 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Marco van Herwaarden View Post
I even doubt it is allowed according to their TOS.
Uhm..I've received that code from google staff. I can us it to display announces in feed.

Quote:
RSS feeds are used as a standard for other sites to fetch data (usually news) from yours
Yes, but RSS are also used by simply rss readers (single users) and not only by webmasters.
Reply With Quote
  #6  
Old 08-15-2008, 04:16 PM
MadK's Avatar
MadK MadK is offline
 
Join Date: Feb 2008
Location: Canada
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found this thread while searching on Google, I have the same exact question. I have enabled AdSense Feeds and was wondering how to edit the feeds URL on my boards? Thank you!
Reply With Quote
  #7  
Old 08-27-2008, 05:27 PM
dethfire dethfire is offline
 
Join Date: Feb 2003
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

new adsense for feeds feature, anyone adding it to their vb rss and how?
Reply With Quote
  #8  
Old 08-28-2008, 10:36 AM
David_R David_R is offline
 
Join Date: Mar 2005
Location: Los Angeles
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What I dont like about adsense for feeds is we require a feedburner account in order for our feeds getting adsense units :/
Reply With Quote
  #9  
Old 09-04-2008, 11:36 AM
David_R David_R is offline
 
Join Date: Mar 2005
Location: Los Angeles
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone has adsense for feeds enbled for there forums ?
please share how it looks.
Reply With Quote
  #10  
Old 09-19-2008, 03:40 AM
SIINSI SIINSI is offline
 
Join Date: Mar 2003
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm trying to figure this out to...

Google gives this code for .htaccess to redirect to the new feed but, that's if our feed ended in index.xml which it does not.

Ours is external.php?type=RSS2

Here's the code they give....

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !FeedBurner
RewriteRule ^index\.xml$ http://feedproxy.google.com/YOURFEEDADDRESS [R,L]

how do we make it so this works for vb?

Thanks,
Miguel
Reply With Quote
Reply


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 03:41 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.07989 seconds
  • Memory Usage 2,248KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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