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


  #1  
Old Sep 9, 2009, 02:49 PM
Chris Bennett
 
4 posts · Sep 2009
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;
        });
}
  #2  
Old Sep 15, 2009, 10:48 AM
Chris Bennett
 
4 posts · Sep 2009
still struggling with this, any ideas?
  #3  
Old Sep 15, 2009, 11:20 AM
Flynn's Avatar
Flynn
 
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
  #4  
Old Sep 17, 2009, 09: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 10:18 AM.
  #5  
Old Sep 18, 2009, 10:43 AM
Flynn's Avatar
Flynn
 
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.
  #6  
Old Sep 20, 2009, 08: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!

Chris

Bookmarks

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 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 03:58 PM.


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