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 06-18-2012 10:00 PM

Current Staff Online Forum Sideblock and CMS Widget by BOP5
 
1 Attachment(s)
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)


https://vborg.vbsupport.ru/attachmen...1&d=1340065140

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! ;)

BirdOPrey5 06-18-2012 11:22 PM

Reserved.

sodasusu 06-18-2012 11:39 PM

nice mods like xenforo

BirdOPrey5 06-18-2012 11:39 PM

I forgot to post the css code- just added it to the first post. :o

LouiseWilson 06-18-2012 11:39 PM

All working good here super work again :)

DM BoNeZ 06-19-2012 12:05 AM

will be testing this on 4.1.7
i will give feed back when done,,,,
EDIT does not work on 4.1.7

FTG LIQUID CL 06-19-2012 12:43 AM

error on 4.1.12

RSNF 06-19-2012 02:40 AM

The mod specifically states vB Version: 4.2.x



Quote:

Originally Posted by FTG LIQUID CL (Post 2340900)
error on 4.1.12


sodasusu 06-19-2012 02:56 AM

Quote:

Originally Posted by FTG LIQUID CL (Post 2340900)
error on 4.1.12


vB Version: 4.2.x

Hornstar 06-19-2012 06:59 AM

Looking good. Nice work.

ProFifaLeagues 06-19-2012 08:52 AM

Very handy Idea thank you!!!

Are there any plans to turn this into a Widget too Sir???

deverill2010 06-19-2012 09:02 AM

I asked for this, he's done the sidebar block and will hopefully be doing the widget soon :D fingers crossed!

BOP rocks!

BirdOPrey5 06-19-2012 09:48 AM

Thanks for the Feedback on the version numbers guys, I knew it wouldn't work on older versions though honestly I am surprised there is an error even on 4.1.12. I will see if I can get access to a 4.1.12 board again, I ended up updating both my test sites to 4.2.0.

Yes I plan to make this into a widget as well, although it is re-usable code so if anyone wants to "beat me to it" they are encouraged to try. :)

Krusty1231 06-19-2012 10:23 AM

Excellent. Works great!

Thanks

GSMPINOY 06-19-2012 10:25 AM

i'll be installing this on my forum... hope it will work fine.. ;)

Patriots1049 06-19-2012 12:05 PM

For some reason the avatar is posting exceptionally large (160x118), is there something I can do to fix that?

EDIT: I do have the CSS code posted in additional.css .. it just seems to not recognize it.

BirdOPrey5 06-19-2012 01:08 PM

Quote:

Originally Posted by Patriots1049 (Post 2341039)
For some reason the avatar is posting exceptionally large (160x118), is there something I can do to fix that?

EDIT: I do have the CSS code posted in additional.css .. it just seems to not recognize it.

You sure it's posted in the correct style's additional.css? Can I get a link to your site so I can see it with my browser?

Patriots1049 06-19-2012 03:00 PM

Yes, I double checked that as well. You can access the website here

EDIT: The code was getting commented out from someone elses modification to the additional.css ... FIXED. Thank you!

FTG LIQUID CL 06-19-2012 05:09 PM

Quote:

Originally Posted by RSNF (Post 2340927)
The mod specifically states vB Version: 4.2.x


If you read the page and instructions it says this mod should work between 4.0.8 and 4.2.0
I was just trying to let the designer know that I got error messages with 4.1.12
I would love to see this for 4.1.12

Alex@bulletin 06-19-2012 05:12 PM

1 Attachment(s)
Hi Dude!

I like your idea and wanted to provide a little translation to german but you seem to be out of phrases :(

The mod is perfect if you could phrase the following displayed texts - concerning the situation that noone from the staff is online:


https://vborg.vbsupport.ru/attachmen...1&d=1340129452

Finally the mod seems to work as you can see - I tried on 4.2 :) :up:

tomrep 06-19-2012 11:29 PM

my vb is not reconizeing .bop5staffimg {
max-width: 40px;
max-height: 40px;
min-width: 40px;
min-height: 40px;
padding: 0 4px 2px 0;
float: left;
}

.bop5staffli {
height: 42px;
}

.bop5staffol {
padding: 1px;
}

.bop5staffuser {
font-size: 110%;
}

.bop5staffhr {
display: none;
}

BirdOPrey5 06-20-2012 01:11 AM

Quote:

Originally Posted by Alex@bulletin (Post 2341131)
Hi Dude!

