| 1 |
$Id$
|
| 2 |
|
| 3 |
Copyright 2006 http://2bits.com
|
| 4 |
|
| 5 |
Description
|
| 6 |
-----------
|
| 7 |
This module provides web sites that offer a service the ability to have
|
| 8 |
different themes depending on the referer the user is coming from.
|
| 9 |
|
| 10 |
For example, if a site offers outsourced ecommerce, or event registration,
|
| 11 |
they can have a branded theme for their clients with each client's logo.
|
| 12 |
If a visitor clicks on a link from the client site, they will be assigned
|
| 13 |
a theme for a certain time.
|
| 14 |
|
| 15 |
Other visitors coming from different referers will have different themes
|
| 16 |
and are unaffected.
|
| 17 |
|
| 18 |
Prerequisites
|
| 19 |
-------------
|
| 20 |
You must develop a theme for every client you have and install them normally
|
| 21 |
as you would with any other theme, and enable them as well.
|
| 22 |
|
| 23 |
The themes can be made to fit the original (refering) site's look and feel.
|
| 24 |
For example, have the same logo, color, fonts, ...etc. You can also suppress
|
| 25 |
one side bar or both if you so with. In short, anything that can be done
|
| 26 |
in a theme is allowed here.
|
| 27 |
|
| 28 |
Using phptemplate is recommended.
|
| 29 |
|
| 30 |
Installation
|
| 31 |
------------
|
| 32 |
This module requires no database changes.
|
| 33 |
|
| 34 |
To install, copy the referer_theme.module to your modules directory.
|
| 35 |
|
| 36 |
Configuration
|
| 37 |
-------------
|
| 38 |
To enable this module, visit Administer -> Modules, and enable referer_theme.
|
| 39 |
|
| 40 |
To configure it, go to Administer -> Settings -> referer_theme.
|
| 41 |
|
| 42 |
For each site, enter the hostname that visitor would come from. This is the
|
| 43 |
part between the "http://" and the first "/"
|
| 44 |
|
| 45 |
Assign a theme for that site.
|
| 46 |
|
| 47 |
Advanced:
|
| 48 |
---------
|
| 49 |
The default number of sites to configure is 3. If you want to increase
|
| 50 |
this, then change the value for REFERER_THEME_MAX_SITES at the top of
|
| 51 |
the module using an editor.
|
| 52 |
|
| 53 |
The default time for a theme to remain is 3 hours from the time the
|
| 54 |
user first visited. If you want to adjust that time, then adjust the
|
| 55 |
value REFERER_THEME_PERIOD at the top of the site.
|
| 56 |
|
| 57 |
Bugs/Features/Patches:
|
| 58 |
----------------------
|
| 59 |
If you want to report bugs, feature requests, or submit a patch, please do so
|
| 60 |
at the project page on the Drupal web site.
|
| 61 |
|
| 62 |
Author
|
| 63 |
------
|
| 64 |
Khalid Baheyeldin (http://baheyeldin.com/khalid and http://2bits.com)
|
| 65 |
|
| 66 |
If you use this module, find it useful, and want to send the author
|
| 67 |
a thank you note, then use the Feedback/Contact page at the URL above.
|
| 68 |
|
| 69 |
The author can also be contacted for paid customizations of this
|
| 70 |
and other modules.
|