I’ve added the field to this Studiopress theme for your twitter username to the actual comment form now so it should be a smoother entry for those who haven’t added their twitter username to a comment here.
Luv StudioPress!
You just gotta luv the flexibility of the Genesis Framework by StudioPress. It just takes a tiny bit of code in my child themes functions.php file and it’s added!.
Studiopress specific code
// add twitter field //adds extra fields to the comment form. add_filter('genesis_comment_form_args','add_twitter_field'); function add_twitter_field($args) { $args['fields']['twitter'] = '<p class="comment-form-twitter-id"><input size="30" id="atf_twitter_id" type="text" name="atf_twitter_id" tabindex="3" /> <label for="atf_twitter_id">' . __( 'Twitter ID', 'child' ) . '</label> <br /><small>(ID only. No links or @ symbols)</small></p>'; return $args; }
I did need to update my child theme style.css to add to the styling of the other fields but that was as easy as adding #atf_twitter_id to the existing style statement.
#author, #email, #url , #atf_twitter_id{ background: #F9F9F9 url(images/no-repeat.png) no-repeat scroll 0 0; color: #333333; font-family: Arial,Tahoma,Verdana; font-size: 11px; margin: 5px 5px 0 0; padding: 5px 0 5px 10px; border: 1px solid #B2B2B2; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px; -webkit-background-clip: padding-box; -webkit-background-origin: padding-box; }
Next, I visited the twitterlink settings page and set it to not show the field automatically. Easy peasy!!
Update coming (eventually)
I can see that new wordpress functions can be taken advantage of to make the adding of the extra field a snap for the next version of Twitterlink Comments. It’s not something I can do in a few minutes because I really want to do a bigger update to that plugin that will bring it in to the 3.01st century (in WP terms).
How about a way to tweet someone if they get a reply to their comment? that’s what I’m planning on adding to the plugin and it makes sense to do the easy addition of the field to the comment form along with that.
Better than Thesis
Get your own copy of Genesis framework and start knocking out high quality, easily configured, beautiful sites from day one. I got the ProPlus package and I swear by it!
I’ve made and been a consultant on over 20 sites now that use it and by golly it’s good! If you’re a geek like me then you’ll luv the bazillion hooks and filters that you can take advantage of and if you’re not, well then you can use the easy genesis hooks plugin to add functions and features to just about every part of your site without ever editing a single php file.
Click the image below to see the awesome array of gorgeous themes that are available right now to use from Studiopress
Get Twitterlink Comments
If you want to add an extra field to your comment form for the user to add their twitter username and then display it along with their comment, just visit the download page. If you haven’t got a Studiopress theme, don’t worry! it’s got an automatic function that adds the field to below your comment form.
I too use StudioPress themes, actually, I have been using them since it was just Brian and was called Revolution. I have looked into many of the other theme developers but they all just seem too greedy or something, with Genesis, you get lifetime and unlimited rights, with the others, it is like a 6 month package, then, you have to renew to get support.
Anyway, I just followed your instructions here, and it works great, but, if you have the site set that users must be registered and logged in, the field does not show, none of them do, so will it pull the Twitter Link info from the Twitter User plugin?
CarpetGuy´s recent blog post ..Trekkies and Progressives- can it be
Twitter: commentluv
says:
yup I agree. genesis is the best value theme framework out there and in most cases, you don’t need to do anything with the child theme. they are all so beautiful!!
as for your issue with logged in users and the field not showing. you could set the plugin to automatically add the field and it should show below the comment entry textarea.
I suppose it could be modified to work with twitter user plugin, I haven’t see it before but if it saves to the database then it could be made to work with it. if you send me the plugin zipped up to admin @ comluv.com then I might be able to make a modified twitterlink to do what you need.