I like your idea and wanted to provide a little translation to german but you seem to be out of phrases :(

The mod is perfect if you could phrase the following displayed texts - concerning the situation that noone from the staff is online:


https://vborg.vbsupport.ru/attachmen...1&d=1340129452

Finally the mod seems to work as you can see - I tried on 4.2 :) :up:

It is not phrased that is true, but it is something you can edit via the configuration at the top of the PHP code.

If you have need to use phrases you can create the custom phrase(s) in GLOBAL phrases and in the top of configuration set the options such as:

PHP Code:

$nostaffuser $vbphrase['staff_online_none'];
$nostaffusertitle $vbphrase['staff_online_no_one_online']; 

You just have to create those two phrases (staff_online_none and staff_online_no_one_online) in Phrase Manager.

Quote:

Originally Posted by tomrep (Post 2341255)
my vb is not reconizeing
Code:

.bop5staffimg {
  max-width: 40px;
  max-height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 4px 2px 0;
  float: left;
}

.bop5staffli {
  height: 42px;
}

.bop5staffol {
  padding: 1px;
}

.bop5staffuser {
  font-size: 110%;
}

.bop5staffhr {
  display: none;
}


That code goes in your additional.css template of each style you use- are you sure you put it in the right location?

If so I need a link to your site to check.

Karma1337 06-20-2012 02:05 AM

Thanks a lot.
Mark installed and nominated. :)

Alex@bulletin 06-20-2012 10:56 AM

hmmm okay. I don't need it yet, as I don't have a public forum yet, I just like to translate mods when I'm bored ;)

Gemma 06-20-2012 01:29 PM

Well done creating your first sideblock addon BOP5, looks good and works perfectly. Thanks for releasing :)

Nirjonadda 06-21-2012 12:59 PM

Its not working on 4.1.10
Code:

Warning: Invalid argument supplied for foreach() in [path]/includes/class_core.php(4606) : eval()'d code on line 10

BirdOPrey5 06-23-2012 12:35 PM

Thanks. Requires 4.2.0 it seems.

deverill2010 06-23-2012 01:19 PM

Any progress on the widget BOP?

BirdOPrey5 06-24-2012 03:03 PM

no, nothing to show yet. I thought it would be a simpler port.

deverill2010 06-24-2012 03:14 PM

Ah that's a real shame, it was the widget I originally wanted when I requested lol. :)

BirdOPrey5 06-24-2012 03:18 PM

I know, I haven't given up- just been fighting with kidney stone pain to try and concentrate on coding lately... not as productive as usual.

deverill2010 06-24-2012 03:39 PM

No worries, I'm grateful however long it takes ;) take it easy!

Gn_Snake 06-26-2012 05:29 AM

Hi,
in VB4.21 i have the error on the forum block.
The block is completely white with the writing:"array"

Pandemikk 06-26-2012 07:02 AM

Good idea BOP.

BirdOPrey5 06-26-2012 01:42 PM

Quote:

Originally Posted by Gn_Snake (Post 2342949)
Hi,
in VB4.21 i have the error on the forum block.
The block is completely white with the writing:"array"

VB 4.2.1 isn't out yet, do you have an alpha version?

Gn_Snake 06-26-2012 06:39 PM

Hi,
i'm sorry, i have 4.2.0 patch 2

BirdOPrey5 06-26-2012 11:14 PM

In that case I'd say follow the instructions again, carefully- it's working for many people on 4.2.0 I don't see why it wouldn't on yours.

Kirk Fitzgerald 06-27-2012 04:24 AM

Very nice mod, I did install but the code needs a bit of validating which led me to un-install, will install when the code is tidied up, I know it's only BETA so not expecting clean code as yet.

Very good job though, well done. :)

Gn_Snake 06-27-2012 06:08 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2343157)
In that case I'd say follow the instructions again, carefully- it's working for many people on 4.2.0 I don't see why it wouldn't on yours.

You're right, thanks. now it works

BirdOPrey5 06-27-2012 01:34 PM

Quote:

Originally Posted by Kirk Fitzgerald (Post 2343198)
Very nice mod, I did install but the code needs a bit of validating which led me to un-install, will install when the code is tidied up, I know it's only BETA so not expecting clean code as yet.

Very good job though, well done. :)

Do you mean the HTML isn't passing validation?


All times are GMT. The time now is 06:45 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.01525 seconds
  • Memory Usage 1,820KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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