News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Utilizing template for subdomain page.

Started by Hathor, March 24, 2015, 05:52:14 PM

Previous topic - Next topic

Hathor

Hello,

I'm really not sure where to put this post as i feel it touches different aspects so i'll give it a go here.
I've set up my first forum, on a good host with its own domain and subdomain.

The forum is located here.
forum.svenska-reiki.se

It has a nice theme. I also have the subdomain chat.svenska-reiki.se which is pretty much a flash chat.
I don't want to look for third party addon to put the flash into forum post, for security reason, so i'd like to use the
template around the flash window. I know i can use the SSI for the top menu bar, but what about the theme that the
forum uses? Is this something for the theme developer to explain or is there a smooth way of doing this directly?

With regards

Arantor


<?php
require_once('/whatever/the/path/to/SSI.php');

$context['page_title'] = 'Chat';

template_header();
?>


page content goes here

<?php
template_footer
();
?>

Hathor

Quote from: Arantor on March 24, 2015, 05:59:49 PM

<?php
require_once('/whatever/the/path/to/SSI.php');

$context['page_title'] = 'Chat';

template_header();
?>


page content goes here

<?php
template_footer
();
?>


Oh yes, that made a huge difference! I still can't get this incorporated though, as it seems it just won't parse it. I've tried just about everything i can think of, with extremely limited php knowledge.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<meta name="language" content="de" />
<meta name="author" content="Valentin Manthei - lightIRC.com" />
<title>lightIRC.com / Free Flash IRC Client</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript" src="config.js"></script>
<style type="text/css">
html { height: 100%; overflow: hidden; }
body { height:100%; margin:0; padding:0; background-color:#999; }
</style>
</head>

<body>
<div id="lightIRC" style="height:100%; text-align:center;">
  <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"

/></a></p>
</div>

<script type="text/javascript">
swfobject.embedSWF("lightIRC.swf", "lightIRC", "100%", "100%", "10.0.0", "expressInstall.swf", params);
</script>
</body>
</html>

Arantor


Advertisement: