Search Results for '\"wordpress\"'
-
Search Results
-
WordPress Version: 4.5.3
bbPress Version: 2.5.9
Website Link: http://www.sva.bc.ca/newforums/Hello,
After setting up bbPress I “imported” forum posts manually from an older system, setting the “Published On” date to match the date of each original topic/reply. I then found that bbPress’s “freshness” ignored this date and used the date/time I had manually added these posts.
So I installed the bbPress last post plugin ( https://en-gb.wordpress.org/plugins/bbp-last-post/ ) and modified it a little. The following code is what is currently being used, and is almost what I want:
<?php //this function changes the bbp freshness data (time since) into a last post date for forums function change_freshness_forum ($forum_id = 0 ) { // Verify forum and get last active meta $forum_id = bbp_get_forum_id( $forum_id ); $reply_id = bbp_get_forum_last_reply_id( $forum_id ); if ( !empty( $reply_id ) ) { $last_active_date = get_the_date( '', $reply_id ); } else { $topic_id = bbp_get_forum_last_topic_id( $forum_id ); if ( !empty( $topic_id ) ) { $last_active_date = get_the_date('', $topic_id ); } } if ( !empty( $reply_id ) ) { $last_active_time = get_the_time( '', $reply_id ); } else { if ( !empty( $topic_id ) ) { $last_active_time = get_the_time('', $topic_id ); } } $last_active_date = bbp_convert_date( $last_active_date ) ; $last_active_time = bbp_convert_date( $last_active_time ) ; $date_format = get_option( 'date_format' ); $time_format = get_option( 'time_format' ); $date= date_i18n( "{$date_format}", $last_active_date ); $time=date_i18n( "{$time_format}", $last_active_time ); $active_time = sprintf( _x( '%1$s at %2$s', 'date at time', 'bbp-last-post' ), $date, $time ); return $active_time ; } add_filter( 'bbp_get_forum_last_active', 'change_freshness_forum', 10, 2 ); //this function changes the bbp freshness data (time since) into a last post date for topics function change_freshness_topic ($last_active, $topic_id) { $topic_id = bbp_get_topic_id( $topic_id ); // Try to get the most accurate freshness date possible if ( empty( $last_active_date ) ) { $reply_id = bbp_get_topic_last_reply_id( $topic_id ); if ( !empty( $reply_id ) ) { $last_active_date = get_the_date( '', $reply_id ); } else { $last_active_date = get_the_date( '', $topic_id ); } } // Try to get the most accurate freshness time possible if ( empty( $last_active_time ) ) { $reply_id = bbp_get_topic_last_reply_id( $topic_id ); if ( !empty( $reply_id ) ) { $last_active_time = get_the_time( '', $reply_id ); } else { $last_active_time = get_the_time( '', $topic_id ); } } $last_active_date = bbp_convert_date( $last_active_date ) ; $last_active_time = bbp_convert_date( $last_active_time ) ; $date_format = get_option( 'date_format' ); $time_format = get_option( 'time_format' ); $date= date_i18n( "{$date_format}", $last_active_date ); $time=date_i18n( "{$time_format}", $last_active_time ); $active_time = sprintf( _x( '%1$s at %2$s', 'date at time', 'bbp-last-post' ), $date, $time ); return $active_time ; } add_filter( 'bbp_get_topic_last_active', 'change_freshness_topic', 10, 2 ); //This function changes the heading "Freshness" to the name created in Settings>bbp last post function change_translate_text( $translated_text ) { $text = 'Freshness' ; if ( $translated_text == $text ) { global $rlp_options; $translated_text = $rlp_options['heading_label']; } return $translated_text; } add_filter( 'gettext', 'change_translate_text', 20 );The only problem now is that from the forum index view, the “Last Post” column will show the date of the most recent reply, even if there is a newer topic.
Is there a way to compare the dates and make sure the Last Post column displays the most recent topic or reply, whichever is newer?
Thanks!
Hi,
When searching through the forum and not being logged in, a message appears at the bottom saying you must be logged in to post a reply……
Is there any way you can send me the code, so that there is a direct link to the forum login from this message or next to the message.bbPress version is up to date. and wordpress version is a unique one created by web dev company.
Thanks in advance for your helpHello Support Forum
I have a displaying issue I couldn’t find the issue until now and was wondering if someone experienced similar or has a hint what could resolve it.Issue:
We setup several forums, which are accessible only with corresponding membership (using plugins, see below). Under each forum we created one topic only so far. When accessing a specific forum (example qigong and meditation as per the link below) it lists all topics; even the ones from the different forums. As per my understanding it should only display the topics of that specific forum.Theme is Newstube, but I changed it to the wordpress latest default theme (twenty sixteen) and the issue persists. I have also deactivated all but the bbpress plugins and the issue persists.
Wordpress: 4.5.3
BBpress: 2.5.9Is installed in combination with iThemes Exchange / Membership and Membership bb press add-on.
Website: Redacted
Under menu “account”, login. Test user we setup is (since only members can access the forum):
User: Redacted
PW: RedactedAm I overlooking something simple and obvious, or what could the issue be? Any help is very much appreciated.
Thank you.
MatildaHi All,
Issue: I have the age old issue of notifications not sending to admins.
URL: http: // www . homecarekn . ca/
Theme: Enfold
Wordpress: 4.5.3
bbPress: 2.5.3 (rolled back from 2.5.9)What I tried:
– I know emails are sending when I requested a password reset on my account and it sent.
– I rolled back bbPress since I read they changed their mail headers in 2.5.4 – so I went from the latest (2.5.9) to 2.5.3
– Plugin – AsynCRONous bbPress Subscriptions – didn’t work
– Plugin – bbPress Notify (No-Spam) – didn’t work
– Plugin – Reply Subscribed – forces reply email from new topics and repliesTried the plugins one at a time – created new topics and replied
Tried plugins all together – created some new topics and replied
Tried varying plugins activated /deactivated – created new topics and replied
No emails to editors, keymasters, or adminsEdited the database and added multiple addresses in the wp_options field for admin – still no notifications.
Did anyone ever figure out what and why this happens?
-BenHello Everyone
I just recently installed bbpress 2.6 alpha build because I heard there was some more improvements to the database importer. I was trying a test run of converting my IPB v3.47 forums to bbpress 2.6a and I put in all of the info into the script and it looks like it was working and I went away for a few hours and came back and it was still running. I thought this was odd because the forums/users are not abnormally large.
I opened up the forums link inside the WP admin and noticed that it had created several duplicates of each forum area and replicated posts more than once. It’s almost like it didn’t know it finished and restarted the process all over.
Is there any logs or debugging that I can turn on that would provide help into troubleshooting this issue as to why the importer never stops processing? If there is mods installed on IPB could this mess with the importer at all?
I did find an error_log file and here is some of the issues I saw in it:
[03-Jul-2016 17:18:48 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/darkone/public_html/wp/wp-content/plugins/bbpress/includes/admin/converter.php on line 319
[03-Jul-2016 17:18:48 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/darkone/public_html/wp/wp-content/plugins/bbpress/includes/admin/converter.php on line 320[02-Jul-2016 17:10:39 UTC] WordPress database error Specified key was too long; max key length is 1000 bytes for query CREATE TABLE wp_bbp_converter_translator (
meta_id mediumint(8) unsigned not null auto_increment,
value_type varchar(25) null,
value_id bigint(20) unsigned not null default ‘0’,
meta_key varchar(255) null,
meta_value varchar(255) null,
PRIMARY KEY (meta_id),
KEY value_id (value_id),
KEY meta_join (meta_key, meta_value) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci made by do_action(‘wp_ajax_bbconverter_process’), call_user_func_array, BBP_Converter->process_callback, BBP_Converter->sync_table, dbDeltaAny help is appreciated, thanks.
I have found a rather nasty bug:
Details:
If you right click on the (reply #number) in the top right of a topic reply, you can then click to copy link address.
If you then paste this address into a new reply form and submit, the result is a screwed up blockquote of the Topic name and some random graphics.
It appears to be conflict between bbpress and the WordPress 4.4 content embed feature.
On my local host installation it also causes screen flicker in a loop.
I discovered this when trying to look for a quote replies solution.
Any chance we can do something to block/stop/patch it.
Kind Regards
Max