Thanks guys, I had actually found a workaround, i copied page.php and renamed it to be page-slug.php and put an if statement at the beginning as below
if ( !is_user_logged_in() ){
header("Location: http:homepage");
}else{
// Show content
the_content();
now comes the question, which method is better? in terms of maintenance going forward i mean
Yes bbcode. We use “Aeva media”
nsParticipant
I checked function.php, and I found the cause.
function.php had below code.
add_filter('bbp_before_has_replies_parse_args', 'change_reply_order');
function change_reply_order() {
$args['order'] = 'DESC';
return $args;
}
So I commented this part out and then I confirmed it works property.
Thank you for replying and helping me.
nsParticipant
Thank you for replying.
Yes, that’s right.
The link of https://bbpress.org/forums/profile/naoyoshi/replies/ shows, user-replies-created.php is made by bbp_user_replies_created_url() function.
The default file of user-detail.php has this function and I don’t change.
The parameter of this function is blank.
When the page like https://bbpress.org/forums/profile/naoyoshi/replies/ shows, user-replies-created.php is executed.
As the core processes of bbPress, does it really retrieve only specific user’s replies from database?
This is what I don’t understand now and the current question.
I checked php files user-replies-created.php, loop-replies.php, and loop-single-reply.php, and interface of functions which used in these php files.
I haven’t almost changed codes in these php files, the content of these php files is nearly the original.
As far as I checked, there are no parameters which can retrieve only specific user’s replies in functions.
In this bbPress forums, user interface part is customized from the original file, though, why can it show only specific user’s replies data correctly?
I think I might have to add or change some codes in some of php files…, I don’t know it’s true.
@galador
Please go through some of the troubleshooting steps listed here.
Troubleshooting
and What schmoo and I were saying is that you can use both of the plugins we mentioned to extend/show the visual editor.
to display the visual editor make sure you have configured the setting in settings > forums in the WordPress back-end.
@atsouf
just use autoembed links in settings > forums
when the user places the link in the reply content area that link will automatically become a video when posted.
https://codex.bbpress.org/getting-started/embeds/
@pamhsims
Use this code instead for what you want
//custom text for subscribe links
function rkk_forum_subscribe_link() {
$args['subscribe'] = esc_html__( 'Subscribe to this forum', 'rkk' );
$args['unsubscribe'] = esc_html__( 'Unsubscribe to this forum', 'rkk' );
return $args;
}
add_filter('bbp_before_get_forum_subscribe_link_parse_args', 'rkk_forum_subscribe_link' );
//custom text for topic subscribe links
function rkk_topic_subscribe_link() {
$args['subscribe'] = esc_html__( 'Subscribe to this topic', 'rkk' );
$args['unsubscribe'] = esc_html__( 'Unsubscribe to this topic', 'rkk' );
return $args;
}
add_filter('bbp_before_get_topic_subscribe_link_parse_args', 'rkk_topic_subscribe_link' );
@billreefer
If you do write a guide or start to write a guide.
You can email me your ideas , or if you want to start writing it out soon you can write in a Google Doc Spreadsheet and email it to me , so I could put it in the codex.
Email anything you want in the COdex, you find my email in this link.
Contact
@hemant-ahir
I think if you are using the bbPress login shortcode this is the hook if you need a hook
bbp_redirect_login
how is it embedded?? with bbcodes??
Please go through some troubleshooting steps here.
Troubleshooting
THis guide will be improved in the next few days.
Also you most likely will not need to do the advanced troubleshooting.
What replies page?
Did you try any of the troubleshooting steps listed here
Troubleshooting
I do not think you have to do the advanced troubleshooting though.
Hi Pinkishhue,
First of all, I am using Enfold theme.
Second, I have explored the show lead topic thread and to be perfectly honest, I have no idea if it is enabled or not. I have found the php file and dropped in that code, however it doesn’t show my first topic.
Still though, if I deactivate Wishlist Member, the first topic shows.
Any more ideas as i am lost here
Thanks
Steve
I modified a little script I found inside a plugin named “bbp signature” https://wordpress.org/plugins/bbp-signature/
That plugin actually does not work with Buddypress, it is a bbpress plugin
[modified by moderator]
But the code wasn’t too terrible. even though I only kept a few line of it.
So here’s the solution;
make sure you have buddypress with xprofile enabled *(extended profiles)
1. Create a new text box field in Xprofile and name it “Signature”. *(caps is important, no quotation mark.)
Then add that code to the function.php of your child theme.
//Add Signature
function bbp_reply_content_append_user_signature( $content = '', $reply_id = 0, $args = array() ) {
// Default arguments
$defaults = array(
'separator' => '<hr />',
'before' => '<div class="bbp-signature">',
'after' => '</div>'
);
$r = wp_parse_args( $args, $defaults );
extract( $r );
// Verify topic id, get author id, and potential signature
$reply_id = bbp_get_reply_id ( $reply_id );
$user_id = bbp_get_reply_author_id( $reply_id );
$signature = xprofile_get_field_data( 'Signature', $user_id );
// If signature exists, adjust the content accordingly
if ( !empty( $signature ))
$content = $content . $separator . $before . $signature . $after;
return apply_filters( 'bbp_reply_content_append_signature', $content, $reply_id, $separator );
}
add_filter( 'bbp_get_reply_content', 'bbp_reply_content_append_user_signature', 1, 2 );
That’s it !
PS. If you want to enable HTML in xprofile there is a way but it’s risky.
you can read about it here : https://buddypress.org/support/topic/html-in-profile-field-again/
@mmice
you should have posted that on gist.github.com or at least pastebin so that users do not have to scroll through all that.
As for importing have you tried a creating a custom import using the example one in the bbPress plugin
https://codex.bbpress.org/import-forums/custom-import/
And for Karma system you might have to look into a WordPress plugin like MyCred.
And for importing private messages , I am not sure how that is going to work, but there is a lot of Private messaging plugins for WordPress like BuddyPress.
I do not see the issue on your site currently.
I do see these weird avatar image placement though.
Add this CSS to fix that issue.
#bbpress-forums p.bbp-topic-meta img.avatar {
display: inline !important;
}
There are a few functions to help with this:
bbp_new_forum
bbp_new_topic
bbp_new_reply
created per startup instruction.
Where did you get the information from??
As for your theme , if you are using Genesis you can install a plugin to help.
But some other themes you have to create a template for bbPress
follow this guide
https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
once i went into bbpress settings and set a register page and activation page.
This sounds like you went to BuddyPress’s settings, you can use BuddyPress’s register form.
For a login page you can place the bbPress login shortcode in a page and it should work.
For a lost password page I guess you can use the lost password shortcode but I do not know if it works correctly or not, or it just redirects to the WordPress lost password form.
Hi Guys/Gals
I am looking to only display pages if users are logged into BBPress. I am aware that i can set the visibility of a page to be password protected however this is an additional step that could be avoided.
I have noticed there is a function bb_is_user_logged_in() that i could utilise however i dont know where i should add the code and indeed if it needs to go in the theme or child theme.
Can anyone help?
Many thanks and have a nice day
Thanks for the reply Robin,
I have sorted this now. basically i was using the shortcode and couldnt see the password field however once i went into bbpress settings and set a register page and activation page. BBpress then generated the needed components and the registration page.
(I have crossposted this to the Private groups plugin support board. I hope there are no issues with that.)
no problem, you get me either way !
This could be coded, but it is quite complex to do.
In essence you would need to change the can_view function in private groups to have a view or change capability.
The issue is that I am fully tied up at the moment in other paid work, so you would need to put this to someone who would need to learn how bbpress/private groups works.
I suggest you try
http://jobs.wordpress.net/
I hope you find someone.
Hi everyone,
Looking for some assistance here,Instead of using WordPress facing registration page/ login page i have made a page that has login, registration an d lost password shortcodes. However during the registration process, i cannot get the user to specify the password therefore there is a need for approving admins to go create a password then email the user. Any ideas?
I have looked at many forums, plugins but haven’t got very far. Many thanks
Please see
http://contracostabee.com/forums/
created per startup instruction.
The forums page with only the shortcode in it produces text instead of form showing forums. Then when if you click on the image it takes you to the most recently created Forum page.
I’ve posted this problem several times but it disappears.
To Whom It May Concern,
I’m trying to configure forums properly for my site and for some reason the forum samples that I created from my back end are not showing up on my http://www.myloopnetwork.com website under the “Forums” tab. So I went to check out the Error Log from my hosting plan back end and saw this message:
20150609T144202: http://www.myloopnetwork.com/index.php
WordPress database error Table ‘wordpress_iomdefe35a.wp_jgts_bb_forums’ doesn’t exist for query DESCRIBE
wp_jgts_bb_forums; made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), call_user_func_array, bp_template_redirect, do_action(‘bp_template_redirect’), call_user_func_array, bp_screens, do_action(‘bp_screens’), call_user_func_array, bp_forums_directory_forums_setup, do_action(‘bbpress_init’), call_user_func_array, bp_forums_load_bbpressThere were a lot of other errors listed on that log but I already spoke to a representative of my hosting plan service and he said that he doesn’t see any other errors on that log from his end, except this one and another error (which I’m currently trying to resolve with the BuddyPress plug in moderators). So is there a reason why the above message is showing up? Please let me know what necessary steps I must take to get this resolved.
I’m currently testing everything out on the latest version of the Twenty Fifteen theme (ideally, I want to use this Magnus WordPress Theme [1.6 Version] for my site), I only have the BuddyPress plug in (now running a 2.3.1 version), the bbPress plug in (now running a 2.5.7 version) and a W3 Total Cache plug in (running a 0.9.4.1 version) currently activated. My hosting provider is with iPage, which is running a 5.0 PHP version and is running NGINX for their server. I hope all this info will be helpful in figuring out what’s going on. Any feedback or any other suggestions you may have will be greatly appreciate it.
Thank you in advance.