BadMrMojo
Joined: Aug 02, 2003
|
  Posted:
Apr 12, 2007 - 22:12 |
|
If you want a different site to constantly mirror your roster at a different URL (so that any changes you make to your roster on FUMBBL get reflected on your site), your entire page consists of one line:
Code: | <?php echo( file_get_contents ("http://fumbbl.com/teams/Pretty+Puppy+Love.html") ); ?> |
Then save it as a .php file. The only issue is getting a server running php.
If you want to make a snapshot of your roster and save it to a file on your webserver (so that any changes you make to your roster on FUMBBL will not be updated, but your site will remain constant), then you write it to a file on your webserver instead of echoing the roster. |
_________________ Ta-Ouch! of BloodBowl
Condensed Guide for Newbies |
|
JonatanRaven
Joined: Aug 15, 2005
|
  Posted:
Apr 12, 2007 - 23:20 |
|
|
The_Decon
Joined: Jan 07, 2007
|
  Posted:
May 30, 2007 - 01:37 |
|
|
prophane
Joined: Aug 02, 2003
|
  Posted:
Nov 26, 2007 - 02:35 |
|
hey, does anyone out there know how to code the hide/unhide buttons onto team bio pages?
like i have past leagues season stats for my team on my team page but as we are starting season 8, the stats are taking up a lot of room. i was hoping to have a button that could be clicked to show the past season stats, but when pushed again, they go away?
anybody? ive seen it a few times on fumbbl teams, but cant find it again. |
_________________ NWL
OCCS
SSS |
|
HunterX
Joined: Aug 02, 2003
|
  Posted:
Nov 26, 2007 - 03:05 |
|
|
prophane
Joined: Aug 02, 2003
|
  Posted:
Nov 26, 2007 - 03:12 |
|
thanks hunterX, problem is i forgot which team i saw it on and there are a LOT of teams to go through! |
_________________ NWL
OCCS
SSS |
|
prophane
Joined: Aug 02, 2003
|
  Posted:
Nov 26, 2007 - 03:24 |
|
|
prophane
Joined: Aug 02, 2003
|
  Posted:
Nov 26, 2007 - 03:28 |
|
never mind, i got it, im good, thanks though! |
_________________ NWL
OCCS
SSS |
|
HunterX
Joined: Aug 02, 2003
|
  Posted:
Nov 26, 2007 - 04:40 |
|
|
Laviak
Joined: Jul 19, 2004
|
  Posted:
Nov 26, 2007 - 05:36 |
|
I guess this is getting a bit beyone html code for beginners, but what the hey... You need to use client side scripting to do it - JavaScript is probably the way to go.
A simple example:
Code: | <p id='example'>Text to hide and show</p>
<a style='color:#000000; cursor:pointer;'
onMouseOver="this.style.color='#800000';"
onMouseOut="this.style.color='#000000';"
title='show/hide'
onclick="obj=document.getElementById('example');
if (this.innerHTML=='show') {
this.innerHTML='hide';
obj.style.display = '';
} else {
this.innerHTML='show';
obj.style.display = 'none';
}">hide</a>
|
You'll need to get rid of the line breaks before using it.
The code is probably slightly simpler with a button, but i like the appearance of a link better
For a slightly more complex example have a look at the previous seasons table for We Fink Wer Orks. |
_________________ We Fink Wer Orks
--------
Help save blood bowl, foul an elf today!. |
|
moonl1te
Joined: Jun 21, 2007
|
  Posted:
Nov 26, 2007 - 09:15 |
|
And for completness, this is the code for doing it with buttons:
Code: | <div><span>
<input type="button" value="show" style="width:250px;font-size:12px;margin:0px;padding:0px;" onclick="if (this.value == 'show')
{
this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display = ''; this.value = 'hide';}
else
{
this.parentNode.parentNode.getElementsByTagName('span')[1].getElementsByTagName('span')[0].style.display = 'none'; this.value = 'hide';
}"></span>
<span><div><spanText to show or hide
</span>
</div> |
|
|
|
Crik
Joined: Aug 02, 2003
|
  Posted:
Jan 06, 2008 - 07:55 |
|
|
Xtreme
Joined: May 04, 2004
|
  Posted:
Jan 07, 2008 - 23:15 |
|
Can someone help me out with this team bio?
ZombieZ
I'm trying to get the second table to be right under 'Dearly Departed'. I can't figure out why there is that gap there. Or why the edit bio button looks like it is part of the table. Anything I try and type below that table gets put above it. I'm sure these things are all probably related, can someone tell me what i'm doing wrong and how to fix it please. |
|
|
Crik
Joined: Aug 02, 2003
|
  Posted:
Jan 08, 2008 - 06:46 |
|
|
Laviak
Joined: Jul 19, 2004
|
  Posted:
Jan 08, 2008 - 07:55 |
|
Almost certainly the gaps are caused by the way FUMBBL replaces newlines with "<br />". There are workarounds in the first couple of pages of this thread (delete the newlines, or comment them out).
Make sure to include both the opening and closing tags for all your tables / rows / cells too. If you don't, you may get some very odd looking stuff in your bio. |
_________________ We Fink Wer Orks
--------
Help save blood bowl, foul an elf today!. |
|
|