Playing around with WP tags, I discovered it’s easy to put Edit This links/buttons onto posts and comments, that will only appear when a user who is able to edit them is logged in.
So, there’s now a reason to register as a user: it means you can edit any comments you make.
Of course, it’s easier to just comment, and enter your details. Since I don’t get much comment spam, I won’t be turning on ‘Only Registered Users Can Comment’ any time soon, but a nice feature for me to have.
The code in my templates is:
- To change the links at the top of the page to Login/Logout, and Register/Site Admin, depending on context, use the following Smarty Tags:
-
{wp_loginout} -
{wp_register} - To put the in the post header:
-
{edit_post_link before='<span class="button">' after='</span>'} - To put the in the comment box:
{edit_comment_link before='<span class="button" >' after='</span>'}
Hey…thanks for the “Connecting” theme tutorial for blogsome, although I must admit for a newbie like me the tutorial did sort of go right over my head. Perhaps you could modify it to be more accessible for a complete blogging novice like myself.
Also, I came across this spectacular theme called “Taft” at http://www.secretweaponlabs.com/words/taft-10/ and was wondering (since you see to know a hell of a lot about this sort of stuff) if you could perhaps come up with a tutorial to modify it for blogsome (if it strikes your fancy) :-).
Anyway you’ve got a great blog here, would’nt have heard about those new sony headphones otherwise.
Thanks.
1 day, 10 hours after the fact.
I may rewrite the tutorial to make it more ‘accessible’, but there is a limit as to how ‘easy’ something can be.
Reminds me of the quote by (I think it was) Einstein when asked to describe his Nobel-winning work in 5 words:
“Well then, it wouldn’t be worth a Nobel Prize if I could describe it in five words.”
Not that I’m saying this is anything like Nobel-winning physics…
And, I’m unlikely to do a conversion on this theme, as I don’t actually like it that much.
2 days, 19 hours after the fact.