Hi,to start thanks making this great module but i want a new feature in it what other people will also like it i hope..

this is what i want:

A user enters his or here Adsense ID in the profile field and only shows there ads in there profile or in there personal blog so they can make a little bit money with there own profile page and blog see screenshot for more details,the screenshot explains everything.. i hope you can make it for free

CommentFileSizeAuthor
explenation_adsense_module.jpg362.83 KBdemon326

Comments

kbahey’s picture

The module already shows ads with the user's ID if it is on the blog page. You have to enable revenue sharing and check the "blog" content type.

The other part, about the user profile is not implemented. Are you willing to sponsor its development? If so contact me via the contact form.

demon326’s picture

@kbahey :
ow.. okay thanks for helping me out a little bit :D,sorry but i cant sponser you but this can be clossed.. i have my awnser..

kbahey’s picture

There are many ways you can theme the user profile page in Drupal.

One of these methods can help you. Requires programming of course.

incom’s picture

user ad code in blog/user and site/user is very much required in revenue sharing - kindly post the awnser

Greg Go’s picture

Here's one way to give adsense credit to the user on their profile page. (Disclaimer: I'm using this in a 4.7 setup. In 5, module_exist is now module_exists.)

I put this at the top of user_profile.php. You need to follow these instructions for using user_profile.tpl.php first.

  if (module_exist('adsense')) {
    $uid = $user->uid;
    static $client;
    $client = adsense_get_client_id($uid,'blog');
  }
jcnventura’s picture

Status: Active » Closed (fixed)

Closing this issue as there's nothing this module can do about changing the user's profile and the instructions in #5 solve it.

João