 |
 |
 |
 |
 |
| Author |
Message |
Ramon
Joined: 12 Oct 2005 Posts: 473 Location: Hoogeveen, NL |
|
|
|
Hmm, strange.. Could u show the script you use for showing the lasest post?
|
|
| Sat Mar 04, 2006 1:04 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
Terminator
Joined: 04 Feb 2006 Posts: 31
|
|
|
|
This is my whole page:
 |  | <?php
include './news/head.php';
require_once ("global.php");
require_once ("./forum/inc/functions_post.php");
?>
<html>
<head>
<meta http-equiv="Content-Language" content="nl">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Fearless :: Established since januari 2006</title>
<link href="http://fearless.owiosa1.nl/stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" rightmargin="0"topmargin="0" bgcolor="#161616">
<div align="center">
<table border="0" id="table1" cellspacing="0" cellpadding="0" width="996">
<tr>
<td rowspan="4" width="23" background="http://fearless.owiosa1.nl/images/side_left.gif"> </td>
<td background="http://fearless.owiosa1.nl/images/logo.gif" width="950" height="150"> </td>
<td rowspan="4" width="23" background="http://fearless.owiosa1.nl/images/side_right.gif"> </td>
</tr>
<tr>
<td>
<table border="0" width="950" cellspacing="0" cellpadding="0" id="table5">
<tr>
<td valign="top" width="223" background="http://fearless.owiosa1.nl/images/navigation_bg2.gif">
<table border="0" width="223" cellspacing="0" cellpadding="0" id="table6">
<tr>
<td height="51" background="http://fearless.owiosa1.nl/images/navigation_header.gif"> </td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/navigation_bg.gif" height="24" class="navigation">
<a href="http://fearless.owiosa1.nl/index.php">Home</a></td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/navigation_bg.gif" height="24" class="navigation">
Team</td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/navigation_bg.gif" height="24" class="navigation">
Forums</td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/navigation_bg.gif" height="24" class="navigation">
Wars</td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/navigation_bg.gif" height="24" class="navigation">
Join Us</td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/navigation_bg.gif" height="24" class="navigation">
Downloads</td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/navigation_bg.gif" height="24" class="navigation">
Sponsors</td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/navigation_bg.gif" height="24" class="navigation">
Contact</td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/1pxborder_left.gif" height="1"></td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/navigation_footer.gif" height="31"> </td>
</tr>
</table>
<p> </td>
<td valign="top" bgcolor="#1A1A1A">
<table border="0" cellspacing="0" cellpadding="0" id="table7" width="100%">
<tr>
<td background="http://fearless.owiosa1.nl/images/news_header_left.gif" width="217" height="50"> </td>
<td background="http://fearless.owiosa1.nl/images/news_header_center.gif"> </td>
<td background="http://fearless.owiosa1.nl/images/news_header_right.gif" width="37"> </td>
</tr>
<tr>
<td colspan="3">
<table border="0" width="100%" cellspacing="0" cellpadding="0" id="table11">
<tr>
<td background="http://fearless.owiosa1.nl/images/news_bg_lefttop.gif" width="48" height="27"> </td>
<td background="http://fearless.owiosa1.nl/images/news_bg_righttop.gif" class="date"><script>
now = new Date()
curryearstart = new Date(now.getFullYear(),00,01)
dayselapsed = (now.valueOf() - curryearstart.valueOf()) / 86400000
weeknum = parseInt((dayselapsed + curryearstart.getDay()) / 7) + 1
document.write("Welcome, it's " + now.toString().slice(0,10) + " " + now.getFullYear())</script>
</td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/news_bg_leftbottom.gif"> </td>
<td background="http://fearless.owiosa1.nl/images/news_bg_rightbottom.gif" class="news">
<?php
$cute_template = "fearless";
$cute_static['cute_template'] = "fearless";
include $cutepath.'/show_news.php';
?>
</td>
</tr>
<tr>
<td bgcolor="#000000" height="1"></td>
<td bgcolor="#000000" height="1"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td valign="top" width="222" background="http://fearless.owiosa1.nl/images/activetopics_bg2.gif">
<table border="0" width="222" cellspacing="0" cellpadding="0" id="table8">
<tr>
<td background="http://fearless.owiosa1.nl/images/activetopics_header.gif" height="51"> </td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/activetopics_bg.gif" height="120">
<?php
require_once ("global.php");
require_once ("./forum/inc/functions_post.php");
$limit = 5; // The amount of annoucements to show
$mysqlhost = "localhost";
$mysqlusername = "***";
$mysqlpassword = "***";
$mysqldbselect = "mysql";
$prefix = "mybb_";
$fid = 2;
mysql_select_db($mysqldbselect, mysql_connect($mysqlhost, $mysqlusername, $mysqlpassword));
$message['post'] = postify($message['post'], $allowhtml="yes", $allowmycode="yes", $allowsmilies="yes", $allowimgcode="yes", $archive=0);
$query = $db->query("
SELECT t.tid,t.subject
FROM mybb_threads t LEFT JOIN mybb_posts p ON (t.tid = p.tid)
AND t.visible=1
AND t.closed NOT LIKE 'moved|%'
ORDER BY t.dateline DESC
LIMIT $limit")
or die($db->error());
while($news = $db->fetch_array($query))
{
echo "<div style=\"padding:3px\"><a href=\"./forum/showthread.php?tid=".$news['tid']."\" target=\"_blank\">".$news['subject']."</a></div>";
}
?>
</td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/1pxborder_right.gif" height="1"></td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/activetopics_footer.gif" height="31"> </td>
</tr>
</table>
<table border="0" width="222" cellspacing="0" cellpadding="0" id="table9">
<tr>
<td> </td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/headsponsor_header.gif" height="40"> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/1pxborder_right.gif" height="1"></td>
</tr>
<tr>
<td>
<table border="0" width="222" cellspacing="0" cellpadding="0" id="table10">
<tr>
<td> </td>
</tr>
<tr>
<td height="40" background="http://fearless.owiosa1.nl/images/subsponsor_header.gif"> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/1pxborder_right.gif" height="1"></td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/activetopics_footer.gif" height="31"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="54" background="http://fearless.owiosa1.nl/images/footer_bg.gif">
<div align="center">
<table border="0" cellspacing="0" cellpadding="0" height="54" id="table4">
<tr>
<td background="http://fearless.owiosa1.nl/images/footer_left.gif" width="60"> </td>
<td background="http://fearless.owiosa1.nl/images/footer_center.gif" class="footer">© 2006 Fearless - All rights reserved</td>
<td background="http://fearless.owiosa1.nl/images/footer_right.gif" width="69"> </td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
</body>
</html> |
And this is the part of the latest forum topics:  |  | <?php
require_once ("global.php");
require_once ("./forum/inc/functions_post.php");
?>
<?php
require_once ("global.php");
require_once ("./forum/inc/functions_post.php");
$limit = 5; // The amount of annoucements to show
$mysqlhost = "localhost";
$mysqlusername = "***";
$mysqlpassword = "***";
$mysqldbselect = "mysql";
$prefix = "mybb_";
$fid = 2;
mysql_select_db($mysqldbselect, mysql_connect($mysqlhost, $mysqlusername, $mysqlpassword));
$message['post'] = postify($message['post'], $allowhtml="yes", $allowmycode="yes", $allowsmilies="yes", $allowimgcode="yes", $archive=0);
$query = $db->query("
SELECT t.tid,t.subject
FROM mybb_threads t LEFT JOIN mybb_posts p ON (t.tid = p.tid)
AND t.visible=1
AND t.closed NOT LIKE 'moved|%'
ORDER BY t.dateline DESC
LIMIT $limit")
or die($db->error());
while($news = $db->fetch_array($query))
{
echo "<div style=\"padding:3px\"><a href=\"./forum/showthread.php?tid=".$news['tid']."\" target=\"_blank\">".$news['subject']."</a></div>";
}
?> |
_________________
 |
|
| Sat Mar 04, 2006 3:04 pm |
|
 |
Terminator
Joined: 04 Feb 2006 Posts: 31
|
|
|
|
Do you something more Ramon?
_________________
 |
|
| Thu Mar 09, 2006 4:20 pm |
|
 |
Terminator
Joined: 04 Feb 2006 Posts: 31
|
|
|
|
I've fixed the last thing and now it work fine, I've put the latest forum topics in to an inline frame with a new page and now it is working, I want to thank all the people of cutenews.ru for the great program/script, the support of you guys is very good thanks to all the people who helped my fixing my problems.
Thank you!
_________________
 |
|
| Sun Mar 12, 2006 3:19 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
 |  | I've fixed the last thing and now it work fine, |
Finally! 
|
|
| Sun Mar 12, 2006 9:11 pm |
|
 |
Terminator
Joined: 04 Feb 2006 Posts: 31
|
|
|
| Mon Mar 13, 2006 4:31 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|