No, I’m not trying to modify any of those three parameters. I just want to add separate data to a new DB table when a user posts an update.
Thanks again for all your help with this…
@apeatling is possible have the psd for the BuddyPress logo like WordPress shares at this page (http://wordpress.org/about/logos/)?
Thanks.
The avatar function is working on my site but not on the buddypress forum/website for me (shame as I have many questions to ask but I dont want the members thinking im as grumpy as my avatar makes me look
Does anyone know how to rectify this?
tbh it’s considered a bad thing for developers to do, the opening of new windows is a browser issue and as such it’s considered impolite to force your wishes on the end user. It is my decision as to how I deal with links not yours, if you try and disrupt my browsing habits I’m annoyed; regardless I override anything you might try and do so it’s largely wasted effort your new window becomes a new tab for me.
This action is also a behaviour and as such the use of attributes is rightly deprecated, but they can be added via scripting. You could give the following code a try it would need to be added to a functions.php file in a child theme.
function rss_new_win() {
echo <<<SCRIPT
<!--
function bindNewWin() {
jQuery("li.feed > a").attr({target:"_blank", rel:"ext"});
return false;
}
jQuery(document).ready(function(){
bindNewWin();
});
//-->
SCRIPT;
}
add_action('wp_head', 'rss_new_win');
I can’t vouch for how well this works, it’s tested and works ok but whether it breaks any WP/BP script inclusion rules I’m not familiar with i couldn’t say so it should be used cautiously ; also take note that it adds an attribute to all anchors that have a li parent of class ‘feed’ if that condition is not true then it would fail (the main feed on the activity steam is marked up in this fashion if others exist that are contary then they would need to be added in some manner to this code.
IGNORE THE CODE POSTED HERE IT DOESN’T DISPLAY CORRECTLY grab from this pastebin link if you want to give it a go:
http://pastebin.com/keBUmVxX
The “Action Event Firing Order” is an array that holds all action hooks that will be fired. Since your function data_to_add does not have a hook–i.e. it does not have a do_action( ‘data_to_add’); call–there will be nothing in that array. So, that is fine.
But, it does seem that the action event bp_activity_posted_update is firing your hooked to action function. The next step is to make sure that you are attaching to, hooking into, the proper action event hook. The hook bp_activity_posted_update passes three parameters, so hooking your custom function to it is not the best idea, unless you are trying to modify any of those three parameters. What exactly are you trying to accomplish?
@linusf – So you applied the changes listed in the changeset and you still receive the wrong friend count? If so, please re-open the ticket.
Part of the problem might be running BuddyPress in a subdirectory. We use some tricky URI parsing to dynamically trap and trigger the pages that don’t actually exist. To do this, we count the slashes and put the slugs in the “correct” positions, which in your case are one level off.
You could .htaccess your way out of this by redirecting, but your best bet is to install it at the root of your site.
For those only having the trouble with /register and /activate, make sure you have member registration turned on. Since it’s off by default on single site WordPress, that has gotten me a few times.
You’ll also need to make sure you have Arabic installed for WordPress, and if using multi-site, Arabic must be set as the site language in site wide settings.
Thanks @jeffsayre that’s some serious reading…
With ‘Action Event Firing Order’ turned on, I don’t see data_to_add being fired.
With ‘Action Event Firing’ turned on, I do get ‘Firing Sequence 71: bp_activity_posted_update –> data_to_add –> Time fired: 1273766497.1222’ after posting an update.
I’m still completely lost though…
This is so strange, I think I must be doing something wrong, no one else seems to have this problem. Google would tell me so.
No change.
I’ve installed WordPress manually, even deleting and recreating the database. I enabled permalinks.
Then, I installed BP manually — uploading the folder to the site via FTP and the same results occur.
Ideas?
How do I alter the default theme so that when I click on an RSS feed link it opens in a new window? I would prefer to keep my users on my site and provide them something interesting to read, not just send them somewhere else. I guess its somewhere in wp-contentpluginsbuddypressbp-themesbp-defaultfunctions.php – but where?
I need my SimpleMachines forum, v1.1.10, converted to BuddyPress groups with forums.
An SMF 2.0 converter might be okay if that widens target users, seeing as I could easily upgrade my forum to 2.0
If necessary I will try find a freelancer. I reckon this type of job can easily cost up to a couple hundred dollars. Personally I can’t afford more than $50 right now. I figure if I can find 9 more people in need of this script, we could all pitch in and get the job done. I would be okay with the code being released under and open source license afterwards.
First priority
– Threads & posts in proper format and correct ID attribution
– User import with at least password & e-mail intact.
– Board-to-group
– URL redirects
Lower priority
– Attachments
– Privileges
– Categories
– Sub-boards
Will extend list as needed.
You must also set your default language in WPMU’s wp-config.php file. Look for the following line in that file:
define ('WPLANG', '');
@r-a-y Hi matey
Did you get any further on releasing this as a simple plugin?
Cheers!
Hi,
i have translated buddypress to arabic, named the mo and po files like that:
buddypress-ar.po
buddypress-ar.mo
placed them in bp-languages
but the problem is that it still shows english.
in the admin the language is selected to arabic
i’m using wpmu.
thank you.
It sounds like you may have a hook sequence firing issue. In other words, your added action function might not be getting fired. This could be an issue with your code or even the BuddyPress code.
You can download my plugin WordPress Hook Sniffer to see if that might be the case. It takes awhile to figure out how to use my plugin but the two articles I wrote should guide you through the process.
Has anyone solved this yet? I am still getting this error.
I can configure, add BuddyPress, activate plug in and themes, etc.
Clicking on http://computername.corporatedomainname.com/wordpress-mu/ (where I am installed) lets me go to the BuddyPress home page (and very exciting it is too). Then clicking on the “Members” tab give me a http://computername.corporeatedomainname.com/wordpress-mu/members/ and
“Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404?
Thanks @jeffsayre,
No errors & the save method seems to be receiving the data.
using:
function add_my_data( $field_1, $field_2, $field_3 ) {
global $bp;
$update = new BP_Example_TableName();
$update->field_1 = $field_1;
$update->field_2 = $field_2;
$update->field_3 = $field_3;
$save = $update->save();
return $save;
}
function data_to_add() {
add_my_data('100', '200','6');
}
if I add
add_action('wp','data_to_add');
the data is inserted on page load but if I use:
add_action('bp_activity_posted_update','data_to_add');
nothing gets added to the database.
Any ideas?
Hello
Is this gonna fixed in BuddyPress?
My error log (I deleted info that I believe to be private.
File does not exist: public_html/robots.txt
File does not exist: public_html/feed
File does not exist: public_html/wp-content/themes/unplugged/_inc/css/reset.css, referer: http://geekoftodd.com/
File does not exist: public_html/members, referer: http://geekoftodd.com/members/
File does not exist: public_html/favicon.ico, referer: http://geekoftodd.com/
File does not exist: public_html/activity, referer: http://geekoftodd.com/
I’m guessing that I need to move some buddypress files so hostgator can find them or is this like in certain programs where I have to locate them manually for them to be recognized? Thanks any help would be great.
@r-a-y
I tried the solution presented in the ticket but with no luck, still counts removed users… I downloaded the file from https://trac.buddypress.org/changeset/2976.
Is there something i´m missing here?
As @r-a-y suggests, these look like spam accounts to me.
Ok, i now have a theme that was just a plain site theme, how would i make it into a bp theme? I’ve decided to use the theme i had before starting to use wp and bp, so i need to know how to make it into a wp/bp theme
Hi I’m using wpmu 2.9.2 and buddypress 1.2.3. I have installed and enabled the Auto Group Join plugin. I was wondering if there was a way that I could remove “User Joined this Group” messages from the activity stream, because everytime somebody registers it fills up the stream with 8 messages about them joining the groups I selected.
Thanks in advance,
Angel