Jump to content

Download: [mm31] Staff Online Sidebar Block


Mod-Mall.com

Recommended Posts

Posted

File Name: [mm31] Staff Online Sidebar Block
File Submitter: Mod-Mall.com
File Submitted: 09 Oct 2010
File Updated: 29 Jul 2011
File 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 %7Boption%7D

Any questions / suggestions / issues / etc, feel free to ask

Updated to v1.1.2: Block now displays correctly if a member doesn't have a user title set
Updated to v1.1.1: Settings should now appear correctly
Updated to v1.1: Now includes settings to disable, select staff groups and select the groups that can view the sidebar block
Updated to v1.0.1: No longer shows staff who are logged in anonymously

Click here to download this file

  • Replies 50
  • Created
  • Last Reply
Posted

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.....

Posted

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)

Posted

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....

Posted

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
Posted

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.

Posted

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?
Posted

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 :)

Posted

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>&nbsp;<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>&nbsp;<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:

Posted

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 :)
Posted

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!

Posted

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 :)
Posted

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.

Posted

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?

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...