![]() |
Google Adsense share for each publishers in CMS Article
1 Attachment(s)
This mod is a combination between some mod that I found in this forum, with the help of some people, especially from Dead Eddie.
What is it? It enables publishers to place his advertising in their articles. Why? because it would encourage them to write better articles, with each click to their article, they will earn $. Ok let's start! 1- You need to create (only number) a extra field in user profile via admin panel. Code:
admincp > User Profile Fields > Add New User Profile Field 3 - Edit the vbcms_content_article_page template, and insert this code where you want to display advertising: Code:
<!-- CMS-ADV-SHARE-START --> You can edit all size and type of google_ad code. 4 - Edit vbcms_article_populate_end plugin ( Admincp > Plugins & Product > Plugin Manager), and add this code at the end: PHP Code:
Now you (and your publishers) can add Google Adsense Code in profile field. You can Add (max3 for Google adsense terms) Advertising module in the vbcms_content_article_page. Google adsense terms not allowed to use different adsense code in same page. So please careful if you have different Adsense code in your header/footer. UPDATE 1 : Goes to official. UPDATE 2 : Added function than remove advertisement when the author's name it is made private (service communications), UPDATE 3 : Added function than add YOUR advertisement when the author's field are empty. |
First post reserved.
|
question ;
i can't find this "vbcms_article_populate_end"?in where? |
same here... cannot find vbcms_article_populate_end
|
This is kind of genius, only question I have is - What are the steps Google requires to allow other adsense on your domain? Also, lets say the writer gets an adsense account and they have their ad on my site next to their article, what if they click it a bunch? I know their adsense will get banned, but will my website be punished?
|
All times are GMT. The time now is 02:30 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|