Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-04-12 23:50:22
- Aleksandersen
- Member
- From: Lillehammer, Norway
- Registered: 2007-04-12
- Posts: 77
Detecting feed click troughs (and cookie goodness)
Hi,
On my WordPress sites I have used to add ?c=feed
at the end of all <link>
s (http://example.com/post?c=feed) in wp-rss.php. I have then been able to find all feed click troughs, add a cookie to them, and do a 301 Permanent Redirect to the permalink (http://example.com/post) like this:
<?php if ($_GET['c'] == "feed" { SET COOKIE, AND THEN REDIRECT to URI without ?c=feed } ?>
How can I recreated this behaviour with Textpattern?
I use this cookie to costumise the page users clicking trough feeds see. They do not need as heavy RSS promoting as people without this cookie does! As they already came to the site trough the feed!
Offline
#2 2007-04-13 00:25:02
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Detecting feed click troughs (and cookie goodness)
Feeds are generated in rss.php and atom.php. See here for pointers on customizing feeds with a plugin.
Last edited by zem (2007-04-13 00:28:07)
Alex
Offline