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.
after selecting the usergroups that are to be classified as "staff" and then clicking save will reload the page as normal but then none of the usergroups that were previously selected....are then ALL un-ticked.
No 'extra' usergroups showed up for me either...
then I got a big database error very similar to Cheechdog
Bottom line is once I got it back to working it still didn't show any group besides admin/mods... no other group I checked (which was an option to do) showed up while that group was online for quite some time.
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
, user.bop5_userfont AS bop5_userfont
FROM vB_session AS session
LEFT JOIN vB_user AS user ON(user.userid = session.userid)
WHERE session.lastactivity > 1408204549 AND user.usergroupid IN (13,14,5,7,6,-1)
ORDER BY username ASC;
MySQL Error : Unknown column 'user.bop5_userfont' in 'field list'
You likely do not have the "PER USERNAME COLOR, SIZE, FONT MOD" installed and have set one or more of the options depending on this mod to yes. Try setting those last 3 options to "No" and see if you have bliss...
What exactly isn't working? Are you getting an error? A white screen? nothing? Did you try the sideblock or cms widget? both? What version of VB and PHP exactly? You should include this basic info if a mod isn't working, just reporting it not working is useless. Need to give me something to work with. Thanks.
Bummer..even with the update this still doesn't work for me ...I get the following error:
Warning: Invalid argument supplied for foreach() in [path]/includes/class_core.php(4606) : eval()'d code on line 12
Quote:
Originally Posted by BirdOPrey5
What exactly isn't working? Are you getting an error? A white screen? nothing? Did you try the sideblock or cms widget? both? What version of VB and PHP exactly? You should include this basic info if a mod isn't working, just reporting it not working is useless. Need to give me something to work with. Thanks.
I asked about this before BOP5s ...
The sidebar block doesn't display anything at all and the error mentioned above pops up ...