Search Results for 'wordpress'
-
AuthorSearch Results
-
April 17, 2010 at 9:51 am #73898
In reply to: WPMU or standard WordPress?
Andy Peatling
KeymasterThe only difference is that if you use MU then your users can create blogs.
April 16, 2010 at 9:46 pm #73851In reply to: BuddyPress and WordPress 3.0
Ron Rennick
ParticipantFolks,
The issue here with 3.0 is that if an existing WP 2.9.2 install with uploaded media upgrades to 3.0 and enables the network the blog option for the upload_path can’t be changed to the blogs.dir folder because the existing media becomes inaccessible.
For now, if you are looking to go to multiple blogs after install, then you should install MU 2.9.2 and upgrade that to 3.0 instead of installing WP 2..9.2.
April 16, 2010 at 4:33 pm #73816In reply to: How to overwrite a function?
Jeff Sayre
Participant@heini-
Your basic idea is correct. The issue is the order in which each action function hooked to the bp_setup_nav action event is being triggered. Let’s look at the code you have in bp-custom.php.
<php
function my_groups_setup_nav() {
[the whole function code]
}
remove_action('bp_setup_nav', 'groups_setup_nav');
add_action( 'bp_setup_nav', 'my_groups_setup_nav' );
?>This fails because your custom code in bp-custom.php is executed before the code in bp-groups.php is executed. So, you are calling to remove an action that has not yet be registered by WordPress.
I’m almost finished with an article about the intricacies of WordPress’ action and filter functions, but here is a brief explanation to try to shed some light on the issue.
Each action and filter event when triggered by a do_action or apply_filters call sends execution to the appropriate do_action or apply_filters function in /wp-includes/plugin.php. These functions do several things, one of which is querying a very large array that contains all of the added filter functions and action functions. This array gets populated by the actions of the add_filter and add_action calls.
To avoid getting too long winded, as each file gets loaded, any and all add_action and add_filter calls that are directly executable at the time, get triggered which builds this big array. This array is then used by the do_action and apply_filters functions to determine the sequence in which each added action of filter will be executed.
You can read my article when it is ready for a much longer but clearer explanation.
With that briefly described, the piece of information that applies to your situation is that when the action event for bp_setup_nav is triggered, via the do_action( ‘bp_setup_nav’ ) call on line 2025 in bp-core.php, the do_action function starts processing each action function that was “added” to it in the order in which it was added (with an important exception). This means that for your custom function my_groups_setup_nav to work, it must remove the action function in the array discussed above so that when the bp_setup_nav action event is triggered it uses your action function instead of the one added by the add_action(‘bp_setup_nav’, ‘groups_setup_nav’) call.
So, what you need to do is trigger your remove and add action calls in the proper sequence–after the action function that creates the groups navigation menus has been added to the filter array but before the bp_setup_nav action event is triggered. I realize this may be hard to understand.
This is what you need to do instead:
<?php function my_groups_setup_nav() {
/* Remove the added action from the array of functions that get run
* when the action event for bp_setup_nav is triggered
*/
remove_action('bp_setup_nav', 'groups_setup_nav');
// Then replace the removed function with your custom content
[the whole function code]
}
add_action( 'plugins_loaded', 'my_groups_setup_nav' );
?>A final bit of clarification. This is what happens in your current custom function:
1. As soon as BuddyPress is initialized, it looks to see if bp-custom.php exists. If it does, it loads it.
2. This will cause your remove_action call to be fired.
3. But the corresponding action has not yet been added to the very large filter array since bp-groups.php has not yet been loaded.
4. So, nothing happens as there is nothing to remove.
5. bp-groups.php eventually gets loaded and at that point the add_action(‘bp_setup_nav’, ‘groups_setup_nav’) call is fired, resulting in the action function that you were trying to remove getting added to the filter array but after the fact.
6. Eventually the bp_setup_nav action event is triggered.
7. When that happens, the first function hooked to it (added to it) is your custom function. It now gets triggered.
8. All other action functions hooked to the bp_setup_nav action event get triggered one by one including the groups_setup_nav function–the one you had tried to remove in step 2.
9. You have a mess with two duplicate functions doing the same thing.
April 16, 2010 at 2:53 pm #73806Boone Gorges
KeymasterBuddyPress is still young and so it doesn’t have the same kind of rich development guides as the much more mature (and widely-used) WordPress.
Since BP is a WP plugin, the basics of BP plugin development are the same as they are for WP. The system of hooks and filters is exactly the same (though of course the hooks themselves are different).
At this point in the BP project, I’ve found that the best ways to get started with plugin development are (a) to find existing BP plugins that do something similar to what you’re trying to do, and to learn by dissecting them; (b) to look through official resources like the ones Jeff posted above; and (c) to search through BP codebase itself, where I think you’ll find that many of the functions you need are quite well documented.
April 16, 2010 at 2:51 pm #73805In reply to: BuddyPress and WordPress 3.0
ajohnson
MemberI am running it off a sub-folder in WP 3.0. I have been for a long time but the most recent upgrade broke my avatars. It looks as if the image uploads correctly for me, but doesn’t pull it in to crop. The path it try’s is:
http://www.website.com/sub-folder-blog/blogs.dir/2/files/avatars/1/avatar.jpg
when it should be
http://www.website.com/wp-content/blogs.dir/2/files/avatars/1/avatar.jpg
Any ideas on what I should try to change? I’ve already tried:
if ( !$path = get_option( 'upload_path' ) )
$path = WP_CONTENT_DIR . '/blogs.dir';
else
$path = ABSPATH . $path;
Thanks!
April 16, 2010 at 2:45 pm #73804In reply to: Subfolder now Root .com Folder
Tmort
ParticipantWell I just tested that out, and it didn’t work. Its like theres a database entry exclusive to buddypress that says “You live at domain.com/folder”. I’m not sure where or why.
I’d like to ask the community: Does buddypress interact well with wordpress’ feature where the core files live in a folder of your domain? Maybe that is my issue?
Thanks for the help!
April 16, 2010 at 2:19 pm #73799In reply to: Email Activation not being sent in upgraded BP 1.2.2
21cdb
ParticipantI had the same problem a few seconds ago. A newly registered member didn’t recieved the activation email but was listed in WordPress>Backend>Users
I asked the user to check spam inbox twice but there was stil no activation mail

