Topic: Integrera forum till sida

Hejsan...

Jag har försökt att bygga in punbb forumet i en sida..
Men det funkar inte!  Sökvägen är rätt till PUN_ROOT det vet jag.

<?php
define('PUN_ROOT', './forum/');
require PUN_ROOT.'include/common.php';
?>

Tacksam om jag kan få någon bra info om hur man gör.

Men det funkar inte....

Kan nån hjälpa mig lite på tråden.....

Re: Integrera forum till sida

And now in English.

Re: Integrera forum till sida

Hello

I have try to build in punbb in to a webpage...
But it doesent work!  Search path is right to the PUN_ROOT.
That i now..

<?php
define('PUN_ROOT', './forum/');
require PUN_ROOT.'include/common.php';
?>

I hope that someone can tell me how i shoude do...

Please help me...

Sorry for my bad english...

Re: Integrera forum till sida

What error do you get?

5 (edited by swedishpower 2007-11-18 19:41)

Re: Integrera forum till sida

I dont get any errors...

I get a emty page....

Uppdate......
I get this errors...

Warning: main(./forum/include/common.php): failed to open stream: No such file or directory in C:\apache\Apache2\htdocs\forum\index_1.php on line 67

Warning: main(./forum/include/common.php): failed to open stream: No such file or directory in C:\apache\Apache2\htdocs\forum\index_1.php on line 67

Fatal error: main(): Failed opening required './forum/include/common.php' (include_path='.;c:\php4\pear') in C:\apache\Apache2\htdocs\forum\index_1.php on line 67

Check out this page : http://it-computertech.sytes.net/forum/index_1.php

Edit to :

<?php
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
?>

Then i get a emty page...

Re: Integrera forum till sida

index_1.php is in the forum folder already. PUN_ROOT should just be ./

Re: Integrera forum till sida

i only get a emty page....

8 (edited by swedishpower 2007-11-18 20:22)

Re: Integrera forum till sida

hello...

I whant to have my forum like this :

http://it-computertech.sytes.net/forum/prov.bmp

PLEASE HELP ME !!!!!!

Re: Integrera forum till sida

OK, what do you need help with?

10 (edited by swedishpower 2007-11-18 20:37)

Re: Integrera forum till sida

I need to edit the forum so i can have it in my page...

This is my code for the page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="plugins/js/swfobject.js"></script>
<script type="text/javascript" src="plugins/js/behaviour.js"></script>
<script type="text/javascript" src="plugins/js/tmv11.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Swedish Power Club - Din volvo klubb på nätet</title>
<link href="plugins/css/style_1.css" rel="stylesheet" type="text/css" />
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="plugins/js/pngfix.js"></script>
<![endif]-->
</head>
<body>

<div id="wrapper" style="width: 1004px">

<div id="page">

<!--<Över menyn>-->
<div id="header">
<div style="width: 993px">
                <a href="/">
<img alt="!" class="top" src="templates/test_img/test_logga_top.png" width="950" height="150" /></a><ul>
<li><a href="index.php">Startsidan</a></li>
<li><a href="om.php">Om SPC</a></li>
<li><a href="member.php">Medlemmar</a></li>
<li><a href="diskutera.php">Diskutera</a></li>
<li><a href="webshop.php">Webshop</a></li>
<li><a href="lankar.php">Länkar</a></li>
<li><a href="faq.php">Frågor & Svar</a></li>
<li><a href="news.php">Nyheter</a></li>
<li><a href="buy_info.php">Köp & Sälj</a></li>
<li><a href="tavling.php">Tävlingar</a></li>
<li class='selected'><a href="galleri.php">Galleri</a></li>
<li><a href="annonsera.php">Annonsera</a></li>
<li><a href="download.php">Ladda ner</a></li>
</ul>
</div>
</div>

<div>
     the menus for the forum...</div>
        
<div id="leftcolumn">
<div class="box leftbox" id="leftmenu">
<div style="width: 180px">
<h1>Annonser</h1>
Here is my user status
</div>
</div>

<div class="box leftbox" id="leftmenu">
<div style="width: 180px">
<h1>Kalender</h1>
 
</div>
</div>
</div>
             
<div id="content">
<div class="box centerbox" id="category">
<div style="width: 589px">
<h1>Swedish Power Club</h1>
<?php
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
?>
</div>
</div>

<div id="content">
<div class="box centerbox" id="category">
<div style="width: 589px">
<h1>Användare Online</h1>
Användare online
</div>
</div>
</div>    
</div>
</div> 

