Forum Replies Created
-
In reply to: I need freshness or latest date or post.
Not sure what you questions is, but maybe the answer is
In reply to: Change Breadcrumb url linksorry end of a long day, and brain is frying after several hours coding, so apologies.
can you show your current breadcrumb, and what it links to, and the desired breadcrumb and what you would like it to link to
In reply to: Auto close topic after some time / daysHey great that the first bit works, let me know re the second, we’ll get it working if not š
In reply to: Increase quantity of search resultsok, this has driven me mad again ! I hated search last time, and I hate it even more now š – problem is that the results can be forums, topics or replies, and each one needs checking.
BUT I have fixed the pagination.
The downside is that searches will run slowly, as on each search I have to compile a full list of all forums, topics and replies that the user can see before running the search query. This takes time.
Previously I had tried to just check the current page, but that is what led to the pagination problem.
So can you try :
http://www.rewweb.co.uk/private-groups-2-5-3/
Follow the instructions, and confirm that this is working for you.
Sorry, but I cannot see an easy way to speed up search, so it’s a trade off, slow search and private groups, or fast search and no private groups unless I have a brainwave in the next few hours.
Anyway come back and let me know if this works on your site
In reply to: Oh bother! No topics were found here!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 twentytwelve, and see if this fixes.
then come back
In reply to: Oh bother! No topics were found here!Great – glad you’re fixed, and thanks for coming back to let me know !
In reply to: Increase quantity of search resultsNo that’s fine – do have a really large amount of topics/forums?
I’ll take another look at the code
In reply to: Increase quantity of search resultsI suppose I’m after
logged in as full user with all forums 174 results
Logged in as admin user – 20 results but should see all 174 – correct?
Logged in as user able to see only public forums – 18 results but should see xx
Logged in as a private user – xx results but should see yy resultsIn reply to: Edit the bbPress login widgetcan you post lines 30-34 please
In reply to: Increase quantity of search resultsSlight problem is that I’m the plugin author of bbP Private Groups š
Getting search to work with private groups drove me nearly mad – and I thought I’d cracked it, but clearly not š
I’ll take another look at it – it was a while ago, and I’m always learning, so maybe a fresh look might fix any residual issues.
When you say you get 174 results – are these all ones that someone logged in with restrictions would see? ie how may are you expecting based on only seeing some forums?
In reply to: Custom Forum LayoutThanks – glad you’re fixed and thanks for the kind donation
In reply to: Auto close topic after some time / daysHope you haven’t forgotten anything else !
ok edit
$last_active = strtotime( get_post_meta( $topic_id, '_bbp_last_active_time', true ) ); if ($last_active < strtotime( '-10 days') ) bbp_close_topic( $topic_id );
to
$topic_date = strtotime( get_post( $topic_id, 'post_date', true ) ); $forum_id = bbp_get_topic_forum_id($topic_id); if ($topic_date < strtotime( '-10 days') && $forum_id == 210 ) bbp_close_topic( $topic_id );
the $forum_id == 210 needs the forum id of the forum you want to restrict.
to find this, go into
Dashboard>forums>all Forums and hover of edit of the forum you want – eg hover over edit ‘announcements’ and look in the bottom right of the screen. you’ll see the edit url that will include post=210 or whatever number.
You’ll need to test that all the above works, and come back if you need further help
In reply to: Auto close topic after some time / daysno problem
Alter the lines
$last_active = strtotime( get_post_meta( $topic_id, '_bbp_last_active_time', true ) ); if ($last_active < strtotime( '-10 days') )
to
$topic_date = strtotime( get_post( $topic_id, 'post_date', true ) ); if ($topic_date < strtotime( '-10 days') )
should do it
In reply to: Custom Forum Layoutok, I’ve added it to my shortcode plugin
you will want :
[display-forum-index forum= ‘2932, 2921′ breadcrumb=’no’ search=’no’]
You can see how to set this in
Dashboard>settings>shortcodes
In reply to: Increase quantity of search resultshmmm….hadn’t fully reads your original post
ideally Iād like to get search results with pagination
That’s what you should have ! Results should show the ‘replies per page’ setting together with full pagination.
Are you sure there are more than 20 results to show?
I suspect that something else is disturbing this
If you haven’t amended bbpress code or added filters then :
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 twentytwelve, and see if this fixes.
Come back when you have done that
In reply to: Auto close topic after some time / daysno problem
copy this code into a new notepad/notepad++ page
<?php /* Plugin Name: BBPress Close Old Posts Description: Close BBPress 2.0+ posts that haven't been updated in X days. Author: Raygun Version: 0.1 Author URI: http://madebyraygun.com This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ register_activation_hook(__FILE__, 'bbpress_topic_scheduler'); add_action('bbpress_daily_event', 'bbpress_close_old_topics'); function bbpress_topic_scheduler() { wp_schedule_event(time(), 'daily', 'bbpress_daily_event'); } function bbpress_close_old_topics() { // Auto close old topics $topics_query = array( 'author' => 0, 'show_stickies' => false, 'parent_forum' => 'any', 'post_status' => 'publish', 'posts_per_page' => -1 ); if ( bbp_has_topics( $topics_query ) ) while( bbp_topics() ) { bbp_the_topic(); $topic_id = bbp_get_topic_id(); $last_active = strtotime( get_post_meta( $topic_id, '_bbp_last_active_time', true ) ); if ($last_active < strtotime( '-10 days') ) bbp_close_topic( $topic_id ); } } ?>
Change the -10 days right near the bottom to whatever number you want
Save this file as ‘close_old_topics.php’
Compress/zip this file, so you have a zipped version.
then in worpress go to
Dashboard>plugins>add new and click ‘upload’ and then upload the zipped file you saved above, and then activate.
Come back if you have any issues, the code is not mine and I have not tested it, but others have used.
In reply to: Custom Forum LayoutV. close to a solution – but supper calls, will finish it tomorrow and come back !
In reply to: Auto close topic after some time / daysok, so how tech savvy are you do you know
1. how to create a notepad/notepad++ file and copy/paste code into it?
2. FTP this to your wordpress site?Come back and let me know
In reply to: Export Forum Posts to Excel filebbpress uses custom post types of Forums, Topics, and Replies.
Just use one of the many export plugins.
I googled ‘wordpress export custom post types to excel’ and got lots of useful looking plugins
In reply to: Users keep getting logged out and fragmented cachingI think these issues are not bbpress related.
I’d discuss these issues with the plugin authors and your host provider.
In reply to: bbPress 2.5.x "waiting" Polish translationno problem – glad you’re fixed !
In reply to: Hidden private forumNo leave it at 2.5.2 – might have been an issue with you mamp.
The reference to php 5.4 being stricter I found seemed to indicate that there was an issue in certain circumstances, so unless it is a firm problem I don’t want to alter code.
I know which files I changed (only 2) and will keep this as a reserve in case.
Thanks for coming back ! much appreciated !
In reply to: Per Forum Permissions by GroupHey no problem, glad you’re fixed
I suspect that the plugin author would be better to sort you with tablepress eg
https://wordpress.org/support/plugin/tablepress
but you may hot the catch 22 that editing is in the backend and you need to disable this for the forums !
In reply to: Notificationsbut glad you’re fixed !
In reply to: Notificationsprobably because bbpress is sending them through subscriptions, as well as the notify plugin.