Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Current Staff Online Forum Sideblock and CMS Widget by BOP5 Details »
Current Staff Online Forum Sideblock and CMS Widget by BOP5
Mod Version: 0.99, by BirdOPrey5 (IB Staff) BirdOPrey5 is offline
Developer Last Online: Jan 2020 I like it Show Printable Version Email this Page

vB Version: 4.2.x Rating: (21 votes - 4.71 average) Installs: 190
Released: 19 Jun 2012 Last Update: 30 Jun 2012 Downloads: 1358
Not Supported Uses Plugins Auto-Template Re-usable Code Translations Is in Beta Stage  

Brought to you by BirdOPrey5
www.Qapla.com


New Version: 0.99 Beta
New in 0.99
  • Added Widget
  • Added Settings instead of manual configuration
  • Added phrases for "None" and "No staff currently online." text.
  • Made code more compatible with older VB Versions (should work in 4.1.x now)




This is my first attempt at a Sideblock and Widget. The purpose of this is to list all forum staff members online.

There are settings to choose which usergroups are considered staff groups and for other basic settings.

The product .xml file contains the necessary templates and phrases but you will need to manually install the sideblock code itself and/or manually create the widget.

Specific installation instructions are in the .txt file in the zip file but the overall process is:
  • Upload the Product XML File
  • Add code to additional.css template
  • Edit Settings in Admin CP -> Options to setup your options
  • Create Sideblock (if using Sideblock)
  • Create Widget (if using widget)
  • Add Widget to Layout(s) (if using widget)


Overall this is working well- it is Beta as it's my fist Sideblock and Widget. I know it works on VB 4.2.0 but it should work on earlier versions as well (code was revised in Beta 0.99 for greater compatibility.)

If you get an error at the top of the browser window when you enable the sideblock or widget you know your VB version is too old.

In addition to working with my Font Selection by Username mod it will also work withe my Sidebar Anywhere mod.

Does not work with "Everywhere Sidebar" mod but DOES work with MY "Sidebar Anywhere" mod.

------------------------------------------------------

Please "Mark as Installed" if you use this.
Donations always appreciated.
Nominate MOTM if you LOVE it!

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	staff_online_sidebar.jpg
Views:	5493
Size:	63.7 KB
ID:	139208   Click image for larger version

Name:	staff_online_widget_none.jpg
Views:	708
Size:	32.7 KB
ID:	139452   Click image for larger version

Name:	staff_online_widget_two.jpg
Views:	829
Size:	40.7 KB
ID:	139453   Click image for larger version

Name:	staff_online_settings.jpg
Views:	640
Size:	149.6 KB
ID:	139454  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #136  
Old 03 Nov 2013, 21:30
SPEEDKILLZ SPEEDKILLZ is offline
 
Join Date: Feb 2011
Real name: Chris
This code


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Reply With Quote
  #137  
Old 03 Nov 2013, 21:37
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Aug 2009
Real name: Chris
If I am not mistaken that is the TF_Ideal_Blue style.

The issue there is, the skin developer had to add <div class="clear"></div> to all the default sideblocks, which adds clear:both to the element basically a glorified, forced linebreak.

That is not standard coding, so of course any sideblocks that are coded to vBulletin default will look off in those styles.

To solve it you need to open the additional.css for each of the styles and find, #sidebar_container .blocksubhead,
#sidebar_container .blocksubhead.smaller


There you will see something like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

After the last entry, before the } add the following:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That should fix it for you.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #138  
Old 03 Nov 2013, 21:46
SPEEDKILLZ SPEEDKILLZ is offline
 
Join Date: Feb 2011
Real name: Chris
Like a charm ozzy. Thank you
__________________
Reply With Quote
  #139  
Old 03 Nov 2013, 21:47
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Aug 2009
Real name: Chris
Not a problem, I only know about this because I have dealt with that style before, and already had figured out how to fix it.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #140  
Old 03 Nov 2013, 21:49
SPEEDKILLZ SPEEDKILLZ is offline
 
