Mod-Mall.com Posted October 10, 2010 Posted October 10, 2010 File Name: [mm31] Staff Online Sidebar BlockFile Submitter: Mod-Mall.comFile Submitted: 09 Oct 2010File Updated: 29 Jul 2011File Category: Hooks and Plugins This hook adds a new sidebar block on the forum index that displays online staff members (admins and mods)Setup Once installed, you will need to enable it and select your staff groups by going to the following: ACP -> System -> System Settings -> Staff Online Sidebar Block If you notice any issues with your skins after installing this hook, please re-cache all your skins.Note: This doesn't currently support secondary groups, it's on the todo list Any questions / suggestions / issues / etc, feel free to askUpdated to v1.1.2: Block now displays correctly if a member doesn't have a user title setUpdated to v1.1.1: Settings should now appear correctlyUpdated to v1.1: Now includes settings to disable, select staff groups and select the groups that can view the sidebar blockUpdated to v1.0.1: No longer shows staff who are logged in anonymouslyClick here to download this file
Buskopan Posted October 11, 2010 Posted October 11, 2010 showns online even when staff member is invisible ?
G Fox Posted October 11, 2010 Posted October 11, 2010 Looks good, thanks. I'd be curious to know if it respects hidden Admin, or not. I couldn't work it out from the code.
najaru_1 Posted October 11, 2010 Posted October 11, 2010 Like xenforo, good ;) I will install. Alan, can you make the same hook to display all members online in sidebar with avatar? Can be interesting for little community.....
Alan Posted October 11, 2010 Posted October 11, 2010 Updated to v1.0.1 - No longer shows hidden staff showns online even when staff member is invisible ? I've updated the hook so it no longer does that, thanks for letting me know :) Looks good, thanks. I'd be curious to know if it respects hidden Admin, or not. I couldn't work it out from the code. It didn't, it does now :) v1.0.1 respects the anonymous login option Like xenforo, good ;) I will install. Alan, can you make the same hook to display all members online in sidebar with avatar? Can be interesting for little community..... I haven't tested this but in the hook file, find:'where' => "s.running_time > $time AND s.member_group IN ($where) AND s.login_type NOT IN (1)", and replace it with:'where' => "s.running_time > $time AND s.login_type NOT IN (1)", That should display everyone online, regardless of groups (except those logged in anonymously)
najaru_1 Posted October 11, 2010 Posted October 11, 2010 ok thanks, but can be interesting to have a different hook (because this one is very good to display only the sfaff in a unique block with specific title, like now), that display in a different block a list of members, and admin can select in acp what groups will be displayed....
Alan Posted October 11, 2010 Posted October 11, 2010 Give me a day or two and I'll see what I can come up with :)
darkidan Posted October 11, 2010 Posted October 11, 2010 can you add a tab to the admin acp so we can decide whice group can see this block?
najaru_1 Posted October 11, 2010 Posted October 11, 2010 can you add a tab to the admin acp so we can decide whice group can see this block? yes +1
Alan Posted October 11, 2010 Posted October 11, 2010 can you add a tab to the admin acp so we can decide whice group can see this block? yes +1 Done :)Updated to v1.1: Now includes settings to disable, select staff groups and select the groups that can view the sidebar block
Alan Posted October 11, 2010 Posted October 11, 2010 For anyone upgrading to v1.1, you will need to go in to the ACP -> System Settings -> Staff Online Sidebar Block settings and enable the mod, select your staff groups and select the groups that can view the block before it will reappear on your forums.
G Fox Posted October 11, 2010 Posted October 11, 2010 For anyone upgrading to v1.1, you will need to go in to the ACP -> System Settings -> Staff Online Sidebar Block settings and enable the mod, select your staff groups and select the groups that can view the block before it will reappear on your forums. I can't find this setting, strangely, is it meant to be in here?
Alan Posted October 11, 2010 Posted October 11, 2010 Whoops, settings didn't get exported. I've updated the hook to v1.1.1, when you install that, you should then find the settings :)
G Fox Posted October 12, 2010 Posted October 12, 2010 Thanks Alan, I appreciate the work! Installed and tested: works as intended.
G Fox Posted October 12, 2010 Posted October 12, 2010 Hi Alan, I had two staff online and noticed this odd wrapping of images. Might be an HTML issue. The code is below for your convenience.[font=Helvetica]<div class="_sbcollapsable">[/font] <ul class="block_list row1"> <li> <a href="http://mysite.com/user/2-brangwen/"><img src="http://mysite.com/uploads/profile/photo-thumb-2.jpg" style="float: left; width: 30px; height: 30px; border: 1px solid #d8d8d8; margin-right: 8px;"></a> <a href="http://mysite.com/user/2-brangwen/">Brangwen</a> <a href="http://mysite.com/user/2-brangwen/" class="__user __id2" title="View Profile"><img src="http://mysite.com/public/style_images/clean/user_popup.png" alt=""></a> <div></div> </li> <li> <a href="http://mysite.com/user/1-gravity/"><img src="http://mysite.com/uploads/profile/photo-thumb-1.jpg" style="float: left; width: 30px; height: 30px; border: 1px solid #d8d8d8; margin-right: 8px;"></a> <a href="http://mysite.com/user/1-gravity/"><span style="color:red;">Gravity</span></a> <a href="http://mysite.com/user/1-gravity/" class="__user __id1" title="View Profile"><img src="http://mysite.com/public/style_images/clean/user_popup.png" alt=""></a> <div>Administrator</div> </li> </ul> [font=Helvetica] </div>[/font] And image:
Alan Posted October 12, 2010 Posted October 12, 2010 I had two staff online and noticed this odd wrapping of images. Might be an HTML issue. I've updated the hook to v1.1.2 which should now display correctly when a member doesn't have a user title set. Thanks for the bug report :)
simplymesobe5280 Posted October 12, 2010 Posted October 12, 2010 Many thanks for this great mod Alan - our members like it :D
SG Staff Posted October 12, 2010 Posted October 12, 2010 I installed this hook and really like it, but it seems to have affected my skins for some reason. Both the standard and my custom skin (recolored version of the standard) were affected. I lost part of my header image, some of my buttons. Is there some place I can find out what skin changes this made or why it might have affected me? Thanks!
Alan Posted October 12, 2010 Posted October 12, 2010 I installed this hook and really like it, but it seems to have affected my skins for some reason. Both the standard and my custom skin (recolored version of the standard) were affected. I lost part of my header image, some of my buttons. Is there some place I can find out what skin changes this made or why it might have affected me? Thanks! This hook only uses the one template which you can find in the ACP under Templates -> Board Index -> staffOnlineSidebarBlock I'm no HTML expert so if you spot a problem with the template let me know and I'll update the zip :)
SG Staff Posted October 12, 2010 Posted October 12, 2010 Hmmm... for some reason it turns out my skin sets needed to be recached. I don;t know if it was just an unlucky coincidence or if the hook caused it, but either way it's working now. :) All I did was enter the screen to edit the skin settings (change directories names, etc.) and resave it. Edit: I just uninstalled and reinstalled the hook and the same thing happened, so something about your installer (or some settings it changes) messes with the skin sets and the folders it looks for. i.e. if I "view image" of my "branding_bg.png" file in my header it is normally in forums/public/style_images/SGCustomV2/branding_bg.png but after the installation of the hook it's now showing as forums/SGCustomV2/branding_bg.png Again - going to settings and resaving the skin fixes the issue.
Alan Posted October 12, 2010 Posted October 12, 2010 Splendid, glad to hear you got it working. I've added a note to the download info in case it happens to anyone else :)
G Fox Posted October 12, 2010 Posted October 12, 2010 New version fixed the display block, thanks and well done.
Alan Posted October 13, 2010 Posted October 13, 2010 Edit: I just uninstalled and reinstalled the hook and the same thing happened, so something about your installer (or some settings it changes) messes with the skin sets and the folders it looks for. i.e. if I "view image" of my "branding_bg.png" file in my header it is normally in forums/public/style_images/SGCustomV2/branding_bg.png but after the installation of the hook it's now showing as forums/SGCustomV2/branding_bg.png Again - going to settings and resaving the skin fixes the issue. I'm afraid that I am not sure what could be causing that. The hook only adds the one template I mentioned earlier and it doesn't do anything custom during the install, it just uses the standard IPB hook installer. What version of IP.Board are you running and what other hooks / apps do you have installed? Also, you're not running your fourm in IN_DEV mode are you?
Alan Posted October 13, 2010 Posted October 13, 2010 New version fixed the display block, thanks and well done. Thanks, glad to hear it's working properly now :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.