Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Problem with showing news 'Post not found'
Goto page Previous  1, 2, 3, 4
 
Reply to topic    Forum Index » Help View previous topic
View next topic
Problem with showing news 'Post not found'
Author Message
Ramon



Joined: 12 Oct 2005
Posts: 473
Location: Hoogeveen, NL

Post Reply with quote
Hmm, strange.. Could u show the script you use for showing the lasest post?
Sat Mar 04, 2006 1:04 pm View user's profile Send private message Visit poster's website
Guest








Please login to hide the ads.

Terminator



Joined: 04 Feb 2006
Posts: 31

Post Reply with quote
This is my whole page:



Code:
<?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">&nbsp;</td>

<td background="http://fearless.owiosa1.nl/images/logo.gif" width="950" height="150">&nbsp;</td>

<td rowspan="4" width="23" background="http://fearless.owiosa1.nl/images/side_right.gif">&nbsp;</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">&nbsp;</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">&nbsp;</td>

         </tr>

         </table>

      <p>&nbsp;</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">&nbsp;</td>

            <td background="http://fearless.owiosa1.nl/images/news_header_center.gif">&nbsp;</td>

            <td background="http://fearless.owiosa1.nl/images/news_header_right.gif" width="37">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</td>

         </tr>

      </table>

      <table border="0" width="222" cellspacing="0" cellpadding="0" id="table9">

         <tr>

            <td>&nbsp;</td>

         </tr>

         <tr>

            <td background="http://fearless.owiosa1.nl/images/headsponsor_header.gif" height="40">&nbsp;</td>

         </tr>

         <tr>

            <td>&nbsp;</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>&nbsp;</td>

         </tr>

         <tr>

            <td height="40" background="http://fearless.owiosa1.nl/images/subsponsor_header.gif">&nbsp;</td>

         </tr>

         <tr>

            <td>&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</td>

</tr>

</table>

</div>

</td>

</tr>

</table>

</div>



</body>



</html>




And this is the part of the latest forum topics:
Code:
<?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 View user's profile Send private message
Terminator



Joined: 04 Feb 2006
Posts: 31

Post Reply with quote
Do you something more Ramon?

_________________
Thu Mar 09, 2006 4:20 pm View user's profile Send private message
Terminator



Joined: 04 Feb 2006
Posts: 31

Post Reply with quote
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 View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2801
Location: Germany

Post Reply with quote
Terminator wrote:
I've fixed the last thing and now it work fine,


Finally! Very Happy
Sun Mar 12, 2006 9:11 pm View user's profile Send private message
Terminator



Joined: 04 Feb 2006
Posts: 31

Post Reply with quote
Wink

_________________
Mon Mar 13, 2006 4:31 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Help All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to: 
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



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.