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.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/ndesign/{T_HEAD_STYLESHEET}" type="text/css">
<script language="Javascript" type="text/javascript">
</script>
<style>
</style>
</head>
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" topmargin="0" leftmargin="0">
<td align="center" valign="top"></td>
<table width="100" border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td> </td>
</tr>
<tr>
<td>
<table width="111%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="78%" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td> </td>
</tr>
<tr>
<td>
<table width="97%" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" style="border-collapse: collapse">
<tr>
<td>
<table width="106%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="485"><a href="http://127.0.0.1/phpbb2/"><font face="Adobe Caslon Pro">Начало</font></a></td>
</tr>
<tr>
<td width="485"><a href="{U_MEMBERLIST}"><font face="Adobe Caslon Pro">Потребители</font></a></td>
</tr>
<tr>
<td width="485"><a href="{U_GROUP_CP}"><font face="Adobe Caslon Pro">Групи</font></a></td>
</tr>
<tr>
<td width="485"><a href="{U_PROFILE}"><font face="Adobe Caslon Pro">Профил</font></a></td>
</tr>
<tr>
<td width="485"><a href="{U_REGISTER}"><font face="Adobe Caslon Pro">Регистрация</font></a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td>
<table width="102%" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" style="border-collapse: collapse">
<tr>
<td width="430">
<p style="margin-top: 0; margin-bottom: 0" align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><a href="{U_SEARCH}" class="mainmenu"><img src="templates/ndesign/images/icon_mini_search.gif" width="16" height="14" border="0" align="absmiddle" hspace="3">{L_SEARCH}</a></a></p>
<p style="margin-top: 0; margin-bottom: 0" align="left"> </p>
<p style="margin-top: 0; margin-bottom: 0" align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><a href="{U_PRIVATEMSGS}" class="mainmenu"><img alt="{PRIVATE_MESSAGE_INFO}" src="templates/ndesign/images/icon_mini_message.gif" hspace="3" align="ABSMIDDLE" border="0" />{PRIVATE_MESSAGE_INFO}</a></p>
<p style="margin-top: 0; margin-bottom: 0" align="left"> </p>
<p style="margin-top: 0; margin-bottom: 0" align="left"><a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img alt="{L_LOGIN_LOGOUT}" src="templates/ndesign/images/icon_mini_login.gif" hspace="3" align="ABSMIDDLE" border="0" />{L_LOGIN_LOGOUT}</a> </span></p>
</td>
</font></p></p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="22%" valign="top">
<p> </p>
<p> </p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p align="left" style="margin-left: 0; margin-top: 0; margin-bottom: 0"> </p>
</body>
</html>
<?php
//
// Basic Configuration
// Колко последни теми да показва?
$topicnumber = 10;
// накъде да скролира?
$scroll = "up";
// променте пътя до папката на форума ви
$urlPath = "http://127.0.0.1/phpBB2/";
// Database Configuration (Където се намира вашият phpBB config.php файл
include 'C:\Program Files\xampp\htdocs\phpBB2\config.php';
// Connecting & Selecting Databases
$table_topics = $table_prefix. "topics";
$table_forums = $table_prefix. "forums";
$table_posts = $table_prefix. "posts";
$table_users = $table_prefix. "users";
$link = mysql_connect("$dbhost", "$dbuser", "$dbpasswd") or die("Could not connect");
mysql_select_db("$dbname") or die("Could not select database");
// Perform Sql Query
$query = "SELECT t.topic_id, t.topic_title, t.topic_last_post_id, t.forum_id, p.post_id, p.poster_id, p.post_time, u.user_id, u.username
FROM $table_topics t, $table_forums f, $table_posts p, $table_users u
WHERE t.topic_id = p.topic_id AND
f.forum_id = t.forum_id AND
t.topic_status <> 2 AND
p.post_id = t.topic_last_post_id AND
p.poster_id = u.user_id
ORDER BY p.post_id DESC LIMIT $topicnumber";
$result = mysql_query($query) or die("Query failed");
// Outcome of the HTML
// Be carefull when you edit these!
print "<marquee id=\"recent_topics\" behavior=\"scroll\" direction=\"$scroll\" height=\"170\" scrolldelay=\"100\" scrollamount=\"2\" onMouseOver=\"document.all.recent_topics.stop()\" onMouseOut=\"document.all.recent_topics.start()\">
<table cellpadding='3' cellSpacing='2' width='350'>";
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo "<tr valign='top'><td><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"><font color=\"#FFCC00\"><b><a href=\"$urlPath/viewtopic.php?topic=$row[topic_id]&forum=$row[forum_id]\">" .
$row["topic_title"] .
"</a></td></font></b><td><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"><font color=\"#C0C0C0\"> by: <a href=\"$urlPath/profile.php?mode=viewprofile&u=$row[user_id]\">" .
$row["username"] .
"</td><td><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\"><font color=\"#C0C0C0\">" .
date('F j, Y, g:i a', $row["post_time"]) .
"</td></tr></font>";
}
print "</table></marquee>";
// Free Result
mysql_free_result($result);
// Close the Connection
mysql_close($link);
?>
drlevine каза:Също така къде да поставя този код, че да бъде показван на всяка страница:
Код:<?php // // Basic Configuration // Колко последни теми да показва? $topicnumber = 10; // накъде да скролира? $scroll = "up"; /
drlevine каза:Изход [ admin ] как да махна това
Издох [ Потребител ] в смисъл това [ ПОТРЕБИТЕЛ ] ?
$lang['Logout'] . ' [ ' . $userdata['username'] . ' ]';
[ ' . $userdata['username'] . ' ]
porostorm каза:Във форума с фрейм...
Ахмxainiken каза:Само казвам как ще стане с iframe
писал съм, че пояснявам не че не ми е ясно нещо :lol:
киорав съм, мислех, че темата е твоя :lol:xainiken каза:Какво да направя? Само казвам на човека как ще стане с фрейм ако случайно не знае![]()