vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Adsense for Feed code in external.php. How? (https://vborg.vbsupport.ru/showthread.php?t=175889)

Black_Widow 04-11-2008 11:40 PM

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

Black_Widow 04-13-2008 10:01 PM

Uhm noone is using adsense for feed? :-(

Marco van Herwaarden 04-14-2008 06:05 AM

I even doubt it is allowed according to their TOS.

Dismounted 04-14-2008 06:10 AM

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).

Black_Widow 04-14-2008 09:01 AM

Quote:

Originally Posted by Marco van Herwaarden (Post 1490204)
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.

MadK 08-15-2008 04:16 PM

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!

dethfire 08-27-2008 05:27 PM

new adsense for feeds feature, anyone adding it to their vb rss and how?

David_R 08-28-2008 10:36 AM

What I dont like about adsense for feeds is we require a feedburner account in order for our feeds getting adsense units :/

David_R 09-04-2008 11:36 AM

anyone has adsense for feeds enbled for there forums ?
please share how it looks.

SIINSI 09-19-2008 03:40 AM

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


All times are GMT. The time now is 08:49 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.01212 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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