Forum Replies Created
-
In reply to: Validation
I am not aware of any plugins that do this. You also should be doing this with PHP and not with JS, as this can be deactivated in the browser. There should be various hooks that let you validate stuff on registration or whenever.
Actually 32 isn’t all that much. You’ll need more than that just running WP and say NextGEN Gallery (which is a gallery plugin). Now, the more plugins you have the higher your memory usage will be. I have 64mb on all my sites…
In reply to: Weird double query using WPDBThat’d be
`groups_join_group( $group_id, $user_id );`As for the class, you instantiate it, set all the variables and then call the save() method.
I was asking for the action hooks before. Maybe that’s why it runs 3 times…
In reply to: Weird double query using WPDBDidn’t say that, but you said you’re having trouble with a query, so I suggested that you use the function groups_join_group to sign the user up to your groups. Just substitute the query in your code above with that function. Alternatively, if you don’t want an activity entry (which you get with this function), you can use the BP_Groups_Member::save() method to add a user to a group. You can then do the login count with usermeta.
In reply to: Weird double query using WPDBWhy don’t you use BP internal functions, like groups_join_group() or use the class BP_Groups_Member? To what action hooks have you attached your function?
In reply to: Permalinks and BP Single with WP 3.0 beta 2Well, have you changed the references to your local site in the database to your new site? Mainly, it’s in the options table. Do a search for something like my-site.localhost and change it to my-site.com. Also, try updating the permalink structure, making sure that your htaccess file is writable.
In reply to: Is another test site needed?Well, public test sites are more for users, not so much for developers, who will have their own local test installs. And for users there’s always testbp.org, which is always cutting edge (correct me if I’m wrong). I don’t think there’s a need for another test site.
In reply to: How to change the order of the tabsHey,
I recently wrote a blog post about just that: http://shabushabu.eu/reordering-buddypress-group-tabs/
I’ve done it for group tabs, but it works for any kind of tabs.
~Boris
In reply to: Member’s Only SectionYou can create a nwew page in the wp backend and use a custom template for it (you can find information on how to do that in the wordpress.org codex). At the top of that template file (before the function get_header()) you can put something like this:
`global $bp;
if( ! is_user_logged_in() )
bp_core_redirect( $bp->root_domain .’/’. BP_REGISTER_SLUG .’/’ );`In reply to: group typesI’d keep group types separate from your normal types (public, private, hidden). You’d still want a group of a certain type to be able to be either public, private or hidden…
In reply to: Extending GroupsWhy would you use wp_sitemeta to store data about a group? Doesn’t really make sense to me. This table is for storing data about your site, not about a group. Also, this table doesn’t exist in a single WP install, so it’d be kinda counter-productive. If you need to store data about a group, then store it in the proper table, which is wp_bp_groups_groupmeta.
As for metadata tables vs creating your own plugin tables, it just depends on what your needs are. Metadata tables are fine for kinda static, small pieces of data, while you would use a custom table for data that grows with time.
A plugin that modifies or adds to group functionality will most likely utilize the groups API. This is suitable for adding more complex functionality. More basic functionality can be added by using the various action calls you can find in the template files. Again, it really depends on what you’re trying to achieve.
Just setting up a bp support site for my plugins, so I won’t be using my plugin groups here for support at all. Only for announcments maybe. The new site is subscription based as well, which is obviously not possible here

No, it’s not WordPress. Personally I use Xampp, so I’m not familiar with Wamp. Somewhere in your Wamp files there will be a file called http.conf. That’s the apache configuration file. There you can control what modules are being loaded by your test server. Look for that file, open it and then look for this line
`#LoadModule rewrite_module modules/mod_rewrite.so`
and remove the #
Then restart Apache.
Sorry about the php.ini reference in the post before. Mixed that up…
Have you checked in your php.ini file if mod_rewrite is installed? Check for the # (or was it ; ?) before it. If it’s there delete it, then restart apache. It should work then.
In reply to: Shabushabu.eutook your advice on the header image. I’ve added a bit of jQueriness to be able to move the page on top of the header image. The JS then sets a cookie and so remembers what the user chose. The header’ll basically stay small until the user decides to see it all again…
In reply to: Going Live?It’s actually fairly easy. First you make a complete backup of your existing site (files and database). Then you copy the new files across to your server and activate BuddyPress. Adjust the options and you’re done!
If you don’t feel like setting all the options again or you have created already some groups for example, then you could export your local BP database tables and import them via PHPMyAdmin into your existing site.
The same is true for any blogs you have created locally that don’t exist yet online. In this case you will have to change some settings in the database after you imported the sql file. Basically, you do a search for your local url in your online database and replace it with your real url. You will have to do the same if you import the complete local database (e.g. if you synched your local dev site already with your online site).
It’s worth saying it again: Don’t forget to backup your existing site!
In reply to: BP Xtra SignupBowe, good suggestions. I’ll have a lok at the API again and get back to you with a timeframe.
You can download the plugin now from the repository:
In reply to: [New Plugin] BP Advanced SEOThe plugin is now in the repository. I made some slight improvements to the code and added a char counter to the description textareas. Enjoy!
In reply to: Shabushabu.euwell, shabushabu is a japanese dish, xevo
In reply to: [New Plugin] BP Advanced SEOWell, now there’s at least 2 of us, ray

Join the cause, everybody…
In reply to: bp_setup_nav not firingThere’s a question for you then Jeff:
What priority would I need to remove the action, like so:
remove_action( 'bp_setup_nav', 'bp_blogs_setup_nav' );It’s being added with a default of 10, but removing it with a priority of 10, like I should, doesn’t work…
In reply to: BP Xtra SignupOk, there was a little permalink problem. It should be sorted now.
Cheers!
wp_enqueue_script is a wordpress function that lets you add javascript files to your site. Just put it in your themes functions.php file or a plugin file. The great thing about it is that it looks if that file has been included already. If it hasn’t only then does it load it. You can also specify dependencies, i.e. jQuery. This means that it will always load the dependencies first. You can also specify if you want to load the script in the header or the footer. Here’s the function:
wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer );More info here: https://codex.wordpress.org/Function_Reference/wp_enqueue_script
In reply to: How do you access SVN?Just wait a bit. It takes a while until a new version shows up in the repository.
In reply to: BP Xtra SignupIf there is any demand for other newsletter services, like CampaignMonitor, then I’m more than happy to add that, by the way…