Chapter 8. Making an income from your site
111
Figure 8.3: Configuring the Revenue Sharing.
Figure 8.4: The new profile field. the user can input his or her AdSense publisher ID. This little piece of code will detect the current user ID and display a link to the edit page:
<?php global $user; $uid= $user->uid; ?> <a href="<?php print base_path();?>user/ <?php print $uid;?>/edit/AdSense"> Edit your Google AdSense ID</a>
111