WordPress.org

Forums

New plugin - Usermeta (19 posts)

  1. squish
    Member
    Posted 10 years ago #

    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

  2. manstraw
    Member
    Posted 10 years ago #

    I don't know how far away 1.6 is ... ahhh..

    I'm going to look at this tomorrow.

  3. roraz
    Member
    Posted 10 years ago #

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

  4. squish
    Member
    Posted 10 years ago #

    (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>

  5. sikatzonline
    Member
    Posted 10 years ago #

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

  6. shunshifu
    Member
    Posted 10 years ago #

    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

  7. dommega8
    Member
    Posted 10 years ago #

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

  8. shunshifu
    Member
    Posted 10 years ago #

    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

  9. dommega8
    Member
    Posted 10 years ago #

  10. moshmonkey
    Member
    Posted 10 years ago #

    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?

  11. Jaycos
    Member
    Posted 10 years ago #

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

  12. moshmonkey
    Member
    Posted 10 years ago #

    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

  13. Jaycos
    Member
    Posted 10 years ago #

    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.

  14. moshmonkey
    Member
    Posted 10 years ago #

    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???

  15. Jaycos
    Member
    Posted 10 years ago #

    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".

  16. moshmonkey
    Member
    Posted 10 years ago #

    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

  17. moshmonkey
    Member
    Posted 10 years ago #

    o yea, just so you know, it's called userextra2.php cos i renamed it in my ftp so i could login to admin, then activated it again so as to show the message

  18. fatalcure
    Member
    Posted 10 years ago #

    So is there a way to have this extra fields in the user profile admin pages, so they don't have to fill in data in 2 seperate places? The extra fields added from this plugin will just flow on after the current ones under user > your profile?

  19. papercuts3
    Member
    Posted 9 years ago #

    I have to agree with moshmoney there. For one hell of a useful plugin usermeta/userextra has abysmal support for newbies.

    I know some php but I still couldn't make any sense of the example given above.

    I want to make distinct profile pages open to public with selective information. For instance:
    author name:
    website:
    favourite films:
    favourite quotations:
    etc...

    On the previous page I want a list of all authors to lead to this page. For example:
    Authors:
    - John (See complete profile)
    - Jane (See complete profile)
    - Tarzan (See complete profile)
    etc..

    Can someone spell this out, pleaseeeee.

Topic Closed

This topic has been closed to new replies.

About this Topic