<div id="rightcolumn">
<div class="box rightbox">
<div style="width: 180px">
<h1>Annonser</h1>
 
</div>
</div>

<div id="rightcolumn">
<div class="box rightbox">
<div style="width: 180px">
<h1>Partners</h1>
  </div>
</div>
</div>
</div>
</div>

<div id="footer" style="width: 1002px">
<p style="text-align: center">
<font size="1">Copyright Niklas Friberg VS Swedish Power Club 2007-2008</font></font></p>
</div>
</div>

</body>
</html>

Re: Integrera forum till sida

OK, what you want to do is remove the PHP from there and instead edit include/template/main.tpl to integrate your HTML.

12 (edited by swedishpower 2007-11-18 20:44)

Re: Integrera forum till sida

yes....

You meen like this :

My edit :

<div id="content">
<div class="box centerbox" id="category">
<div style="width: 589px">
<h1>Swedish Power Club</h1>
<?php
define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';
?>
</div>
</div>

And change it to :

<div id="content">
<div class="box centerbox" id="category">
<div style="width: 589px">
<h1>Swedish Power Club</h1>
<div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="inbox">
            <pun_title>
            <pun_desc>
        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>

<pun_announcement>

<pun_main>

<pun_footer>

</div>
</div>
</div>
</div>

Re: Integrera forum till sida

Close, I meant more like this (for main.tpl)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
<script type="text/javascript" src="plugins/js/swfobject.js"></script>
<script type="text/javascript" src="plugins/js/behaviour.js"></script>
<script type="text/javascript" src="plugins/js/tmv11.js"></script>
<link href="plugins/css/style_1.css" rel="stylesheet" type="text/css" />
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="plugins/js/pngfix.js"></script>
<![endif]-->
</head>
<body>

<div id="wrapper" style="width: 1004px">

<div id="page">

<!--<Över menyn>-->
<div id="header">
<div style="width: 993px">
                <a href="/">
<img alt="!" class="top" src="templates/test_img/test_logga_top.png" width="950" height="150" /></a><ul>
<li><a href="index.php">Startsidan</a></li>
<li><a href="om.php">Om SPC</a></li>
<li><a href="member.php">Medlemmar</a></li>
<li><a href="diskutera.php">Diskutera</a></li>
<li><a href="webshop.php">Webshop</a></li>
<li><a href="lankar.php">Länkar</a></li>
<li><a href="faq.php">Frågor & Svar</a></li>
<li><a href="news.php">Nyheter</a></li>
<li><a href="buy_info.php">Köp & Sälj</a></li>
<li><a href="tavling.php">Tävlingar</a></li>
<li class='selected'><a href="galleri.php">Galleri</a></li>
<li><a href="annonsera.php">Annonsera</a></li>
<li><a href="download.php">Ladda ner</a></li>
</ul>
</div>
</div>

<div>
     the menus for the forum...</div>
        
<div id="leftcolumn">
<div class="box leftbox" id="leftmenu">
<div style="width: 180px">
<h1>Annonser</h1>
Here is my user status
</div>
</div>

<div class="box leftbox" id="leftmenu">
<div style="width: 180px">
<h1>Kalender</h1>
 
</div>
</div>
</div>
             
<div id="content">
<div class="box centerbox" id="category">
<div style="width: 589px">
<h1>Swedish Power Club</h1>
<div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="inbox">
            <pun_title>
            <pun_desc>
        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>

<pun_announcement>

<pun_main>

<pun_footer>

</div>
</div>
</div>
</div>

<div id="content">
<div class="box centerbox" id="category">
<div style="width: 589px">
<h1>Användare Online</h1>
Användare online
</div>
</div>
</div>    
</div>
</div> 

<div id="rightcolumn">
<div class="box rightbox">
<div style="width: 180px">
<h1>Annonser</h1>
 
</div>
</div>

<div id="rightcolumn">
<div class="box rightbox">
<div style="width: 180px">
<h1>Partners</h1>
  </div>
</div>
</div>
</div>
</div>

<div id="footer" style="width: 1002px">
<p style="text-align: center">
<font size="1">Copyright Niklas Friberg VS Swedish Power Club 2007-2008</font></font></p>
</div>
</div>

</body>
</html>

I don't know exactly how this will work, by the way.

Re: Integrera forum till sida

my forum lock like this now : http://it-computertech.sytes.net/forum/index.php

Re: Integrera forum till sida

You also need to fix some of your CSS: you're only allowed to use an ID once (you have more than one div with id content, for example)

Re: Integrera forum till sida

swedishpower wrote:

my forum lock like this now : http://it-computertech.sytes.net/forum/index.php

Good. You've successfully integrated your layout. Now you just need to tweak the forum so it looks OK.
But first you need to use my main.tpl, not yours wink

Re: Integrera forum till sida

but i´m using yours main.tpl

Re: Integrera forum till sida

You weren't at the time you made your post. wink
And you aren't now.

Re: Integrera forum till sida

This is the code i´m using now :

<div id="content">
<div class="box centerbox" id="category">
<div style="width: 589px">
<h1>Swedish Power Club</h1>
<div id="punwrap">
<div id="pun<pun_page>" class="pun">
<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="inbox">
        </div>
    </div>

<pun_announcement>
<pun_main>

</div>
</div>
</div>
</div>

Re: Integrera forum till sida

Here is the main.tpl I posted earlier in the topic for you:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
<script type="text/javascript" src="plugins/js/swfobject.js"></script>
<script type="text/javascript" src="plugins/js/behaviour.js"></script>
<script type="text/javascript" src="plugins/js/tmv11.js"></script>
<link href="plugins/css/style_1.css" rel="stylesheet" type="text/css" />
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="plugins/js/pngfix.js"></script>
<![endif]-->
</head>
<body>

<div id="wrapper" style="width: 1004px">

<div id="page">

<!--<Över menyn>-->
<div id="header">
<div style="width: 993px">
                <a href="/">
<img alt="!" class="top" src="templates/test_img/test_logga_top.png" width="950" height="150" /></a><ul>
<li><a href="index.php">Startsidan</a></li>
<li><a href="om.php">Om SPC</a></li>
<li><a href="member.php">Medlemmar</a></li>
<li><a href="diskutera.php">Diskutera</a></li>
<li><a href="webshop.php">Webshop</a></li>
<li><a href="lankar.php">Länkar</a></li>
<li><a href="faq.php">Frågor & Svar</a></li>
<li><a href="news.php">Nyheter</a></li>
<li><a href="buy_info.php">Köp & Sälj</a></li>
<li><a href="tavling.php">Tävlingar</a></li>
<li class='selected'><a href="galleri.php">Galleri</a></li>
<li><a href="annonsera.php">Annonsera</a></li>
<li><a href="download.php">Ladda ner</a></li>
</ul>
</div>
</div>

<div>
     the menus for the forum...</div>
        
<div id="leftcolumn">
<div class="box leftbox" id="leftmenu">
<div style="width: 180px">
<h1>Annonser</h1>
Here is my user status
</div>
</div>

<div class="box leftbox" id="leftmenu">
<div style="width: 180px">
<h1>Kalender</h1>
 
</div>
</div>
</div>
             
<div id="content">
<div class="box centerbox" id="category">
<div style="width: 589px">
<h1>Swedish Power Club</h1>
<div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
    <div class="box">
        <div id="brdtitle" class="inbox">
            <pun_title>
            <pun_desc>
        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>

<pun_announcement>

<pun_main>

<pun_footer>

</div>
</div>
</div>
</div>

<div id="content">
<div class="box centerbox" id="category">
<div style="width: 589px">
<h1>Användare Online</h1>
Användare online
</div>
</div>
</div>    
</div>
</div> 

<div id="rightcolumn">
<div class="box rightbox">
<div style="width: 180px">
<h1>Annonser</h1>
 
</div>
</div>

<div id="rightcolumn">
<div class="box rightbox">
<div style="width: 180px">
<h1>Partners</h1>
  </div>
</div>
</div>
</div>
</div>

<div id="footer" style="width: 1002px">
<p style="text-align: center">
<font size="1">Copyright Niklas Friberg VS Swedish Power Club 2007-2008</font></font></p>
</div>
</div>

</body>
</html>

Re: Integrera forum till sida

I have change the layout now...

But the design is no good...

Can you help me some more....what do i need to change...

Re: Integrera forum till sida

Well, the first thing to do is to remove the redundant Cellfuse CSS you copied into your stylesheet. Your template now includes the PunBB stylesheet directly.

23 (edited by swedishpower 2007-11-18 21:31)

Re: Integrera forum till sida

I have removed the cellfuse from the style_1.css

You can se the page on : http://it-computertech.sytes.net/forum/index.php

Re: Integrera forum till sida

Well, your website appears to be down now

Re: Integrera forum till sida

i close it for the night...
But the server is open now....

http://it-computertech.sytes.net/forum/