Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Thanks.. I just copy and pasted the code and it's done the job… I didn't have to specify any tabid.You can hide a tab using CSS.
Admin CP -> Appearance -> Templates -> EXTRA.css
Rich (BB code):.navTabs .navTab.sportsbook { display: none; }
You must specify the tabid which can be seen in the HTML source.
Oh thanks, very useful!sportsbook (in red) IS the tabid Just saying that you can look at the source and use the tab id's of ANY tab to hide a specific tab
The Recent Events side block always displays the same events, regardless of new events being added. Any reason for this?
All events are set to Open, I've just created a test event right now. It's displaying in Recent Events block but it's not at the top. It should be above the Pak vs SA event, as it was created last Friday.Are these new events OPEN? If they are "Pending", only YOU will see them in your Bookie CP. Only OPEN events will display. Events that are Pending, Closed, Awaiting Settlement, Settled or Abandon won't be displayed.
Mine works just fine. I had people that created events just a few hours ago and those are listed at the top of the list.
I'd have to see your site to see both the Status of these events and the DATES that you have for them as the OPEN data plays a key part in the sort order.
public function getRecentEvents($numEvents = 0)
{
return $this->_getDb()->fetchAll('
SELECT event.*,
cat.*,
status.*,
user.username, user.avatar_date, user.avatar_width, user.avatar_height, user.gravatar
FROM xf_nflj_sportsbook_event AS event
LEFT JOIN xf_user AS user
ON (user.user_id = event.user_id)
LEFT JOIN xf_nflj_sportsbook_category AS cat
ON (cat.category_id = event.category_id)
LEFT JOIN xf_nflj_sportsbook_status AS status
ON (status.status_id = event.status_id)
WHERE event.status_id = 2
ORDER BY event.date_create DESC, event.date_close DESC, event.event_id ASC
LIMIT ?
', $numEvents);
}
Lol so far it's made sense, I'll make some test events following the instructions, thanks.Hope that made sense? lol I sometimes have hard time explaining