News:

Wondering if this will always be free?  See why free is better.

Main Menu

How to remove "Recent Posts" manually

Started by Sono, December 16, 2020, 02:19:09 PM

Previous topic - Next topic

Sono

I know you can remove Recent Posts if you set their number to 0, but I have a mobile theme installed, and interestingly even if I set the number to 0, it still displays the Recent Posts. Where can you remove the queries that checks the recent posts and display them? I want to check them so that I can search for similar ones in the mobile theme and remove manually. I want to do it to make my forum faster.

shawnb61

Alternate suggestion - use the upshrink button.  Maybe change its default, so it's up by default.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Kindred

Thing is... the recent posts are not searched for in the THEME....    they are loaded into an array in a SOURCES file, the THEME (template) files just call the contents of the array.

The recent posts is part of the infocenter. You can remove the DISPLAY code from Boardindex.template.php...    however, it won't "speed up" anything since you're only removing the display.
Сл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."

Sono

I managed to solve this. Interestingly, I had to go to the Admin separately in the desktop and mobile theme as well, and set Recent Posts to 0 in both. When I set it only in one of them, it had no effect on the setting in the other theme. I don't know why it is so, but probably because my mobile theme is not 100% a usual theme, I had to install it as a mod, not as a theme.

Kindred

well, the NUMBER is set in the THEME settings, so yes...    setting it on one theme won't affect other themes.
Сл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."

Sono

So when the number is set to 0, is it still looking for recent posts anyway, or in this case the process is stopped? So is this the way to gain some speed, or you need to kill the process loading the stuff into the source file?

Kindred

Сл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."

Sono

On some old mobile devices the typing is slow. Slower than in case some other sites, like Gmail, for example. I want to speed thigs up to make typing not to lag that much.

Aleksi "Lex" Kilpinen

That would sound like a problem with the theme vs. the phone's capabilities - nothing you can really fix by removing functionality in SMF.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Sono

Could you at least suggest wich directions to go, what to check in case of the theme then? It is a simple theme, non animated, why is it lagging then on typing? I guess, the typed text is not forwarded in real time to the database before you submit it, so I assume no processes are happening during typing. So why is it still lagging? ;D :D

Aleksi "Lex" Kilpinen

Quote from: Sono on December 18, 2020, 08:32:53 AM
Could you at least suggest wich directions to go, what to check in case of the theme then?
Not really, can't help much as I don't know your theme or the phone, or why it is lagging - I can say that I know some older phones have real problems with certain input boxes, and that's just the way it is.

Quote from: Sono on December 18, 2020, 08:32:53 AM
I guess, the typed text is not forwarded in real time to the database before you submit it, so I assume no processes are happening during typing. So why is it still lagging? ;D :D
Yeah, you hit the nail on the head there - Typing a post, does nothing more than show letters on your screen, until you actually press a button to post, preview or spell check.
That is why you can't really do much on the SMF side - The problem is with the phone.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: