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.

Pick'em Leaderboard Widget on Single Page

Discussion in 'Pickem Support' started by geebee, Mar 6, 2016.

  1. geebee

    geebee New Member Showcase Pickem Sportsbook

    Hi, I'm having a bit of trouble getting this widget on a single forum page. For example, if I want the NFL widget to show only on the NFL forum I put this in the conditional: {$forum.node_id} == '4'

    However, even though this conditional works with other widgets, the Pick'em widget is still showing on all forums. Any ideas?

    Incidentally, I'm using [bd] Widget Framework 2.6.2
     
  2. Bob

    Bob Developer Staff Member

    There is nothing special about Pickem Widgets vs all other [bd] widgets. The rendering has nothing to do with Pickem that is all handled by the Widget Framework.

    Where are you adding that conditional?
     
  3. geebee

    geebee New Member Showcase Pickem Sportsbook

    Hi Bob, the conditional is being placed in the conditional box at the bottom of the + Add Widget page. I had a play around with a couple of widgets last night and the conditional works for widgets like the HTML and even Forum Statistics. However, I tried the Sportsbook Recent Winners widget and that too is showing up on all nodes.

    Maybe something to do with the Widget Framework itself?
     
  4. Bob

    Bob Developer Staff Member

    I've never messed around with conditions on a widget, so I'd have to mess around with it this weekend.
     
  5. geebee

    geebee New Member Showcase Pickem Sportsbook

    It may it may well be something to do with the version of the widget framework, as I believe it's still a beta. I just found it odd that the conditionals worked on some widgets and not others as the set up (barring the renderer) is exactly the same
     
  6. Bob

    Bob Developer Staff Member

    Ah, I see you are using that new BETA version. I've read that it has A LOT of bugs. You MIGHT want to seriously think about uninstalling that version and installing the latest stable version (2.5.9). Before you do tho, let me do some testing to see why certain widgets are working with that conditional and others don't
     
  7. geebee

    geebee New Member Showcase Pickem Sportsbook

    OK thanks. I had a feeling it was something to do with the Beta version as I've had a similar setup on 2.5.9 which was fine. FYI I took a couple of screens which show the setup I have (if they're not appropriate for the forum, please delete them). First up is the Pick'em Leaderboard which is not following the conditional:

    Pic1.png

    Then a HTML wrapper (Twitter) which is - I've cut the actual HTML part out, but the conditional is the same. This widget follows the conditional:

    Pic2.png

    I did the same with Forum Statistics just to be sure and this conditional worked:

    Pic3.png

    Finally, I tried the same with Sportsbook Winners and this didn't follow the conditional.

    Just testing things out at the moment, if there's an issue with the Beta, I'll revert back to 2.5.9

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