| Author |
Message |
Terminator
Joined: 04 Feb 2006 Posts: 31
|
|
|
|
O.K. but then the links still don't work 
_________________
 |
|
| Sat Feb 25, 2006 9:46 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
Terminator
Joined: 04 Feb 2006 Posts: 31
|
|
|
|
Ok I re?nstalled everything.
http://fearless.owiosa1.nl/index.php
This is what I got:
My index.php:
 |  | <?php
include './news/head.php';
require_once ("global.php");
require_once ("./forum/inc/functions_post.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Fearless :: Established
since januari 2006</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="http://fearless.owiosa1.nl/stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" bgcolor="161616" marginheight="0" marginwidth="0" alink="#F5F5F5" link="#91E902" vlink="#F5F5F5">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="1006">
<tbody><tr>
<td width="20"> </td>
<td background="http://fearless.owiosa1.nl/images/td_left_1.gif" width="23">
<font face="Trebuchet MS"><img src="http://fearless.owiosa1.nl/images/td_left_1.gif" height="1" width="23"></font></td>
<td bgcolor="1A1A1A" width="914"><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td background="http://fearless.owiosa1.nl/images/logo.gif" height="150" width="914"><div align="right"> </div></td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td background="http://fearless.owiosa1.nl/images/td_left_bg_1.gif" valign="top" width="223"><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td background="http://fearless.owiosa1.nl/images/navigation_header.gif" width="217" height="50"> </td>
</tr>
<tr>
<td bgcolor="#181818" background="http://fearless.owiosa1.nl/images/td_left_bg_1.gif"><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_1.gif'); height: 24px; padding-left:47px">
<font face="Trebuchet MS" color="#91E902" style="font-size: 9pt">
<a href="index.htm" style="text-decoration: none">Home</a></font></td>
</tr>
<tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_1.gif'); height: 24px; padding-left:47px">
<font color="#91E902" face="Trebuchet MS">
<span style="font-size: 9pt">
<a href="team.htm" style="text-decoration: none">Team</a></span></font></td>
</tr>
<tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_1.gif'); height: 24px; padding-left:47px">
<font face="Trebuchet MS" color="#91E902" style="font-size: 9pt">
<a href="/forum/" style="text-decoration: none">Forums</a></font></td>
</tr>
<tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_1.gif'); height: 24px; padding-left:47px">
<font color="#91E902" face="Trebuchet MS">
<span style="font-size: 9pt">
<a href="wars.htm" style="text-decoration: none">
Wars</a></span></font></td>
</tr>
<tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_1.gif'); height: 24px; padding-left:47px">
<a href="joinus.htm">Join Us</a></td>
</tr>
<tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_1.gif'); height: 24px; padding-left:47px">
<font face="Trebuchet MS" color="#91E902" style="font-size: 9pt">
<a style="text-decoration: none" href="downloads.htm">Downloads</a></font></td>
</tr>
<tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_1.gif'); height: 24px; padding-left:47px">
<font face="Trebuchet MS" style="font-size: 9pt" color="#91E902">
<a href="sponsors.htm" style="text-decoration: none">Sponsors</a></font></td>
</tr>
<tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_1.gif'); height: 24px; padding-left:47px">
<font face="Trebuchet MS" color="#91E902" style="font-size: 9pt">
<a style="text-decoration: none" href="contact.htm">Contact</a></font></td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/td_left_seperator.gif"><font face="Trebuchet MS">
<img src="http://fearless.owiosa1.nl/images/td_left_seperator.gif" height="3" width="223"></font></td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/seperator.gif" width="223" height="31"> </td>
</tr>
</tbody></table>
<p> </td>
</tr>
</tbody></table></td>
<td bgcolor="1A1A1A" valign="top"><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td background="http://fearless.owiosa1.nl/images/content_header.gif" width="217" height="50">
</td>
<td background="http://fearless.owiosa1.nl/images/content_header_bg.gif"> </td>
<td background="http://fearless.owiosa1.nl/images/navigation_header_right.gif" width="37" height="50"><div align="right">
</div></td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td valign="top">
<?php
$template = "fearless";
$category = "1,2,3";
$static['category'] = "1,2,3";
$static['template'] = "fearless";
include $cutepath.'/show_news.php';
?>
</td>
</tr>
</tbody></table></td>
<td background="http://fearless.owiosa1.nl/images/td_right_bg_1.gif" valign="top" width="222"><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td background="http://fearless.owiosa1.nl/images/content_activetopics.gif" width="222" height="51">
</td>
</tr>
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_2.gif'); padding-left:47px; height:120px; valign: center">
<?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 = "***";
$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><font face="Trebuchet MS"><img src="http://fearless.owiosa1.nl/images/td_right_seperator.gif" height="3" width="222"></font></td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/seperator2.gif" width="223" height="31"> </td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td> </td>
</tr>
</tbody></table></td>
</tr></tbody></table></td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/footer_bg.gif" height="54">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="40%" id="table1">
<tbody><tr>
<td width="60" background="http://fearless.owiosa1.nl/images/footer_left.gif" height="54"> </td>
<td background="http://fearless.owiosa1.nl/images/footer_bottom_bg.gif"><div align="center">
<div class="footer">
<font face="Trebuchet MS" color="#FFFFFF" style="font-size: 9pt">
© 2006 Fearless - All rights reserved</font></div>
</div></td>
<td width="69" background="http://fearless.owiosa1.nl/images/footer_right.gif"> </td>
</tr>
</tbody></table></div>
</td>
</tr>
</tbody></table></td>
<td background="http://fearless.owiosa1.nl/images/td_right_1.gif" width="23">
<font face="Trebuchet MS"><img src="http://fearless.owiosa1.nl/images/td_right_1.gif" height="1" width="23"></font></td>
<td width="26"> </td>
</tr>
</tbody></table>
</body></html> |
My .htacces:
 |  | DirectoryIndex index.php
# [user htaccess]
<IfModule mod_rewrite.c>
RewriteEngine On
#Options +FollowSymlinks
#RewriteBase /
# [home] post
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/([_0-9a-z-]+).html(/?)+$ ?year=$1&month=$2&day=$3&title=$4 [QSA,L]
# [home] dosearch
RewriteRule ^search(/?)+$ ?do=search [QSA,L]
# [home] doarchives
RewriteRule ^archives(/?)+$ ?do=archives [QSA,L]
# [home] dousers
RewriteRule ^users(/?)+$ ?do=users [QSA,L]
# [home] user
RewriteRule ^users/([_0-9a-z-]+).html(/?)+$ ?user=$1&do=users [QSA,L]
# [home] day
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})(/?)+$ ?year=$1&month=$2&day=$3 [QSA,L]
# [home] month
RewriteRule ^([0-9]{4})/([0-9]{2})(/?)+$ ?year=$1&month=$2 [QSA,L]
# [home] year
RewriteRule ^([0-9]{4})(/?)+$ ?year=$1 [QSA,L]
# [home] docategory
RewriteRule ^category(/?)+$ ?do=category [QSA,L]
# [home] category
RewriteRule ^category/(none|fearless|clanbase|call-of-duty)(/?)+$ ?category=$1 [QSA,L]
# [rss] post
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/([_0-9a-z-]+).xml(/?)+$ /news/rss.php?year=$1&month=$2&day=$3&title=$4 [QSA,L]
# [rss] category
RewriteRule ^category/(none|fearless|clanbase|call-of-duty)/rss.xml(/?)+$ /news/rss.php?category=$1 [QSA,L]
# [rss] user
RewriteRule ^users/([_0-9a-z-]+).xml(/?)+$ /news/rss.php?user=$1 [QSA,L]
# [rss] feed
RewriteRule ^rss.xml(/?)+$ /news/rss.php [QSA,L]
# [print] post
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/([_0-9a-z-]+).phtml(/?)+$ /news/print.php?year=$1&month=$2&day=$3&title=$4 [QSA,L]
# [trackback] post
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/([_0-9a-z-]+).tb(/?)+$ /news/trackback.php?year=$1&month=$2&day=$3&title=$4 [QSA,L]
</IfModule> |
My template:
 |  | <?php
///////////////////// TEMPLATE fearless /////////////////////
$template_active = <<<HTML
<h3>
<a href="{link=home/post}">{title}</a>
[if-logged]<small style="font-size: 10px;"> (<a href="{cutepath}/index.php?mod=editnews&id={id}" target="_blank" title=Edit news">Edit</a> / <a href="{cutepath}/index.php?mod=editnews&action=delete&selected_news[]={id}" target="_blank" title="Delete news">Delete</a>)</small>[/if-logged]
</h3>
<h4>Date: {date} / Author: {author}[catheader] / Category: {category}[/catheader] / Views: {views} [comheader] / <a href="{link=home/post}#comments">Comments: {comments}</a>[/comheader]</h4>
<div align="justify"><p>{short-story}</p>
<p>[full-link]<a href="{link=home/post}">Read more...</a>[/full-link]</p>
</div>
HTML;
$template_full = <<<HTML
<h3>
<a href="{link=home/post}">{title}</a>
[page-link]({pages})[/page-link]
[if-logged]<small style="font-size: 10px;"> (<a href="{cutepath}/index.php?mod=editnews&id={id}" target="_blank" title="Edit news">Edit</a> / <a href="{cutepath}/index.php?mod=editnews&action=delete&selected_news[]={id}" target="_blank" title="Delete news">Delete</a>)</small>[/if-logged]
</h3>
<h4>Date: {date} / Author: {author}[catheader] / Category: {category}[/catheader] / Views: {views} [comheader] / <a href="{link=plain/post}#comments">Comments: {comments}</a>[/comheader]</h4>
<div align="justify">
<p>{full-story}</p>
<p><a href="{link=trackback/post}" target="_blank">TrackBack</a></p>
<p><a href="{link=print/post}" target="_blank">Print</a></p>
<p><a href="{link=rss/post}" target="_blank">RSS</a></p>
</div>
<h3>[comheader]Comments: {comments}[/comheader]</h3>
<a name="comments"></a>
HTML;
$template_comment = <<<HTML
<div class="{alternating}" id="comment{comnum}" align="justify"><a href="#comment{comnum}"><b>{comnum}.</b></a> {author} | {date}
[if-logged]<small style="font-size: 10px;"> (<a href="{cutepath}/index.php?mod=editcomments&newsid={id}&comid={comment-id}" target="_blank" title="Edit comments" style="color: #ccc;">Edit</a> / <a href="{cutepath}/index.php?mod=editcomments&action=dodeletecomment&newsid={id}&delcomid[]={comment-id}&deletecomment=yes" target="_blank" title="Delete comments" style="color: #ccc;">Delete</a>)</small>[/if-logged]
<br />
<br />
{comment}
</div>
[answer]<div class="{alternating}"><b>Reply:</b><br />{answer}</div>[/answer]
HTML;
$template_form = <<<HTML
<h3>Leave a comment</h3>
<p>
[if-logged]
<!--
??????, <b><a href="{cutepath}/index.php?mod=options&action=personal" target="_blank">{username}</a></b>
<br /><br />
-->
<input type="hidden" name="name" tabindex="1" value="{username}" />
<input type="hidden" name="mail" tabindex="2" value="{usermail}" />
<input type="hidden" name="password" tabindex="3" value="{password}" />
[/if-logged]
[not-logged]
<label for="name"><b>Name: </b></label> <input id="name" type="text" size="20" name="name" tabindex="1" value="{savedname}" /><br />
<label for="mail"><b>E-mail:</b> <input id="mail" type="text" size="20" name="mail" tabindex="2" value="{savedmail}" /> <i>(optional)</i></label><br />
[/not-logged]
{smilies}<br />
<textarea cols="50" rows="8" name="comments" tabindex="3"></textarea><br />
<input class="input" type="submit" tabindex="4" name="submit" value="Leave a comment" />
<br />
<label for="rememberme">{remember} Remember?</label>
</p>
<p><noindex>{bbcodes}</noindex></p>
HTML;
$template_prev_next = <<<HTML
<p align=center>[prev-link]<[/prev-link] {pages} [next-link]>[/next-link]</p>
HTML;
$template_cprev_next = <<<HTML
HTML;
$template_dateheader = <<<HTML
<h3 class="dateheader">[date-link]{dateheader}[/date-link]</h3>
HTML;
///////////////////// TEMPLATE Default /////////////////////
?> |
Why are the links not working?
_________________
 |
|
| Sun Feb 26, 2006 5:54 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
 |  | If I were you I would start off with a testing page. Nothing in it but the include code. Then turn off user friendly urls and see if it's working. Then turn on user friendly urls and see if it's still working.
|
You are using it together with the phpBB stuff and maybe that's the problem. But we can only find out if that's the problem when you only install CuteNews.RU and nothing more.
|
|
| Sun Feb 26, 2006 8:35 pm |
|
 |
Terminator
Joined: 04 Feb 2006 Posts: 31
|
|
|
| Sun Feb 26, 2006 9:57 pm |
|
 |
.:Phre/\kBox:.
Joined: 27 Feb 2006 Posts: 6
|
|
|
|
Your problem is problems of strawberry or cutenews team.
You can't use simulately strings $template on strawberry and $template on phpbb.
You should be change all string on every pages where are there, from $template to another such $cute_template.
2 types strings should be changes on strawberry/cutenews:
$template to $cute_template or another
$lang to $cute_lang or another
(not change to $template or to $lang because these string USES PHPBB FORUM!)
Then can works fine....
look example page here: http://www.phreakbox.com/portal/
|
|
| Mon Feb 27, 2006 9:06 am |
|
 |
Terminator
Joined: 04 Feb 2006 Posts: 31
|
|
|
|
I got this now
But I get Post not found.
http://fearless.owiosa1.nl/index.php
 |  | <?php
include './news/head.php';
require_once ("global.php");
require_once ("./forum/inc/functions_post.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Fearless :: Established
since januari 2006</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="http://fearless.owiosa1.nl/stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" bgcolor="161616" marginheight="0" marginwidth="0" alink="#F5F5F5" link="#91E902" vlink="#F5F5F5">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="1006">
<tbody><tr>
<td width="20"> </td>
<td background="http://fearless.owiosa1.nl/images/td_left_1.gif" width="23">
<font face="Trebuchet MS"><img src="http://fearless.owiosa1.nl/images/td_left_1.gif" height="1" width="23"></font></td>
<td bgcolor="1A1A1A" width="914"><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td background="http://fearless.owiosa1.nl/images/logo.gif" height="150" width="914"><div align="right"> </div></td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td background="http://fearless.owiosa1.nl/images/td_left_bg_1.gif" valign="top" width="223"><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td background="http://fearless.owiosa1.nl/images/navigation_header.gif" width="217" height="50"> </td>
</tr>
<tr>
<td bgcolor="#181818" background="http://fearless.owiosa1.nl/images/td_left_bg_1.gif"><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_1.gif'); height: 24px; padding-left:47px">
<font face="Trebuchet MS" color="#91E902" style="font-size: 9pt">
<a href="index.htm" style="text-decoration: none">Home</a></font></td>
</tr>
<tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_1.gif'); height: 24px; padding-left:47px">
<font color="#91E902" face="Trebuchet MS">
<span style="font-size: 9pt">
<a href="team.htm" style="text-decoration: none">Team</a></span></font></td>
</tr>
<tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_1.gif'); height: 24px; padding-left:47px">
<font face="Trebuchet MS" color="#91E902" style="font-size: 9pt">
<a href="/forum/" style="text-decoration: none">Forums</a></font></td>
</tr>
<tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_1.gif'); height: 24px; padding-left:47px">
<font color="#91E902" face="Trebuchet MS">
<span style="font-size: 9pt">
<a href="wars.htm" style="text-decoration: none">
Wars</a></span></font></td>
</tr>
<tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_1.gif'); height: 24px; padding-left:47px">
<a href="joinus.htm">Join Us</a></td>
</tr>
<tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_1.gif'); height: 24px; padding-left:47px">
<font face="Trebuchet MS" color="#91E902" style="font-size: 9pt">
<a style="text-decoration: none" href="downloads.htm">Downloads</a></font></td>
</tr>
<tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_1.gif'); height: 24px; padding-left:47px">
<font face="Trebuchet MS" style="font-size: 9pt" color="#91E902">
<a href="sponsors.htm" style="text-decoration: none">Sponsors</a></font></td>
</tr>
<tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_1.gif'); height: 24px; padding-left:47px">
<font face="Trebuchet MS" color="#91E902" style="font-size: 9pt">
<a style="text-decoration: none" href="contact.htm">Contact</a></font></td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/td_left_seperator.gif"><font face="Trebuchet MS">
<img src="http://fearless.owiosa1.nl/images/td_left_seperator.gif" height="3" width="223"></font></td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/seperator.gif" width="223" height="31"> </td>
</tr>
</tbody></table>
<p> </td>
</tr>
</tbody></table></td>
<td bgcolor="1A1A1A" valign="top"><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td background="http://fearless.owiosa1.nl/images/content_header.gif" width="217" height="50">
</td>
<td background="http://fearless.owiosa1.nl/images/content_header_bg.gif"> </td>
<td background="http://fearless.owiosa1.nl/images/navigation_header_right.gif" width="37" height="50"><div align="right">
</div></td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td valign="top">
<?php
$cute_template = "fearless";
$cute_category = "1,2,3";
$cute_static['category'] = "1,2,3";
$cute_static['template'] = "fearless";
include $cutepath.'/show_news.php';
?>
</td>
</tr>
</tbody></table></td>
<td background="http://fearless.owiosa1.nl/images/td_right_bg_1.gif" valign="top" width="222"><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td background="http://fearless.owiosa1.nl/images/content_activetopics.gif" width="222" height="51">
</td>
</tr>
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="navigation" style="background-image: url('http://fearless.owiosa1.nl/images/td_navigation_bg_2.gif'); padding-left:47px; height:120px; valign: center">
<?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><font face="Trebuchet MS"><img src="http://fearless.owiosa1.nl/images/td_right_seperator.gif" height="3" width="222"></font></td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/seperator2.gif" width="223" height="31"> </td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td> </td>
</tr>
</tbody></table></td>
</tr></tbody></table></td>
</tr>
<tr>
<td background="http://fearless.owiosa1.nl/images/footer_bg.gif" height="54">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="40%" id="table1">
<tbody><tr>
<td width="60" background="http://fearless.owiosa1.nl/images/footer_left.gif" height="54"> </td>
<td background="http://fearless.owiosa1.nl/images/footer_bottom_bg.gif"><div align="center">
<div class="footer">
<font face="Trebuchet MS" color="#FFFFFF" style="font-size: 9pt">
© 2006 Fearless - All rights reserved</font></div>
</div></td>
<td width="69" background="http://fearless.owiosa1.nl/images/footer_right.gif"> </td>
</tr>
</tbody></table></div>
</td>
</tr>
</tbody></table></td>
<td background="http://fearless.owiosa1.nl/images/td_right_1.gif" width="23">
<font face="Trebuchet MS"><img src="http://fearless.owiosa1.nl/images/td_right_1.gif" height="1" width="23"></font></td>
<td width="26"> </td>
</tr>
</tbody></table>
</body></html> |
_________________
 |
|
| Mon Feb 27, 2006 4:38 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
CuteNews.RU doesn't know a variable $cute_template so I think you have to change $template to $cute_template in the whole script. Otherwise it won't work.
Same for the other variables you changed.
|
|
| Mon Feb 27, 2006 4:47 pm |
|
 |
Terminator
Joined: 04 Feb 2006 Posts: 31
|
|
|
|
I changed all to $cute_template
And it still says: Post not found.
Could the problem be that I use 2 databases (My forum and CuteNews) on one subdomain?
_________________
 |
|
| Mon Feb 27, 2006 7:46 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
What about $cute_category and $cute_static?
 |  | Could the problem be that I use 2 databases (My forum and CuteNews) on one subdomain? |
I don't know.
That's what Ramon wrote:
 |  | You can't have two different database connections at once.. My suggestion: Add the cutenews database tables into the same database as you have your forums added to |
|
|
| Mon Feb 27, 2006 8:08 pm |
|
 |
.:Phre/\kBox:.
Joined: 27 Feb 2006 Posts: 6
|
|
|
|
I have been changing on whole script, every files of strawberry 1.0.1 from $template to $cute_template and $lang to _$cute_lang. In site i have been changing string $template to $cute_template and then works fine.
|
|
| Mon Feb 27, 2006 9:55 pm |
|
 |
.:Phre/\kBox:.
Joined: 27 Feb 2006 Posts: 6
|
|
|
|
When you changing on all files of cutenews to another $ string, you should be changing these script from:
 |  | $cute_static['template'] = "fearless"; |
to
 |  | $cute_static['cute_template'] = "fearless"; |
1. Changing all string $template on whole script to $cute_template.
Don't change in scripts where are $template_xxx to $template or similar where are names of strings such like $template_something etc... CHANING ONLY SCRIPTS WHERE ARE $template to $cute_template.
2. Changing all string $lang on whole script to $cute_lang, too.
3. When you puts code on site you should be changing to:
 |  | $static['cute_template'] = "yourtemplate";
$cute_template = "yourtemplate"; |
Because PHPBB uses strings $template and $lang such as a cutenews/strawberry strings $templates and $lang. They CAN'T works together! One of these must be changing to another string.
Don't change string $number or another strings on strawberry/cutenews!
See ya!
|
|
| Mon Feb 27, 2006 10:27 pm |
|
 |
Terminator
Joined: 04 Feb 2006 Posts: 31
|
|
|
|
Ok I'm gonna try that when I'm back home.
And btw I don't use phpBB, I use MyBB
_________________
 |
|
| Tue Feb 28, 2006 5:26 pm |
|
 |
Terminator
Joined: 04 Feb 2006 Posts: 31
|
|
|
|
O.k. I've rewritten my site complete new databases and subdomains. I've re?nstalled cutenews and changed the strings like you said. And it works, but when I add the latest forum topics (mybboard.com) on my site then I get: Post not found.
check: http://tester.owiosa1.nl
_________________
 |
|
| Fri Mar 03, 2006 5:52 pm |
|
 |
Ramon
Joined: 12 Oct 2005 Posts: 473 Location: Hoogeveen, NL |
|
|
|
 |  | What about $cute_category and $cute_static?
 |  | Could the problem be that I use 2 databases (My forum and CuteNews) on one subdomain? |
I don't know.
That's what Ramon wrote:
 |  | You can't have two different database connections at once.. My suggestion: Add the cutenews database tables into the same database as you have your forums added to |
|
Just listen to what I have stated earlier. I have had the same problem.
|
|
| Sat Mar 04, 2006 3:47 am |
|
 |
Terminator
Joined: 04 Feb 2006 Posts: 31
|
|
|
|
How dit you fixed it then?
My FTP:
forum (folder with forum files)
images (folder with the images for the site)
news (folder of cutenews)
.htacces
global.php (is needed tho show the latest forum topics)
init.php (is needed tho show the latest forum topics)
index.php (my site)
stylesheet.css
First I installed my forum on a database with the tables mybb_ .
Then I installed cutenews on the same database with tables cute_ .
I alse tried to use the same tables (mybb_) for cutenews but then it said wrong username/password.
But now I still get post not found.
_________________
 |
|
| Sat Mar 04, 2006 12:17 pm |
|
 |
|