Search Results for 'wordpress'
-
Search Results
-
I want to add one or two fields on an event registration form in a plugin to update the xprofile data of that user. I have no clue where to start with this.
The query would presumably look something like this:
$wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->bp_xprofile_data} SET value = %s WHERE ID = %d AND field_id=2", $companyname, $user_id ) );Lets say I want to create a form from scratch to update one field ‘companyname’ in xprofile. If there’s already data in that field it should echo that on the form as value.
How do I echo the value? What do I need to get the data from the form to the query? How do I make sure the update is made in the records of the logged-in user?
Is there an example anywhere of a basic xprofile update form? Built-in examples in BP all use arrays and loops, they’re not for specific single fields in xprofile. It’s very hard to figure out what’s going on if you’re not a php programmer.
Hello,
I’m creating a sort ot blog farm, around 5 or 6, using WordPress MU… They are working like a charm.
Now I would like to install BP in the main blog and allowing the users of all other blogs to sign up seamlessly in BP right from the blog they are visiting.
So, the picture is more or less as follows:
Blog1, main MU blog with BP.
Blog 2… BlogN.
A user visiting Blog 2 wants to sign up to the BP installation and so he does right from Blog2.
Another user visiting Blog 3, wants to do the same and he does it right from Blog 3.
Is it possible?
Thanks in advance,
Will
I’m trying to detect a users logged in state and display their gravatar / username at the top of my theme,
I tried this so far which works in regular wordpress:
if($current_user->user_login){
echo ‘Hi, user_login . ‘”>’ . $current_user->display_name;
echo ‘‘;
}
But it’s not working in WPMU / BuddyPress?
Loving Buddypress so far, it’s an awesome piece of software.
Hello,
I just wanted to share my experiences with paid membership plugins here.
I have spent a couple of days looking now and have ended up with the free s2member plugin. Along the way I tried wp-wave and the plugins found at WPMU DEV. The two latter were a disappointement (as were all “premium” or commercial plugs I have tried so far) and I wish I would not have spent the money. But let me start from the beginning.
As it stands now there are no (or very little) methods on how to differentiate user accounts. WordPress has user roles which define who can do what but this is still far from being suitable for monetization.
My personal wishlist of base requirements for the ideal membership plugin looks as follows:
1. a free membership is possible.
2. admin may define paid membership categories.
3. users may upgrade any time from free to paid membership.
4. users are granted a trial period when signing up / upgrading to a paid plan.
5. admin may restrict access to content depending on the membership.
6. admin may restrict access to features depending on membership.
7. admin may limit ressources (i.e. disk space, number of groups) depending on membership.
I understand that especially the last two points on my list are not easily achieved at all and true enough: After 2 weeks of research I have found no plugin (Commercial or not) that can cater to all my needs. Even more so I have come to the conclusion that every time I compare commercial plugins with open source ones, the open source ones usually win, but thats another story.
To cut to the chase:
s2member has in my opinion the best set of features that neither a wp-wave nor WPMU DEV plugins can top. I think that the plugins on WPMU DEV are just presented nicely, but for each plugin that is presented there you can find an open source one that does exactly the same (or better, no offense).
My solution for now?
I will use s2member to offer two paid memberships in the future each with a 30-day free trial period. The first one is paid monthly, the second is paid annualy offering a 17% discount. Both have the same set of features since I for now see no other proper way of setting up paid memberships. The drawback is that people who want to sign up need a paypal account with a credit card since s2member uses the subscription type payments.
I hope you find this information useful if you are also trying to implement paid memberships on your site.
Hi everyone. I have updated my Invite Anyone plugin to allow invitation by email address. It seems pretty solid, but I would really like to have some other people test it before I make it the stable version.
If you have a non-production site and you wouldn’t mind testing it out, please download the development trunk version at http://wordpress.org/extend/plugins/invite-anyone/download/. If you’re already running a version of Invite Anyone on your site, please make sure to deactivate it before downloading and activating this one. (Note too that you must deactivate and reactivate – if you just replace the files, the necessary db table won’t be created.)
A brief rundown of the new functionality:
– A new subnav item has been added to profile pages, called Send Invites
– Under that item are two pages. The first, Invite New Members, allows you to enter up to five email addresses, a custom message, and select some of the groups you’re a member of.
– The second page is Sent Invites, a list of invitations you’ve already sent.
– When you send the invitation, an email goes to the invitee(s) with the custom message and a link to [your bp install]/register/accept-invitation/[email-address]
– When the user clicks that link, he or she should see the normal register page, with a message above that says “You’ve been invited by [the name(s) of the user(s) who sent invitations]…”
– When the user activates the new account, he or she will receive invitations to all invited groups, as well as friendship requests from all members who sent invitations.
– There is also a new (and ugly!) link on the Group Send Invites page, which takes you to the Send Invites profile page and pre-selects the group you just came from.
– There’s a pretty fair amount of email validation that happens. Try punching in some bad emails (banned on your WPMU install, poorly formed, etc) and see what happens. I should note that right now I’m using WPMU’s native email validation – I haven’t even tried loading it on a single-blog install of WP. I did use if ( function_exists ) so nothing should crash, but it’ll probably allow any old email on single WP.
Phew – I think that’s it.
In the future, things like number of allowed email addresses, the default message, etc will be under the control of the site admin. I’m also going to write some Javascript that does inline validation of form data. But for now I think the key functionality is in place.
Please hammer away at it and leave any bugs/suggestions here.
Hi
Is there a hook to add items to the activity stream?
I have a plugin where you can save posts in WordPress as favorites. The plugin is called “My favorite posts” > http://www.kriesi.at/archives/wordpress-plugin-my-favorite-posts
I would like when a user adds a post as favourite it would be added as an item to the activity stream.
Anyone know where I should start?
Cheers,
Jens