It would be great if admins could manually acivate such users or resent the activation email.
April 16, 2010 at 2:14 pm #73797In reply to: BuddyPress-Links 0.4.x Releases and Support
MrMaz
ParticipantI just tagged 0.4 final.
Thank you very much to everyone who helped with the testing, translations, and bug reports.
Not much has changed since the beta.
* Changing the component slug is now officially supported
* Do not show my group links or create link form unless user is a group member
As soon as the repo updates you can upgrade from your dashboard. If you have a ton of links, make sure you let the page load all the way after upgrading since every link needs to be updated to populate a new field.
Only two languages are up to date for 0.4. Those would be FR and NL. If you are interested in updating or adding a translation, you can download the .pot file here…
Enjoy the 0.4 branch!
April 16, 2010 at 1:37 pm #73794pepijndevos
MemberWhat exactly is a component?
Am I just supposed to start reading the function reference and some code and try to understand?
Most articles I found there seem mere stubs that only make sense when you know what you’re looking at.
When I started with WordPress I kind of rolled into it and looked some things up when I needed them etc.
For WordPress there are 2 excellent guides to get you started developing plugins and themes.
With BuddyPress I have absolutely no sense about what it does, how it works from the inside and where to start.
Aren’t there any books or tutorials to get started developing in an easy way?
April 16, 2010 at 11:00 am #73784In reply to: Seo for Buddypress 1.0 beta
guigoz
MemberHi,
Thanks for this plugin.
It seems to work very good on my site, exept for the homepage. Maybe I missed something but the title of my homepage is “Blog”. I’ve checked WordPress options (site name, and site title, it’s not “Blog”) and I don’t find homepage option in BuddyPress SEO.
Any idea ?
Excuse my english.
Cordialement,
Guillaume Coulon.
April 16, 2010 at 4:29 am #73761In reply to: Ning.com Migration Tool (NMT)
José M. Villar
ParticipantAnd I am waiting for Boone to write a plugin that will build my BP community, fill it with thousands of members that will click on hundreds of ads which in turn will make me billonaire.
Sorry for the OT, but I really think Boone can do it…
UPDATE: getting back on topic, wpmu.org will start building a Ning Migration Tool: http://wpmu.org/ning-to-buddypress-wordpress-migration-plugin/
Will it be free or not ? Place your bets !
April 16, 2010 at 3:03 am #73757In reply to: Permalinks not working with Buddypress
tjtate
Participanti had a similar issue, this is how i fixed it.
htaccess on root directory:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
permalink structure:
/index.php/%postname%/
then i had to make sure that apache has the mod_rewrite module enabled.
running wordpress 2.9.2, apache 2.2.11 and php 5
April 16, 2010 at 2:01 am #73750In reply to: Plugin Hall of Shame! :) Plugin Devs Please Read
paulhastings0
ParticipantFYI, Buddypress Ajax Chat updated their plugin on April 11th. I think they may have fixed their issue so you might want to update the list if they have.
April 16, 2010 at 1:48 am #73747In reply to: Best WYSIWYG for forums
rich! @ etiviti
Participantif this helps anyone but my quick start for markitup (just the group forum areas for now – something funky with the activity entry textarea)
markitup will handle html or bbcode (enable the shortfilter and use this plugin https://wordpress.org/extend/plugins/boingball-bbcode/) – and you can fake the WYSIWYG part by using the preview option
April 15, 2010 at 11:30 pm #73735In reply to: Shoebombing BuddyPress hijacks root WordPress urls
copywryter
MemberBuddyPress is running fine in http://www.venture4change.com/community, but I see what you mean….perhaps there are two installations? It’s possible…I used the host’s lousy wordpress installer, which was likely simplescripts.
What’s your recommendation?
April 15, 2010 at 9:51 pm #73727In reply to: Ning.com Migration Tool (NMT)
Boone Gorges
KeymasterIt’s just a start, but after I heard the news about Ning I wrote a plugin that will import users from Ning to WordPress: http://teleogistic.net/2010/04/importing-ning-users-into-wp/.
Sadly Ning doesn’t offer easy export of the rest of the content. But I think some folks out there are working on ways for you to get your forums, discussions, blog posts, etc out of there as well.
April 15, 2010 at 9:23 pm #73721In reply to: BuddyPress and WordPress 3.0
Phlux0r
Participantthe avatar issue seems to come form an incorrect value for the upload_path option in wp_options for the main blog. Make sure it is set to: wp-content/blogs.dir/1/files
Once I updated the option manually in the database, everything worked fine. Also if you have an old .htaccess file from WPMU, it needs to change to use the new ms-files.php in the rewrite rules:
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
@Andy Peatling
I’m using WP3.0 beta-1 and BP 1.3-bleeding and things seem to work OK for the most part except the Blogs area is a bit shaky. I don’t get the My Blogs admin bar menu item.
So the recommendation is to use BP 1.2.3? Hm, how do I downgrade? Can I just disable BP, reinstall 1.2.3 and then reactivate it?
April 15, 2010 at 8:35 pm #73712In reply to: BP Album+ || New Features Requests and Discussion
jordashtalon
MemberOut of curiosity i’m wondering if anyone has tested this out yet, how well does the WordPress Search Function work with BPAlbum+ is there anyway to allow people to search through images where if they type in a tag name that image will show up?
April 15, 2010 at 6:47 pm #736873sixty
ParticipantYou need to create a new WordPress page before this will work. Create a wordpress page, then the option will appear.
April 15, 2010 at 5:30 pm #73672In reply to: Blogs URL as /members/username/blog
danbpfr
Participantola !
i would read this:
https://codex.wordpress.org/Changing_The_Site_URL#Changing_the_.htaccess_file
April 15, 2010 at 2:09 pm #73644In reply to: Buddypress and WordPress 3.0 Beta
ajohnson
MemberI’ve been using the alpha’s for 2 months and its been great so far. using sub-folders and actually running bp off of a sub-blog and not the main blog. few bugs..but overall great.
April 15, 2010 at 11:56 am #73628In reply to: Buddypress and WordPress 3.0 Beta
adyba
ParticipantHave you guys tested the fresh installation?
Im about to test this scenario:
1) WP 2.9.x
2) BP install (current state)
3) Upgrade WP to WP3.0b
4) Go to multisite network
5) Refresh BP
Does anybody some strong recomendation (like DONT DO IT
?
April 15, 2010 at 6:45 am #73611In reply to: Buddypress and WordPress 3.0 Beta
idotter
Participantfor me it works too
April 15, 2010 at 6:07 am #73609In reply to: Buddypress and WordPress 3.0 Beta
Paul Wong-Gibbs
KeymasterThe upcoming 1.2.4 release will be tested/fixed to work with WordPress 3.0. Current version is not guaranteed to work.
April 15, 2010 at 4:54 am #73603In reply to: Widget-Logic & Default theme not working?!
José M. Villar
ParticipantFound this plugin which says it works under WPMU: https://wordpress.org/extend/plugins/display-widgets/
Haven’t tested it under BP though…
-
AuthorSearch Results