-
shanebp posted on the forum topic sync uploads folder across multiple servers in the group How-To and Troubleshooting: 13 years, 7 months ago
This is all new to me, but I think what is happening is that all file uploads are sent to CDN (Cloud Files). But BP does file operations (copying and creating thumbs, etc), on the file in the uploads dir, but the new files are not uploaded to CDN. The original file is deleted as […]
-
shanebp started the forum topic sync uploads folder across multiple servers in the group How-To and Troubleshooting: 13 years, 7 months ago
Using a CDN (Cloud Files) for album and avatars. Album works fine. Avatars, when uploaded, appear in the correct folder. Example: /avatars/9/test-sc.jpg And appears in the browser, ready for cropping. But after cropping, the folder is deleted. After cropping, the browser message is ‘Your new avatar was uploaded successfully!’ So… !?. Any hints…[Read more]
-
shanebp posted on the forum topic avatar crop – save – code? in the group How-To and Troubleshooting: 13 years, 7 months ago
The cronjob approach didn’t work either.
So, the basic issue is still trying to keep the uploads folder synced across multiple servers.
If anyone has encountered this, please advise.
Rackspace server support is now suggesting
-local replication with rsync with persistence on the load balancer
or
-NFS (real-time synchronization) -
shanebp posted on the forum topic avatar crop – save – code? in the group How-To and Troubleshooting: 13 years, 7 months ago
We were using a symlink – but it doesn’t support renaming files. So we went with a every 1 minute cronjob instead. The reason for all this was trying to keep the uploads folder synced across multiple servers. So image processing will stay on server X, cronjob will pull all files to CDN, and all […]
-
shanebp posted on the forum topic Searching members by custom profile fields… in the group How-To and Troubleshooting: 13 years, 7 months ago
This can search on custom profile fields
http://www.blogsweek.com/category/bp-profile-search/ -
shanebp posted on the forum topic Remove Following & Followers from Profile Nav (bp_setup_nav) in the group How-To and Troubleshooting: 13 years, 7 months ago
Thanks for the tip – works here.
-
shanebp posted on the forum topic who’s online avatars in sidebar – bp_has_members() type=online – increase time? in the group How-To and Troubleshooting: 13 years, 7 months ago
Adjustable ~Line 141 in bp-core-classes.php
if ( 'online' == $type )
$sql = "AND DATE_ADD( um.meta_value, INTERVAL 10 MINUTE ) >= UTC_TIMESTAMP()"; -
shanebp posted on the forum topic Activity, Profile, Messages etc Tabs in the group How-To and Troubleshooting: 13 years, 7 months ago
Solution
function user_nav_add_anchor() {
global $bp;
$bp->bp_nav .= "#your-anchor";
$bp->bp_nav .= "#your-anchor";
//etc
}
add_action( 'wp_head', 'user_nav_add_anchor',9 );
Anyone know of a way to do this with a loop through all the $bp->bp_nav fields ? -
shanebp posted on the forum topic redirect to activity after login? in the group How-To and Troubleshooting: 13 years, 7 months ago
Oops – thanks r-a-y. I chopped down too much the function that I use. Perhaps this better explains my approach: ` function login_intercepts(){ global $bp_unfiltered_uri; if ( is_user_logged_in() ) { /* if user logs in at domain name url or logged-out, they are sent to /activity */ if ( ($bp_unfiltered_uri == “”) || ($bp_unfiltered_uri == […]
-
shanebp posted on the forum topic redirect to activity after login? in the group How-To and Troubleshooting: 13 years, 7 months ago
Easier and more flexible to add a function to bp-custom.php.
Example:
function login_intercepts(){
if ( is_user_logged_in() ) {
bp_core_redirect( get_option('siteurl')."/activity" );
}}
add_action( 'wp', 'login_intercepts', 3 );
-
shanebp posted on the forum topic Send Private Static Message in the group How-To and Troubleshooting: 13 years, 7 months ago
Thanks for the pointer. Got the listener working. Here it is, for other noobs… ` function bp_send_private_bzzt() { global $bp; if ( $bp->profile->slug != $bp->current_component || ‘bzzt’ != $bp->current_action || ‘send’ != $bp->action_variables ) return false; $sender_id = $bp->action_variables; $recip_id = $bp->action_variables; $recip_name =…[Read more]
-
shanebp started the forum topic Send Private Static Message in the group How-To and Troubleshooting: 13 years, 7 months ago
I need to add a button on single profile pages. The button will send a private message to the user being viewed – but the message is preordained. (It’s a promotional thing) So we don’t want to go to a compose page – just send the message. In member-header.php, I add a button: ` <a href="” title=” “><?php […]
-
shanebp posted on the forum topic restructuring profile fields from Table to DIVs in the group How-To and Troubleshooting: 13 years, 7 months ago
You are in the right file, so if you are not seeing your changes, then the file is not being overwritten.
Try something simple to see if your edited file is being loaded.
Change this:
To:HELLO HELLO HELLO HELLO HELLO HELLO
-
shanebp posted on the forum topic edit and save custom profile fields with swapped values in the group How-To and Troubleshooting: 13 years, 7 months ago
Argh – much faster, coding and parsing-wise, to do this in members_single_profile/edit.php
as opposed to doing an add_filter on ‘bp_get_the_profile_field_options_select -
shanebp posted on the forum topic edit and save custom profile fields with swapped values in the group How-To and Troubleshooting: 13 years, 7 months ago
Error caused by checking for ‘acceptable value’ before save.
See
/* Check the value is an acceptable value */
around Line 735 in bp-xprofile.phpI removed ‘selectbox’ from the ‘if’ and profile save now works.
-
shanebp started the forum topic edit and save custom profile fields with swapped values in the group How-To and Troubleshooting: 13 years, 7 months ago
I need to do a Between search on a Height profile field. But the admin profile field setup doesn’t allow for a difference between option value and displayed option. So you get:
under 5' - 152cm
What I need is:under 5' - 152cm
I can generate what I need by adding, to bp-custom : […] -
shanebp posted on the forum topic add $_GET to an href url in the group How-To and Troubleshooting: 13 years, 7 months ago
Great – very helpful.
-
shanebp posted on the forum topic add $_GET to an href url in the group How-To and Troubleshooting: 13 years, 7 months ago
Sorry – to an href url.
I echo out pagination links and I’m trying to figure out how to add a string to the url in each link so I can parse it as a $_GET when clicked on.
Or is there a better approach to custom pagination?
-
shanebp started the forum topic add $_GET to an href url in the group How-To and Troubleshooting: 13 years, 7 months ago
Is there any way to add a $_GET string to an href url?
something like: http://www.mybuddypress.com/my-page/?page=2&ids=1,2,3
I’m trying to do some custom pagination.
-
shanebp started the forum topic bp_after_members_loop function – where? in the group How-To and Troubleshooting: 13 years, 8 months ago
In members-loop.php, near the bottom is this:
do_action( ‘bp_after_members_loop’ )
Where is the function bp_after_members_loop ?
- Load More
@shanebp
Active 22 hours, 2 minutes ago