Resource icon

[RainDigitalDesign] User Activity (Users Viewed, Viewing Thread) 1.1.5

No permission to download
The new version is great! How i can change the size of avatars? Seems a little too big for me. :p

In extra.css or raindd_threadactivity_container.css do something like:

.viewContainer .avatar img,
.readContainer .avatar img
{
width: 32px;
height: 32px;
}

I just spotted some inline css I left behind while testing styling original.. oh dear :p Not important I will clean it up on the next release. I did say it would be refined!
 
How much additional load does this put on the server? We are running a big board with up to 1400 users online during peak hours. One of our add-ons has been causing some sort of PHP memory issue, and another we had tried had a poorly written query that literally stalled our forum due to MySQL backing up.

Cool add-on, we need this to replace the older one (now unsupported) which is now throwing errors in our forum. We may just enable this for the staff, however, if that keeps resource usage lower.
 
it is resource hog?? and it is works on 1.3.4

For your second question, I would say so:

vptC6ns.png
 
How much additional load does this put on the server? We are running a big board with up to 1400 users online during peak hours. One of our add-ons has been causing some sort of PHP memory issue, and another we had tried had a poorly written query that literally stalled our forum due to MySQL backing up.

Cool add-on, we need this to replace the older one (now unsupported) which is now throwing errors in our forum. We may just enable this for the staff, however, if that keeps resource usage lower.

i am on VPS 2GB memory, runing 3 sites, dont want resource hog

I am NOT the person to answer the question as I am not a mysql expert. The query for who has read a thread previously is very low on resource usage. However for a large site this is also likely to be the less interesting feature anyways. If the feature was core it would likely be no different. On a large site however keeping the user read data for a length of time (default is 30 days, i have mine set to 3 years) is likely going to make for a very large table.

The query for who is reading a thread however is a much different story. Its searching a table for matches which means each row in the table matching the controller (thread controller in this case) we select, has to be evaluated. This under the best conditions is not ideal. If the feature ever became core I would hope they would to writing content id's to their own column as Xon pointed out. Having full url strings is great for linking a users activity but having to search them for just a thread ID is not. The solution will come in a future version where we write our own data. Trading search performance for a little write performance which should be well worth it. Chances are a few hundred of your 1200 users are not actually viewing content which means less search queries than you think. But the session table will be longer than a less active site which will effect search performance.

Lexy as far as your ram usage goes. It would be very easy to test this, install it and enable it during a busy period. I don't have 3 sites running on only 2GB of ram. About the only thing I own with that amount of ram is my phone. My backup webserver has 16GB of ram. The only active site I work on usually only has 100 to 200 people active in a 1 hour period at best so I don't have anything to compare to.
 
very ugly in dark themes no visible who was viewed and otherview option, how to change color to be visible
 
The background and surrounding container is a .secondaryContent class div. So whatever your theme's secondaryContent is styled as will be inherited. But yeah I did a horrible job checking this I guess.

The text is set to {xen:property primaryLight} which I personally would think would be set to a readable color as it is on light theme's. But apparently not. I checked against Runaway and you are right, some dark themes don't work well:
runaway.webp

So I checked against a friends site who runs a somewhat dark theme:
47r.webp

Now their container background was inherited just fine. However they modified the color of the H3 text with:
Code:
.viewContainer h3, .readContainer h3 {
font-size: 10pt;
color: #3b8aff;
padding-bottom: 2px;
margin-bottom: 5px;
border-bottom: 1px solid rgb(3, 40, 109);
}

.viewContainer h3 .footnote, .readContainer h3 .footnote {
font-size: 12px;
color: rgb(200,200,200);
margin-top: 5px;
}

On our site because I used a readable color for the text, I only had to change the container to suit our style:
default.webp

As I said since the H3 color was already readable I just added rounding to the corners and a background:
Code:
.section.secondaryContent.viewContainer,
.section.secondaryContent.readContainer
{
    background: rgb(9, 9, 9) url('styles/tbgremastered/xenforo/elements/secondarygradient.png') repeat-x Top;
}

div.viewContainer,
div.readContainer
{
    border-radius: 5px;
}


There are many ways to style the container but the CSS file is raindd_threadactivity_container.css

The view container is .viewContainer and the read container is .readContainer

The text color can be changed like:
Code:
.viewContainer h3, .readContainer h3 {
color: #3b8aff;}

I will see if there are better choices for the default css, however I designed it to work with the default theme and until now had not noticed any problems on anyone elses site.
 
so i need just add code
Code:
.viewContainer h3, .readContainer h3 {
color: #3b8aff;}

Or whatever other color you want. You can probably add that to extra.css with !important:
.viewContainer h3, .readContainer h3 {
color: #3b8aff; !important}
[/CODE]

Or just edit the color in the raindd_threadactivity_container.css you can use an html color code if you want or you can use a Xenforo color property from your theme instead. No need to add the !important when editing raindd_threadactivity_container.css

If you can show me the site you are doing this on and which themes I can probably help you pick out the color, etc that matches your theme.
 

For the Darkness theme it seems like the content color is #cccccc or u can also use @primaryLighterStill for that theme.

So edit raindd_threadactivity_container.css with:
Code:
.viewContainer h3,
.readContainer h3
{
    font-size: 12pt;
    color: @primaryLighterStill;
    padding-bottom: 2px;
    margin-bottom: 5px;
    border-bottom: 1px solid @primaryLighterStill;
}

.viewContainer h3 .footnote,
.readContainer h3 .footnote
{
    font-size: 12px;
    color: @primaryLighterStill;
    margin-top: 5px;
}

I think maybe the line under that should be changed to match the container color. So maybe change:
border-bottom: 1px solid @primaryLighterStill;
to
border-bottom: 1px solid #565545;

So here is a before and after for those 2 edits:
Untitled-4.webp

So:
Code:
.viewContainer h3,
.readContainer h3
{
    font-size: 12pt;
    color: @primaryLighterStill;
    padding-bottom: 2px;
    margin-bottom: 5px;
    border-bottom: 1px solid #565545;
}

.viewContainer h3 .footnote,
.readContainer h3 .footnote
{
    font-size: 12px;
    color: @primaryLighterStill;
    margin-top: 5px;
}

Your colors for the other theme will be different. I installed and gave you one example. i hope you can handle the other one yourself.
 
where i can change words, users who are viewing this thread and users whoa have read this thread
 

Similar threads

Back
Top Bottom