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


 
Prev Previous Post   Next Post Next
  #1  
Old Sep 9, 2009, 02: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:

Code:
jQuery(function() {
        jQuery('#openid_system_status').hide();

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

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

function add_openid_to_comment_form() {

        jQuery('#commentform').addClass('openid');

        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)
                children.filter(':last').appendToText(html);
        else if (label.is(':hastext'))
                label.appendToText(html);
        else
                label.append(html);

        // setup action
        jQuery('#openid_text').hide();
        jQuery('#openid_enabled_link').click( function() {
                jQuery('#openid_text').toggle(200);
                return false;
        });
}
 

Bookmarks



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 07: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 09: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 05: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 12:10 PM
Spaces in the fields of "Post comments" form Lucker Comments, trackbacks & pings 1 May 25, 2009 12:38 PM


All times are GMT -6. The time now is 07:24 PM.


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