Join Date: Feb 2011
Real name: Chris
Well i am glad you are a advisor here. You are a huge help Now you can look at my latest post in more share option lol
__________________
Reply With Quote
  #141  
Old 03 Dec 2013, 00:54
cshellworld cshellworld is offline
 
Join Date: Sep 2013
4.2.1 installed , rating 5 , nominated
thanks
Reply With Quote
  #142  
Old 29 Jan 2014, 09:09
RedTrinity's Avatar
RedTrinity RedTrinity is offline
 
Join Date: Mar 2008
Hi, just installed this for the first time, followed the instructions, getting this SQL error when I activate the block, which messes up the forum:

Database error in vBulletin 4.2.2:

Invalid SQL:

SELECT
user.username, user.usergroupid, user.lastvisit, user.usertitle,
session.userid, session.inforum, session.lastactivity,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid

FROM redtrin_session AS session
LEFT JOIN redtrin_user AS user ON(user.userid = session.userid)
WHERE session.lastactivity > 1390984366 AND user.usergroupid IN ()
ORDER BY username ASC;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY username ASC' at line 8
I've double checked everything, can't seem to work out where the problem is. Help!

__________________
http://www.theparentsanctuary.net - Australian Parents forum
Reply With Quote
  #143  
Old 27 Feb 2014, 13:37
warfield warfield is offline
 
Join Date: Feb 2011
i dont know how to edit additional.css
Reply With Quote
  #144  
Old 01 Mar 2014, 18:10
Meler Meler is offline
 
Join Date: Jul 2013
You can add sorting displayed groups?
Reply With Quote
  #145  
Old 13 Mar 2014, 03:24
edgeless edgeless is offline
 
Join Date: Mar 2013
I've just installed this. How do you change the block title 'Current Staff Online' to something else? Changing the title in the 'edit block' form makes no difference.
Reply With Quote
  #146  
Old 13 Mar 2014, 03:26
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Aug 2009
Real name: Chris
Try changing the phrase bop5_staff_online
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #147  
Old 13 Mar 2014, 04:08
edgeless edgeless is offline
 
Join Date: Mar 2013
Oh yeah. Thanks
Reply With Quote
  #148  
Old 13 Mar 2014, 04:13
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Aug 2009
Real name: Chris
Not a problem, glad to help.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #149  
Old 13 Mar 2014, 15:58
edgeless edgeless is offline
 
Join Date: Mar 2013
Well, here's one issue that I'm noticing... the current settings within the provided additional.css code tend to squeeze the larger avatars to the point of image distortion. For example, we have some staff avatars that are 180px 120px and they end up looking very squeezed within the sidebar.

The actual aspect ratios of member avatars can however be preserved by changing max-width: 40px; to max-width: 60px; ...however, that misaligns the usernames and titles because they are each positioned the same distance from their respective multiple-width avatars.

So my choices seem to be: 1) accept the overly squeezed larger avatars, 2) accept the misaligned usernames, or 3) disable the display of avatars within this sideblock mod. The first two options don't look quite right. Playing around a bit, I've found that I can adjust the padding directive from 4px to, say, 24px. This will move the usernames farther toward the center of the sideblock. But unfortunately they are still misaligned.

I've noticed that various other sideblocks I add to the sidebar will auto-reduce avatar size proportionally in order to preserve aspect ratio and retain alignment of the text margin points. Can this somehow be done for this sideblock mod as well? And if not, is there any other solution that will allow the usernames and title text to line up while retaining the aspect ratios for larger avatars?

Other than this issue, I really love the mod!

Thanks
Reply With Quote
  #150  
Old 13 Mar 2014, 21:31
edgeless edgeless is offline
 
Join Date: Mar 2013
Update:
I've changed the max-width to 54 pixels ...while it's not perfect, I think I can live with it if there's no other available solution.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 09:00.

Layout Options | Width: Wide Color: