-
xXDarkie posted on the forum topic Some questions about BuddyPress friendships in the group How-To and Troubleshooting: 13 years, 10 months ago
Nothing like wp_ajax_hook on my code… the code just loaded pages with javascript, no ajax was used there, ajax was just some side cool think like “send a message without refreshing” and super-easy things like that. Anyhow my suggestion was just to try and watch what happens on that sort of things, I wasn’t actually […]
-
xXDarkie posted on the forum topic Some questions about BuddyPress friendships in the group How-To and Troubleshooting: 13 years, 10 months ago
Sadly it’s not something I can decide to share, it’s a work and I don’t really feel like asking this thing. Anyhow the problem I believe was that if I accessed the variables from index everything was fine, friends were found, etc. The problem is that by the means of a javascript slider I use […]
-
xXDarkie posted on the forum topic Some questions about BuddyPress friendships in the group How-To and Troubleshooting: 13 years, 10 months ago
I’ve rewritten all the code for friends and messages myself. Thanks anyway for the support.
-
xXDarkie posted on the forum topic Some questions about BuddyPress friendships in the group How-To and Troubleshooting: 13 years, 10 months ago
I’ve discovered that if I access the page outside the scope of buddypress and wordpress (that is, accessing to the direct link without passing by my website) the thing returns a correct result for the friends (if I hardcode the input of course). What could this mean? I require_once in my index wp-config.php and also […]
-
xXDarkie started the forum topic Which function should I call to see all private messages of a particular user? in the group How-To and Troubleshooting: 13 years, 11 months ago
I would like to know if BuddyPress comes with a function like this or I should write it.
The target is to list all the messages in the PM page of the user in my website.
Thanks -
xXDarkie posted on the forum topic Some questions about BuddyPress friendships in the group How-To and Troubleshooting: 13 years, 11 months ago
I’ve reinstalled BP and WP… the error remains but now it does find methods for sending messages. There is a bug in the get_inbox_count method if you want to know. ( !$unread_counts = $wpdb->get_results($sql) ) return false; This line in my case had an error, even though the result existed, it entered inside the if […]
-
xXDarkie posted on the forum topic Some questions about BuddyPress friendships in the group How-To and Troubleshooting: 13 years, 11 months ago
Bump! It’s really of extreme importance. Moreover I figured out also that messages don’t work either: actually if I try to call a function defined in bp-messages-classes.php it says it doesn’t exist… while for friends the methods are found by the compiler this doesn’t happen for the messages… I’ve checked on the admin board and […]
-
xXDarkie posted on the forum topic Some questions about BuddyPress friendships in the group How-To and Troubleshooting: 13 years, 11 months ago
Anyhow since I set manually the friendship I tried to call another function (the one that counts the number of friends you have) and also that one returns 0. This is truly unbelievable.
-
xXDarkie posted on the forum topic Some questions about BuddyPress friendships in the group How-To and Troubleshooting: 13 years, 11 months ago
Again I used your code and the result is:
SELECT id, is_confirmed FROM wp_bp_friends WHERE (initiator_user_id = ” AND friend_user_id = ”) OR (initiator_user_id = ” AND friend_user_id = ”)
Which is normal I guess, because the passed variables are integers, right? -
xXDarkie posted on the forum topic Some questions about BuddyPress friendships in the group How-To and Troubleshooting: 13 years, 11 months ago
I’m using the BP function. It is the former indeed, and I managed to trace the input down to $wpdb->query (if avoid using prepare) or to prepare, to see that it doesn’t work (with prepare the $args = func_get_args() gets nothing as parameter even though I checked they are correct the second is wrong in […]
-
xXDarkie posted an update 13 years, 11 months ago
@boonebgorges Hey, I’ve answered on my topic, it’s pretty strange how WP behaves through the BP query…
btw I saw you know the thing, I’ve spread a couple of topics asking for help, maybe you have some deep knowledge and can help me out 😉 for you it should be a piece of cake.
thanks! -
xXDarkie started the forum topic Cannot access to message functions in the group How-To and Troubleshooting: 13 years, 11 months ago
I’m trying to execute some message functions like get_current_threads_for_user($id); but it somewhat says I have no function with that name. This is pretty strange since I know there is a function with that name in bp-messages-classes.php. The strange thing is that I can call functions that regards friends stuff (even though they do not work […]
-
xXDarkie posted on the forum topic Some questions about BuddyPress friendships in the group How-To and Troubleshooting: 13 years, 11 months ago
I’ve done all the inspection I could, I discovered that 1) the prepare function when doing func_get_args (or whatever is the name) it gets NOTHING as result, so the query is indeed with ids 0s. Didn’t do what you said, Boone Gorges, even though I really thank you for your concern, I think I would […]
-
xXDarkie posted on the forum topic Some questions about BuddyPress friendships in the group How-To and Troubleshooting: 13 years, 11 months ago
I don’t think the problem is the number of queries actually… I did a print_r over the $wpdb and the last query done after my call to friends_check_friendship_status is SELECT id, is_confirmed FROM wp_bp_friends WHERE (initiator_user_id = 0 AND friend_user_id = 0) OR (initiator_user_id = 0 AND friend_user_id = 0) Which is pretty strange since […]
-
xXDarkie started the forum topic List of friends in the group How-To and Troubleshooting: 13 years, 11 months ago
Hey everybody,
does there exist a function that returns the list of friends id given the current user’s id? I know there is the function friends_get_total_friends_count(id) but it’s not what I’m searching for.
Thanks -
xXDarkie posted on the forum topic Some questions about BuddyPress friendships in the group How-To and Troubleshooting: 13 years, 11 months ago
Ok I just sent them an e-mail, thanks.
What could be the “relevant things” in the log file that may arise? Do you think that they are “lowering” the number of allowed queries per second and this may be the issue for which the functions are not returning the proper result? -
xXDarkie posted on the forum topic Some questions about BuddyPress friendships in the group How-To and Troubleshooting: 13 years, 11 months ago
Thanks a lot for the reply!
It’s not indeed my own server, I’m working on someone else’s. What should exactly ask them? To allow a greater number of active connections?
Thanks! -
xXDarkie posted on the forum topic Some questions about BuddyPress friendships in the group How-To and Troubleshooting: 13 years, 11 months ago
I’ve just realized I have a couple of warnings from WordPress, don’t know if this can be helpful to help me out: Warning: mysql_real_escape_string(): 11 is not a valid MySQL-Link resource in /path/to/wp-includes/wp-db.php on line 785 Warning: mysql_error(): 11 is not a valid MySQL-Link resource in /path/to/wp-includes/wp-db.php on line 1119 These…[Read more]
-
xXDarkie posted on the forum topic Some questions about BuddyPress friendships in the group How-To and Troubleshooting: 13 years, 11 months ago
Bump. Sorry don’t want to be annoying, but it’s pretty important and I’m in a hurry.
-
xXDarkie started the forum topic Some questions about BuddyPress friendships in the group How-To and Troubleshooting: 13 years, 11 months ago
Hey, I’m new here and also new with BuddyPress. I have installed BP and I’m now trying to add some functionality within the code of my website. Right now I’m working with the friendship requests. I have a button that is showed if two persons are not friends, and when clicked, it calls (via AJAX) […]
- Load More
@xxdarkie
Not recently active