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
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.
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.
Twitter: @affanruslan
hey andy, this is awesome. i just used genesis for few weeks and i really like it.
so, do i need to paste the first code to the function.php file?
Cheers
Affan recently posted..Evolusi dan Perkembangan Blog di Malaysia
Twitter: pmurraydesign
Quick easy, and if you alter the filter name this also works with Thematic! Thanks.
Paul Murray recently posted..3 big mistakes I made on early freelance design jobs
I recently added the Twitter Link Plugin and it is awesome. Thank you for providing such a cool and easy to use tool. I didn’t have to configure or figure anything out. Simply install, Active, changing settings is (optional). Check your page and its there and ready to use. Awesome!!!