Forum Replies Created
-
In reply to: buddypress-skeleton-component – saving to database?
yeah, i’m sure, watching the table in phpMyAdmin.
Can’t figure it out either, it’s just the bare bones skeleton component using the BP_Example_TableName class & does work when usingadd_action('wp','data_to_add');so driving me nuts…In reply to: buddypress-skeleton-component – saving to database?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…In reply to: buddypress-skeleton-component – saving to database?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…
In reply to: buddypress-skeleton-component – saving to database?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?In reply to: Here come the spammers!!!also, while harder to combat but still surprised akismet didn’t kill the last post from @alstinwalker, lets not forget the link juice/indexing spammers, 5 mins with a post like that can give them the results they require.
In reply to: Here come the spammers!!!Great posts & solutions @foxly.
I am eagerly awaiting the next release of BP Album+, but would happily wait till this major issue is sorted out.
Even on this site the spam is becoming more evident & annoying by the day.
As it is, there is no way I would roll out BuddyPress out to my larger sites, if https://buddypress.org/community/activity/ can’t keep the spam off the activity stream, what chance do us wanting to implement BuddyPress have?Finding the latest forum post on a plugin takes at least 4 clicks & is a bit of a nightmare.
Finding this thread to post in was a bigger nightmare, usability is still seriously messed up here even after been on every day since the site redesign.@gian-ava
adding the attribute could be done by jQuery but would be so much easier doing it in core, so should really be a trac request.
as for adding the scripts to the footer, I’m sure you can add ‘true’ to the end of the end of wp_enqueue_script like
wp_enqueue_script( 'tipsy-js', TEMPLATEPATH . '/js/jquery.tipsy.js', array( 'jquery' ), true );
@gian-ava nice writeup.
However, I would do it without editing template files if possible.
So rather than editing header.php, I’d upload the jquery.tipsy.js file to my themes js folder.
Create a new file called jquery.tipsy.tips.js and upload to the same folder, use this file to add the jquery rules that you want the tips displayed on, like
var $j = jQuery.noConflict();
$j(document).ready(function() {
$j('.item-avatar a').tipsy({gravity: 's'});
});
Then in my themes functions.php add
/* Load the Tipsy JS javascript */
function tipsy_loaded_init() {
wp_enqueue_script( 'tipsy-js', TEMPLATEPATH . '/js/jquery.tipsy.js', array( 'jquery' ) );
wp_enqueue_script( 'tipsy-js-tips', TEMPLATEPATH . '/js/jquery.tipsy.tips.js', array( 'jquery' ) );
}
add_action( 'template_redirect', 'tipsy_loaded_init' );
As for editing the BuddyPress widgets, maybe you should open a trac ticket to have
title="added to the image hrefs in bb-core-widgets.phpyeah, looks correct to me.
have you added global $bp; to your function?
did you try
if( $bp->loggedin_user->id == '59' ){
just to see if it works without the get_option(‘bp_spammer_cp_bp’) bit?you are missing an =, should be:
if( $bp->loggedin_user->id == get_option(‘bp_spammer_cp_bp’)){In reply to: Testing new theme, Hybrid as a parenthaha, chrome translated it roughly for me when I visited the site.
Also, some phrases are not translated, but not my fault, the authors something perehimichili, but I understand laziness, it's still 3-5 clear sentences in the admin.Don’t think there have ever been any requests here I haven’t looked into?
In reply to: Login error (Please Help)This is usually caused by whitespace after a closing php tag.
First place I’d check is your theme functions.php, make sure there are no empty lines after the closing ?>
If that doesn’t work, check all other files you have edited for the same.In reply to: Testing new theme, Hybrid as a parentthanks @el_terko for the heads up!
In reply to: Spam@anabel4you I can sort you with some good cheap Indian viagra if needed?
In reply to: SpamDamn, think the biatch has been cheating on us…
In reply to: Testing new theme, Hybrid as a parent@el_terko the main advantage is that it uses Justins rock solid theme framework & has all the benefits of that.
In reply to: Testing new theme, Hybrid as a parenthi @vee_bee, the theme does come with the usual BuddyPress display activity on front page but doesn’t have a widget for displaying this.
Will see about including one on the next version.In reply to: Testing new theme, Hybrid as a parentJust updated this theme to fix a few css issues & blog comment avatar issues, thanks to @linusf for pointing them out.
Test & download on http://xfactor-blogs.com/downloads/ for now.
Will release a new version that will sit on any Hybrid theme a day or two after WP3 & BP1.2.3 come out.In reply to: BuddyPress.org’s Unified Search – How can I get it?@sbrajesh, great tutorial & write up, thank you…
In reply to: BuddyPress.org’s Unified Search – How can I get it?@sbrajesh would love to see that tutorial or the code on pastebin, please publish…
In reply to: BP Album+ || New Features Requests and Discussion@Modemlooper I’d have to disagree, I think we all need a media plugin in core that we can all work off & customise to suit our own needs.
Even replying to this comment was a nightmare, spotted it in activity stream but couldn’t reply till I found where you posted the comment, I know usability is still being worked out on the new site design, but the more core components the better to sort these issues out.In reply to: BP Album+ || New Features Requests and Discussioncongrats @foxly, great plugin & well deserved, hopefully part of core soon…