Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
DarkBlood каза:Трябва ми код извличане на цели новини.В миналата тема на Black никой не ми сварши работа моля помогнете
Говорим за извеждане на цели постове нови мнение от форума...SandPrince каза:това става ли:
:arrow: http://web-tourist.net/login/login/view.php?st=1008
Black каза:Говорим за извеждане на цели постове нови мнение от форума...SandPrince каза:това става ли:
:arrow: http://web-tourist.net/login/login/view.php?st=1008
<table border=0><tr><td width="300"><center><b>Тема</b></center></td><td width="90"><center><b>Коментари</b></center></td> <td width="110"><center><b>Преглеждания</b></center></td> <td width="160"><center><b>Написал</b></center></td></tr></table>
<?
$user=""; //DB user
$pass=""; //DB pass
$db=""; //DB name
$broi_temi="20";// Колко последни теми да показва
$broi_bukvi="40";//До колко букви от заглавието на темата да показва
mysql_connect(localhost,$user,$pass);
mysql_select_db($db) or die( "Unable to select database");
$query="SELECT t.topic_time , t.topic_title,t.forum_id,t.topic_id, t.topic_views,t.topic_replies,t.topic_type,u.username from phpbb_topics t,phpbb_users u WHERE t.forum_id=36 and t.topic_poster=u.user_id ORDER BY t.topic_time "
$result=mysql_query($query);
$num=mysql_num_rows($result);
mysql_close();
$ii=$num-$broi_temi;
for ($i=$num-1; $i>$ii;$i--)
{
@$tema=mysql_result($result,$i,"topic_title");
@$id=mysql_result($result,$i,"forum_id");
@$topic_broi=mysql_result($result,$i,"topic_replies");
@$topic_vidqna=mysql_result($result,$i,"topic_views");
@$topic_id=mysql_result($result,$i,"topic_id");
@$topic=mysql_result($result,$i,"topic_type");
@$user=mysql_result($result,$i,"u.username");
if($topic=="1")
{$vazna='Важна:';}
elseif($topic=="2")
{$vazna='Съобщение:';}
elseif($topic_status=="1")
{$vazna='Заключена:';}
else
{$vazna='';}
if (strlen($tema)>$broi_bukvi)
{$totchki='...';}
else
{$totchki='';}
if($topic_id==NULL)
{
continue;
}
else
{
$tema=substr($tema,0 , $broi_bukvi);
echo"<table border=0>
<tr>
<td width="300">
<a href='phpbb2/viewtopic.php?t=$topic_id' title='$tema$totchki' target='_blank'>$tema$totchki</a>
</td>
<td width="90"> <a href='phpbb2/viewtopic.php?t=$topic_id' >$topic_broi</a>
</td>
<td width="110"> $topic_vidqna </td> <td width="160"> <a href="phpbb2/profile.php?mode=viewprofile&u=$user">$user</a>
</td>
</tr>
</table>
";
}
}
?>
SandPrince каза:а ето ти и още един скрипт:
http://web-tourist.net/login/login/view.php?st=727
смятам даже че този ще ти е по полезен отколкото предния ми пост. :?:
SandPrince каза:SandPrince каза:а ето ти и още един скрипт:
http://web-tourist.net/login/login/view.php?st=727
смятам даже че този ще ти е по полезен отколкото предния ми пост. :?:
ем точно това е де. извлича цели постове от даден форум.
Black каза:SandPrince каза:SandPrince каза:а ето ти и още един скрипт:
http://web-tourist.net/login/login/view.php?st=727
смятам даже че този ще ти е по полезен отколкото предния ми пост. :?:
ем точно това е де. извлича цели постове от даден форум.
Да но примен ми излизат само еррос![]()
// Where to take the topics from
// Always a number
$forum = '';
// How many topics to show
$limit = '';
// How to show the topics
// full or blank ('')
$show = 'full';
// How to display the date and time if used
// short or long
$date_time = 'short';
// How top display the topic link if usede
// topic or phpbb
$topic_link = 'topic';
// Comments link - how to send them to comments
// topic or reply
$comment = 'topic';
// Path to your forums directory
// Usually ./forum/ or ./phpBB/ or ./forums/
$phpbb_root_path = '';
// Where to take the topics from
// Always a number
$forum = '20';
// How many topics to show
$limit = '20';
// How to show the topics
// full or blank ('')
$show = 'full';
// How to display the date and time if used
// short or long
$date_time = 'short';
// How top display the topic link if usede
// topic or phpbb
$topic_link = 'topic';
// Comments link - how to send them to comments
// topic or reply
$comment = 'topic';
// Path to your forums directory
// Usually ./forum/ or ./phpBB/ or ./forums/
$phpbb_root_path = '/forum/';