News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How to remove elapsed time from a user's statistics?

Started by LuciferMorningstar, November 05, 2023, 06:08:04 PM

Previous topic - Next topic

LuciferMorningstar

Hello everyone.
How can I remove elapsed time from the users' statistics?
Users of my forum don't like it.



Regards.

PS: I'm using SMF 2.1.4 and "Fusion theme".

Kindred

You would have to remove the code from the template in several places, but starting with profile
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

LuciferMorningstar

Quote from: Kindred on November 05, 2023, 06:42:43 PMYou would have to remove the code from the template in several places, but starting with profile
Could you explain better, please?

Antechinus

Code (Add to the end of index.css) Select
#generalstats dt:first-of-type, #generalstats dd:first-of-type {display: none;}

LuciferMorningstar

#4
Quote from: Antechinus on November 05, 2023, 08:04:32 PM
Code (Add to the end of index.css) Select
#generalstats dt:first-of-type, #generalstats dd:first-of-type {display: none;}
Thank you very much, Antechinus.
It worked but, I don't know why, but the graphics came back to its original version (Fusion Theme).
I customized this theme editing the "minfield_XXX" files but, after I added your code in the "index.css" file new "minfield_" files appeard with the original codes.
It is not the first time that happens, everytime I make some important edit the graphics returns to the origin.
It's very stressfull editing again the new "minfield" files everytime.
Is there a way to save the "new" graphics?
Maybe should I open a new thread with this question?
Regards.

PS: I noticed that the elapsed time is still present in the statistics page.
Is there a way to cancel it also from there?

But I wouldn't want that the graphics returns to the origin one more time.
It would be very tiring to change it again for the umpteenth time...

Steve

Turning them off would be the easiest way.

Admin -> Configuration -> Uncheck 'Minimize CSS and JavaScript files'. There's a help button next to that you might want to read.
DO NOT pm me for support!

LuciferMorningstar


Quote from: Steve on November 06, 2023, 08:13:01 AMTurning them off would be the easiest way.

Admin -> Configuration -> Uncheck 'Minimize CSS and JavaScript files'. There's a help button next to that you might want to read.
Will doing this prevent the graphics from returning to the way it was before?
Should I always keep it unchecked?

Sesquipedalian

Turn off minimization, make your changes to the base CSS files, and then turn minimization back on. That will cause new minimized files to be created that reflect your changes in the base files.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

LuciferMorningstar

Quote from: Sesquipedalian on November 06, 2023, 10:32:51 AMTurn off minimization, make your changes to the base CSS files, and then turn minimization back on. That will cause new minimized files to be created that reflect your changes in the base files.
What do you mean with "base CSS files"?
I edited the graphics making changes in the "minfield" files.
When I turn off minimization, the "minfield" files disappear and when I turn on they appear in their original version.
How can I make solid and effective changes?

@rjen

Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Kindred

if you edit the minimized files, then yes - your changes will be lost since the minimized files are created from the base (non-minimized) files
you're not supposed to edit the minimized files.

You turn off minimization.
make edits to index.css and save
then either turn is back on, or leave it off if you intend to keep making edits
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Steve

Just as I said, and click on the little help icon.  ;)
DO NOT pm me for support!

LuciferMorningstar

Thank you very much for you answers, I definitively changed the graphics, editing the index.css .

Is there a way to remove the elapsed time from the forum statistics.
Thanks to Antechinus, I managed to remove the elapsed time but only from user's statistics.

Antechinus

Yes, this will work.
#statistics > .roundframe > div:nth-of-type(7) {display: none;}
Which you could combine with the previous code, like this:
#generalstats dt:first-of-type, #generalstats dd:first-of-type, #statistics > .roundframe > div:nth-of-type(7) {display: none;}
The only catch is it will leave you with an odd number of blocks, so you might want to hide another one as well just for a cleaner look.

For example, if you decided you didn't want the "most viewed topics" block either, you would use this:
#generalstats dt:first-of-type, #generalstats dd:first-of-type,
#statistics > .roundframe > div:nth-of-type(5), #statistics > .roundframe > div:nth-of-type(7) {display: none;}


LuciferMorningstar

Quote from: Antechinus on November 07, 2023, 04:31:43 PMYes, this will work.
#statistics > .roundframe > div:nth-of-type(7) {display: none;}
Which you could combine with the previous code, like this:
#generalstats dt:first-of-type, #generalstats dd:first-of-type, #statistics > .roundframe > div:nth-of-type(7) {display: none;}
The only catch is it will leave you with an odd number of blocks, so you might want to hide another one as well just for a cleaner look.

For example, if you decided you didn't want the "most viewed topics" block either, you would use this:
#generalstats dt:first-of-type, #generalstats dd:first-of-type,
#statistics > .roundframe > div:nth-of-type(5), #statistics > .roundframe > div:nth-of-type(7) {display: none;}

Thank you very much, Antechinus.
May you give me the code to remove also "Forum History (based on server time zone)", please?  :)

You cannot view this attachment.


Kindred

dude... you need to start learning how to use the browser inspector tool  :P
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Antechinus

Sounds like he really just wants to drop the whole statistics page.

Advertisement: