Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Plugins & Atahualpa »

OpenID Comments Form

Old Sep 9, 2009, 03:49 PM
Chris Bennett
4 posts · Sep 2009
OpenID Comments Form

I'm trying to figure out why the OpenID Comments form isn't able to change the comments on this theme. The id's look to be what it's looking for, I'm a little lost.

The Javascript that modifies the comments form looks like this:

jQuery(function() {

        jQuery('#openid_status_link').click( function() {
                return false;

function stylize_profilelink() {
        jQuery("#commentform a[@href$='profile.php']").addClass('openid_link');

function add_openid_to_comment_form() {


        var html = ' <a id="openid_enabled_link" href="http://openid.net">(OpenID Enabled)</a> ' +
                                '<div id="openid_text">' +
                                        'If you have an OpenID, you may fill it in here.  If your OpenID provider provides ' +
                                        'a name and email, those values will be used instead of the values here.  ' +
                                        '<a href="http://openid.net/what/">Learn more about OpenID</a> or ' +
                                        '<a href="http://openid.net/get/">find an OpenID provider</a>.' +
                                '</div> ';

        jQuery('#commentform #url').attr('maxlength', '100');
        var label = jQuery('#commentform label[@for=url]');
        var children = jQuery(':visible:hastext', label);

        if (children.length > 0)
        else if (label.is(':hastext'))

        // setup action
        jQuery('#openid_enabled_link').click( function() {
                return false;
Old Sep 15, 2009, 11:48 AM
Chris Bennett
4 posts · Sep 2009
still struggling with this, any ideas?
Old Sep 15, 2009, 12:20 PM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
It adds the CSS class "openid". Is that CSS class defined somewhere?

I also noticed
#commentform label[@for=url]

This should be

#commentform label[for=url]

since jQuery 1.3

Also try removing the hard coded jQuery that Atahualpa adds, in Atahualpa's header.php
Old Sep 17, 2009, 10:59 AM
Chris Bennett
4 posts · Sep 2009
The .js is aparently never getting added to the header.
I added wp_print_scripts(); to the end of the openid plucin, and now I get the javascript file included.
(it also prints code that was apparently missing from wp-email as well, is the theme supposed to be calling wp_print_scripts somewhere instead?)

The script gets printed in the header now, but it's still not changing the form...
(I changed the #commentform label[for=url] thing too)

http://www.bennettphoto.net/2009/09/...-park/#respond is the URL

Last edited by Chris Bennett; Sep 17, 2009 at 11:18 AM.
Old Sep 18, 2009, 11:43 AM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
Try disabling the pretty Photo plugin, it's using jQuery with $ instead of jQuery, whereas Atahualpa and OpenID are using jQuery, maybe that's causing this. Right now the default Atahualpa jQuery action such as the toggle effect for the "You can use this HTML" link isn't working either.

Additionally and just in case you could also remove the whole IE Pngfix code from js.php

Delete everything from

PHP Code:
(c2008 Angus Turnbull http://www.twinhelix.com 
up to
PHP Code:
    document.styleSheets[0].addRule('div''behavior: url(http://www.bennettphoto.net/blog/wp-content/themes/atahualpa/js/iepngfix.php)'); */
This will be removed in the next version anyway.
Old Sep 20, 2009, 09:17 PM
Chris Bennett
4 posts · Sep 2009
The problem seems to be the openid plugin itself. I went thru today disabling everyting and re-enabling one at a time till the supported html chars broke, it broke after enabling the openid plugin. I'm just surprised that js didn't whine a little more.

It seems to have some syntax errors in the js that firefox is complaining about. I'll dig into that a little bit more and let you know!



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying comments and comment form below each post on multi post pages, in 3.4.x Flynn Comments, trackbacks & pings 12 May 28, 2011 08:27 PM
Styling the comments area title font, form field and label font, and form field sizes jkintzele Comments, trackbacks & pings 5 Nov 10, 2009 10:18 AM
Comment form: how do I clear the data from name and email when the form is submitted? blueprairie Comments, trackbacks & pings 3 Sep 15, 2009 06:15 PM
[SOLVED] Is there an ATO way to disable the Comment Form URL versus tweaking comments fromtheranks Comments, trackbacks & pings 2 Jun 18, 2009 01:10 PM
Spaces in the fields of "Post comments" form Lucker Comments, trackbacks & pings 1 May 25, 2009 01:38 PM

All times are GMT -6. The time now is 02:20 AM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.