You are not logged in. Please login or register.
Active topics Unanswered topics
Search options (Page 76 of 307)
Topics by Smartys User defined search
Posts found: 1,876 to 1,900 of 7,674
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());
OK, well lets see if I can fix the PunBB converter problems for you one at a time
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__);
}
I doubt you'll find one. I meant to convert from phpBB 3 to, say, SMF, which PunBB can convert from.
Well, your website appears to be down now
OK, then my best suggestion would be to convert to another forum system that the converter supports and then convert to PunBB.
Again, those aren't PunBB issues. Talk to your host.
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.
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>
You weren't at the time you made your post.
And you aren't now.
Dante, if you want to talk more about this with me, send me an email
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
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)
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.
OK, what you want to do is remove the PHP from there and instead edit include/template/main.tpl to integrate your HTML.
OK, what do you need help with?
index_1.php is in the forum folder already. PUN_ROOT should just be ./
Try using the converter for phpBB2, post here if something doesn't work.
You need to talk to your host about that: your version of PHP does not have the mysql or mysqli extensions enabled.
Talk to your host, that's not a PunBB issue
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.'"'; ?>>
The line of code you need to edit in index.php is this one:
<tr<?php if ($item_status != '') echo ' class="'.$item_status.'"'; ?>>
mod = modification
trivial = small, simple, in this case
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).
Oh, it's a trivial mod to add an ID to the tr. 1.3 already has it, actually.
Posts found: 1,876 to 1,900 of 7,674