OBBLM Custom tabs

However you play online - Java, Vassal, Email, Cyanide etc - talk about it here.
This is also the place for discussing the various tools for managing leagues, teams and so on.

Moderator: TFF Mods

Post Reply
User avatar
mzukerman
Emerging Star
Emerging Star
Posts: 396
Joined: Sun Feb 13, 2011 7:34 pm
Location: Long Island, NY
Contact:

OBBLM Custom tabs

Post by mzukerman »

Does anyone have any custom tabs in OBBLM? For example, I'd like a simple HTML page that I can put some league history on. Another tab would be links to sites like this one or even to specific posts.

Reason: ''
"I reserve the right to change my predictions when they are no longer true. I am The Media." ~ Snob Costas
libloodbowl on Twitter
Long Island Blood Bowl League
Empire Cup
Image
User avatar
Shteve0
Legend
Legend
Posts: 2479
Joined: Thu May 07, 2009 10:15 am
Location: Wellington, New Zealand

Post by Shteve0 »

Hello mate. Should be inherently plausible. Something similar to the 'Rules' section, yeah?

Reason: ''
League and tournament hosting, blogging and individual forums - all totally free. For the most immersive tabletop sports community experience around, check out theendzone.co
User avatar
mzukerman
Emerging Star
Emerging Star
Posts: 396
Joined: Sun Feb 13, 2011 7:34 pm
Location: Long Island, NY
Contact:

Re: OBBLM Custom tabs

Post by mzukerman »

Yeah, just like that. We're using the Rules section though. Can we stand up another tab?

Reason: ''
"I reserve the right to change my predictions when they are no longer true. I am The Media." ~ Snob Costas
libloodbowl on Twitter
Long Island Blood Bowl League
Empire Cup
Image
User avatar
Shteve0
Legend
Legend
Posts: 2479
Joined: Thu May 07, 2009 10:15 am
Location: Wellington, New Zealand

Re: OBBLM Custom tabs

Post by Shteve0 »

I don't see why not. I've got a couple of deadlines this morning but I'll take a look for you this afternoon.

Reason: ''
League and tournament hosting, blogging and individual forums - all totally free. For the most immersive tabletop sports community experience around, check out theendzone.co
dodger
Rookie
Rookie
Posts: 13
Joined: Mon Oct 21, 2013 10:39 pm

Re: OBBLM Custom tabs

Post by dodger »

You definitely can. I've added a Links tab to our page:

http://wppl.obblm.com

I want to say there were two maybe three different files/sections of code involved in getting it to add and load though.

Reason: ''
dodger
Rookie
Rookie
Posts: 13
Joined: Mon Oct 21, 2013 10:39 pm

Re: OBBLM Custom tabs

Post by dodger »

Ok, in /lib/class_htmlout.php I added this:

<li><a href="index.php?section=rules"><?php echo $lng->getTrn('menu/rules');?></a></li>
<li><a href="index.php?section=links">Links</a></li>
<li><a href="index.php?section=about">OBBLM</a></li>

In index.php I added this:

// Check if a menu-link was picked, and execute section code from sections.php accordingly.
switch ($_GET['section'])
{
case 'login': sec_login(); break;
case 'admin': sec_admin(); break;
case 'teamlist': sec_teamlist(); break;
case 'coachlist': sec_coachlist(); break;
case 'rules': sec_rules(); break;
case 'links': sec_links(); break;
case 'about': sec_about(); break;
case 'matches': sec_matcheshandler(); break; // Tournaments, matches, match reports, recent matches, upcoming matches etc.
case 'objhandler': sec_objhandler(); break; // Object profiles, object standings.
default: sec_main();
}

And in sections.php this:

/*************************
*
* LINKS
*
*************************/

function sec_links() {

global $lng, $credits;
title("LINKS");
?>
Place the HTML for your new tab here and set display name in Title above.
<?php
}

Reason: ''
funnyfingers
Emerging Star
Emerging Star
Posts: 418
Joined: Tue Jul 14, 2009 8:41 pm
Contact:

Re: OBBLM Custom tabs

Post by funnyfingers »

Moving forward with OBBLM, I have created some code updates that will load the menus dynamically from the modules. Also will load the module dynamically instead of needed to make edits in multiple locations. No ETA, but something that will happen.

Reason: ''
Webhosting with the latest version of OBBLM installed: OBBLM Web Hosting (be sure to choose the OBBLM tab)
User avatar
mzukerman
Emerging Star
Emerging Star
Posts: 396
Joined: Sun Feb 13, 2011 7:34 pm
Location: Long Island, NY
Contact:

Re: OBBLM Custom tabs

Post by mzukerman »

Thanks guys!

Reason: ''
"I reserve the right to change my predictions when they are no longer true. I am The Media." ~ Snob Costas
libloodbowl on Twitter
Long Island Blood Bowl League
Empire Cup
Image
Post Reply