1,876

(55 replies, posted in PunBB 1.2 discussion)

OK!

phpBB folder, posts.php

FIND

    $result = $fdb->query('SELECT post.post_id, post.post_time, post.poster_id, post.poster_ip, post.topic_id, text.post_subject, text.post_text, users.username FROM '.$_SESSION['php'].$_SESSION['phpnuke'].'posts AS post, '.$_SESSION['php'].$_SESSION['phpnuke'].'posts_text AS text, '.$_SESSION['php'].'users AS users WHERE post.post_id>'.$start.' AND post.post_id=text.post_id AND users.user_id=post.poster_id ORDER BY post.post_id LIMIT '.$_SESSION['limit']) or myerror("Unable to get posts", __FILE__, __LINE__, $fdb->error());

REPLACE WITH

    $result = $fdb->query('SELECT post.post_id, post.post_time, post.poster_id, post.poster_ip, post.topic_id, post.post_subject, post.post_text, users.username FROM '.$_SESSION['php'].$_SESSION['phpnuke'].'posts AS post, '.$_SESSION['php'].'users AS users WHERE post.post_id>'.$start.' AND users.user_id=post.poster_id ORDER BY post.post_id LIMIT '.$_SESSION['limit']) or myerror("Unable to get posts", __FILE__, __LINE__, $fdb->error());

1,877

(55 replies, posted in PunBB 1.2 discussion)

OK, well lets see if I can fix the PunBB converter problems for you one at a time wink
In the phpBB folder, for categories.php
FIND

    // Fetch forum info
    $result = $fdb->query('SELECT * FROM '.$_SESSION['php'].$_SESSION['phpnuke'].'categories') or myerror('Unable to fetch categories', __FILE__, __LINE__, $fdb->error());
    while($ob = $fdb->fetch_assoc($result))
    {
        echo $ob['cat_title'].' ('.$ob['cat_id'].")<br>\n"; flush();

        // Dataarray
        $todb = array(
            'id'                    =>        $ob['cat_id'],
            'cat_name'            =>        $ob['cat_title'],    
            'disp_position'    =>     $ob['cat_order'],
        );

        // Save data
        insertdata('categories', $todb, __FILE__, __LINE__);
    }

REPLACE WITH

    // Fetch forum info
    $result = $fdb->query('SELECT * FROM '.$_SESSION['php'].$_SESSION['phpnuke'].'forums where forum_type=0') or myerror('Unable to fetch categories', __FILE__, __LINE__, $fdb->error());
    while($ob = $fdb->fetch_assoc($result))
    {
        echo $ob['forum_name'].' ('.$ob['forum_id'].")<br>\n"; flush();

        // Dataarray
        $todb = array(
            'id'                    =>        $ob['forum_id'],
            'cat_name'            =>        $ob['forum_name'],    
            'disp_position'    =>     $ob['left_id'],
        );

        // Save data
        insertdata('categories', $todb, __FILE__, __LINE__);
    }

1,878

(55 replies, posted in PunBB 1.2 discussion)

I doubt you'll find one. I meant to convert from phpBB 3 to, say, SMF, which PunBB can convert from.

1,879

(27 replies, posted in PunBB 1.2 troubleshooting)

Well, your website appears to be down now

1,880

(55 replies, posted in PunBB 1.2 discussion)

OK, then my best suggestion would be to convert to another forum system that the converter supports and then convert to PunBB.

1,881

(4 replies, posted in PunBB 1.2 troubleshooting)

Again, those aren't PunBB issues. Talk to your host.

1,882

(27 replies, posted in PunBB 1.2 troubleshooting)

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.

1,883

(27 replies, posted in PunBB 1.2 troubleshooting)

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>

1,884

(27 replies, posted in PunBB 1.2 troubleshooting)

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

1,885

(15 replies, posted in PunBB 1.2 bug reports)

Dante, if you want to talk more about this with me, send me an email wink

1,886

(27 replies, posted in PunBB 1.2 troubleshooting)

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

1,887

(27 replies, posted in PunBB 1.2 troubleshooting)

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)

1,888

(27 replies, posted in PunBB 1.2 troubleshooting)

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.

1,889

(27 replies, posted in PunBB 1.2 troubleshooting)

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

1,890

(27 replies, posted in PunBB 1.2 troubleshooting)

OK, what do you need help with?

1,891

(27 replies, posted in PunBB 1.2 troubleshooting)

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

1,892

(55 replies, posted in PunBB 1.2 discussion)

Try using the converter for phpBB2, post here if something doesn't work.

1,893

(27 replies, posted in PunBB 1.2 troubleshooting)

What error do you get?

1,894

(3 replies, posted in PunBB 1.2 troubleshooting)

You need to talk to your host about that: your version of PHP does not have the mysql or mysqli extensions enabled.

1,895

(4 replies, posted in PunBB 1.2 troubleshooting)

Talk to your host, that's not a PunBB issue

1,896

(12 replies, posted in PunBB 1.2 troubleshooting)

FIND

<tr<?php if ($item_status != '') echo ' class="'.$item_status.'"'; ?>>

REPLACE WITH

<tr id="forum<?php echo $cur_forum['fid']; ?>"<?php if ($item_status != '') echo ' class="'.$item_status.'"'; ?>>

1,897

(12 replies, posted in PunBB 1.2 troubleshooting)

The line of code you need to edit in index.php is this one:

<tr<?php if ($item_status != '') echo ' class="'.$item_status.'"'; ?>>

1,898

(12 replies, posted in PunBB 1.2 troubleshooting)

mod = modification
trivial = small, simple, in this case

1,899

(12 replies, posted in PunBB 1.2 troubleshooting)

Yes, as I said it's a trivial mod. You just have to edit index.php. My point was simply that 1.3 already has this (and thus it is possible).

1,900

(12 replies, posted in PunBB 1.2 troubleshooting)

Oh, it's a trivial mod to add an ID to the tr. 1.3 already has it, actually.