• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Rearrange Sportsbook and Stock Trader widgets

SneakyDave

Member
Sportsbook
Since I updated sportsbook to 1.1.0, it looks like its widget takes over the top spot on my forums, when in the past, the stock trader as on top.

Is there an easy way to re-order those?
 
Widget order is all handled by the [bd] Widget Framework.

If you are asking about the sidebar blocks on the forum home page (those are not widgets), that isn't as easy as that is determined by the execution order of the template hook listener. You'd have to be in debug mode and change the execution order to make stock trader fire after sportsbook (change the execution order to 11 and see if that works).
 
ok, another question, this is regarding the bd widget framework.

Ignore this idiocy...

Let's say I installed this add-on, and then installed bd widget framework later. The stocktrader/sportsbook bd widgets don't appear, I assume because [bd] widgets wasn't installed previously.

Is there a way I can install the stocktrader/sportsbook widgets after the base [bd] widgets was installed? Do I do a upgrade of the stocktrader/sportsbook add-ons?
 
Last edited:
Also, maybe a bug, but the widget for "Sportsbook recent events" refers to a non existing phrase called "nflj_showcase_applicable_categories".

I assume that should be "nflj_sportsbook_applicable_categories"? This phrase doesn't exist either, maybe it just needs to be added?

I've changed it to "nflj_sportsbook_categories" for the time being.
 
Last edited:
I can get the sportsbook bd widgets to work reasonably well, but I can't seem to get the stocktrader "Top Portfolios" working via bd Widget Framework. It worked prior to installing the widget framework though. I'll try some debugging.
 
Bobster, FYI, there is a bug in the [bd] Widget Portal file for StockTrader.

In StockTrader/WidgetRenderer/TopPortfolios.php, the top portfolios template is named wrong

PHP:
    protected function _getRenderTemplate(array $widget, $templateName, array $params) 
    {
        return 'nflj_stocktrader_widget_framework_top_portfolios';
    }

Should be:
PHP:
    protected function _getRenderTemplate(array $widget, $templateName, array $params) 
    {
        return 'nflj_stocktrader_wf_top_portfolios';
    }
 
  • Like
Reactions: Bob
Also, maybe a bug, but the widget for "Sportsbook recent events" refers to a non existing phrase called "nflj_showcase_applicable_categories".

I assume that should be "nflj_sportsbook_applicable_categories"? This phrase doesn't exist either, maybe it just needs to be added?

I've changed it to "nflj_sportsbook_categories" for the time being.

fixed... they share the same code for that, so I just missed changing the phrase. I've added the new phrase to sportsbook for the upcoming release (in a few weeks) :)
 
Back
Top