Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Hj Ahmad Rasyid Hj Ismail on August 09, 2010, 09:54:34 AM

Title: Setting for Online users column
Post by: Hj Ahmad Rasyid Hj Ismail on August 09, 2010, 09:54:34 AM
Online Users Area - Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2672)

Taken over by: BurkeKnight (http://www.simplemachines.org/community/index.php?action=profile;u=150637) - BurkeKnight Enterprises (http://www.burkeknight.com/) from: Joker™ (http://www.simplemachines.org/community/index.php?action=profile;u=226111)

For Support: The mod's Support topic at SMF, or at BurkeKnight Enterprises (http://www.burkeknight.com/).

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.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg72.imageshack.us%2Fi%2F41093421.png%2F&hash=2629da1c30d5e7ea505ad724ec2c701d2ef3c6fb)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg72.imageshack.us%2Fimg72%2F2456%2F41093421.png&hash=569562a63b5581c1ec73dd7eebef8acf3b13e032)


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) (http://creativecommons.org/licenses/by-sa/3.0/)
Title: Re: Setting for Online users column
Post by: punjablovers on August 12, 2010, 08:03:59 AM
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.

Title: Re: Setting for Online users column
Post by: Joker™ on August 12, 2010, 08:08:35 AM
attach your ManageSettings.php here
Title: Re: Setting for Online users column
Post by: punjablovers on August 12, 2010, 11:51:30 AM
Sorry for late reply. here is my managesetting.php file.
Title: Re: Setting for Online users column
Post by: Joker™ on August 12, 2010, 12:39:11 PM
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'),
Title: Re: Setting for Online users column
Post by: punjablovers on August 12, 2010, 01:53:08 PM
Issue is, that mod is installing, error screen shot is attached.
Title: Re: Setting for Online users column
Post by: Joker™ on August 12, 2010, 02:30:46 PM
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.
Title: Re: Setting for Online users column
Post by: punjablovers on August 13, 2010, 12:27:12 PM
i can't understand what do you want to say?
Title: Re: Setting for Online users column
Post by: Joker™ on August 13, 2010, 01:07:49 PM
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'),

Title: Re: Setting for Online users column
Post by: punjablovers on August 13, 2010, 05:08:16 PM
need to install the mod manually,? then i replace the given code?
Title: Re: Setting for Online users column
Post by: Joker™ on August 14, 2010, 12:46:26 AM
ummm , do one thing install the whole mod manually by parsing it from mod site.
Title: Re: Setting for Online users column
Post by: Masterd on August 14, 2010, 09:07:05 AM
Nice mod.
Title: Re: Setting for Online users column
Post by: punjablovers on August 14, 2010, 03:52:51 PM
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.
Title: Re: Setting for Online users column
Post by: Joker™ on August 15, 2010, 01:09:03 AM
what error did you get ?
Title: Re: Setting for Online users column
Post by: punjablovers on August 15, 2010, 04:55:08 AM
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?
Title: Re: Setting for Online users column
Post by: Joker™ on August 15, 2010, 05:14:48 AM
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 .
Title: Re: Setting for Online users column
Post by: Raffoz on September 19, 2010, 07:21:58 AM
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)?
Title: Re: Setting for Online users column
Post by: Bugo on September 19, 2010, 09:22:38 AM
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 :)
Title: Re: Setting for Online users column
Post by: Raffoz on September 19, 2010, 01:17:24 PM
1) thanks... :)

2) how?
Title: Re: Setting for Online users column
Post by: Bugo on September 19, 2010, 02:42:12 PM
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>');
Title: Re: Setting for Online users column
Post by: Raffoz on September 19, 2010, 06:13:22 PM
thnaks... :)
Title: Re: Setting for Online users column
Post by: Hj Ahmad Rasyid Hj Ismail on October 08, 2014, 05:48:23 AM
Hiya all.

I am entrusted with this mod now but I haven't have time to look into it deeply yet. I also believe that my brother Joker is a better coder than I am. I will try to do my best in handling this mod (though currently I do not really understand this mod).

Thank you for supporting this mod and do feel free to ask for support.