Forum Replies Created
-
In reply to: Forum/Topic/Reply slug conflicts with WP pages/posts
great – glad you’re fixed !
probably several plugins, and lots of articles – this is really a wordpress thing
for instance
https://wordpress.org/plugins/force-strong-passwords/or
http://www.wpbeginner.com/plugins/how-to-force-strong-password-on-users-in-wordpress/
In reply to: CSS (new user)bbp-style pack lets you style bbpress
In reply to: Freshness URLs Brokenok, I’ve had a quick look.
The page number is set by this line
$reply_page = ceil( (int) bbp_get_reply_position( $reply_id, $topic_id ) / (int) bbp_get_replies_per_page() );
I suspect that bbp_get_replies_per_page is not the issue, but that bbp_get_reply_position is.
so this function is as follows :
function bbp_get_reply_position( $reply_id = 0, $topic_id = 0 ) { // Get required data $reply_id = bbp_get_reply_id( $reply_id ); $reply_position = get_post_field( 'menu_order', $reply_id ); // Reply doesn't have a position so get the raw value if ( empty( $reply_position ) ) { $topic_id = !empty( $topic_id ) ? bbp_get_topic_id( $topic_id ) : bbp_get_reply_topic_id( $reply_id ); // Post is not the topic if ( $reply_id !== $topic_id ) { $reply_position = bbp_get_reply_position_raw( $reply_id, $topic_id ); // Update the reply position in the posts table so we'll never have // to hit the DB again. if ( !empty( $reply_position ) ) { bbp_update_reply_position( $reply_id, $reply_position ); } // Topic's position is always 0 } else { $reply_position = 0; } } // Bump the position by one if the lead topic is in the replies loop if ( ! bbp_show_lead_topic() ) $reply_position++; return (int) apply_filters( 'bbp_get_reply_position', $reply_position, $reply_id, $topic_id ); }
so given that you seem fine with accessing the database, and hoping you are fine with editing files and uploading these, let’s see what value are being set in this function. I presume you can edit files, and you say you have a ‘safe’ area in which to play.
so lets start with
$reply_position = get_post_field( 'menu_order', $reply_id );
which is set on line 1742 of includes/replies/template.php
Now we can filter and play with this function, but it is probably easier just to edit the file whilst we test – just take a copy of it before so you can restore at the end.
So I’d add a line after 1742 saying
update_option( 'encide', $reply_position ) ;
save and upload, and then display a page which works and one that doesn’t and each time you can access wp_options in the database and look for the encide option name.
That should tell you what it is set to.
I’d suspect that it is not correct for the faulty ones, and is returning 1 or 0 – hence no pagination.
Come back and let me know what it says, and we can progress from there.
great glad Robkk helped !
I don’t do development of bbpress, just write supporting plugins and offer support here.
yes this is a known issue
see
http://www.rewweb.co.uk/bbpress-wp4-fix/
and/orhttp://www.rewweb.co.uk/bbpress-wp4-fix2/
there’s a trac ticket for it somewhere, but bbpress authors see it as a wordpress fix
In reply to: Freshness URLs Brokensorry – not ignoring you – tied up elsewhere at the mo, but I’ll try and find some time to read and understand this evening !
ok, very confused now. How can someone comment on a post if they can’t see the post??
ok, thanks – sorry it’s sometimes hard to understand the obvious until you see it !
so I’m presuming that there should be some content to that post?!
bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
that link comes back with ‘unfortunately the messages were deleted as requested’ and I can’t see
ok, sorry but isn’t that what it is doing??
I think you will need to post a screenshot and details of what should be different
so to understand – in place of the comment form, you’d like say a link/button that brings up the form?
In reply to: Correlating WP roles with BBPress rolesgreat – to help others please post back your solution if successful, or come back for further help !
In reply to: Correlating WP roles with BBPress rolesAlso I am not sure there is a visitor WordPress role.
oops… no there isn’t – old code left on my test site !
and who gets what were just examples 🙂
he is on one.com – great work robkk !
Not really sure what you are doing.
Can you give us a link to a page showing the issue, and post the content of that page – ie the shortcodes etc. that is creating it.
In reply to: Freshness URLs Brokeninteresting
Do you have phpmyadmin access to your database?
If so then I think you need to be looking to compare the data in posts and postmeta between one that works and one that doesn’t to see what is different.
In reply to: Correlating WP roles with BBPress rolesnot tested, but the following in your functions file should do it
you’ll need to edit the code for which role does what
add_action('wp_login', 'rew_assign_role_on_login', 10, 2); //this function assigns user to bbp roles on login function rew_assign_role_on_login($user_login, $user) { $user_id = $user->ID ; $role = get_role($use_id) ; if (empty ($role)) return ; //has no role in the database if ($role == 'administrator' ) $new_role = 'bbp_keymaster' ; if ($role == 'editor' ) $new_role = 'bbp_moderator' ; if ($role == 'author' ) $new_role = 'bbp_moderator' ; if ($role == 'contributor' ) $new_role = 'bbp_participant' ; if ($role == 'visitor' ) $new_role = 'bbp_blocked' ; if ($role == 'subscriber' ) $new_role = 'bbp_spectator' ; bbp_set_user_role( $user_id, $new_role) }
In reply to: Topic content not showing uplink to your site and an example please
In reply to: Search not working on new installbbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
In reply to: Correlating WP roles with BBPress rolesit would be code-able, but I don’t know of anything that does this already
I can’t replicate the problem, so hard to say what the issue is
In reply to: Error message in BBpresshave you amended any files in bbpress?
No problem !
The core issue is with wordpress for fixing !