Title: jamesdoesdesign's Replies | WordPress.org

---

# jamesdoesdesign

  [  ](https://wordpress.org/support/users/jamesdoesdesign/)

 *   [Profile](https://wordpress.org/support/users/jamesdoesdesign/)
 *   [Topics Started](https://wordpress.org/support/users/jamesdoesdesign/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jamesdoesdesign/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jamesdoesdesign/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jamesdoesdesign/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jamesdoesdesign/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jamesdoesdesign/favorites/)

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Like And Who Likes] Placement of like button](https://wordpress.org/support/topic/placement-of-like-button/)
 *  Thread Starter [jamesdoesdesign](https://wordpress.org/support/users/jamesdoesdesign/)
 * (@jamesdoesdesign)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/placement-of-like-button/#post-10135291)
 * I was able to move the position of the like button itself into the reply content
   by changing around some code. I’m not a code shark but I gave it an attempt that
   turned successful.
 * I changed:
 *     ```
       if ( $settings->show_in_bbp_post ) {
       add_filter( 'bbp_topic_admin_links', [ $this, 'add_likes_to_bbp_posts' ], 10, 2 );
       add_action( 'bbp_reply_admin_links', [ $this, 'add_likes_to_bbp_posts' ], 10, 2 );
       add_action( 'bbp_theme_before_reply_content', [ $this, 'add_likes_to_bbp_posts' ] );
       ```
   
 * to:
 *     ```
       add_filter( 'bbp_topic_content', [ $this, 'add_likes_to_bbp_posts' ] );
       add_filter( 'bbp_reply_content', [ $this, 'add_likes_to_bbp_posts' ] );
       add_action( 'bbp_theme_before_reply_content', [ $this, 'add_likes_to_bbp_posts' ] );
       ```
   
 * and then changed the output for function add_likes_to_bbp_posts:
    from:
 *     ```
       public function add_likes_to_bbp_posts( $links = null, $reply_id = null ) {
       $this->component = self::BBP_POST;
       $id = bbp_get_reply_id();
       $liked_users = $this->get_likes( $id );
   
       if ( current_filter() == 'bbp_theme_before_reply_content' ) {
       echo $this->who_likes_list( $id, $liked_users );
       } else {
       $links['like'] = $this->like_button( $id, $liked_users );
       return $links;
       }}
       ```
   
 * to:
 *     ```
       public function add_likes_to_bbp_posts( $content ) {
       $this->component = self::BBP_POST;
       $id = bbp_get_reply_id();
       $liked_users = $this->get_likes( $id );
   
       echo $this->like_button( $id, $liked_users );
       echo $this->who_likes_list( $id, $liked_users );
       return $content;
       }
       ```
   
 * Seems to still be working fine and the like button is right above the users liked,
   inside at the top of the reply/post.
 * > [View post on imgur.com](https://imgur.com/HUGU2lf)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Troubleshooting slow site.](https://wordpress.org/support/topic/troubleshooting-slow-site/)
 *  Thread Starter [jamesdoesdesign](https://wordpress.org/support/users/jamesdoesdesign/)
 * (@jamesdoesdesign)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/troubleshooting-slow-site/#post-8962421)
 * Hi,
 * I simply used CSS to hide the name. But, if you wanted to dive into the template
   files of buddypress core, you can find where the names are generated from in 
   the php files and remove that line so that it really does not generate the name.
   However, that is editing the template files. So any time you have a buddypress
   update, it could potentially override that line.
 * I personally edit the template files and keep a backup of them in a remote location.
   So that I can update the plugin and then instantly FTP the backup files that 
   I made edits to almost simultaneously, so that it instantly brings it back to
   how it was with the edited file after the update.
 * With CSS, all I do is display:none; on the name. However you can still see the
   name if you know how to view the page source or inspect the element with a code
   editor.
 * If you need more help feel free to ask.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[bbPress Advanced Statistics] Limit the amount of users displayed](https://wordpress.org/support/topic/limit-the-amount-of-users-displayed/)
 *  Thread Starter [jamesdoesdesign](https://wordpress.org/support/users/jamesdoesdesign/)
 * (@jamesdoesdesign)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/limit-the-amount-of-users-displayed/#post-7567893)
 * Hi Jake,
 * Thank you for the update! Sorry I didn’t respond sooner! I did get the chance
   to use both the beta and I have now updated to the new version.
 * I have it setup now using the members link with 25 active within the last hour
   showing and the rest linking to members page. This works really nicely! It really
   cleans up that bottom part from displaying all of those usernames as well.
 * Thank you for the link back to the website! That is much appreciated!
 * And also thank you so much for the update! You have done some really amazing 
   work with this plugin!
 * Thank you,
    James
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[bbPress Advanced Statistics] Limit the amount of users displayed](https://wordpress.org/support/topic/limit-the-amount-of-users-displayed/)
 *  Thread Starter [jamesdoesdesign](https://wordpress.org/support/users/jamesdoesdesign/)
 * (@jamesdoesdesign)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/limit-the-amount-of-users-displayed/#post-7567885)
 * Hey Jake,
 * Sounds good. I agree with the multiple queries though. The less the better. You
   know, making one query to a database isn’t bad. However having multiple plugins(
   which most bbpress users do have..) requires more connections to the database
   on page load. So while yours may only be one, that forum has several other plugins
   installed which also make a connection. You have to have this though, otherwise
   you wouldn’t be able to grab the data which I totally understand. So grabbing
   it once instead of 2 or more is the better option.
 * It’s especially taxing on a larger database over 700mb. It’s more susceptible
   to getting the famous database connection error, with each load and query added.
   If the hidden data and the shown data is only being called one time for either
   options, that is probably okay as well. I didn’t know if it was possible to turn
   off one section without it making a query while the other section was activated.
   But since you said it uses one query, that makes sense.
 * I guess if hiding it is the only solution without using more queries than that’s
   fine as well. I do have quite a bit of items hidden anyways.
 * Let me know! I look forward to checking it out! I do use a test website as well
   to test out everything before pushing plugins/updates to the live site to prevent
   any downtime.
 * -James
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[bbPress Advanced Statistics] Limit the amount of users displayed](https://wordpress.org/support/topic/limit-the-amount-of-users-displayed/)
 *  Thread Starter [jamesdoesdesign](https://wordpress.org/support/users/jamesdoesdesign/)
 * (@jamesdoesdesign)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/limit-the-amount-of-users-displayed/#post-7567879)
 * Hey,
 * Yes… I realized you might be able to see it there after I made the post. haha!
 * Regarding posting the forum on your plugin page, sure! It isn’t the greatest 
   content in the forum posts in the world but it really looks nice and functions
   well and has quite a bit of traffic daily, so it is a great example to use. So
   if you don’t mind the bad content aspect of it, than absolutely you can feature
   it!
 * I really look forward to seeing the updates that you come up with! Glad I could
   provide some more options for you to look into for expansion! Like I said I’m
   happy that I even have that ability to show the member stats on the site and 
   it functions correctly. so I’m grateful for that alone. haha! Good job on the
   plugin and thank you for responding! I look forward to seeing updates!
 * Thank you,
    James
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[bbPress Advanced Statistics] Limit the amount of users displayed](https://wordpress.org/support/topic/limit-the-amount-of-users-displayed/)
 *  Thread Starter [jamesdoesdesign](https://wordpress.org/support/users/jamesdoesdesign/)
 * (@jamesdoesdesign)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/limit-the-amount-of-users-displayed/#post-7567877)
 * Hi Jake,
 * You can see the forums it is installed on without me providing a link to the 
   forums? Interesting… That is cool if you can! I didn’t know that.. Well, Thank
   you! Yes very very busy forum. There is a lot of custom built items and plugins
   that help power this monster. haha!
 * I noticed on a few other forums that I’ve seen around, they have a latest member
   section as well. But they have it setup so that you only see 10 or 15 what ever
   number you choose and then a link or button that goes over to a page showing 
   a full list. The full list shows last online time, username and pagination of
   users currently online. I know this is quite a lot more options than what you
   currently have and I am not asking you to go out of your way to add any of these
   capabilities. I am just following up on what I see in other forums, which I have
   never seen the capability of even showing that info over here until using your
   plugin, which is great!
 * For the time being yes, I have set the forum to show in the last hour which generally
   keeps the numbers around 400-700 showing in the last hour. I’ve also moved it
   out of the sidebar and put it on the main forum page only and then styled it 
   up a bit to match. So it only shows on the home forum page instead of loading
   every page and for every user. To take a bit of load off of the database and 
   mysql as well. Which that seems to work a bit better on displaying them to because
   they have the full span of the content section instead of a smaller width sidebar.
 * I thought about just wrapping your code up in a div with a class and then wrapping
   each section of the plugin (But I’m not a plugin expert) so that yes, I could
   hide that section. But then I also thought, if I hide that section with css like
   display:none; Essentially it’s still loading all of that data for all of those
   users so it’s a waste not to display it really. haha!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Troubleshooting slow site.](https://wordpress.org/support/topic/troubleshooting-slow-site/)
 *  Thread Starter [jamesdoesdesign](https://wordpress.org/support/users/jamesdoesdesign/)
 * (@jamesdoesdesign)
 * [10 years ago](https://wordpress.org/support/topic/troubleshooting-slow-site/#post-7379401)
 * Seems that way even during the day time as well. That was the bulk of the issue
   I’m guessing. I haven’t gotten engintron to install correctly even following 
   the [install instructions](https://github.com/engintron/engintron) It won’t install
   for some reason I get:
 *     ```
       Resolving raw.githubusercontent.com... XX.XXX.39.133
       Connecting to raw.githubusercontent.com|XX.XXX.39.133|:443... connected.
       HTTP request sent, awaiting response... 200 OK
       Length: 20305 (20K) [application/octet-stream]
       engintron.sh: Permission denied
   
       Cannot write to “engintron.sh” (Success).
       ```
   
 * So I can’t post back any results on that yet. However it does look very useful
   and it looks like it could really help. I wish I could get it to work correctly.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Troubleshooting slow site.](https://wordpress.org/support/topic/troubleshooting-slow-site/)
 *  Thread Starter [jamesdoesdesign](https://wordpress.org/support/users/jamesdoesdesign/)
 * (@jamesdoesdesign)
 * [10 years ago](https://wordpress.org/support/topic/troubleshooting-slow-site/#post-7379382)
 * I took this information to my host. They did some more tests. They said cpu looked
   normal.
 * “it appears that you would only have 8 http requests workers. Did you happen 
   to set this to 8?”
 * “Me: No, I didn’t.”
 * “Would explain the slow connecting to the server, if all 8 requests are full 
   in someone trying to access the site, apache says HEY wait get in line, I can
   only listen to 8 at once.”
 * ” Increased your apache listener workers.”
 * ” It should have been set to default, which would be 150 atleast, but it would
   have been set to 8″
 * “The only other thing I would be able to suggest would be something like. Engintron”
 * Seems that increasing the apache listener did help improve the initial load time
   and proceeded to load the rest of the page a bit quicker.
 * I am going to be installing the engintron next and see if that helps anymore.
   I will report back with results.
 * Thank you for your help! It has helped narrow down problems for the host.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Troubleshooting slow site.](https://wordpress.org/support/topic/troubleshooting-slow-site/)
 *  Thread Starter [jamesdoesdesign](https://wordpress.org/support/users/jamesdoesdesign/)
 * (@jamesdoesdesign)
 * [10 years ago](https://wordpress.org/support/topic/troubleshooting-slow-site/#post-7379292)
 * Does this matter if it’s on the live site or not? Currently almost impossible
   to get into without using ftp and waiting a few minutes for the page to reload.
 * My production site is running the same theme, same settings and same plugins.
   Only difference is the amount of users and traffic obviously. I threw it on there
   to see what it did first..
 * The results:
    Memory used: 11,272,192 bytes. Peak Memory used: 11,272,192 bytes.
 * But what does that show.. I understand that it’s showing how much each one hit
   is using roughly… But any advice on how to fix that? Removing plugins, fixing
   my theme somehow… Is that a lot? I don’t know what to do with that information
   really. Like I said I’m not a developer so this is strange territory for me and
   I’m learning as I go. Thank you for the help and reply!

Viewing 9 replies - 1 through 9 (of 9 total)