ipb, force skin

You can talk about anything here, not necessarily game-related. You may also advertise here.
Post Reply
User avatar
windhound
Fish Rocketh, cows sucketh
Posts: 1030
Joined: Wed Jun 02, 2004 4:36 pm
Location: Ze Ocean

Post by windhound »

http://www.mahahounds.org/Forum/testcal.php

I need to force it to use a special skin that I made that crops everything but the calendar (actually, I just made a new wrapper, if I get it working I'll truely skin it so it goes with the site)
testcal.php is just a prodded index.php that links it to a modified calendar.php, and just that page needs to be effected..

reason is I'm going to attempt to embed it using iframe, somthin like
<iframe src=http://www.mahahounds.org/icalpub.htm width=750% height=600
frameborder=0></iframe>

any ideas?
Hobbs FTW!
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

Try something like: "&skinid=num"

E.g. http://faf.staronesw.com/forum/index.php?s=&skinid=2

However, links won't be converted.

Heh:
http://www.mahahounds.org/Forum/testcal.php?skinid=1
http://www.mahahounds.org/Forum/testcal.php?skinid=3

[edit] In your skin, you can even change the HTML templates to take out things like board headers if you want to, then that would only show the calendar. Also, you could include() it, not iframe it.
:wq
User avatar
windhound
Fish Rocketh, cows sucketh
Posts: 1030
Joined: Wed Jun 02, 2004 4:36 pm
Location: Ze Ocean

Post by windhound »

aah.. spiffy
I'd hidden the skin I wanted to use for the calendar, as I didnt want anyone using it..

I'd also forgotten about thoes other skins O_o I made them a while back.. heh.. look, there's the faf green one :*laughs*: oddly enough I believe there's a folder of beatles lyrics lurking some where on there as well...

could you give an example of an include() command?
as mentioned, I know very little about php.. java I'm atleast halfway decent at and I can look at the code and tell, more or less, what its doing.. writing and using it is a different matter ;)

unless the iframe squishes or distorts or causes excessive scrolling I'm thinking that it'll be the easiest..

http://www.mahahounds.org/Events.htm is where its going... the thing in there now is just static, I copied and pasted html.. but for several months that gets tedious, and it doesnt update on its own

Thanks!
Hobbs FTW!
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

Just copy Events.htm to Events.php and instead of the iframe, add this:

code: Select all

<?php
include("Forum/testcal.php");
?>
If you get path issues, consider moving Events.php into the Forum directory, and changing the code to:

code: Select all

<?php
include("testcal.php");
?>
:wq
User avatar
windhound
Fish Rocketh, cows sucketh
Posts: 1030
Joined: Wed Jun 02, 2004 4:36 pm
Location: Ze Ocean

Post by windhound »

http://www.mahahounds.org/Forum/testcal.php?s=&skinid=4

the problem is that php wont let me add the extra ?s=... extra, so the skin cant be changed in the standard include statement

http://www.mahahounds.org/Forum/Events.php is as it currently stands, banner still there but it looks decent
Hobbs FTW!
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

code: Select all

<?php
$_GET['skinid'] = 4;
include("Events.php");
?>
[edit] Howzat for response time: 6 and 2 minutes, respectively.
:wq
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members