Forum Replies Created
-
In reply to: Smaller content in repliesIn reply to: how to make bbpress categories and forums as pages
just use shortcodes
https://codex.bbpress.org/shortcodes/
in particular
[bbp-single-forum id=$forum_id]
In reply to: Display the last topic updated in the forums loopput this in your functions file
function rw_custom_freshness_link( $forum_id = 0 ) { $forum_id = bbp_get_forum_id( $forum_id ); $active_id = bbp_get_forum_last_active_id( $forum_id ); $link_url = $title = ''; if ( empty( $active_id ) ) $active_id = bbp_get_forum_last_reply_id( $forum_id ); if ( empty( $active_id ) ) $active_id = bbp_get_forum_last_topic_id( $forum_id ); if ( bbp_is_topic( $active_id ) ) { $link_url = bbp_get_forum_last_topic_permalink( $forum_id ); $title = bbp_get_forum_last_topic_title( $forum_id ); } elseif ( bbp_is_reply( $active_id ) ) { $link_url = bbp_get_forum_last_reply_url( $forum_id ); $title = bbp_get_forum_last_reply_title( $forum_id ); } $time_since = bbp_get_forum_last_active_time( $forum_id ); if ( !empty( $time_since ) && !empty( $link_url ) ) $anchor = '<a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_attr( $title ) . '</a>'; else $anchor = esc_html__( 'No Topics', 'bbpress' ); return apply_filters( 'rw_get_forum_freshness_link', $anchor, $forum_id, $time_since, $link_url, $title, $active_id ); } add_filter('bbp_get_forum_freshness_link', 'rw_custom_freshness_link' );
In reply to: Avatars in widget 2012great – glad you’re fixed
In reply to: Fetch Topics of Particular ForumIn reply to: layout problem with bbpress@robkk – no evidence myself that bbpress has wamp or mamp issues, but have seen it quoted occasionally by others – probably is a red herring !
In reply to: layout problem with bbpressPresume you have been through
and
bbpress is not great on mamp or wamp, is this what you mean by localhost.
In reply to: Display the last topic updated in the forums loopNo sorry I still don’t understand what you are currently seeing and what you want to see?
Please show the existing and presume the above is the new?
In reply to: Need help with custom roles@bob1nz
How can I assign non-standard bbpress roles with custom capabilities to non standard wordpress roles also with custom capabilities using the map so this is performed dynamically?Sorry, but without major involvement in looking at this and how it is interacting with whatever plugins you are using, I cannot quickly come up with an answer.
If you want me to take a professional look after xmas, contact me via my website
@boertje – suggest you start your own threadIn reply to: Delay in posts showingIf you get an answer from your host providers, do come back and post as this will help others.
In reply to: Active Directory Intergration?bbpress uses the default wordpress user setup, but adds a bbpres role to the wp-capabilities in user_meta.
So as long as there is a wp_user then on first login by that user bbpress will allocate the default bbpress role as set in Dashboard>settings>forums.
In think this plugin might be your solution, as it seems to create and update wordpress via AD
https://wordpress.org/plugins/active-directory-integration/
and then bbpress will use that wordpress database to add the role.
In reply to: Delay in posts showingNothing in wordpress that I iknwo of.
Are you using a spam filter?
I’d also suggest you talk to your host provider – they’re usually very helpful, and it might be something in your setup ion the server
In reply to: Only can reply admin userYou’d need to modify
wp-content/bbpress/templats/default/bbpress/form-reply.php
create a directory on your theme called ‘bbpress’
ie wp-content/%your-theme-name%/bbpress
find
wp-content/bbpress/templats/default/bbpress/form-reply.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/%your-theme-name%/bbpress/loop-single-reply.php
bbPress will now use this template instead of the originalyou should really do this inside a child theme
but if you do it in your main theme, keep a copy of what youb have done as updates are likely to overwrite
The you would need to modify line 20
<?php if ( bbp_current_user_can_access_create_reply_form() ) : ?>
to put in a check to see if it’s current user
It’s too near xmas, and I have too much else on to write and test the code but it will involve bbp_get_currect_user and the topic author $user_id
In reply to: Need help with custom rolesThe bbpress function is
$role_map[‘admin’]= bbp_get_user_role( $user_id );
For the standard roles you will end up with
bbp_keymaster
bbp_moderator
etc.as that’s how they’re stored in the database,
In reply to: Delay in posts showingIf you (or someone else) haven’t installed some caching software as a plugin, then you won’t have it.
What sort of delay are we talking about? minutes, hours, days?
In reply to: What are shortcodes? How do I use them?No problem!
In reply to: Plugin Disappeared on WordPress Dashboardok, the software is held in files, the content (forums, topics etc) is held in the database.
Please read
https://codex.bbpress.org/creating-a-test-site/
for a long explanation of how wordpress is structured.
I believe you issue is as simple as that the level of user that you are does not permit you to se the ‘backend’ – that is the forum stuff in the dashboard – so deleting and recreating the plugin will not help you.
The answer I think is to go into phpmyadmin, and edit your entry to give yourself permission as per previous answer.
The link above should give you sufficient to be able to find your entry and edit it.
In reply to: What are shortcodes? How do I use them?The shortcodes can be used on any wordpress page
so if fro instance you wanted a menu item that display the most recent 15 topics across all your forums, so that when people selected this menu item that what they saw, then you would
1. create a page – maybe called ‘latest topics’
2. put the shortcode into the content section in this case[bbp-topic-index]
3. add that page to the menu
In reply to: Forum and Topic Titles Missing…Sorry couldn’t see anything to look at in that link, can you explain your issue in a little more detail
In reply to: Need help with custom rolesThanks for posting the code, which if needed I’ll delve into
but firstly
It doesn’t appear to be working as intended though as I cannot give myself the owner role
Can you give a bit more detail here as to exactly what you are doing, and where what you expect to happen isn’t, and any error messages etc.
That is fully explain what ‘I cannot give myself’ means
Thanks
In reply to: SMF Import to bbPress@deanpnet No problem ! Happens to me all the time !
In reply to: Delay in posts showingare you running any caching software?
In reply to: how can I display the forum menu barI think you mean breadcrumbs the following shows breadcrumbs
They are still there, so you should see them, might be another plugin or your theme is hiding them
try
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 twentytwelve, and see if this fixes.
In reply to: Plugin Disappeared on WordPress DashboardTo change it in the database, you need to
find out the id of the user – you can look that up in the ‘users’ table – probably called ‘wp_users’, just look for a line with the username in, and the user_id will be in the ID column.
Then in the usermeta table sort by user_id, and look for your user, then the entry called
wp_capabilities
For a keymaster and admin it needs to say
a:2:{s:13:"administrator";s:1:"1";s:13:"bbp_keymaster";b:1;}
so FIRST copy what is already in there and save it to notepad or somewhere safe – you’ll want to be able to change it back if it doesn’t work and locks you out !!
Then edit and put the above in.