You are here

function revenue_sharing_basic_help_text in Google AdSense integration 5.3

Same name and namespace in other branches
  1. 5.2 revenue_sharing_basic_help.inc \revenue_sharing_basic_help_text()
  2. 6 old/revenue_sharing_basic/help/revenue_sharing_basic.help.inc \revenue_sharing_basic_help_text()
  3. 7 old/revenue_sharing_basic/help/revenue_sharing_basic.help.inc \revenue_sharing_basic_help_text()

Creates the help text for the revenue sharing (basic)

Return value

HTML with the help text

1 call to revenue_sharing_basic_help_text()
revenue_sharing_basic_settings in old/revenue_sharing_basic/revenue_sharing_basic.admin.inc
Menu callback for the revenue_sharing_basic module settings form.

File

old/revenue_sharing_basic/help/revenue_sharing_basic.help.inc, line 16
Helpfile for the revenue_sharing_basic module

Code

function revenue_sharing_basic_help_text() {
  global $user;
  $uid = $user->uid;
  $base = rtrim(base_path(), '/');
  $output = <<<EOF
<h2>Overview</h2>
<p>This module provides web site admins the factility to share revenue from
Google AdSense ads with those writing the content on the site, according to
certain percentages.</p>

<h2>Revenue sharing</h2>
<p>For revenue sharing, each author gets a predefined share of ad revenue from
clicks occuring on nodes they authored.</p>
<p>In order for the user to be credited they must have a Google AdSense
account.</p>
<p>Each user must enter their Google AdSense client ID in the profile field
you defined above.</p>

<h2>Configuration</h2>
<p>To use this module, you need to do the following first:</p>
<ul>
  <li>
    <p>Go to <a href="{<span class="php-variable">$base</span>}/admin/user/profile">Administer -&gt; User
    management -&gt; Profiles</a> and create a new profile field of type
    &quot;single-line textfield&quot;. Name this field something like
    &quot;Google AdSense client ID&quot;, and form name
    &quot;profile_google_adsense_client_id&quot;. This is a required
    configuration parameter.</p>
    <p>Note that the new profile field must be setup as: &quot;Private field,
    content only available to privileged users&quot;. All other values are
    either insecure (others can see the Google Adsense ID of the user), or
    will not work, so do not use any of them.</p>
    <p>If you want to force users to enter a value when they sign up, then use
    the following settings:</p>
    <ul>
      <li>The user must enter a value (checked).</li>
      <li>Visible in user registration form (checked).</li>
    </ul>
    <p>You should enter a descriptive explanation for the Google AdSense
    client ID, so users know what to enter in this field.</p></li>
  <li>Go to <a href="{<span class="php-variable">$base</span>}/user/{<span class="php-variable">$uid</span>}/edit">My account -&gt; Edit</a>, then
  click on the category that you defined for the Google AdSense client ID
  and enter your Google ID, which is something like
  &quot;pub-9999999999999&quot;, and click Submit.</li>
</ul>
EOF;
  return $output;
}