Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archived] gho_if_referer

#1 2005-04-29 10:06:56

graumeister
Plugin Author
From: Ban Bang Por, Samui, Thailand
Registered: 2005-01-16
Posts: 167
Website

[archived] gho_if_referer

Notice: This thread is archived, this plugin is no longer available

**********************************************************

Hi @all, this is a plugin I wrote because I found nothing comparable here. Maybe it yet exists. Nonetheless here it is:

Download: http://grauhirn.org/svn/textpattern/current/gho_if_referer.0.1.txt

Its a Plugin which shows content if the user is refered by a special page. in my case it was important to show some content to users which found the page via a google-search, so I used the tag like following:

<txp:gho_if_referer string=".google.">
lots of text specially for googlevisitors
</txp:gho_if_referer>

possible is too:

<txp:gho_if_referer string="google\.[a-z]{2,4}" regexp="true">
lots of text specially for googlevisitors
</txp:gho_if_referer>

description

Sometimes it is needed to show special content if a special referer is determined. This tag will help

attributes

string the string, which occurence in the referer should be checked. must be set or the plugin delivers nothing.

regexp if this attribute is set (yes) the string in the string-attribute is an regular expression and will be used as an regular expression. if it is not set, the string will be handled as string (faster, if the tag is used more often). default is no regexp.

Last edited by graumeister (2005-11-22 00:43:16)


Samui? Samui! (about the life as farang in thailand)
David’s Neighbour

Offline

#2 2005-04-29 10:09:16

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [archived] gho_if_referer

You should enclose the code in HTML code Elements or in @ signs

Offline

#3 2005-04-29 10:15:54

graumeister
Plugin Author
From: Ban Bang Por, Samui, Thailand
Registered: 2005-01-16
Posts: 167
Website

Re: [archived] gho_if_referer

aah, thanks ;) now only the loss of the paragraphs is oddly.


Samui? Samui! (about the life as farang in thailand)
David’s Neighbour

Offline

#4 2005-11-21 19:42:33

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [archived] gho_if_referer

Hi, this still available as I don’t seem to be able to download it.

Thanks’s, Lee

Last edited by lee (2005-11-21 19:46:27)

Offline

#5 2005-11-22 00:43:56

graumeister
Plugin Author
From: Ban Bang Por, Samui, Thailand
Registered: 2005-01-16
Posts: 167
Website

Re: [archived] gho_if_referer

Hi lee, I changed the paths to the correct version of the plugin. Sorry for delay.


Samui? Samui! (about the life as farang in thailand)
David’s Neighbour

Offline

#6 2005-11-22 08:55:49

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [archived] gho_if_referer

Thanks for the link/plugin.

Offline

  1. Index
  2. » Archives
  3. » [archived] gho_if_referer

Board footer

Powered by FluxBB