utilitees

- Addons for ExpressionEngine 1.7.x

TextLinkAds Documentation

Download Download

Installation:

Unzip the archive and copy the file pi.textlinkads.php into the plugins-directory inside your Expression Engine system-directory.

Back to top

Example:

{exp:textlinkads filename="local_999999.xml" inv_key="1XXVZ999ZZ9RYSYYHWG0" rows="2"

       

Back to top

Parameters:

inv_key=”“
Mandatory.
The XML KEY associated with your URL.
How to get this XML-Key is explained below.

filename=”“
Mandatory.
The name of the file TLA asks you to create.
How to get this filename is explained below.

rows=”“
Optional. Defaults to 1.
The number of links per row the script creates.

Back to top

Getting XML-key and filename:

Log-in to your publisher account at TLA.

In the PUBLISHERS menu point your browser to “Install Ad Code”.
You’ll see a listing of your URLs and their associated XML KEYs.
This XML KEY is the first of the two values you need.

The second is the filename. To get it, click “Get Ad Code” to the right of your URL. Leave the select-box at PHP and click “Take me to step 2”.
Leave that setting as well and click “Generate Code”.
You’ll get a message stating: “Create a file named local_XXXXXXX.xml that is writable by the web server.”
The part in bold is the filename you need.

Back to top

       

Usage in multi-entry templates:

By using conditionals you can easily deploy several ad codes in one template that come into effect based on the URL.
       
Example:
       

{if segment_3 == "my_entry"}
  {exp
:textlinkads filename="local_9999999.xml" inv_key="1XXVZ999ZZ9RYSYYHWG0"}
{if
:else segment_3 == "my_second_entry"}
  {exp
:textlinkads filename="local_8888888.xml" inv_key="1ZZVZ888YY9RYSYYHWG0"}
{
/if} 
Back to top

Questions / bug reports

For general comments, brickbats & bouquets please use the form over here.
Name:

Email:

URL:


Remember my personal information
Notify me of follow-up comments?