|
General Links
ONLINE MANUAL
General Sections
affCAFF Manager - The Basics
affCAFF Manager - Advanced
|
|
Running affCAFF On Blogs (Wordpress etc.)
affCAFF can be used in Wordpress posts, but not easily in the sidebar because
"global" variables are not supported by Wordpress. There are ways round this -
either by using the RSS template (read on) or by creating a simple external
page with affCAFF content and including it in the sidebar (ie: with SSI).
When using affCAFF in blog posts, install affCAFF as normal.
affCAFF comes with a formatting option that allows you to effectively output
affCAFF data streams as RSS, with your affiliate links embedded of course, and include them in your
blog posts. Below is a run-through of how to incorporate affCAFF in a post on a Wordpress blog.
affCAFF Within The Wordpress Sidebar or Footer
First, simply add the "include" file shown in STEP 1 of your data
generator to the "header.php" file in your blog's template (normally found in the directory
/wp-content/themes/templatename/).
Then simply generate the data stream code shown in STEP 2 of your data
generator and add it to the "sidebar.php" or "footer.php" files in the same
directory.
NB: This will display on every page of your blog. We would suggest merging in several properties
and setting the RANDOM property to "Y" when you create the data stream code.
affCAFF On Wordpress Within A Post/Article
- Install an RSS reader plugin
- Add the "include" file shown in STEP 1 of your data generator
- Edit the affCAFF code in "acRSSOutput.php" (or a copy of)
- Add the URL to the Wordpress post
Firstly you need to get an RSS reader plugin for your Wordpress blog and install it. There are
several available for Wordpress but by far the easiest to install and use in my experience is
QuickRSS.
In the data generator in your affCAFF installation, STEP 1 asks you
to put a line of code (an "include_once" call) into each page. On Wordpress this is easy -
just edit the "header.php" file of your template and stick it in there and all
pages on your blog will have access to it.
Once you have done the above, you need to include a URL of the RSS feed with
your chosen affCAFF content into any post you make on Wordpress where you want affCAFF
content displayed. In your installation directory is the file "acRSSOutput.php".
Create a copy of this file, rename it, edit it as sjhown below and upload it to the
/affCAFF directory.
In this file is some affCAFF code which you can simply replace with your own using the
data generator in your affCAFF Manager. When run, this
script outputs a valid RSS file.
NB: Be sure to leave the $params[outputformat]
parameter set to "RSS" and the $params[template] to "rss_format.inc"
(unless you create your own template).
If you use Quick RSS, then you simply add the following line to your Wordpress post:
[QuickRSS]http://www.site.com/affCAFF/acRSSOutput.php[/QuickRSS]
...where "site.com" is your website address, "affCAFF" is your
affCAFF install directory and "acRSSOutput.php" is the script you are using to call the
code.
Finally, note that when you edit the "acRSSOutput.php" file, you can opionally change the RSS title
and description to suit your site.
That should be all you need...remember to set up your
affiliate links for each property!
|
|