2011-11-22, 05:12 PM
(آخر تعديل لهذه المشاركة: 2011-11-22, 05:27 PM بواسطة the-stranger.)
PHP كود :
<div id="page_top">
<div id="header_left">
<img src="red-silver/m_login.png" />
<div class="login">
{$welcomeblock}
</div>
</div>
<div id="header_right">
<a href="index.php"><img src="red-silver/site_logo.png" /></a>
</div>
</div><div align="center">
<table cellspacing="1" cellpadding="4" width="98%">
<tr>
<td class="thead" style="text-align:center">إعلانات {$mybb->settings['bbname']}</td>
</tr><tr>
<td class="trow1">
<div align="center">
<table cellspacing="0" cellpadding="2">
<tr>
<th><a href="" title="اعلان"><img src="red-silver/ad0.gif" /></a></th>
<th><a href="" title="اعلان"><img src="red-silver/ad0.gif" /></a></th>
<th><a href="" title="اعلان"><img src="red-silver/ad0.gif" /></a></th>
<th><a href="" title="اعلان"><img src="red-silver/ad0.gif" /></a></th>
</tr>
<tr>
<th><a href="" title="اعلان"><img src="red-silver/ad0.gif" /></a></th>
<th><a href="" title="اعلان"><img src="red-silver/ad0.gif" /></a></th>
<th><a href="" title="اعلان"><img src="red-silver/ad0.gif" /></a></th>
<th><a href="" title="اعلان"><img src="red-silver/ad0.gif" /></a></th>
</tr>
</td>
</tr>
{$top_10}
</table></div>
</td></tr></table></div>
<table border="0" cellspacing="0" cellpadding="0" align="center" width="98%" dir="rtl">
<tr>
<td width="42"><img src="red-silver/rtc.gif" /></td>
<td background="red-silver/t-bg.gif"><div class="top-bg"><img src="red-silver/site_logo.png" /></div></td>
<td width="42"><img src="red-silver/ltc.gif" /></td>
</tr>
<tr>
<td background="red-silver/r-bg.gif"></td>
<td style="background:#eaeaea;">
<div id="container">
<a name="top" id="top"></a>
<div id="header">
<div class="top-bg"></div>
<div class="thead" style="width:100%; height:25px; font-size:16px; font-weight:bold;"> {$mybb->settings['bbname']}</div>
<div id="panel">
<navigation></div>
<hr class="hidden" />
<div class="menu">
<ul>
<li><a href="{$mybb->settings['bburl']}/usercp.php"><strong>{$lang->welcome_usercp}</strong></a></li>
<li><a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php">{$lang->toplinks_memberlist}</a></li>
<li><a href="{$mybb->settings['bburl']}/calendar.php">{$lang->toplinks_calendar}</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help">{$lang->toplinks_help}</a></li>
<li><a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?action=buddypopup', 'buddyList', 350, 350);">{$lang->welcome_open_buddy_list}</a></li>
<li><a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a></li>
<li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a></li>
<li> {$modcplink}</li>
<li>{$admincplink}</li>
</ul>
</div>
</div>
<hr class="hidden" />
<br class="clear" />
<div id="content">
{$pm_notice}
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}<!-- ProfileComments -->
{$commentalert}<!-- /ProfileComments -->
<br />
قالب showthread
PHP كود :
<html>
<head>
<title>{$thread['subject']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
var quickdelete_confirm = "{$lang->quickdelete_confirm}";
// -->
</script>
<script type="text/javascript" src="jscripts/thread.js?ver=1400"></script>
</head>
<body>
{$header}
{$stcp_thr}{$pollbox}
<div class="float_left">
{$multipage}
</div>
<div class="float_right">
{$newreply}
</div>
{$ratethread}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both; border-bottom-width: 0;">
<tr>
<td class="thead" colspan="2">
<div style="float: right;">
<span class="smalltext"><strong><a href="showthread.php?mode=threaded&tid={$tid}&pid={$pid}#pid{$pid}">{$lang->threaded}</a> | <a href="showthread.php?mode=linear&tid={$tid}&pid={$pid}#pid{$pid}">{$lang->linear}</a></strong></span>
</div>
<div>
<strong>{$thread['subject']}</strong>
</div>
</td>
</tr>
{$classic_header}
</table>
<div id="posts">
{$posts}
</div>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="border-top-width: 0;">
<tr>
<td colspan="2" class="tfoot">
{$search_thread}
<div>
<strong>« <a href="{$next_oldest_link}">{$lang->next_oldest}</a> | <a href="{$next_newest_link}">{$lang->next_newest}</a> »</strong>
</div>
</td>
</tr>
</table>
<div class="float_left">
{$multipage}
</div>
<div style="padding-top: 4px;" class="float_right">
{$newreply}
</div>
<br style="clear: both;" />
{$sharebuttons}
{$quickreply}
{$threadexbox}
{$similarthreads}
<br />
<div class="float_left">
<ul class="thread_tools">
<li class="printable"><a href="printthread.php?tid={$tid}">{$lang->view_printable}</a></li>
<li class="sendthread"><a href="sendthread.php?tid={$tid}">{$lang->send_thread}</a></li>
<li class="subscription_{$add_remove_subscription}"><a href="usercp2.php?action={$add_remove_subscription}subscription&tid={$tid}">{$add_remove_subscription_text}</a></li>
</ul>
</div>
<table class="tborder" cellpadding="4" cellspacing="1">
<tr class="thead">
<th>خيارات الاشراف</th>
<th>الانتقال السريع</th>
</tr>
<tr>
<td class="trow1">{$moderationoptions}</td>
<td class="trow2">{$forumjump}</td>
</tr></table>
<br style="clear: both;" />
{$footer}
</body>
</html>
لآ تنسى انا عدلت بالملف و الملف بعد التعديل صار كذا
أرجو تجربته عندك
الكود المعدل
PHP كود :
$my_p .= "<li><a href=\"{$mybb->settings['bburl']}/showthread.php?tid={$row['tid']} \">{$row['subject']}</a></li>";
قبل التعديل
PHP كود :
$my_p .= "<li><a href=\"{$mybb->settings['bburl']}/thread-{$row['tid']}.html\">{$row['subject']}</a></li>";