Forum Replies Created
-
In reply to: How to show sitewide activity in profile page
Hi @nickofnight,
In order to see the sitewide activity stream, by default members can go to:
example.com/activity. Activity related to a particular member can be seen by going toexample.com/members/usernameWhy don’t you just redirect everyone to the first link on login?
In reply to: Sponsored AdsHi @mecceo
Yes. You have 3 options:
- Search for a plugin on the Plugin Directory
- Write some code yourself. Feel free to ask any “how to” questions on here
- hire a developer
In reply to: Create alternate version of avatar on uploadIs the Buddypress avatar handled the same way as the normal WordPress thumbnails? i.e. functions?
No. See the
bp_core_avatar_handle_upload()function for how avatars are uploaded in BP.Ref: https://github.com/buddypress/BuddyPress/blob/master/src/bp-core/bp-core-avatars.php#L794
In reply to: bp_verify_nonce_request() not working@nithin270 this shouldn’t be happening. To debug this your best bet is to deactivate all plugins, revert to TwentyFifteen and remove all custom code you have in functions.php. Then, one-by-one, activate each of your plugins, checking each time if the problem is introduced. This trial-and-error approach should hopefully allow you to find the culprit.
In reply to: bp_verify_nonce_request() not workingYes I know that. But what is the solution
I’m not really sure from the info you’ve provided. You’ll need to provide a more detailed outline of the problem.
In reply to: bp_verify_nonce_request() not workingYou shouldn’t change core files. Each time you upgrade BuddyPress your changes will be lost.
In reply to: Retrieve a variable from a GETI put it into my code file and also into functions.php but always empty.
I think this indicates there is something weird going on. My advice is to remove all custom code, disable all plugins and revert back to TwentyFifteen theme. Then try again. If it works then, we can be sure you have something on your install that’s conflicting. The task is then to find out what.
In reply to: bp_verify_nonce_request() not workingWhen you say it isn’t working, can you provide more details?
In reply to: Retrieve a variable from a GETusing
?var1=testin the URL, what does the following display?if ( isset( $_GET['var1'] ) ) { echo $_GET['var1']; }In reply to: List groups i am admin ofNo worries; welcome to the forum! 🙂
In reply to: List groups i am admin of@alvin341965 That’s quite different so you should open a different topic for that 🙂
In reply to: List groups i am admin ofJust put @shanebp’s code in your theme’s functions.php file.
In reply to: Register page “name required broken”But now I can delete this form NAME from the registration area?
I have no idea because I don’t know the theme you’re using. The best thing to do is contact the theme author because they will be able to see the theme’s markup/code and advise you how to do it.
In reply to: Register page “name required broken”@patrykos360 you should contact the theme author as the problem is likely to be theme related. If the theme is purposefully BuddyPress-compatible, then perhaps the author will release a fix?
In reply to: Username problemsIf you wanted to, you could disallow spaces in usernames by validating the field during registration. This is how you’d do it:
function zenimot_validate_username() { $bp = buddypress(); if ( strpos( $_POST['signup_username'], ' ' ) !== false ) { $bp->signup->errors['signup_username'] = __( 'Spaces are not allowed', 'buddypress' ); } } add_action( 'bp_signup_pre_validate', 'zenimot_validate_username' );In reply to: nginx vs apache installs with buddypressCompletely agree! The LAMP stack is so easy to install I think sometimes people might not realise there are alternatives. Be good to read your article once written!
In reply to: Username problemsIn reply to: nginx vs apache installs with buddypressThat’s great you’re interested in updating the docs.
@henrywright who is the best person to ask on these forums to add a new section?
@mercime should be able to grant you contribute access to codex.buddypress.org.
Ref: https://codex.buddypress.org/participate-and-contribute/
In reply to: List groups i am admin ofThat’s quite odd and it shouldn’t be happening. Do you have any custom code in your functions.php or bp-custom.php files?
In reply to: nginx vs apache installs with buddypressPossibly, but it may be unrelated. In order to investigate that particular message, try opening a topic on the bbPress support forum
The problem might be coming from one of these. Try deactivating them all and then reactivating one-at-a-time to see which one introduces the problem.
Which plugins do you have activated?
In reply to: List groups i am admin ofIf you just need a quick and dirty approach for yourself to view, you could use the standard group loop to output a loop. See here.
Then put the following snippet directly after the line:
<?php while ( bp_groups() ) : bp_the_group(); ?>Snippet:
<?php $args = array( 'populate_extras' => true, 'group_id => bp_get_group_id() ); $group = groups_get_group( $args ); if ( ! in_array( bp_loggedin_user_id(), $group->admins ) ) { continue; } ?>Notes:
- I haven’t tested
- This approach won’t be performant
- I haven’t considered pagination
That said, it should get the job done. The alternative is to write some SQL and use the wpdb class.