Forum Replies Created
-
Author
-
MelamoryParticipant
Also decided to share final version of it(in case someone needs it):
/* Enabling to see authors of last posts and their avatar */
#bbpress-forums .bbp-forum-info .bbp-forum-content, #bbpress-forums p.bbp-topic-meta {
display: block;
}
#bbpress-forums li.bbp-forum-freshness .bbp-topic-meta, #bbpress-forums li.bbp-topic-freshness .bbp-topic-meta {
display: block;
}
#bbpress-forums p.bbp-topic-meta .bbp-author-avatar
{
display: inline-block;
padding: 0 10px;
}/* Making avatars rounded */
#bbpress-forums p.bbp-topic-meta .bbp-author-avatar img {
border-radius: 100%;
}
#bbpress-forums li.bbp-topic-freshness .bbp-author-avatar img {
border-radius: 100%;
}MelamoryParticipantThis now works absolutely as i wanted it.
Thank you very much, sharmstr, you are making ppl happy 🙂MelamoryParticipantWe almost did it!
what i am missing here:
in main theme(left side) it should be this way:
line 1: <Topic name>(now ok)
line 2: <Author:>(need to make it line 2) <Avatar>(need to make it line 2) <Nickname>(line 2) <where>(need to make it line 2)in refresh(right side):
line 1: <date and time>(now ok)
line 2: <Avatar>(now ok) <Nickname>(now on line 3)MelamoryParticipantThanks, shar, i added this block to Kleo-child:
/* Making avatars rounded */
#bbpress-forums p.bbp-topic-meta .bbp-author-avatar img {
border-radius: 100%;
}
#bbpress-forums li.bbp-topic-freshness .bbp-author-avatar img {
border-radius: 100%;
}
Exactly what i wanted.It would be just perfect if you could provide me with info how to make them new line(avatars, name and where info).
MelamoryParticipantOkay, thanks for the answer for p2, i will try to “dig it out” in this direction.
Could you please be more exact in p1 – where should i put border-radius:100%? And how to make it start with the new line(i man what i activated here:
#bbpress-forums p.bbp-topic-meta .bbp-author-avatar
{
display: inline-block;
padding: 0 10px;
}#bbpress-forums li.bbp-forum-freshness .bbp-topic-meta,
#bbpress-forums li.bbp-topic-freshness .bbp-topic-meta{
display:inline-block !important;
}
)Thanks
MelamoryParticipantHello, sharmstr!
Thanks for your quick reply.I tried what you said, so after
– Theme Options -> bbPress -> Layout: Left Sidebar
– Settings -> Forums -> Enable forum root should show topics by freshness
i see something like this
which is not actually what i try forum to look like as i need to see main forums(root) in the left side and last replies in the main.
Maybe i am just missing what i need to do with your answer, could you be so kind to explain it a bit deeper to me?And i still looking forward to some changes with last topic poster and his avatar(#1 of my topic), – i am also wondering it there a way to show avatar rounded(in circle way)
Thanks.
MelamoryParticipantOkay, well. Thanks. Ill try to watch for it now. Still havent got who was the culprit :/
MelamoryParticipantBut we were setting it to 0 already although they were off(notifications)
Now CPU load seems fineMelamoryParticipantOkay, to sort it out.
Seems that you solved problem with GET:/wp-admin/admin-ajax.php?action=kleo_bp_notifications_refresh¤t=0 – see none of them anymore. Can you please again describe what was wrong?But the problem with value 20000 in file that causes high CPU usage is still here – after setting it back to default(20000) my CPU usage raised from 2-5% to 50-95% again.
MelamoryParticipantThats strange.
Here – http://5.63.155.58/performance-status?info=30&sort=1&tp=0&prd=1&prd_b=&prd_e=&host=&script=&uri=&mode=0
i dont see any refreshes anymore. So, were the problem because notifications were turned off?MelamoryParticipantPlease, take a look now.
I changed that file(menu notifications.php) back to 20000.
Now again CPU usage 90%.
And no notifications in the menu.Can you see it?
MelamoryParticipantStill waiting for an answer when you could look at my site strange activity.
Thanks.MelamoryParticipantHello, guys. I can give you access, ofc.
But keep in mind that changing setting of menu_notifications.php(mentioned above interval) really saved my life with this site(idk why, thats one of the questions)Please, pm me or give me any other wait to contact you with what info you need to access this site.
Many thanks for your work.
MelamoryParticipantQ1 – “What it returns” – I don’t know. How to check?
Q2 – “Page it generated” – It is autogenerated. I guess it looks at main page. Actually if i am looking on what is going on on site with Chrome Developer functions i can see this php script runs.
Q3 – “IP address who generated” – Again – that shows me this mod_performance. I dont see there any option to see who actually generated this script. If you could show me how to do that – i would show you.
Q4 – “PPl on site” – It is 3-10 ppl online, i even checked it when i was on site alone – it were still every 20 seconds.Sorry that i can’t anwer this, – i am somewhat new to technology.
MelamoryParticipantYes, it looks like you are right. Hope to know answer why is it triggered every 20 seconds or even more often still.
I am also wondering what i really changed in menu_notifications.php and why it helped me so much? I can make short clip or stream it to show that it really somehow lowered my cpu usage by httpd for 50-80%.
MelamoryParticipantSharmstr
Tried setting it to 6000 as you asked. Still see same every 20 seconds activity.
I am not telling that my CPU usage and weak page time is a result of this activity, but i see nothing else with mod_performance.MelamoryParticipantSummary
Problem
Kleo causes server instability:
* High CPU Load
* High Memory LoadSystem
Hardware:
* VPS server
* 2GHz CPU
* 512Mb RamSoftware:
* Centos 6 86_64
* Apache 2.2
* MySQL, Php
* ISP ManagerMonitoring:
1) Top/ISP Manager -> Proccesses: shows httpd(from 4 to 5) “eating” 30-50% CPU each and ~ 100mb Ram
2) Log check shows nothing interesting except for lots of internal dummy connections in httpd Access Logs(maybe its not connected with main problem)
3) Mod_performance results can be found here(live) and they show kleo_bp_notifications_refresh used by admin_ajax.php every 20 seconds as a main cpu usage.
4) Site load time is weak(2-6 seconds) and sometimes this CPU peak loads cause server to be unreachable(thus using TS server installed there to crash as well)Actions:
1) Changed prefork httpd.conf(mimimized them) to:
<IfModule prefork.c>
StartServers 1
MinSpareServers 1
MaxSpareServers 2
ServerLimit 64
MaxClients 64
MaxRequestsPerChild 0
</IfModule>from
<IfModule prefork.c>
StartServers 4
MinSpareServers 4
MaxSpareServers 6
ServerLimit 128
MaxClients 128
MaxRequestsPerChild 1000
</IfModule>Result: httpd instances gone from 4-5 to 2 in top.
2) Tried increasing Max Memory allowed in wp-config.php up to 256M
Result: none.3) Changed notification time to 0 here
Result: none, still same here4) Changed Value in …/wp-content/themes/kleo/lib/plugin_buddypress/menu-notifications.php
from
add_filter( ‘kleo_localize_app’, ‘kleo_bp_notif_refresh_int’ );
function kleo_bp_notif_refresh_int( $data ) {
$data[‘bpNotificationsRefresh’] = sq_option( ‘bp_notif_interval’, 20000 );return $data;
}
to
add_filter( ‘kleo_localize_app’, ‘kleo_bp_notif_refresh_int’ );
function kleo_bp_notif_refresh_int( $data ) {
$data[‘bpNotificationsRefresh’] = sq_option( ‘bp_notif_interval’, 2000000 );return $data;
}
Result: caused httpd proccesses to “eat” only 1-2% CPU, but still same here(shows some notifications pushed by admin_ajax.php every 20 secongs)5) Tried to comment/delete section from …/wp-content/themes/kleo/lib/plugin_buddypress/menu-notifications.php:
/* Refresh notfications by AJAX */
add_action(‘wp_ajax_kleo_bp_notifications_refresh’, ‘kleo_bp_notifications_refresh’);
…
Result: no changesResume/questions:
1) Why page load time still so weak? You can try it here: http://www.noremorse.ru
2) Why mod_performance still shows notifications pushed and CPU loaded every 20 seconds?
3) What my changes in file(20000 -> 2000000) caused and why httpd CPU usage drastically decreased?Sorry for such a long post, but i am trying to give as much information as i can.
MelamoryParticipantIt is already set up there as 0.
And i still see something pushes this notifications.
What else could it be?MelamoryParticipantThanks, sharmstr.
Maybe it is set to deal with min version, but it actually helped me(changin value from 20000 to 2000000) a lot. I just tried to set it back and again – 90-100% cpu load.Is there a way to turn off this notifications? The ones that i see here
MelamoryParticipantA little update.
I found menu-notifications.php in lib/plugin-buddypress/
Inside this php i see kleo_bp_notification_refresh.
I tried to comment this action but it ain’t help.Also i noticed that refresh interval for app.js here can be changed:
$data[‘bpNotificationRefresh’] = sq_option(‘bp_notif_interval’, 20000);By changing time here from 20000 to 2000000 i managed to stop httpd proccesses load on my server to 20-30% cpu.
But still time to load page(you can see it also) is not the best.
And if i am looking at heaviest scripts(please, take a look here – http://5.63.155.58/performance-status?info=30&sort=1&tp=0&prd=1&prd_b=&prd_e=&host=&script=&uri=&mode=0) i see that this action is being repeated every 20 seconds.
What can it be and how to “ease” it? -
AuthorPosts