Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-05-01 04:46:59
- vagari
- Plugin Author
- Registered: 2004-08-25
- Posts: 19
[plugin] [ORPHAN] vag_author_id
Although you can access the Author’s name, which can be changed, it was always difficult to get the actual id, which can’t. Initially I hacked the system to grab it and added in a function. But since I upgraded to RC3 I’ve been trying to avoid touching the base system as much as possible. Well now the variable is passed but there’s not a function as of yet. So I wrote a plugin to just grab the authorId. I use it to identify the author of a post for color coding currently.
So far the only problem I’ve noticed is that sometimes the AuthorID variable has capitalization, as in John instead of john, as it appears in the database. I’m not positive if this is because it’s using the Name instead of the Id, but that’s my assumption. It only happens for me on one person out of six. If others notice this problem I’ll just add in something to force it lowercase and hopefully the username and id are the same for you. Or you can add in a comma in your style sheet and add the style to both possibilities.
I’m not sure how useful this is for others but it’s indispensable to me.
· Jake
Offline
Pages: 1