Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #42  
Old 06-27-2012, 03:53 PM
Kirk Fitzgerald's Avatar
Kirk Fitzgerald Kirk Fitzgerald is offline
 
Join Date: Apr 2012
Location: Oxford, UK
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Do you mean the HTML isn't passing validation?
Yes, not a big deal I know as it is in Beta stage.
Reply With Quote
  #43  
Old 06-27-2012, 11:39 PM
Kirk Fitzgerald's Avatar
Kirk Fitzgerald Kirk Fitzgerald is offline
 
Join Date: Apr 2012
Location: Oxford, UK
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I felt kind of bad for just doing the "it doesn't validate cry", so here's the validated code for the template.

Code:
<li>
	<div class="block smaller">
		<div class="blocksubhead">
			<a class="collapse" id="collapse_block_html" href="{vb:raw relpath}#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_html" /></a>
			<span class="blocktitle"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase bop5_staff_online}" />{vb:rawphrase bop5_staff_online}</span>
		</div>
		<div id="block_html" class="blockbody floatcontainer">
			<div class="blockrow">
				<ol class="bop5staffol">
					<vb:each from="content.activestaff" value="staffon">
						<li class="bop5staffli">
							<vb:if condition="$staffon['showav']">
								<img src="{vb:raw staffon.avatarurl}"  border="0" alt="" class="bop5staffimg" />
							</vb:if>
							{vb:stylevar dirmark}
							<div class="bop5staffuser">
								<vb:if condition="$staffon['none']">
									{vb:raw staffon.username}
								<vb:else />
									<a class="username" href="{vb:link member, {vb:raw staffon}}">{vb:raw staffon.musername}</a>{vb:raw staffon.invisiblemark}{vb:raw staffon.buddymark}
								</vb:if>
							</div>
							{vb:raw staffon.usertitle}
							<hr class="bop5staffhr" />
						</li>
					</vb:each>
				</ol>
			</div>
		</div>
	</div>
	<div class="underblock"></div>
</li>
You can see it working here: http://www.pipesmokerscubby.com/forum.php
Reply With Quote
Благодарность от:
BirdOPrey5
  #44  
Old 06-28-2012, 10:25 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks- I'll use it in the next release. :up:
Reply With Quote
  #45  
Old 06-28-2012, 12:34 PM
Kirk Fitzgerald's Avatar
Kirk Fitzgerald Kirk Fitzgerald is offline
 
Join Date: Apr 2012
Location: Oxford, UK
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Thanks- I'll use it in the next release. :up:
Very welcome, least I could do for this great addon.
Reply With Quote
  #46  
Old 06-28-2012, 06:59 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good news is I am making good progress on the widget now too.. going to package them together and let you enable the sideblock or widget independently.



Should be ready something this weekend. :up:
Reply With Quote
3 благодарности(ей) от:
deverill2010, Kirk Fitzgerald, ProFifaLeagues
  #47  
Old 06-28-2012, 07:06 PM
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Location: Uk
Posts: 1,191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking forward to it mate thank you
Reply With Quote
  #48  
Old 06-28-2012, 08:22 PM
deverill2010 deverill2010 is offline
 
Join Date: Jan 2011
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yay BOP, your an angel
Reply With Quote
  #49  
Old 06-29-2012, 01:13 PM
Bernd Glasstett's Avatar
Bernd Glasstett Bernd Glasstett is offline
 
Join Date: Sep 2002
Location: Waldshut-Tiengen Germany
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gn_Snake View Post
Hi,
in VB4.21 i have the error on the forum block.
The block is completely white with the writing:"array"
Same thing in the 4.2.0 Patch Level 2 here. I am only using the sidebar in the Activity Stream. Sad thing it doesn't work
Reply With Quote
  #50  
Old 06-29-2012, 01:49 PM
Kirk Fitzgerald's Avatar
Kirk Fitzgerald Kirk Fitzgerald is offline
 
Join Date: Apr 2012
Location: Oxford, UK
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bernd Glasstett View Post
Same thing in the 4.2.0 Patch Level 2 here. I am only using the sidebar in the Activity Stream. Sad thing it doesn't work
This mod works just fine, double check your edits, perhaps you missed something.
Reply With Quote
  #51  
Old 06-29-2012, 08:30 PM
Bernd Glasstett's Avatar
Bernd Glasstett Bernd Glasstett is offline
 
Join Date: Sep 2002
Location: Waldshut-Tiengen Germany
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I only made one edit: The groups. I only used 2 IDs instead of 3 IDs.

Edit: Ah didn't use the right template. Now it works.
Reply With Quote
Благодарность от:
BirdOPrey5
Reply

Thread Tools

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:50 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.05566 seconds
  • Memory Usage 2,365KB
  • 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_code
  • (4)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
  • (16)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)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