Forum Replies Created
-
In reply to: Pagination Issues with Custom Component
Hi @stoi2m1
What Im having an issue with is passing the page variable to that template file and then my class
Do you mean you’re having an issue passing variables to your AJAX script (e.g. success or error functions) or are you trying to pass them from your AJAX script to your PHP function?
In reply to: The […]/uploads/avatars/ directory?Right, so 36824 is a valid member ID?
Inside the /36824/ folder you should have some files. These will be the avatars that particular user has uploaded. Now I’m not sure about this but in the past I don’t think BP deleted old avatars when a member changed their avatar.
Are you using BP 1.9? This should be resolved going forward:
https://buddypress.trac.wordpress.org/ticket/5044It might take a manual clean-up to remove the old avatars left over from pre BP 1.9 change-avatar user actions.
Should I put a noindex on the /uploads/avatars directory?
That wouldn’t do any harm.
In reply to: The […]/uploads/avatars/ directory?36824 (Ther first one in the list) – would that be a delete user ID by any chance?
In reply to: Housekeeping after delete-acountI did notice that actually when you delete a user via the back-end you’re given the option to reassign or delete their posts. Not quite sure if delete post functionality is fired after a user deletes them self via the front-end. Will have to run some tests
In reply to: Membership Reporting@shanebp I’ve not come across anything like this for BP. Will be useful – it’s going on my plugin wish list 🙂
It would be super cool if you could add some front-end screens to this – like a member stats dashboard – or perhaps that’s a separate plugin?
In reply to: Dealing with deleted members (Redirects)I think the OP is also concerned about genuine users deleting their own accounts.
In reply to: Dealing with deleted members (Redirects)@ubernaut The problem is internal broken links – the activity stream might have items in it that aren’t removed that point to a user’s profile. Then there are manual links user’s have posted themselves – @-mentions in activity updates, in activity comments, in blog comments, in blog posts, and inside private messaging threads. The list is quite endless. To my knowledge, there’s no set way of dealing with these remains after an account has been deleted.
I opened a thread a few days ago in an attempt to perform some housekeeping after a user deletes their account. Didn’t get any responses so I put the idea on hold temporarily.
https://buddypress.org/support/topic/housekeeping-after-delete-acount/
In reply to: Dealing with deleted members (Redirects)@hatherley redirects is one option. A hackish approach would be to create a new user with the username that was deleted. And just let it sit there idol – as an unused member. That should stop the broken links.
In reply to: Dealing with deleted members (Redirects)@hatherley just to add – if you allow members to delete their profile then there is no way you can avoid 404s if any inbound links exist to the deleted profile.
The only effective solution I can think of is to disallow profile deletions (as I mentioned above).
Can you view the source? Try looking for a CSS class that could be unique – then search for that class in the BP plugin files. I’ve found this to be a good way of finding which file is outputting the markup
In reply to: Dealing with deleted members (Redirects)@hatherley you could do a manual clean-up then going forward disallow members from deleting their account (you can do this under BP Settings in WP Admin)
Do you mean immediately after you’ve submitted? That is usually the result of JavaScript. Take a look in buddypress-functions.php or global.js if you are still using bp-default.
In reply to: Buddypress / WP profile syncing@thisisbbc I actually did a little digging on this a few months ago and found out that there are two functions that perform the ‘syncing’ of data.
xprofile_sync_wp_profile()This syncs Xprofile data (nickname, first name and last name) to the standard built in WordPress profile data.
xprofile_sync_bp_profile()This syncs the standard built in WordPress profile data to XProfile.
Hope this helps.
In reply to: Buddypress / WP profile syncing@thisisbbc I’m not sure the syncing does what you expect it to do. What was you hoping would happen?
i updated to 1.9.1 but all the content stopped showing
What was the content that stopped showing?
Which theme are you using?
In reply to: Redirect loops on groups and profilesI completely deleted the whole database and FTP server space, and re-installed WordPress and BuddyPress, and then the problem was gone.
That indicates it is either your database or your FTP server space that is causing the problem. You’ll need to determine where exactly the problem is coming from by a process of elimination.
The next step I’d take is to use a brand new database with your FTP server space. If the problem persists then you’ll know the problem lies with your FTP server space. If the problem resolves then you’ll know it is your database causing the problem.
My guess is that it’ll be your files and not your database where the problem lies.
In reply to: Redirect loops on groups and profilesI need to make my current installment work, and i get the feeling that the problem is somewhere in the database, what do you think?
Can you try setting up a new database and try your custom theme on it? If that doen’t work then you’ll know your database isn’t where the problem is.
In reply to: HTML Showing Up in Profile Pagesfunction remove_xprofile_links() { remove_filter( ‘bp_get_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 9, 2 ); } add_action( ‘bp_init’, ‘remove_xprofile_links’ );This function above (called remove_xprofile_links) and it’s hook to bp_init might be what you need to remove. Try removing all of the above from bp-custom.php
In reply to: HTML Showing Up in Profile PagesHumm, I’ll have to look into it to see exactly what’s going on here.
In reply to: HTML Showing Up in Profile PagesI think
xprofile_data_value_before_saveis the hook you want to use. So, if you add this to functions.php your xprofile fields will accept HTML:remove_filter( 'xprofile_data_value_before_save', 'xprofile_sanitize_data_value_before_save', 1, 2 );Note: Use this with caution. Not sanitizing incoming data is dangerous so you will need to add your own custom sanitization if you use this.
In reply to: Display post count in sidebar for author ID@natehawkes right, I see… Yes, somebody in the bbPress forum should be able to help!
In reply to: Display post count in sidebar for author IDIn reply to: HTML Showing Up in Profile PagesDid this happen in 1.9? Or just 1.9.1?
In reply to: Excluding Roles from the Member's Directory.@somethingelse doing
if ( $wp_user->roles[0] == 's2member_level3' )inside the loop is great but you might find your pagination doesn’t take your condition into account. For that you’ll need to hook into thebp_ajax_querystringfilterSee the technique in action on the BuddyDev website:
Exclude Users from Members directory on a BuddyPress based social network
In reply to: Can you theme bp-legacy/buddypress-functions.php?@hnla right! I’ll give it a go. Thanks Hugo.