/[drupal]/contributions/modules/adsense_injector/README.txt
ViewVC logotype

Contents of /contributions/modules/adsense_injector/README.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (show annotations) (download)
Fri Jan 2 04:41:24 2009 UTC (10 months, 3 weeks ago) by hswong3i
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +41 -1 lines
File MIME type: text/plain
- sync with 6.x-2.x-dev.
1 // $Id: README.txt,v 1.1.4.3.2.3 2009/01/02 04:28:02 hswong3i Exp $
2
3 Copyright 2006-2008 Exodus Development, Inc. (http://exodusdev.com)
4
5
6 ABOUT ADSENSE INJECTOR
7 ----------------------
8
9 The purpose of this module is to provide a simple method of automatically
10 placing 'inline' adsense module content into a full-page view of selected
11 node types. It does this by intercepting node rendering using hook_nodeapi
12 during 'page' rendering, and injecting selected text into the $node->body
13 field.
14
15 It uses a very simple scheme at present (just string concatenation) and
16 could be enhanced greatly by using regular expressions, templates, or other
17 techniques in a later revision.
18
19 Official Adsense Injector project page:
20 http://exodusdev.com/drupal/4.7/modules/adsense_injector.module
21
22 Drupal Adsense Injector project page:
23 http://drupal.org/project/adsense_injector
24
25 Sponsored by:
26 http://exodusdev.com/
27
28
29 RATIONALE
30 ----------------------
31
32 Why is this useful? In my experience, this simplifies certain important
33 aspects of ad insertion and placement.
34
35 Traditional approaches:
36
37 - Modify your theme's node.tpl.php or other template file(s) in order to
38 inject ads on every node view.
39
40 What happens if you have multiple sites or use multiple themes, or use
41 custom per-node-type template files (node-book.tpl.php, node-image.tpl.php
42 etc)? Now you have to edit, test, and maintain multiple template files,
43 and, if the theme is updated to fix bugs, you have to merge in your
44 changes.
45
46 - Hand-edit each node content and use inline [adsense:x:y] inline filter
47 tags.
48
49 This gives tremendous flexibility in layout, but creates a maintenance
50 nightmare if you should wish to alter your channel or ad layouts site-wide.
51
52 - Use block insertion into the theme's template regions.
53
54 This is great if your theme's regions provide the flexibility you want - it
55 seems that themes vary somewhat in the regions they provide, and those
56 regions aren't always in the places you want - so once again, you are back
57 to tweaking theme template files if you want to place the ads near or in
58 the content.
59
60
61 USAGE
62 ----------------------
63
64 AdSense Injector uses (and requires) installation and proper configuration of
65 the AdSense Module in order to function properly. Please install, configure,
66 and test the AdSense module before you install Adsense Injector.
67
68
69 ANY DETAIL VISIBILITY CONTROL?
70 ----------------------
71
72 You may looking for some detail visibility control as like as that of block
73 visibility, e.g. with PHP-mode which target for expert only.
74
75 This will not exists for adsense injector module, as adsense module already
76 coming with similar visibility control managment. For keeping this module as
77 simple as possibility, we will not duplicate this handling.
78
79 For more detail:
80 http://drupal.org/node/136031
81 http://drupal.org/node/198907
82
83
84 LIST OF MAINTAINERS
85 ----------------------
86
87 PROJECT OWNER
88 M: Michael Curry <exodusdev@gmail.com>
89 S: maintained
90 W: http://exodusdev.com/
91
92 CO-MAINTAINER
93 M: Edison Wong <hswong3i@gmail.com>
94 S: maintained
95 W: http://edin.no-ip.com/

  ViewVC Help
Powered by ViewVC 1.1.2