Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Current Staff Online Forum Sideblock and CMS Widget by BOP5 Details »»
Current Staff Online Forum Sideblock and CMS Widget by BOP5
Version: 0.99, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: vBulletin Forum Sideblocks - Version: 4.2.x Rating:
Released: 06-18-2012 Last Update: 06-29-2012 Installs: 192
Uses Plugins Auto-Templates
Re-useable Code Translations Is in Beta Stage  
No support by the author.

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. :up:
Nominate MOTM if you LOVE it!

Download Now

File Type: zip Current Staf Online Sidebar & Widget by BOP5 - Beta.99.zip (7.7 KB, 1486 views)

Screenshots

File Type: jpg staff_online_sidebar.jpg (63.7 KB, 0 views)
File Type: jpg staff_online_widget_none.jpg (32.7 KB, 0 views)
File Type: jpg staff_online_widget_two.jpg (40.7 KB, 0 views)
File Type: jpg staff_online_settings.jpg (149.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
11 благодарности(ей) от:
akz645, Alex@bulletin, blind-eddie, findingpeace, Gemma, Hornstar, NoMatt3r, sodasusu, t-j, Taurus1, Techno Cowboy

Comments
  #142  
Old 12-02-2013, 11:54 PM
cshellworld cshellworld is offline
 
Join Date: Sep 2013
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

4.2.1 installed , rating 5 , nominated
thanks
Reply With Quote
Благодарность от:
BirdOPrey5
  #143  
Old 01-29-2014, 08:09 AM
RedTrinity's Avatar
RedTrinity RedTrinity is offline
 
Join Date: Mar 2008
Location: QLD, Australia
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

Quote:
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!

Reply With Quote
  #144  
Old 02-27-2014, 12:37 PM
warfield warfield is offline
 
Join Date: Feb 2011
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont know how to edit additional.css
Reply With Quote
  #145  
Old 03-01-2014, 05:10 PM
Meler Meler is offline
 
Join Date: Jul 2013
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can add sorting displayed groups?
Reply With Quote
  #146  
Old 03-13-2014, 02:24 AM
edgeless edgeless is offline
 
Join Date: Mar 2013
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #147  
Old 03-13-2014, 02:26 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try changing the phrase bop5_staff_online
Reply With Quote
  #148  
Old 03-13-2014, 03:08 AM
edgeless edgeless is offline
 
Join Date: Mar 2013
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh yeah. Thanks
Reply With Quote
  #149  
Old 03-13-2014, 03:13 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not a problem, glad to help.
Reply With Quote
  #150  
Old 03-13-2014, 02:58 PM
edgeless edgeless is offline
 
Join Date: Mar 2013
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #151  
Old 03-13-2014, 08:31 PM
edgeless edgeless is offline
 
Join Date: Mar 2013
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


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

Forum Jump


All times are GMT. The time now is 09:51 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07626 seconds
  • Memory Usage 2,355KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (12)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete