Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
[plugin] [ORPHAN] rss_author_email
This plugin will simply display the article authors name as a mailto link. The link is encoded just as the txp:email tag for spam proofing.
This is my first plugin so please let me know how it goes.
I also have to give mad props to Rufnex for his plugin creator
Using that made creating this a breeze. That and the fact that its probably the simplest plugin ever made for TXP. Enjoy!
Last edited by wilshire (2004-11-25 01:32:43)
Offline
#2 2004-10-07 23:14:53
- Vitruvius
- Plugin Author
- Registered: 2004-09-21
- Posts: 125
Re: [plugin] [ORPHAN] rss_author_email
I have just installed this plugin – and yes it may well be the simplest plugin ever made for TXP – but it filled a hole that my site design needed and it worked :)
You can see it in action here.
Wilshire – if you are feeling really eager – an option to either link to email or link to another address would be great.
Anyway – thanks for your efforts…
SH
Last edited by Vitruvius (2004-10-07 23:27:02)
Offline
Re: [plugin] [ORPHAN] rss_author_email
OK, it might not be the simplest anymore.
Version 0.2 available here witht he following additions
- address – will override the authors email address with the given address
- subject – adds the given subject to the email message
Hope thats what you had in mind Vitruvius. Let me know how it goes.
Last edited by wilshire (2004-11-25 01:33:03)
Offline
Re: [plugin] [ORPHAN] rss_author_email
I get the following error… any idea to fix this?
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/groups/q/qo/qooxdoo/htdocs/textpattern/publish.php(767) : eval()’d code on line 85
Offline
Re: [plugin] [ORPHAN] rss_author_email
Do your tables have a prefix? If so, the plugin is not adding it and thats most likely the problem.
If thats the case, find the line that starts with “$query =” and add your prefix to the table names.
Offline
Re: [plugin] [ORPHAN] rss_author_email
Yes, I use prefixes. Thank you for this hint. But, couldn’t you get the information somewhere out of the textpattern config… mhh. I really hate to hack on php scripts, especially on each update this job need to be redone :(
Offline
Re: [plugin] [ORPHAN] rss_author_email
Yes, I could have. This was the first plugin I wrote and didn’t really think of those things at the time. I don’t see it being necessary to release another version of this but if I did I would include the table prefix.
Offline
#8 2005-06-07 00:19:49
- Anark
- Member
- Registered: 2004-08-14
- Posts: 101
Re: [plugin] [ORPHAN] rss_author_email
I’m not so keen on displaying anyone’s e-mail address any more, and encoding in html entities offers only very weak protection against harvesting bots.
I’d be all over this plugin, though, if I could link the author name to a URL.
Offline
Re: [plugin] [ORPHAN] rss_author_email
You can do that with rss_author_info.
Offline
#10 2005-06-07 02:47:01
- Anark
- Member
- Registered: 2004-08-14
- Posts: 101
Re: [plugin] [ORPHAN] rss_author_email
Great. Thanks!
Offline
Re: [plugin] [ORPHAN] rss_author_email
This plugin is not working for me. I’m using 4.0.2, have it installed, activated, an dhave replaced the regular author tag with this one in my form. It doesn’t display anything. Does this not work with more recent TXP releases? I ran into that problem with another plugin.
Any help is appreciated, thanks,
-Paula
Offline
Pages: 1