Forum Replies Created
-
@wendylady, also, if you install the “Advanced Editor Tools” plugin you can get your TinyMCE toolbar to show the menu bar. I just tried it. This menu bar has the “Restore last draft” on it.
But I have not added any code to include the “restoredraft” button on the toolbar itself.
But as previously mentioned, the autosave is defaulting to 30 seconds.
Hi @wendylady
Thanks for trying the plugin! According to the TinyMCE documentation for autosave it simply states:
This plugin gives the user a warning if they made modifications to the content within an editor instance but didn’t submit the changes.
I notice there is an option
autosave_interval
:This option enables you to specify the time the editor should wait between taking snapshots of the current content and saving them to local storage. The syntax is to append the letter s to the end of a number value. For example, “30s” for 30 seconds.
According to the documentation the default is 30 seconds. Since i do not specify this option in my plugin it must be using this default of 30 seconds.
If you don’t mind, could you also re-produce your query in the support forum for the plugin:
https://wordpress.org/support/plugin/add-autosave-fullscreen-to-tinymce/
?
And I can add the same response there.
Does this help?
In reply to: Catering for when users simply reply to emailsMy apologies. I did not realise it had been tweaked two weeks ago.
In reply to: Catering for when users simply reply to emailsI appreciate that you took the time to look.
Maybe sometime soon we will get an updated bbPress? Who knows …. Atleast one that says it officially supports the latest wordpress version that is out.
In reply to: Catering for when users simply reply to emailsI getcha. Understood.
I use the bbPress Notify (No-Spam) plugin and for replies use this template:
A new reply has been posted by [reply-author].
Topic title: [reply-title]
Topic url: Link to ReplyExcerpt:
[reply-excerpt]I support I could either remove the excerpt like you say or add another sentence:
Note:
Click on the link to log into the support forum and add your reply to the discussion. Please do not simply reply to this email with your response.In reply to: Notify user when a reply goes into moderationThanks for your code. It has been so long now when I asked this that i am reluctant to start fiddling with my setup.
I prefer to continue to wait until such a time and bbPress is updated rather than add bits of code to my functions file.
At the moment what I have works for me due to the bsp settings that were added some time back.
Thank you for the code though.
In reply to: TinyMCE will not display on siteHi @lepalois
I am using 5.7 and I am using TinyMCE. It still has the version of TinyMCE as it did in 5.6.
Works fine in my forum.
In reply to: bbP Signature – DevelopmentFYI I use the free version of GD bbPress Tools that has a setting for the User Signature. This plugin is actively updated.
In reply to: Users can’t upload mediaGreat!
In reply to: Users can’t upload mediaHi. This is not a CSS bit of code. it is for your functions PHP file.
In reply to: Using EnlighterJS inside “Quotes”It has option to quote reply or topic. This is the shortcode I refer to.
In reply to: Using EnlighterJS inside “Quotes”If you mean blockquote then yes, but it shows asa quote shortcode. See linked discussion.
In reply to: Statistics & Private ForumsI have not found a way.
I know that the author of the GD Press Tools has his own statistics widget and he fixed it there. But not the native one.
Even in the dashboard it doesn’t tell you the correct forum data – but just the public ones.
In reply to: PowerSearch bugPlease see this discussion:
https://wordpress.org/support/topic/searching-for-terms-like-10-19/
Turns out this is a bug in bbPress. My main website search engine is fine. Just the bbPress tool failing.
Can a ticket be raise?
In reply to: User StatisticsBTW what is the link to your site? Is it accessible via the BSP in the back end?
In reply to: User StatisticsGreat!
In reply to: User StatisticsUnderstood. Works well. I removed the trailing comma after “DESC”.
Thanks for your help!
In reply to: User StatisticsSorry, I was looking in the wrong place! One sec …
In reply to: User StatisticsSorry, but I can’t see this file in the ZIP I sent you.
In reply to: User StatisticsIt works – on both staging and live. 🙂 Now it shows the correct last approved user. Thanks!
In reply to: User StatisticsThanks. I will try it. Do you think I could try that as is on my staging site?
In reply to: User StatisticsI have just checked the database and wp-approve-user is always 1 with the exception of one record where it is empty. I assume this is the person that registered on my site this morning whom I have not approved.
so we just need the latest user who has been approved
Correct, but, if this will be part of the plugin you sponsor on your site it will need to factor if for the old way I guess too. Unless this becomes a custom code change just for me.
In reply to: User StatisticsSo it calls:
private function section_latestuser() { // Grab the latest registered user on the site return $this->tag_replace( $this->parent->option["title_text_latestuser"] ); }
Which in turn calls:
function get_latestuser( $html ) { $latest_user = get_users( array( 'number' => 1, 'fields' => array("user_login", "ID", "display_name"), 'orderby' => "registered", 'order' => "DESC" ) ); $latest_user = reset( $latest_user ); // Default display is the full name $name = $latest_user->display_name; if( $this->parent->option['user_display_format'] == "display_as_username" ) { $name = $latest_user->user_login; } if( $html == true ) { return "<a href=\"" . bbp_get_user_profile_url( $latest_user->ID ) . "\">" . $name . "</a>"; } else { return $name; } }
I think, if “WP Approve User” is installed then we need to somehow modify the array returned to only include those where the are approved (as per my previous email).
In reply to: User StatisticsNot sure what you mean. When the user signs up I am sent an email. The meta data for wp-approve-user-email-sent is set to true (1). And wp-approve-user is set to false (0).
Once I approve them the meta data changes for wp-approve-user to true. I simply need the system to to user get_user_meta with user id and “wp-approve-user” (if the var exists). And if it exists, don’t show the user if the value is false.
Make sense?
In reply to: User StatisticsFurther to last message, I don’t know if the code I showed you can be improved?
As mentioned, I have “WP Approve User” installed. I have checked the meta data for a given user in the database and if “wp-approve-user” is not set to “1” then they should not be listed in the “newest users” bit of the statistics.
That “build_html” code needs to be modified somehow.