Forum Replies Created
-
In reply to: Newbie questions about using this forumIn reply to: [Resolved] How to add time in blog post?
in bp-default single blog posts are displayed using single.php, and archive.php for the archive view
In reply to: Custom Permalink and Rewrite Rules for Buddypress?A lot of the BP URL processing is done by component — components register their base URL part (in this case ‘groups’), and provide functions to process the URL and screen redirects.
If you look in bp-groups-loader.php you can see where the slug is set up, and a walk through of the code in bp-groups-screen.php will show you how the screens are being called.
I’m fairly sure but can’t remember for certain, that BP is grabbing the URLs and processing them, before passing any ‘non-BP’ urls to the standard WP URL rewrite arrays for processing.
[Edit: You may be able to hook in before this happens, and do your group processing]. We’ve done this on one of our sites, but I can’t remember the details off the top of my head.
However, how are you going to recognise the endpoint as a group, as opposed to a standard WP page or post? Are you planning to have a test that gets the endpoint and checks whether it is a group name?
p.s. uk-chess-group? Are you going to be at the British in next couple of weeks?
In reply to: [Resolved] How to add time in blog post?or just pass a PHP date format to the function call in your blog post template, if you don’t want date format changing across the site.
@murasaki — it seems this thread is getting hijacked. If you need further help / specific questions on the feedback above, it may be best to open a new thread
In reply to: is there anything similar to bp_member_idInside the loop, you can use:
bp_member_user_id() to echo the ID
and bp_get_member_user_id() to get the ID
In reply to: Combining Gravity Forms With Buddypressp.s. I think the switch action fix is a must if you want GF to work with BP
In reply to: Combining Gravity Forms With Buddypress@shanebp — yeah, we have s2member on the same sites — and not getting a conflict.
We’re using s2 for the registration forms though (plus a few mods), with gravity picking up on some heavy loading for us on user content submission.
3.4 / 1.5.5 / 1.6.4.2.1
In reply to: Link To Profile, Messages, Friends, and SettingsIf you are trying to use PHP code inside a page’s content that’s not going to work… you can’t embed the PHP to form your link in the page content as it won’t get processed.
You need to place it either in a PHP template file (which I assumed you were doing), or find some short code plugin that interprets PHP in a page’s content.
In reply to: Combining Gravity Forms With Buddypress@murasaki — you can implement a count on activity updates from a given user — either by creating a custom activity loop and doing a count on the number of items returned, or doing a database query directly (via the WP SQL API).
You’d then compare this against your upper limit and show the status box accordingly.
Will require good PHP / WP development knowledge.
In reply to: Ridiculously long usernames being generatedI take it you used a developer to develop the code to auto generate the usernames from the email address… what does the developer say about this problem?
On the face of it, it looks like they are applying some hashing algorithm to the email address to generate the username.
Love it or like it, you should be aware that usernames in addition to email addresses are a fairly fundamental feature of WordPress — attempting to bypass the need for both can lead to issues, e.g. using a raw email address for username, would lead to strange urls for the member profile pages in BuddyPress.
In reply to: activate member from adminIt’s not available as an option from wp-admin.
It’s possible with some fairly advanced coding – you’d need to be a competent PHP developer:
You could look at using the wp_set_auth_cookie() to auto login the user on registration.
You need to hook on to an appropriate action in the user registration process – disable the call to wp_new_user_notification(), and then use the auto login function above.
Alternatively, you could have a look to see if there are any ‘off the shelf’ plugins to do this for you — I’m not aware of any.
In reply to: Combining Gravity Forms With Buddypresstry adding this to your theme’s functions.php — there is a known problem with Gravity and BP (should have mentioned this originally!):
function bbg_switch_gf_hooks() {
remove_action(‘wp’, array(‘RGForms’, ‘maybe_process_form’), 9);
add_action( ‘bp_actions’, array( ‘RGForms’, ‘maybe_process_form’ ), 1 );
}
add_action( ‘init’, ‘bbg_switch_gf_hooks’, 99 );In reply to: cross-site scripting attack., prone/vulnerable to…the username and email address on the registration form are sanitized in the function: bp_core_validate_user_signup()
Passwords are passed through wp_hash_password() which I assume does any necessary sanitising implicitly.
Not sure how any additional signup fields are processed.
As @hugo says — I can’t envisage how a scanner could possibly check this.
In reply to: Can I do this?You can build this type of site on top of the BuddyPress platform, but it’s custom development work. There’s no ‘off the shelf’ plugin to achieve it.
In reply to: [Resolved] all member not show in member pageMembers don’t show in the members directory until they’ve logged in to the site. After they’ve logged in for the first time, you will start seeing them in the directory.
I suggest you ask your other questions about confirmation links as a separate thread, or they will likely be missed by forum visitors.
In reply to: Can’t see my forum activity (topics started)Yes, significant chunks of this site don’t work. Particularly those relating to forums. It used to work somewhat better, but a new design was introduced which reduced the functionality.
However, try not to let that put you off BuddyPress though — the sites you can build with the platform are far more impressive and consistent. It also integrates well with the new bbPress plugin, allowing you to deliver standard forum behaviour.
These forums don’t notify people of follow up comments — so, no surprise that Boone didn’t pick up on a further question several months later.
You can try the @username approach in your comment to notify them
For questions 2 and 3 — yes, you can customise these aspects of your site — there are many ways of doing it, and to some extent it depends on the approach you take to developing your site’s theme.
You can remove tabs, and add new tabs through the BuddyPress API
You can also remove them by developing your own custom template files (and similarly for the avatar sizes)If you look on the showcase tab on this site, or visit bpinspire.com for more up to date examples, you can get a feel for what you can achieve based on BuddyPress.
Much the same as a WordPress site doesn’t have to follow the basic blog structure, similarly a BuddyPress site doesn’t have to follow the generic bp-default theme structure and UX.
Couple of things to look at:
Have you got anything unusual in your wp-config.php or bp-custom.php file, perhaps redefining the site URL or ‘root slug’.
Have you de-activated the components (groups, activity, etc.) in your BuddyPress settings?
The line that’s falling over is: if ( empty( $bp->{$id}->root_slug ) || $bp->{$id}->root_slug != $bp->current_component )
@frank13 — unfortunately those standard forum features aren’t available on this site, so it’s very difficult to track anything, and questions often get re-asked, and re-answered.
Not sure why the site hasn’t been updated to use e.g. the bbPress plugin @johnjamesjacoby
In reply to: member-header GalleryDo you want to show a gallery of user profile pictures? Or some other type of photo?
In reply to: 3 major issues with my template Please Help.It’s sounds you need a developer to work on your general site build, rather than having specific BuddyPress questions.
You can hire a developer by posting here: http://jobs.wordpress.net
You can also try posting on the jobs board on this site: https://buddypress.org/community/groups/bp-jobs-board/In reply to: Combining Gravity Forms With Buddypressturn off AJAX based submission on your gravity form — does that fix the problem?