Chuckie (@ajtruckle)

Forum Replies Created

Viewing 25 replies - 201 through 225 (of 399 total)
  • @ajtruckle

    Participant

    Gd toolbox does it but is not free.

    Not ideal but I edited the description for the parent forum and added manual links.

    I am kind of annoyed with myself because I figured it is not hard to use the right sql query to build a HTML snippet in php and put it in the right place.

    But I don’t know what hook to use and I don’t know enough about the database structure to build the sql query.

    If I could be put in the right direction I might be able to knock up the php needed.

    @ajtruckle

    Participant

    Spam users. I get them all the time.

    @ajtruckle

    Participant

    Any direction please? Thanks.

    In reply to: User Statistics

    @ajtruckle

    Participant

    I can’t help because I am not in a position to offer support. Not enough knowledge. Be like in a rowing boat without a paddle!

    In reply to: User Statistics

    @ajtruckle

    Participant

    Thanks. 🙂

    Why can’t those changes be put into the official plugin and it be reactivated in the plugin directory?

    In reply to: User Statistics

    @ajtruckle

    Participant

    Thanks, so something like this:

    // Actually build all of this HTML
    function build_html() {
        
        $this->sort_users();
        $data = $this->stats_builder();
        $HTMLOutput = "";
        
    	if (is_user_logged_in())  {
    		if ( is_bbpress() && current_user_can( 'spectate' ) ) {
    			foreach( $data as $key => $html ) {
    			   $HTMLOutput .= "<div class='bbpas-" . $key . "' id='bbpas-" . $key . "'>" . $html . "</div>";
    			}
    		}
        }
    	
        return $HTMLOutput;
    }

    Yes?

    In reply to: User Statistics

    @ajtruckle

    Participant

    I confirm that that works. No if no one is logged in it will not show the user statistics.

    The only outstanding issue IMHO is that we should somehow test if the user is not “blocked” because I don’t think a blocked user should have the right to see the stats or any log activity.

    How do we test if the user is “blocked”?

    In reply to: User Statistics

    @ajtruckle

    Participant

    Notice this code is actually commented out?

    //if (is_user_logged_in()) {

    That must have been done for a reason.

    In reply to: User Statistics

    @ajtruckle

    Participant

    Look at the function build_html():

            // Actually build all of this HTML
            function build_html() {
                
                $this->sort_users();
                $data = $this->stats_builder();
                $HTMLOutput = "";
                
    			//if (is_user_logged_in())  {
    
    				foreach( $data as $key => $html ) {
    				   $HTMLOutput .= "<div class='bbpas-" . $key . "' id='bbpas-" . $key . "'>" . $html . "</div>";
    				}
                //}
    			
                return $HTMLOutput;
            }

    It calls sort_users(); That in turn does a select query to get a list of active users:

            private function sort_users() {            
                
                // Set the active users
                $this->_activeUsers = $this->get_ActiveUsers();
                
                // Work out the longest time possible for a user to be classed as active
                $active_timeframe = strtotime( $this->_sqlTime ) - ( $this->parent->option['user_inactivity_time'] * 60 );

    At no point can I see anywhere that it checks to see if the active user is logged in and not blogged in the forum. It should be doing these tests because it should not be exposing user names.

    You can see it with my site if you use private mode.

    This has to be fixable and I don’t understand why it was never implemented in the first place really. I just don’t know how to do it.

    In reply to: User Statistics

    @ajtruckle

    Participant

    I am very sure! Easy to test too. Started Firefox and initiated a private browser. Navigated to my site (where no user is logged in), clicked on the forum (where I have 1 pubic forum with FAQ info) and the stats show.

    @ajtruckle

    Participant

    This works:

    https://www.publictalksoftware.co.uk/?bbpnns-login=1&redirect_to=https://www.publictalksoftware.co.uk/support-forums/topic/xxx/#post-4784

    In reply to: User Statistics

    @ajtruckle

    Participant

    Yes. I wish I had enough confidence to delve in with this issue myself. It seems it is going to be a simple fix:

    display stats = no
    is user logged in?
      is user forum role not blocked?
        display stats = yes
    
    if display stats = yes
      show stats

    That would be the simplest solution.

    In reply to: Managing users

    @ajtruckle

    Participant

    I think you just need to google for the plugins and try them.

    I use Theme My Login for managing the login etc.

    Theme My Login

    I use WP Approve User to add control:

    WP Approve User

    I use WP Security Question for the spam side of things:

    WP Security Question

    I customised my user table to show the security question answers in a new column.

    There are probably other solutions, of which are paid, but the above help me sufficiently (for now).

    In reply to: HTML in text

    @ajtruckle

    Participant

    I have experienced this too

    In reply to: Code example window

    @ajtruckle

    Participant

    This is answered here:

    Syntax Highlight

    In reply to: Syntax Highlight

    @ajtruckle

    Participant

    I just wanted to point out that Enlighter is a fantastic plugin for syntax highlighting.

    Enlighter – Customizable Syntax Highlighter

    The current version works with bbPress 2.6 although it has a conflict of interest with one feature. It is discussed here:

    https://github.com/EnlighterJS/Plugin.WordPress/issues/211

    At the moment I don’t really know how I can supress the conflicting CSS styles referred to in the above link.

    I should also point out that at the moment the version 4 beta is not working with bbPress yet. Although, it is supposed to resolve the aforementioned issue concerning conflicting CSS styles.

    Eitherway, I am happy to know about Enlighter. Thumbs up from me!

    @ajtruckle

    Participant

    Any clarification about this please? Thanks.

    @ajtruckle

    Participant

    You don’t have to manually moderate. You can switch off moderation for bbPress. There is a temporary plugin to do it. I have moderation switched off.

    Up to you.

    @ajtruckle

    Participant

    Glad I was able to help John!

    @ajtruckle

    Participant

    Specifically, I would like “Sub forums:” to have a one line gap:

    ===
    Have you found a bug in the Midweek Editor? Or do you have a suggestion for a new feature? Then this is the forum to use.

    Sub forums:
    ===

    @ajtruckle

    Participant

    bbPress Notify (No Spam) plugin supports that out of the box.

    @ajtruckle

    Participant

    According to the trac it states:

    Add bbp-has-subforums if forum has subforums

    Why am I not seeing this class present in the latest version of bbPress 2.6.4?

    @ajtruckle

    Participant

    @ajtruckle

    Participant

    I found some links about this with custom code but I don’t know how reliable that is because someone spoke about getting a white screen.

    I think I would be happy just to have some kind of symbol next to the forum to indicate it has sub-forums. That would be less code requirement and might be able to be part of bbp style pack as an option?

    In reply to: 2.64 thank you!

    @ajtruckle

    Participant

    Seems fine for me.

Viewing 25 replies - 201 through 225 (of 399 total)