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
  #122  
Old 07-10-2013, 09:23 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by findingpeace View Post
This is great! Is there any way to get the # of Staff currently online? For example, in the block title "Staff Online (#)"

I imagine this must be a SQL query or plugin somewhere. Any help would really be appreciated!
I will see about integrating this into a future version but for now...

Edit the Forum Blocks PHP code...

find
Code:
  $staffsarray = array('activestaff'	=> $activestaff); 

  return $staffsarray;
Near the bottom

and replace both lines with these 3 lines:

Code:
  $nums = "($bp5i)";

  $staffsarray = array('activestaff'	=> $activestaff, 'nums' => $nums); 

  return $staffsarray;


Then in the template block_staff_online_bop5

Find the 2nd instance of:

Code:
{vb:rawphrase bop5_staff_online}
and add

Code:
 {vb:raw content.nums}
right after it, include a space between them.
Reply With Quote
  #123  
Old 07-22-2013, 08:07 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BOP, how about the ability/option to remove the user title?

Nice add for the Total online call.
Reply With Quote
  #124  
Old 08-07-2013, 05:05 PM
craigvm's Avatar
craigvm craigvm is offline
 
Join Date: Aug 2012
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i`ve got this installed on my side block but i`ve noticed after a while no staff are showing online when i`m allways online but if i uninstall and install again it shows staff online for a while but then not showing again any idea , i had this on another site and worked fine tho
Reply With Quote
  #125  
Old 08-17-2013, 12:06 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no reason installing/uninstalling should change anything. I would suspect whatever the issue it's with sessions on your site, not caused by this mod.
Reply With Quote
  #126  
Old 08-17-2013, 08:15 PM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
There is no reason installing/uninstalling should change anything. I would suspect whatever the issue it's with sessions on your site, not caused by this mod.
Yes, I agree. It's most likely to do with whatever he has the Session Timeout option set to because of caching with the staff online block.

For example, we have the Session Timeout option set to one hour on KH-Flare. If I'm inactive for over an hour and then reload the index, I will not see myself. I have the cache time set for one minute for the staff block, so if I reload the index a few minutes later, I will see myself again.
Reply With Quote
  #127  
Old 11-02-2013, 04:21 PM
SPEEDKILLZ SPEEDKILLZ is offline
 
Join Date: Feb 2011
Location: USA
Posts: 641
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love the mod but i get this? And it dont show any staff? Suggestions?
Attached Images
File Type: png Capture.PNG (2.8 KB, 0 views)
Reply With Quote
  #128  
Old 11-02-2013, 07:20 PM
franzes80 franzes80 is offline
 
Join Date: Sep 2012
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the same problem as SPEEDKILLZ on vb 4.2.2
Reply With Quote
  #129  
Old 11-02-2013, 07:24 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You probably did not change the Template to Use field from block_html to block_staff_online_bop5

That would give you the Array results.
Reply With Quote
Благодарность от:
franzes80
  #130  
Old 11-02-2013, 07:27 PM
franzes80 franzes80 is offline
 
Join Date: Sep 2012
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you ozzy47.Working now
Reply With Quote
  #131  
Old 11-02-2013, 07:30 PM
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
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 07:04 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.06174 seconds
  • Memory Usage 2,363KB
  • Queries Executed 28 (?)
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
  • (4)bbcode_code
  • (2)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
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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