Chuckie (@ajtruckle)

Forum Replies Created

Viewing 25 replies - 26 through 50 (of 395 total)

  • Chuckie
    Participant

    @ajtruckle

    @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.


    Chuckie
    Participant

    @ajtruckle

    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?


    Chuckie
    Participant

    @ajtruckle

    My apologies. I did not realise it had been tweaked two weeks ago.


    Chuckie
    Participant

    @ajtruckle

    I 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.


    Chuckie
    Participant

    @ajtruckle

    I 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 Reply

    Excerpt:
    [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.


    Chuckie
    Participant

    @ajtruckle

    Thanks 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.


    Chuckie
    Participant

    @ajtruckle

    Hi @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.


    Chuckie
    Participant

    @ajtruckle

    FYI I use the free version of GD bbPress Tools that has a setting for the User Signature. This plugin is actively updated.

    GD bbPress Tools


    Chuckie
    Participant

    @ajtruckle

    Great!


    Chuckie
    Participant

    @ajtruckle

    Hi. This is not a CSS bit of code. it is for your functions PHP file.


    Chuckie
    Participant

    @ajtruckle

    GD bbPress Tools

    It has option to quote reply or topic. This is the shortcode I refer to.


    Chuckie
    Participant

    @ajtruckle

    If you mean blockquote then yes, but it shows asa quote shortcode. See linked discussion.


    Chuckie
    Participant

    @ajtruckle

    I 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 bug

    Chuckie
    Participant

    @ajtruckle

    Please 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 Statistics

    Chuckie
    Participant

    @ajtruckle

    BTW what is the link to your site? Is it accessible via the BSP in the back end?

    In reply to: User Statistics

    Chuckie
    Participant

    @ajtruckle

    Great!

    In reply to: User Statistics

    Chuckie
    Participant

    @ajtruckle

    Understood. Works well. I removed the trailing comma after “DESC”.

    Thanks for your help!

    In reply to: User Statistics

    Chuckie
    Participant

    @ajtruckle

    Sorry, I was looking in the wrong place! One sec …

    In reply to: User Statistics

    Chuckie
    Participant

    @ajtruckle

    Sorry, but I can’t see this file in the ZIP I sent you.

    In reply to: User Statistics

    Chuckie
    Participant

    @ajtruckle

    It works – on both staging and live. 🙂 Now it shows the correct last approved user. Thanks!

    In reply to: User Statistics

    Chuckie
    Participant

    @ajtruckle

    Thanks. I will try it. Do you think I could try that as is on my staging site?

    In reply to: User Statistics

    Chuckie
    Participant

    @ajtruckle

    I 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 Statistics

    Chuckie
    Participant

    @ajtruckle

    So 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 Statistics

    Chuckie
    Participant

    @ajtruckle

    Not 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 Statistics

    Chuckie
    Participant

    @ajtruckle

    Further 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.

Viewing 25 replies - 26 through 50 (of 395 total)