Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
Thread Tools
  #1  
Old 2nd May 2010, 05:12
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Default help
hello,world

Why White page ?


PHP Code:
<?php
require_once 'global.php';
dbconn();
$i_post_limit 1
$_res_lt_query 
sql_query("SELECT t.tid, t.iconid, t.subject, t.dateline, t.uid, t.username, t.replies, t.lastpost, t.lastposter, t.lastposteruid, t.views FROM ".TSF_PREFIX."threads t WHERE 1=1 {$where_sql} ORDER BY t.lastpost RAND() LIMIT 1, ".$i_post_limit);
    while(
$thread mysql_fetch_assoc($_res_lt_query))
 
    
'<table width="100%" border="0" cellspacing="0" cellpadding="5">
            <tr>
                <td align="left"><img src="./tsf_forums/images/icons/icon'
.$thread['iconid'].'.gif" border="0" class="inlineimg">
                <td align="left"><strong><style="padding-top: 6px;"><a href="'
.$BASEURL.'/tsf_forums/showthread.php?tid='.$thread['tid'].'" alt="'.htmlspecialchars_uni($thread['subject']).'" title="'.htmlspecialchars_uni($thread['subject']).'">'.cutename(htmlspecialchars_uni($thread['subject']), 50).'</a></strong><br> '.sprintf($lang->index['by'], '<a href="'.$BASEURL.'/userdetails.php?id='.$thread['uid'].'">'.$thread['username'].'</a>' ).'<br />'.my_datee($dateformat$thread['dateline']).' '.my_datee($timeformat$thread['dateline']).'</td>
                <td align="right">'
.my_datee($dateformat$thread['lastpost']).' '.my_datee($timeformat$thread['lastpost']).'<br />&nbsp;'.sprintf($lang->index['by'], '<a href="'.$BASEURL.'/userdetails.php?id='.$thread['lastposteruid'].'">'.$thread['lastposter'].'</a>' ).'&nbsp;<a href="./tsf_forums/showthread.php?tid='.$thread['tid'].'&amp;page=last"><img src="./tsf_forums/images/lastpost.gif" class="inlineimg" border="0" alt="'.$lang->index['last'].'" title="'.$lang->index['last'].'"></a></td>
                <td align="center"><strong>'
.ts_nf($thread['replies']).'</strong></td>
                <td align="center"><strong>'
.ts_nf($thread['views']).'</strong></td>
            </tr></table>'
;
?>
in tsse 5.6
Reply With Quote
  #2  
Old 2nd May 2010, 06:06
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
missing a (;) at end of
PHP Code:
$i_post_limit 
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #3  
Old 2nd May 2010, 06:59
Woodstock Woodstock is offline
Member
 
Join Date: Dec 2009
Germany
Posts: 1
Default
Parse error: syntax error, unexpected T_VARIABLE in line 5

$i_post_limit = 1;
Reply With Quote
  #4  
Old 2nd May 2010, 07:11
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
PHP Code:
<?php
require_once 'global.php';
dbconn();
$i_post_limit '1';
$_res_lt_query sql_query("SELECT t.tid, t.iconid, t.subject, t.dateline, t.uid, t.username, t.replies, t.lastpost, t.lastposter, t.lastposteruid, t.views FROM ".TSF_PREFIX."threads t WHERE 1=1 {$where_sql} ORDER BY t.lastpost RAND() LIMIT 1, ".$i_post_limit);
    while(
$thread mysql_fetch_assoc($_res_lt_query))
 
   echo 
'<table width="100%" border="0" cellspacing="0" cellpadding="5">
            <tr>
                <td align="left"><img src="./tsf_forums/images/icons/icon'
.$thread['iconid'].'.gif" border="0" class="inlineimg">
                <td align="left"><strong><style="padding-top: 6px;"><a href="'
.$BASEURL.'/tsf_forums/showthread.php?tid='.$thread['tid'].'" alt="'.htmlspecialchars_uni($thread['subject']).'" title="'.htmlspecialchars_uni($thread['subject']).'">'.cutename(htmlspecialchars_uni($thread['subject']), 50).'</a></strong><br> '.sprintf($lang->index['by'], '<a href="'.$BASEURL.'/userdetails.php?id='.$thread['uid'].'">'.$thread['username'].'</a>' ).'<br />'.my_datee($dateformat$thread['dateline']).' '.my_datee($timeformat$thread['dateline']).'</td>
                <td align="right">'
.my_datee($dateformat$thread['lastpost']).' '.my_datee($timeformat$thread['lastpost']).'<br />&nbsp;'.sprintf($lang->index['by'], '<a href="'.$BASEURL.'/userdetails.php?id='.$thread['lastposteruid'].'">'.$thread['lastposter'].'</a>' ).'&nbsp;<a href="./tsf_forums/showthread.php?tid='.$thread['tid'].'&amp;page=last"><img src="./tsf_forums/images/lastpost.gif" class="inlineimg" border="0" alt="'.$lang->index['last'].'" title="'.$lang->index['last'].'"></a></td>
                <td align="center"><strong>'
.ts_nf($thread['replies']).'</strong></td>
                <td align="center"><strong>'
.ts_nf($thread['views']).'</strong></td>
            </tr></table>'
;
?>
You do know your missing a veritable here don't you?
PHP Code:
{$where_sql
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #5  
Old 5th May 2010, 05:53
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Default
ok but my page theard.php

PHP Code:
<?php
require_once 'global.php';
dbconn();
$i_post_limit 1
$where_sql 
='tsf_announcement,
 tsf_attachments,
 tsf_forumpermissions,
 tsf_forums,
 tsf_moderators,
 tsf_poll,
 tsf_pollvote,
 tsf_posts,
 tsf_searchlog,
 tsf_subscribe,
 tsf_thanks,
 tsf_threadrate,
 tsf_threads,
 tsf_threadsread'
$_res_lt_query sql_query("SELECT t.tid, t.iconid, t.subject, t.dateline, t.uid, t.username, t.replies, t.lastpost, t.lastposter, t.lastposteruid, t.views FROM ".TSF_PREFIX."threads t WHERE 1=1 $where_sql ORDER BY t.lastpost RAND() LIMIT 1, ".$i_post_limit);
    while(
$thread mysql_fetch_assoc($_res_lt_query))
 
   echo 
'<table width="100%" border="0" cellspacing="0" cellpadding="5">
            <tr>
                <td align="left"><img src="./tsf_forums/images/icons/icon'
.$thread['iconid'].'.gif" border="0" class="inlineimg">
                <td align="left"><strong><style="padding-top: 6px;"><a href="'
.$BASEURL.'/tsf_forums/showthread.php?tid='.$thread['tid'].'" alt="'.htmlspecialchars_uni($thread['subject']).'" title="'.htmlspecialchars_uni($thread['subject']).'">'.cutename(htmlspecialchars_uni($thread['subject']), 50).'</a></strong><br> '.sprintf($lang->index['by'], '<a href="'.$BASEURL.'/userdetails.php?id='.$thread['uid'].'">'.$thread['username'].'</a>' ).'<br />'.my_datee($dateformat$thread['dateline']).' '.my_datee($timeformat$thread['dateline']).'</td>
                <td align="right">'
.my_datee($dateformat$thread['lastpost']).' '.my_datee($timeformat$thread['lastpost']).'<br />&nbsp;'.sprintf($lang->index['by'], '<a href="'.$BASEURL.'/userdetails.php?id='.$thread['lastposteruid'].'">'.$thread['lastposter'].'</a>' ).'&nbsp;<a href="./tsf_forums/showthread.php?tid='.$thread['tid'].'&amp;page=last"><img src="./tsf_forums/images/lastpost.gif" class="inlineimg" border="0" alt="'.$lang->index['last'].'" title="'.$lang->index['last'].'"></a></td>
                <td align="center"><strong>'
.ts_nf($thread['replies']).'</strong></td>
                <td align="center"><strong>'
.ts_nf($thread['views']).'</strong></td>
            </tr></table>'
;
?>
not work so White page

but latestthreads.php is pluging or not for me

my page theard.php is not pluging thanks for your help :D
Reply With Quote
  #6  
Old 8th May 2010, 09:17
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
there are a few error on that you need to turn on error reporting if your going to install codes
try this one
PHP Code:
<?php
require_once 'global.php';
dbconn();
$i_post_limit 1;
$where_sql ='tsf_announcement,
 tsf_attachments,
 tsf_forumpermissions,
 tsf_forums,
 tsf_moderators,
 tsf_poll,
 tsf_pollvote,
 tsf_posts,
 tsf_searchlog,
 tsf_subscribe,
 tsf_thanks,
 tsf_threadrate,
 tsf_threads,
 tsf_threadsread'
;
$_res_lt_query sql_query("SELECT t.tid, t.iconid, t.subject, t.dateline, t.uid, t.username, t.replies, t.lastpost, t.lastposter, t.lastposteruid, t.views FROM ".TSF_PREFIX."threads t WHERE 1=1 $where_sql ORDER BY t.lastpost RAND() LIMIT 1, ".$i_post_limit) or mysql_error();
    while(
$thread mysql_fetch_assoc($_res_lt_query))
 
   echo 
'<table width="100%" border="0" cellspacing="0" cellpadding="5">
            <tr>
                <td align="left"><img src="./tsf_forums/images/icons/icon'
.$thread['iconid'].'.gif" border="0" class="inlineimg">
                <td align="left"><strong><style="padding-top: 6px;"><a href="'
.$BASEURL.'/tsf_forums/showthread.php?tid='.$thread['tid'].'" alt="'.htmlspecialchars_uni($thread['subject']).'" title="'.htmlspecialchars_uni($thread['subject']).'">'.cutename(htmlspecialchars_uni($thread['subject']), 50).'</a></strong><br> '.sprintf($lang->index['by'], '<a href="'.$BASEURL.'/userdetails.php?id='.$thread['uid'].'">'.$thread['username'].'</a>' ).'<br />'.my_datee($dateformat$thread['dateline']).' '.my_datee($timeformat$thread['dateline']).'</td>
                <td align="right">'
.my_datee($dateformat$thread['lastpost']).' '.my_datee($timeformat$thread['lastpost']).'<br />&nbsp;'.sprintf($lang->index['by'], '<a href="'.$BASEURL.'/userdetails.php?id='.$thread['lastposteruid'].'">'.$thread['lastposter'].'</a>' ).'&nbsp;<a href="./tsf_forums/showthread.php?tid='.$thread['tid'].'&amp;page=last"><img src="./tsf_forums/images/lastpost.gif" class="inlineimg" border="0" alt="'.$lang->index['last'].'" title="'.$lang->index['last'].'"></a></td>
                <td align="center"><strong>'
.ts_nf($thread['replies']).'</strong></td>
                <td align="center"><strong>'
.ts_nf($thread['views']).'</strong></td>
            </tr></table>'
;
?>
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 02:10. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.