Setting 'Most Online Ever' back to zero.

Started by SDMCC, September 03, 2013, 09:40:39 AM

Previous topic - Next topic

SDMCC

Quote from: margarett on September 09, 2013, 10:39:05 AM
And, you still didn't tell us if you have FTP (or any kind of file manager) access to your files. Not to mention the direct access to the database...
You see, there are some ways to solve your problem, but we need to know what resources you can access...
A FTP account could be available for me to use.
I don't have any file manager.
I have tried using phpMyAdmin but is much to difficult.

Your advice is appreciated for this old man.

margarett

phpmyadmin is not that difficult :P Come on...

If your database is named "smf2", and your table prefix is "smf205_" (mine is :P )
Look at the first image:
- open table "sfm205_settings" (1)
- click "Browse" (2)
- edit the row signalled in (3) so that all data in the table is sent at once. After this, press ENTER (will reload the table data)

After reloading, search for the 3 rows in the second image. Put "0" (without quotes) in all 3.

Txaram!!! :)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Shambles

.. or just PM me your logon credentials and I'll do it for you.

SDMCC

Thank you all for your patience here, particularly Shambles for offering to do it for me, and more so for Margarett for urging me to have a go, which I did most successfully by using the excellent instructions, thank you.

Is there a way by using phpMyAdmin to remove 'Guests'?
Near the bottom of the Board Index page is 'Users Online' with the amount of Guests and Users online, I want to remove the word Guests.
This small forum is totally private but I still get Guests showing as being online, we don't have Guests they are just irritating spambots.

margarett

Yes, you can.
But that's different (and should have its own topic, but who cares? :P )

Edit BoardIndex.template.php
and remove the "Guests" part from this:

', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', comma_format($context['num_guests']), ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . comma_format($context['num_users_online']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

Change it to this:

', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '',comma_format($context['num_users_online']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

SDMCC

It worked just fine.
Thanks, thanks, thanks, thanks and thanks.  :)  :)  :)  :)  :)

margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: