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.

Automatic Discussion Topic ... deleted

Discussion in 'Sportsbook Support' started by mouth, Mar 19, 2014.

  1. mouth

    mouth Member CAS Premium RMS Premium SC Premium UBS Premium Sportsbook

    Let's say you've had a hard day at work, the kids have given you the shites at bedtime, and you've yet to have an evening coffee ( all hypothetically, of course ;) ) and you stupidly delete the thread that was auto created by Sportsbook when the event was created.

    Now when you look at Sportsbook;
    it still has the discussion tab despite the thread having been deleted
    you click on the tab and you get a 404
    (suggest it checks if the thread id exists, or hook in to delete and action in sportsbook if a match)

    .... then you manually edit the sportsbook event and remove the thread id, so it solves the issue with the discussion tab.

    But now you want to auto create it again ... there doesn't seem a method to do this, short of deleting teh event and starting again :(

    <rant over> ... but I still need coffee :)
     
  2. mouth

    mouth Member CAS Premium RMS Premium SC Premium UBS Premium Sportsbook

    Code:
    update xf_nflj_sportsbook_event set event_status = 'pending' where event_id = 36;
    
    :)
     
  3. Bob

    Bob Developer Staff Member

    lol.. ya, setting it to pending will indeed recreate a NEW discussion thread, that is highly NOT recommended however.

    You can always associate a new (or existing) discussion thread by editing the event and add the ID of that new/existing thread to the event.
     
  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.