News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Setting for Online users column

Started by Hj Ahmad Rasyid Hj Ismail, August 09, 2010, 09:54:34 AM

Previous topic - Next topic

Hj Ahmad Rasyid Hj Ismail

Online Users Area - Link to Mod

Taken over by: BurkeKnight - BurkeKnight Enterprises from: Joker™

For Support: The mod's Support topic at SMF, or at BurkeKnight Enterprises.

This mod will add some permissions and settings regarding the "Users Online" column in bottom of your forum.

1. You can show Total users online using setting on Configurations > Features and Options > General (SMF 2.0) or Layout and Options (SMF 1.1.x)

2. You can also select which groups can see "Threshold Time".

Permissions for this can be adjusted via Permissions in Admin Panel.
After installing mod only admins can see threshold time by default, you have to enable the option for rest of groups.



Change Log

Version 1.2
- Mod updated for SMF 2.0 final and SMF 1.1.14


This mod is licensed under Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)

punjablovers

Nice Mod thanks, this is exactly what we were discussing some days ago.
But i got some error during installing, screen shot attached.
I am using RC3 with inferno theme.
also having User Online Today Mod.


Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

punjablovers

Sorry for late reply. here is my managesetting.php file.

Joker™

Make backup of your files first.

Install the mod

Find this line in ManageSettings.php

// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!


Add this after the line

array('check', 'enable_total_users'),
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

punjablovers

Issue is, that mod is installing, error screen shot is attached.

Joker™

yeah there is a slight change in your file due to some other mod.So , i'm just telling you that you can make the code change i wrote above manually after installing the mod and it will work fine.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

punjablovers

i can't understand what do you want to say?

Joker™

Make backup of your files first.

Then Install the mod

after doing all this make change in this file

Sources\ManageSettings.php

Find:

// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!


Add this after the line

array('check', 'enable_total_users'),

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

punjablovers

need to install the mod manually,? then i replace the given code?

Joker™

ummm , do one thing install the whole mod manually by parsing it from mod site.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved


punjablovers

Quote from: Joker™ on August 14, 2010, 12:46:26 AM
ummm , do one thing install the whole mod manually by parsing it from mod site.

Well, when i tried to install any mod manually, i got the error in my theme, so if you have little time, please can the do this for me? If Yes, i give you password for this?
Thanks in advance.

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

punjablovers

Quote from: Joker™ on August 15, 2010, 01:09:03 AM
what error did you get ?

I mean to say that i tried to install some of mods manually, and i got error, because, i don't have enough knowledge about coding. So if you have time can you please install this for me manually?

Joker™

Quote from: punjablovers on August 15, 2010, 04:55:08 AM
I mean to say that i tried to install some of mods manually, and i got error, because, i don't have enough knowledge about coding. So if you have time can you please install this for me manually?
I don't know of other mods , but this one has very less modification.Just parse it and see yourself , i don't have time to install it for you .
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Raffoz

i don't understand the first of the 2 feature... :(
what is it?

and: is possible to do that visitors read the name of users online, but making tha neams not clickable (i know how to make them not visible to them the profiles)?
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

Bugo

Display Total users Online » a option that allows you to manage for displaying the total number of online users (including guests).
View Threshold Time » a permission that allows selected groups to view "Users active in past ... minutes" string.

Quote from: Raffaele1977 on September 19, 2010, 07:21:58 AM
is possible to do that visitors read the name of users online, but making tha neams not clickable (i know how to make them not visible to them the profiles)?
Yup :)

Raffoz

MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

Bugo

Open Subs-MembersOnline.php and find block:

        // Some basic color coding...
        if (!empty($row['online_color']))
            $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '" style="color: ' . $row['online_color'] . ';">' . $row['real_name'] . '</a>';
        else
            $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['real_name'] . '</a>';

Replace with:

        // Some basic color coding...
        $link = !$user_info['is_guest'] ? ('<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '"' . (!empty($row['online_color']) ? ' style="color: ' . $row['online_color'] . ';"' : '') . '>' . $row['real_name'] . '</a>') : ('<span style="color: ' . $row['online_color'] . ';">' . $row['real_name'] . '</span>');

Advertisement: