1. 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

Discussion in 'Sportsbook Support' started by SneakyDave, Apr 22, 2013.

  1. SneakyDave

    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?
     
  2. Bob

    Bob Developer Staff Member

    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).
     
    SneakyDave likes this.
  3. Bob

    Bob Developer Staff Member

    Admin CP >> Development >> Code Event Listeners >> [NFLJ] Stock Trader >> template_hook >> Callback Execution Order: 11 (10 is default)
     
    SneakyDave likes this.
  4. SneakyDave

    SneakyDave Member Sportsbook

    oh shit, I should have known that, thanks.

    Couldn't find it because debug mode wasn't on.
     
  5. Bob

    Bob Developer Staff Member

    I really hope they change that, cause there are times that it would be nice to access the development tab without being in debug mode.
     
    SneakyDave likes this.
  6. SneakyDave

    SneakyDave Member Sportsbook

    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: Jan 16, 2014
  7. SneakyDave

    SneakyDave Member Sportsbook

    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: Jan 16, 2014
  8. SneakyDave

    SneakyDave Member Sportsbook

    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.
     
  9. SneakyDave

    SneakyDave Member Sportsbook

    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';
        }
     
    Bob likes this.
  10. Bob

    Bob Developer Staff Member

    nice catch ;) I missed updating that one when I changed the template names for the widget framework to just use 'wf'.
     
    SneakyDave likes this.
  11. Bob

    Bob Developer Staff Member

    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) :)
     
    SneakyDave likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.