Plugin Directory

Changeset 427136


Ignore:
Timestamp:
08/22/2011 02:43:26 PM (15 years ago)
Author:
Jehan
Message:
  • Readme updated.
  • Prepare the plugin i18n file loading.
Location:
xmpp-auth/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • xmpp-auth/trunk/plugged.php

    r422920 r427136  
    3030 * @return string <img> tag for the user's avatar
    3131*/
    32 function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false )
     32function get_avatar($id_or_email, $size = '96', $default = '', $alt = false)
    3333{
    3434    if (!get_option('show_avatars'))
  • xmpp-auth/trunk/readme.txt

    r426647 r427136  
    7878will be verified by XMPP (but the fields will stay if the user wants to add
    7979them in).
     80
     81Also the new comment field (for JID) is automatically displayed if you use a
     82recent theme (because it uses a function newly added since 3.0). If you don't
     83see the new field after activating, don't panick. 4 solutions:
     84
     851. the simpler: use a more recent theme. The default _twentyten_ and
     86_twentyeleven_ will work perfectly without doing anything;
     871. if you don't want to change your theme, try to contact the theme writers
     88and ask them if they could not support the generic (and now "adviced")
     89`comment_form()` feature (they will understand);
     901. you know PHP/HTML and want to do it fast: simply check the file
     91`comments.php` of your theme. and either replace the whole form by this
     92simpler function: `<?php comment_form(); ?>` yourself;
     931. or if you want to do it manually, add the following code (can be modified,
     94but what matters obviously is the id of the input field):
     95`<p class="comment-form-email"><label for="jid" title="Jabber ID (will not be
     96published)"><?php _e( 'JID' ); ?></label><span class="required">*</span>
     97<input id="jid" name="jid" type="text" value="" size="30" aria-required="true" />
     98</p>`
     99
     100My advice is **obviously** to go for the first and the second solutions. The
     101third one is really when you want to do this fast (but still you should report
     102this to the theme writers for them to update upstream) and the fourth is a
     103last resort if you have some very atypical comment form.
    80104
    81105= dependencies =
     
    197221security matters.
    198222
     223= The new "JID" field does not appear in the comment form! =
     224
     225You most probably use an outdated theme which does not use recent Wordpress
     226features about commenting (since 3.0). This is not a blocker. See the bottom
     227of the "Installation" tab. I provide the solutions to this issue.
     228
    199229== Screenshots ==
    200230
    201 1. Visitor post a comment and receive a confirmation request by pop-up through
     2311. Visitor posts a comment and receive a confirmation request by pop-up through
    202232one's IM client (here Psi+).
    2032332. Configuration page.
     
    242272== Changelog ==
    243273
     274= 0.4 =
     275
     276- When login is disabled, login page look is not modified.
     277- When comments is disabled, I still display the JID field, but simply don't
     278  process anything and without the '*' of mandatory fields.
     279
    244280= 0.3 =
    245281
     
    272308== Upgrade Notice ==
    273309
     310= 0.4 =
     311
     312
    274313= 0.3 =
    275314
  • xmpp-auth/trunk/xmpp-auth.php

    r426647 r427136  
    5757//require_once(dirname(__FILE__) . '/plugged.php');
    5858
     59load_plugin_textdomain('xmpp-auth', false, basename(dirname(__FILE__)) . '/i18n/');
     60
    5961?>
  • xmpp-auth/trunk/xmpp_stanzas.php

    r426589 r427136  
    5353} // }}}
    5454
     55/**
     56 * XEP-0084.
     57 */
     58function subscribe_avatar($params)
     59{
     60}
    5561
    5662?>
Note: See TracChangeset for help on using the changeset viewer.