Support » Plugins and Hacks » New plugin – Usermeta

  • Hia.

    I’d like to announce my Usermeta plug-in, which provides an API for other plug-ins and themes to store meta information against users. It is beta.

    This plug-in is based on the postmeta facilities of WP 1.5 and uses a similar table format and set of API routines. According to the Wiki change notes a user meta feature will be part of WP 1.6, however I have not seen this so I don’t know if my plug-in is entirely compatible. (Any help on this would be great – I’d rather not call this plug-in stable until I know I’ve got that right.)

    Basically, the purpose of this plug-in is to associate name/value pairs against user ids and be able to retrieve them later.

    Hope someone finds this useful.

    James

Viewing 15 replies - 1 through 15 (of 18 total)
  • I don’t know how far away 1.6 is … ahhh..

    I’m going to look at this tomorrow.

    could you explain or give examples of the particular applications of this plugin?

    (sortof repeat from the other thread about Userextra)

    How about:

    <p>This post written by <?php the_author(); ?> who lives at <?php $usermeta = new Usermeta(); echo $usermeta->get(get_the_author_ID(), "address", true); ?></p>

    I hope this works in 2.0 because I need the features of USERMETA and USEREXTRA…

    shunshifu

    (@shunshifu)

    I just tried to install this in 2.0. When I activated it I got this error.

    Fatal error: Cannot redeclare get_usermeta() (previously declared in /home/content/s/h/u/shunshifu/html/vsblog/wp-includes/functions.php:2161) in /home/content/s/h/u/shunshifu/html/vsblog/wp-content/plugins/usermeta.php on line 119

    Bummed, I can’t get into anything the whole site has crashed.

    I deleted the plugin and reuploaded the site. Now it says

    It doesn’t look like you’ve installed WP yet. Try running install.php.

    Any help here. What can I do to get my site back up and running.

    Thanks

    Shunshifu

    dommega8

    (@dommega8)

    On his website, he says he has not updated the plugin yet for 2.0 🙂

    shunshifu

    (@shunshifu)

    Oops, I looked around but somehow missed that. Thanks. I am certainly looking forward to it being updated.

    Any other way of allowing for multiple users on a blog and give them each a category.

    Thanks

    Shun shifu

    dommega8

    (@dommega8)

    moshmonkey

    (@moshmonkey)

    Can someone please explain how I would actualy go about displaying my extra fields in an authors.php template file, I just can’t for the life of me figure it out, and yes I’ve checked the documentation that came with it and had a look at the info here http://dev.wp-plugins.org/wiki/Usermeta, it might just be me, but it doesn’t seem to be explained very well.
    Can anyone help me?

    Jaycos

    (@jaycos)

    Hey moshmonkey, additionally use the plugin Userextra to achieve that! Works great!

    moshmonkey

    (@moshmonkey)

    I have Userextra installed, what I’m saying is that I don’t know what code I have to put into the author.php template to get my extra field values to show

    Jaycos

    (@jaycos)

    They are displayed under “Your Extended Profile”, a new tab besides “Your Profile”. Or do you want to move fields from there to the profile main page? That would be interesting for me, too.

    moshmonkey

    (@moshmonkey)

    You still don’t seem to be getting what I’m asking, I know about the extended profile tab, but thats the ADMIN section.
    I need to know how to show the extra information in my author.php template, the frontend of my site.
    I have it on my site so that when you click on the linked author name of a post, it goes to a page that has their information on it, the author page, using the author.php template.
    I know that putting for instance

    <?php echo $curauth->user_url; ?> shows the users website, I have this working.

    But what do I need to show fields from userextra\meta???

    Jaycos

    (@jaycos)

    Sorry, it was a long day… 🙂

    From the usermeta page:
    This post written by <?php the_author(); ?> who lives at
    <?php $usermeta = new Usermeta(); echo $usermeta->get(get_the_author_ID(), "address", true); ?>

    …in case your field is called “address”.

    moshmonkey

    (@moshmonkey)

    That doesn’t seem to work for me.
    I’ve just noticed something else thouh as I tried to log into admin on another comp.
    I get this error when I load wp-login.php

    Warning: Cannot modify header information – headers already sent by (output started at /mounted-storage/home3/xxxxxx/xxxxxxx/xxxxx/wp-content/plugins/userextra2.php:2) in /mounted-storage/home3/xxxxxx/xxxxxxx/xxxxx/wp-login.php on line 9

    then when i enter login details admin area doesn’t load and i get this

    Warning: Cannot modify header information – headers already sent by (output started at /mounted-storage/home3/xxxxxx/xxxxxxx/xxxxx/wp-content/plugins/userextra2.php:2) in /mounted-storage/home3/xxxxxx/xxxxxxx/xxxxx/wp-login.php on line 9

    Warning: Cannot modify header information – headers already sent by (output started at /mounted-storage/home3/xxxxxx/xxxxxxx/xxxxx/wp-content/plugins/userextra2.php:2) in /mounted-storage/home3/xxxxxx/xxxxxxx/xxxxx/wp-includes/pluggable-functions.php on line 221

    Warning: Cannot modify header information – headers already sent by (output started at /mounted-storage/home3/xxxxxx/xxxxxxx/xxxxx/wp-content/plugins/userextra2.php:2) in /mounted-storage/home3/xxxxxx/xxxxxxx/xxxxx/wp-includes/pluggable-functions.php on line 222

    Warning: Cannot modify header information – headers already sent by (output started at /mounted-storage/home3/xxxxxx/xxxxxxx/xxxxx/wp-content/plugins/userextra2.php:2) in /mounted-storage/home3/xxxxxx/xxxxxxx/xxxxx/wp-includes/pluggable-functions.php on line 194

    what is causing this? could it be clashing with another plugin? does anyone know of any plugins that do clash?

    this sucks ‘cos I could really do with this,
    anyway

    thanks for the help so far

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘New plugin – Usermeta’ is closed to new replies.