Wed Sep 15, 2004

Added Link Masking

With my increased desire to have more logging, I modded TXP to record what off site links my visitors click on. To do this I needed the ability to have all outgoing links pass through a little bit of logging code. I added an internal redirect handler so I now have the option of making all of the links I define look like http://manfre.net/?linkto=1 , instead of say http://www.cad-comic.com. I also added an option ‘linkto’ to my mem_glinklist plugin to generate the masked links. I can turn this logging/masking on and off by changing a tag argument. It’s so nice and simple.

I might take this to the next level by masking all links—this includes comment links, entry links, ecetera. This would require a lot more work since I would have to add link detection code and I would then have to store all of the links somewhere—possibly in a link category called “Collected Links” to minimize work.

I’m beginning to see even more of TXP’s code and it has many areas that I am interpretting as hackish. Hopefully, the version 1.0 code that the community is holding their breath for is cleaner.

Comment

Textile Help