vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin Forum Sideblocks - Current Staff Online Forum Sideblock and CMS Widget by BOP5 (https://vborg.vbsupport.ru/showthread.php?t=284617)

BirdOPrey5 07-10-2013 09:23 PM

Quote:

Originally Posted by findingpeace (Post 2432729)
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.

snakes1100 07-22-2013 08:07 PM

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

Nice add for the Total online call.

craigvm 08-07-2013 05:05 PM

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

BirdOPrey5 08-17-2013 12:06 PM

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.

Amaury 08-17-2013 08:15 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2439318)
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.

SPEEDKILLZ 11-02-2013 04:21 PM

1 Attachment(s)
Love the mod but i get this? And it dont show any staff? Suggestions?

franzes80 11-02-2013 07:20 PM

I have the same problem as SPEEDKILLZ on vb 4.2.2

ozzy47 11-02-2013 07:24 PM

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.

franzes80 11-02-2013 07:27 PM

Thank you ozzy47.Working now

ozzy47 11-02-2013 07:30 PM

Not a problem, glad to help. :)


All times are GMT. The time now is 02:29 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01198 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete