1 (edited by gleb 2006-01-20 22:22)

Topic: Miniportal problem...layout.

Okey first of all i´m runnin the site http://cssforumet.frac.dk and I think the punBB forum is great. Now for my problem.

I´m trying to convert http://cssforumet.frac.dk to miniportal. I´ve done the miniportal guide located at punres.org with sucess but i would like to change the layout abit. My testsite before implementation is located here http://testforumet.frac.dk

I´ve done som spying at http://www.pluriservices.net/ and this is how I would like my site layuout to look aswell. I´ve tried to edit the main.tpl without any sucess and I´m really lost here...so how do I put the "Welcome bla bla bla" in between the "whos online blocks located at the right and the left? My main.tpl looks like this: (sorry for my english hehe)


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

<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
<style type="text/css">
    #left {
        width: 125px;
        float: left;
    }
    #right {
        width: 125px;
        float: right;
    }
    #main {
        margin-left: 150px;
        margin-right: 150px;
            }
    #container {
        width: 100%;
        float: middle;
        margin-left: 140px;
            }
</style>
</head>
<body>

<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>

<div id="container">
    <div id="main">
     Här kan man lgga reklam
        <pun_announcement>
   
        <pun_main>
       
       
    </div>   
</div>

<div id="left"> 
<div class="block">
        <h2 class="block2"><span>Whos Online?</span></h2>
        <div class="box">
        <pun_online>
        </div>
</div>
    <div class="block">
        <h2><span>Menu</span></h2>
        <div class="box">
        <pun_sidelinks>           
        </div>
    </div>
    <div class="block">
        <h2 class="block2"><span>More Links</span></h2>
        <div class="box">
            <div class="inbox">
                <ul>
                    <li><a href="index.php">Link 1</a></li>
                    <li><a href="index.php">Link 2</a></li>
                    <li><a href="index.php">Link 3</a></li>
                    <li><a href="index.php">Link 4</a></li>
                </ul>       
            </div>
        </div>
    </div>
</div>


<div id="right"> 
<div class="block">
        <h2 class="block2"><span>Whos Online?</span></h2>
        <div class="box">
        <pun_online>
        </div>
</div>
    <div class="block">
        <h2><span>Menu</span></h2>
        <div class="box">
        <pun_sidelinks>           
        </div>
    </div>
    <div class="block">
        <h2 class="block2"><span>More Links</span></h2>
        <div class="box">
            <div class="inbox">
                <ul>
                    <li><a href="index.php">Link 1</a></li>
                    <li><a href="index.php">Link 2</a></li>
                    <li><a href="index.php">Link 3</a></li>
                    <li><a href="index.php">Link 4</a></li>
                </ul>       
            </div>
        </div>
    </div>
</div>



<div class="clearer"></div>

<pun_footer>

</div>
</div>

</body>
</html>

2 (edited by Patrik 2006-01-20 23:39)

Re: Miniportal problem...layout.

Here is my main.tpl. I use Miniportal.

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

"Removed because it did not help"

</html>

3 (edited by gleb 2006-01-20 23:33)

Re: Miniportal problem...layout.

Maybe I didn´t explain that well. Your page are using the orginal miniportal? That one works fine for me also. The thing is that I want to have a column to the left and the right...you only have a column to the left. Do you follow now?

4

Re: Miniportal problem...layout.

so you need a 3col.css with that:

#header {
    border: 1px solid #cecea5;
    background: #d7dabd;
}

#content {
    width: 100%;
    float: right;
    margin-left: -150px;
}
#container {
    width: 100%;
    float: left;
    margin-right: -200px;
}
#main {
    margin-left: 150px;
    margin-right: 200px;
}
#left {
    width: 140px;
    float: left;
}
#right {
    width: 190px;
    float: right;
}
#footer {
    border: 1px solid #cecea5;
    background: #d7dabd;
}
.clearing {
    height: 0;
    clear: both;
}
p.postedby {clear:both}

It's what i'm using for pluriservices.net

Ludo,

5 (edited by gleb 2006-01-21 22:09)

Re: Miniportal problem...layout.

Ludo: That didn´t solve my problem either. Ehm I like the miniportal when the left and for me the right block are "fixed" and the middle ("main") section changes. I´m really new to all this....haven´t seen <div> before haha...but I think I´ve solved the issue. If you would like to see my progress visit http://www.testforumet.frac.dk Below is my new main.tpl (I will update this code later )

2005-01-21 23:01 main.tpl code updated...
The above problem is now solved (as you can see in the code below) The page is slowly developing but I´ve noticed a new problem. If you visit http://testforumet.frac.dk and take a look at the top banner. There´s a white gap between the banner and the absolut top...All of my margins are set to "0" except in the *.css file located att style/kontrast.css. If I change padding to 0px 6px the gap dissipears but it also changes the paddings in the forum negative...is there a way to solve this?

kontrast.css below

/* 7. SPACING FOR TABLES */
/****************************************************************/

.pun TH, .pun TD {PADDING: 4px 6px}
.pun TD P {PADDING: 5px 0 0 0}


main.tpl below

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

<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<pun_head>
<style type="text/css">
    #left {
        width: 94px;
        float: left;
    }
    #right {
        width: 122px;
        float: right;
    }
    #main {
        float: middle;
        margin-left: 0px;
        margin-right: 0px;
            }
    #container {
        width: 100%;
        float: middle;
        margin-left: 0px;
            }
body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
a:link {
    color: #000000;
}
a:visited {
    color: #000000;
}
</style>
</head>
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">

<div id="punwrap">
<div id="pun<pun_page>" class="pun">


<table border="0" width="100%" style="border-width: 0px">
<tr>         
         <td style="border-style: none; border-width: medium">
        <img src="top2.jpg" alt="" width="702" height="92" align="right"/></td>
  </tr>
<tr>
         
         <td width="193%" background="img/Kontrast/bg-barre.gif" style="border-style: none; border-width: medium">
        <p align="center"><font color="#FFFFFF" face="Verdana" size="1">
        Välkommen till Svenska Counter-Strike:source forume</font></td>
  </tr>
</table>

<table border="0" width="100%" cellspacing="0" cellpadding="0" style="border-width: 0px">
   <tr>
      <td style="border-style: none; border-width: medium">
        <pun_desc>
        <pun_status>
         </td>
  </tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="ffffff" style="border-collapse: collapse">
  <tr>
    <td width="94" valign="top" border="0" cellpadding="0" cellspacing="0" bordercolor="#000000" bgcolor="ffffff" style="border-style:none; border-width:medium; border-collapse: collapse"> 
    <div class="block">
        <h2 align="center"><span>Menu</span></h2>
        <div class="box">
        <pun_sidelinks>           
        </div>
    </div>
    <div class="block">
        <h2 class="block2" align="center"><span>Online</span></h2>
        <div class="box">
        <pun_online>
        </div>
</div>
    <div class="block">
        <h2 class="block2" align="center"><span>More Links</span></h2>
        <div class="box">
            <div class="inbox">
                <ul>
                    <li><a href="Gamlaregler.php">Link 1</a></li>
                    <li><a href="index.php">Link 2</a></li>
                    <li><a href="index.php">Link 3</a></li>
                    <li><a href="index.php">Link 4</a></li>
                </ul>       
            </div>
        </div>
    </div>
</div>
    <td width="100%" valign="top" border="0" cellpadding="0" cellspacing="0" bordercolor="#000000" bgcolor="ffffff" style="border-style:none; border-width:medium; border-collapse: collapse">
    <div id="container">
     <div id="main">
      <pun_announcement>
   
        <pun_main>
    </div> 
</div>

<div class="clearer"></div>

<pun_footer>
</div>
</div></td>
    <td width="122" valign="top" border="0" cellpadding="0" cellspacing="0" bordercolor="#000000" bgcolor="ffffff" style="border-style:none; border-width:medium; border-collapse: collapse">
    <div id="right"> 
<div class="block">
        <h2 align="center" class="block2"><span>Reklam</span></h2>
        <div class="box">
          <div align="center">
            <script type="text/javascript"><!--
google_ad_client = "pub-3579073172279224";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_page_url = document.location;
google_color_border = "ffffff";
google_color_bg = "324160";
google_color_link = "FFFFFF";
google_color_url = "FFFFFF";
google_color_text = "000000";
//--></script>
            <script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
          </script>
            </div>
        </div>
</div>
</div></td>
  </tr>
</table>

</body>
</html>

6 (edited by gleb 2006-01-22 01:47)

Re: Miniportal problem...layout.

I´m also trying to add data from the extern.php into main.tpl...but I don´t really get it....tried the search function all evning but I´m really stuck on this one...plz help me.

For example I would like to add this to my miniportal http://www.testforumet.frac.dk/extern.p … mp;show=10

If you visit the testpage http://testforumet.frac.dk you´ll find the recent topics at the bottom, but just the box...no topics in it?? I´ve added the code below to the main.tpl near the end. (after the last </table> in the code above)

<div class="block">
        <h2 class="block2"><span>Recent</span></h2>
        <div class="box">
            <div class="inbox">
                <?php include('http://www.testforumet.frac.dk/extern.php?action=new&show=10'); ?>     
            </div>
        </div>
    </div>

7

Re: Miniportal problem...layout.

"Bumb" it til tomorrow..then I´m on it again big_smile

8 (edited by StevenBullen 2006-01-22 08:19)

Re: Miniportal problem...layout.

Here you go...

http://punbb.org/forums/viewtopic.php?id=9914

9

Re: Miniportal problem...layout.

Stevenbullen: I´ve tried to do as the link you gave me...but I get the error:

Warning: main(http://www.testforumet.frac.dk/extern.php?action=active) [function.main]: failed to open stream: Connection timed out in /web/www/frac/users/testforumet/include/user/here.php on line 2

Warning: main() [function.include]: Failed opening 'http://www.testforumet.frac.dk/extern.php?action=active' for inclusion (include_path='.:/usr/share/php:/usr/share/pear:/web/www/include') in /web/www/frac/users/testforumet/include/user/here.php on line 2

Any ideas?

10 (edited by StevenBullen 2006-01-22 11:22)

Re: Miniportal problem...layout.

Post the here.php that you are using.

I just changed my test site with your link and my here.php.... Worked fine.

11 (edited by gleb 2006-01-22 11:20)

Re: Miniportal problem...layout.

It looks like this...

<?php
include('http://www.testforumet.frac.dk/extern.php?action=active');
?>

Re: Miniportal problem...layout.

Check out www.dev.marine-hunters.co.uk

Left side menu CS Source listing is your listing...

13 (edited by gleb 2006-01-22 11:29)

Re: Miniportal problem...layout.

How did you do that...?I t really works for you :S What code did you use and were did you put it?

This link works  http://testforumet.frac.dk/extern.php?action=active ...but how come it doesn´t work when I´m implementing it in php.

Re: Miniportal problem...layout.

Here is what I have...

my here.php is

General
<ul>
<?php
include('http://www.dev.marine-hunters.co.uk/extern.php?action=new&fid=48,42,43,45,41,40,49,50,51,56,58,65&show=5')
?></ul><br />Battlefield 2
<ul>
<?php
include('http://www.dev.marine-hunters.co.uk/extern.php?action=new&fid=57,59,61,38,46,44&show=3')
?></ul><br />Counter Strike Source
<ul>
<?php
include('http://www.testforumet.frac.dk/extern.php?action=active');
?></ul>

and my main.tpl contains

<div class="blocks">
            <h2><span>Recent Posts</span></h2>
            <div class="box">
            <div class="inbox">
            <pun_include "here.php">
    </div>
        </div>
        </div>

Hope this helps...

15 (edited by gleb 2006-01-22 11:40)

Re: Miniportal problem...layout.

I´ve copied you code and it´s pertty weird...

If you take a look at my site http://testforumet.frac.dk I can link to your recent topics and you can link to mine...but I can´t link to my own. Hmm any suggesions?

Still gets the same error code as above (of course on a different line)

Re: Miniportal problem...layout.

I am currently at work and the page will not load... Just sits there for about 5 minutes then gives you the usual page not found error.

Will try again from home when I go on a break shortly...

17 (edited by gleb 2006-01-22 12:02)

Re: Miniportal problem...layout.

Aight mate...Well it looks like this: (your site on top General bla bl and mine Counter Strike source error code)

General
test
funny bf2 movie
The real world...
me flying chopper
Need a slogan?

Battlefield 2
Booster Pack - Euro Force ?
New Patch info....
Argh... Match at 7:30 am??

Counter Strike Source

Warning: main(http://www.testforumet.frac.dk/extern.php?action=active) [function.main]: failed to open stream: Connection timed out in /web/www/frac/users/testforumet/include/user/here.php on line 12

Warning: main() [function.include]: Failed opening 'http://www.testforumet.frac.dk/extern.php?action=active' for inclusion (include_path='.:/usr/share/php:/usr/share/pear:/web/www/include') in /web/www/frac/users/testforumet/include/user/here.php on line 12

So as you can see...your extern.php does work but not my own?

Re: Miniportal problem...layout.

Who is your supplier?

I have had this problem before... then a day or two later it suddenly worked. My supplier could not give a reason behind it.

Personally I would say it is 100% the machine where the site is sitting? but dont ask me what.

19

Re: Miniportal problem...layout.

My webhost is www.frac.dk and that is probably were the problem is...I will try to upload the site to another host and see if it works there? Any suggestions of a good free webhoster?

20 (edited by StevenBullen 2006-01-22 12:20)

Re: Miniportal problem...layout.

Sorry I m afraid not... I have a site with www.streamline.net which is good for a small/medium site. But not free sad

21 (edited by gleb 2006-01-22 12:21)

Re: Miniportal problem...layout.

Ohh by the way...would you like to email your main.tpl to....just so I could compare yours with mine. You have a great looking site I think and thanks for the help big_smile

22 (edited by StevenBullen 2006-01-22 12:27)

Re: Miniportal problem...layout.

Will mail it to you.... smile

Done.

23

Re: Miniportal problem...layout.

Thanx alot!!!

24 (edited by KiLLMasTer 2006-01-22 20:41)

Re: Miniportal problem...layout.

Man nice site keep up the good work..

Hey I see that your looking for a good Free Host heres the one I Use..... http://funpic.org/

PhP and all that good beep......

my site..... http://devoted.to/thegamers or http://killmaster.funpic.org

Oh and No Banner ADS smile

25

Re: Miniportal problem...layout.

Well a question came up as I was looking into the index.php (using miniportal) At the end there is a line "echo pun_news(16);" I´m no programmmer what so ever but is it possible to do something like this:

Put it inside a table?

<table>
echo pun_news(16);
</table>

or

...inside divs?

<div>
echo pun_news(16);
</div>

I´ve noticed that it doesn´t work if I do as above...