1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then 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.

sports cash

Discussion in 'Sportsbook Support' started by topcat, Aug 20, 2012.

  1. topcat

    topcat Member Sportsbook Pickem Survivor

    How can i get sports cash amounts for each user to display in the user information sidebar block

    I presume by adding code the in the sidebar_visitor panel template maybe

    thanks
     
  2. Bob

    Bob Developer Staff Member

    You'd need to do it via a Template Hook (similar to the one I did for the Member Card).
     
  3. topcat

    topcat Member Sportsbook Pickem Survivor

    do you have a link for what you did, or any info please
     
  4. Bob

    Bob Developer Staff Member

    /library/NFLJ/Sportsbook/Listner/TemplateHook.php

    If you look at that file, you can see how I did the member card which is pretty much the same think you want to do.
     
  5. topcat

    topcat Member Sportsbook Pickem Survivor

    a while since i asked this but just revisited it

    I have put the code into the file but nothing shows

    Code:
    case 'sidebar_visitor_panel_stats':
                    $template->preloadTemplate('xi_sportsbook_member_card_link');
                break;
    
    whats wrong
     
  6. Bob

    Bob Developer Staff Member

    What version are you running? I no longer use template hooks as that entire system has been depreciated by core XF. Also, XI templates went away A LONG time ago.
     
  7. topcat

    topcat Member Sportsbook Pickem Survivor

    ahah ok lol.. Im using version sportsbook 1.2.o and xenforo 1.2.4

    how will i do this now with the changes ?

    is there any further sportsbook update as i need to redo my licence
     
  8. Bob

    Bob Developer Staff Member

    I believe that 1.2.0 is still using hooks, so change the xi to nflj (since I changed all the template prefixes to nflj_ that MIGHT work.

    yes, 1.3.0 was just released, its BETA, but sold (I will push it to stable this week... maybe even today if I have time).
     
  9. topcat

    topcat Member Sportsbook Pickem Survivor

    nope didn't work, but i will be upgrading so no point dwelling on it :)
     
  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.