You are here

README.txt in Google AdSense integration 5

Same filename in this branch
  1. 5 README.txt
  2. 5 contrib/README.txt
  3. 5 Attic/README.txt
Same filename and directory in other branches
  1. 5.2 Attic/README.txt
Copyright 2005 http://2bits.com

Drupal 4.7 update sponsored by http://scribendi.com


Description
-----------
This module provides web site admins the factility to display Google AdSense
ads on their web site, thus earning revenue.


Resources
---------
You can read the module author's collection of articles on resources for
using Google Adsense with Drupal. They contain hints and tips on how to use
the module, as well as Adsense in general.

http://baheyeldin.com/click/476/0


Prerequisites
-------------
You must signup for a Google AdSense account. If you do not have an account,
please consider using the author's referral link for signup at the following
URL:
http://baheyeldin.com/click/476/0


Installation
------------
To install, copy the adsense directory and all its contents to your modules
directory.


Configuration
-------------
To enable this module, visit Administer -> Site building -> Modules, and
enable adsense.

To configure it, go to Administer -> Site configuration -> Google AdSense.

Follow the online instructions on that page on how to display ads and the
various ways to do so.


Bugs/Features/Patches
---------------------
If you want to report bugs, feature requests, or submit a patch, please do
so at the project page on the Drupal web site.
http://drupal.org/project/adsense


Hacks/Workarounds
-----------------
If you would prefer the Adsense ID field in Profiles to be invisible to all
users except the admin, here's a workaround:

1) Log in as User 1. Set up the profile field as described in the help text
   ("Private field, content only available to privileged users") and enter
   your account number. Press save. This will store the record in the
   profile_values table. This is where the Adsense module expects to find
   the ID value.

2) Once saved, you can then set the field to "hidden profile field, only
   accessible by administrators, modules and themes." While this option
   stores the ID in a completely different table, the original value in the
   profile_values table DOES NOT get deleted. The Adsense module will
   continue to find and load the ID value properly. However, the field will
   now be invisible to other users.

NOTE: Just keep in mind that if you need to change the ID value later, you
will first need to:

1) Set the field option back to "Private field, content only available to
   privileged users"
2) Put in the new value and save
3) Then set the field option to "hidden profile field, only accessible by
   administrators, modules and themes"

You can check to make sure the Adsense module is picking up the proper value
by viewing the source of a page with the ads and checking the javascript
code. You should see the value of your account ID there.


Author
------
Khalid Baheyeldin (http://baheyeldin.com/khalid and http://2bits.com)

If you use this module, find it useful, and want to send the author a thank
you note, then use the Feedback/Contact page at the URL above.

The author can also be contacted for paid customizations of this and other
modules.

File

Attic/README.txt
View source
  1. Copyright 2005 http://2bits.com
  2. Drupal 4.7 update sponsored by http://scribendi.com
  3. Description
  4. -----------
  5. This module provides web site admins the factility to display Google AdSense
  6. ads on their web site, thus earning revenue.
  7. Resources
  8. ---------
  9. You can read the module author's collection of articles on resources for
  10. using Google Adsense with Drupal. They contain hints and tips on how to use
  11. the module, as well as Adsense in general.
  12. http://baheyeldin.com/click/476/0
  13. Prerequisites
  14. -------------
  15. You must signup for a Google AdSense account. If you do not have an account,
  16. please consider using the author's referral link for signup at the following
  17. URL:
  18. http://baheyeldin.com/click/476/0
  19. Installation
  20. ------------
  21. To install, copy the adsense directory and all its contents to your modules
  22. directory.
  23. Configuration
  24. -------------
  25. To enable this module, visit Administer -> Site building -> Modules, and
  26. enable adsense.
  27. To configure it, go to Administer -> Site configuration -> Google AdSense.
  28. Follow the online instructions on that page on how to display ads and the
  29. various ways to do so.
  30. Bugs/Features/Patches
  31. ---------------------
  32. If you want to report bugs, feature requests, or submit a patch, please do
  33. so at the project page on the Drupal web site.
  34. http://drupal.org/project/adsense
  35. Hacks/Workarounds
  36. -----------------
  37. If you would prefer the Adsense ID field in Profiles to be invisible to all
  38. users except the admin, here's a workaround:
  39. 1) Log in as User 1. Set up the profile field as described in the help text
  40. ("Private field, content only available to privileged users") and enter
  41. your account number. Press save. This will store the record in the
  42. profile_values table. This is where the Adsense module expects to find
  43. the ID value.
  44. 2) Once saved, you can then set the field to "hidden profile field, only
  45. accessible by administrators, modules and themes." While this option
  46. stores the ID in a completely different table, the original value in the
  47. profile_values table DOES NOT get deleted. The Adsense module will
  48. continue to find and load the ID value properly. However, the field will
  49. now be invisible to other users.
  50. NOTE: Just keep in mind that if you need to change the ID value later, you
  51. will first need to:
  52. 1) Set the field option back to "Private field, content only available to
  53. privileged users"
  54. 2) Put in the new value and save
  55. 3) Then set the field option to "hidden profile field, only accessible by
  56. administrators, modules and themes"
  57. You can check to make sure the Adsense module is picking up the proper value
  58. by viewing the source of a page with the ads and checking the javascript
  59. code. You should see the value of your account ID there.
  60. Author
  61. ------
  62. Khalid Baheyeldin (http://baheyeldin.com/khalid and http://2bits.com)
  63. If you use this module, find it useful, and want to send the author a thank
  64. you note, then use the Feedback/Contact page at the URL above.
  65. The author can also be contacted for paid customizations of this and other
  66. modules.