Go Back   vb.org Archive > News and Announcements > vBulletin Pre-Sales Questions
  #1  
Old 11-03-2008, 03:03 PM
NokStar NokStar is offline
 
Join Date: Apr 2006
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Users can post adsense in their blog when using vb blog?

Hi is it possible users to post their adsense code in their blog when i am using vbblog addon on my forum?

I mean i am giving free blogs to each user using vb blog addon. So is it possible to add their adsense code in their blog like blogger allows their members?

Any mod like that?
Reply With Quote
  #2  
Old 11-03-2008, 03:09 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure if this will work, but you can create a profile field call it Adsense Publisher Id, then put the adsense code in your template and replace the standard publisher id with $blog[fieldX].

I'm not 100% positive that the profile fields work within the blog area, so you might want to wait for a person with experience with the blog comes along, or ask over at vBulletin.com where you can get a definite answer
Reply With Quote
  #3  
Old 11-03-2008, 11:21 PM
NokStar NokStar is offline
 
Join Date: Apr 2006
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks buddy.
Reply With Quote
  #4  
Old 11-10-2008, 01:39 AM
TheElf TheElf is offline
 
Join Date: Aug 2004
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well...

It isn't an easy question.
Why? While any modification to templates that would add adsense to the page would be problematic for user who don't have adsense....
Allowing HTML for the blog would be risky (even for a custom template)
And I am unsure if you could use a custom BB code for this task, mostly because it would be hard to restrict its used to custom blocks in the blog.

So I think you would need a plugin for this.
Reply With Quote
  #5  
Old 11-11-2008, 10:19 AM
MrEyes MrEyes is offline
 
Join Date: Nov 2004
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FRDS View Post
I'm not sure if this will work, but you can create a profile field call it Adsense Publisher Id, then put the adsense code in your template and replace the standard publisher id with $blog[fieldX].
This is something I have been looking into for sometime, however with one thing or another I have not yet got around to making it live. From what I have worked out so far a "mod" isn't really needed.

As you said you can use the fieldX value in the template for the product ID, however I think you also need the "google_ad_slot" and then some cunning way of managing width/height and ensuring that users don't insert a skycraper banner in the vertical slot.

Once you have that the only other thing you need to do is add a conditional statement that checks if the user has actually supplied a valid publisher id etc and if not revert back to the defaults for the site (or not display the banner at all)

The other complexity was brought in with 3.7 and the ad location templates, these are generic and used on all VB pages, so if you use these the conditional needs to check THIS_SCRIPT to make sure it is a blog page and not something else.

I was planning on doing is a regular expression check on the user fields (the default profile field manager supports this), again I never got around to finding out was the structure of the PID/Slot ID so I haven't got the regexes.

Obviously whatever is used in the end should never ever ever ever allow HTML to be embedded.

The final thing, is getting Google approval to do this.
Reply With Quote
  #6  
Old 11-18-2008, 04:00 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrEyes View Post
This is something I have been looking into for sometime, however with one thing or another I have not yet got around to making it live. From what I have worked out so far a "mod" isn't really needed.

As you said you can use the fieldX value in the template for the product ID, however I think you also need the "google_ad_slot" and then some cunning way of managing width/height and ensuring that users don't insert a skycraper banner in the vertical slot.

Once you have that the only other thing you need to do is add a conditional statement that checks if the user has actually supplied a valid publisher id etc and if not revert back to the defaults for the site (or not display the banner at all)

The other complexity was brought in with 3.7 and the ad location templates, these are generic and used on all VB pages, so if you use these the conditional needs to check THIS_SCRIPT to make sure it is a blog page and not something else.

I was planning on doing is a regular expression check on the user fields (the default profile field manager supports this), again I never got around to finding out was the structure of the PID/Slot ID so I haven't got the regexes.

Obviously whatever is used in the end should never ever ever ever allow HTML to be embedded.

The final thing, is getting Google approval to do this.
You should still be able to use the old google adsense code inside the templates so users don't go crazy or awol with their posting of adsense. That should take care of the sizes issue and needing an ad slot.
Reply With Quote
Reply

Thread Tools
Display Modes

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:10 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.04102 seconds
  • Memory Usage 2,211KB
  • 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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete