۱۳۹۰/۱۰/۲۳، ۰۴:۵۸:۳۷ صبح
با سلام.
امروز می خوام آموزش بدم که چه طوری یه سر در شبیه به سایت فروم 2 آنلاین بسازید.
ابتدا فایل پیوست را در انجمنتان آپلود کنید:
[attachment=5442]
برای این کار در کنترل پنل مدیریت در قالب ها و پیوسته ها در قالب ها در قالب مورد نظر در Portal Templates
ابتدا قالب portal رو به شکل زیر تغییر دهید:
سپس قالب portal_announcement را به شکل زیر تغییر داده :
حال قالب portal_latestthreads را به شکل زیر :
و در آخر قالب portal_latestthreads_thread را به شکل زیر:
نمونه:
در فایل پیوست شده موجوده!
توجه ! اگر از پلاگین قسمت های کناری در صفحه اصلی استفاده می کنید باید با یه تغییر دیگر انجام دهید.
برای این کار به من پیام خصوصی دهید!
تشکر و اعتبار هم یادتان نره...
فقط برای رضایت صاحبش توی سایت فروم 2 آنلاین عضو شوید!
امروز می خوام آموزش بدم که چه طوری یه سر در شبیه به سایت فروم 2 آنلاین بسازید.
ابتدا فایل پیوست را در انجمنتان آپلود کنید:
[attachment=5442]
برای این کار در کنترل پنل مدیریت در قالب ها و پیوسته ها در قالب ها در قالب مورد نظر در Portal Templates
ابتدا قالب portal رو به شکل زیر تغییر دهید:
کد php:
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<style type="text/css">
<!--
body {
background-image: url(my-portal_files/bagerand.png);
background-repeat: no-repeat;
}
-->
</style></head>
<body>
<table width="973" border="0" align="center">
<tr>
<td width="450" align="right" valign="top"><br><br><br>
<table width="450" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" valign="top">
<tr>
<td height="40" style="background: url(my-portal_files/17000000.png) 0 0 no-repeat"></td>
</tr>
<tr>
<td class="trow1">
{$announcements}
<br>
</td>
</tr>
</table>
</td>
<td width="486" height="500" align="center" valign="top"><table width="486" border="0">
<tr>
<td width="480" height="174" align="center"><img src="my-portal_files/tablo-A0.png" width="480" height="107" border="0" usemap="#Map2">
<br>
</td>
</tr>
</table>
<table width="486" border="0">
<tr>
<td width="480" height="466" align="center" valign="top"><img src="my-portal_files/akharine.png" width="180" height="26"><br>
{$latestthreads}
</td>
</tr>
</table>
<table width="474" border="0">
<tr>
<td width="472" align="right"><a href="" target="_blank"><img src="my-portal_files/A4000000.png" alt="" border="0"></a></td>
</tr>
</table></td>
</tr>
</table>
</div>
</p>
</td>
</tr>
</table>
<div align="center">
<table width="950" height="30" border="0">
<td height="27" align="center" background="http://www.form2online.com/images/pictures/portal/zir.png"></td>
</table>
</div>
<map name="Map2" id="Map2">
<area shape="rect" coords="372,80,459,105" href="index.php" target="_blank">
<area shape="rect" coords="257,76,341,103" href="search.php" target="_blank">
<area shape="rect" coords="149,80,219,102" href="memberlist.php" target="_blank"><area shape="rect" coords="30,76,112,102" href="misc.php?action=help" target="_blank">
</map></body>
</html>
کد php:
<tr>
<tr>
<td class="thead"><strong>{$icon} <a href="{$mybb->settings['bburl']}/{$announcement['threadlink']}">{$announcement['subject']}</a></strong></td>
</tr>
<tr>
<td class="trow2" align="right" valign="middle">
<span class="smalltext">{$lang->posted_by} {$profilelink} - {$anndate} {$anntime}<br />{$views} {$numcomments}</span>
</td>
</tr>
<tr>
<td class="trow1">
<table border="0" cellpadding="{$theme['tablespace']}" width="100%">
<tr>
<td class="trow1" style="border: 0px;">
<p style="margin: -2px 0;">
{$message}
</p>
{$post['attachments']}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="trow2" align="right" valign="middle">
<span class="smalltext">
<p align="left"><a href="{$mybb->settings['bburl']}/sendthread.php?tid={$announcement['tid']}">ارسال این مطلب به دوستان</a> | <a href="{$mybb->settings['bburl']}/thread-{$announcement['tid']}.html">لینک ثابت</a> | <a href="{$mybb->settings['bburl']}/newreply.php?tid={$announcement['tid']}">ارسال دیدگاه</a></p>
</span>
</td>
</tr>
</tr>
کد php:
<style>
#MTForumBlock
{
padding:5px;
}
#MTForumBlock TABLE
{
width:100%;
direction:rtl;
}
#MTForumBlock TR
{
background-image:url(images/MTForumBlock_row.png);
background-repeat:repeat-x;
height:18px;
}
#MTForumBlock TR.MTForumfirst
{
background-image:url(images/MTForumBlock_row_over.png);
}
#MTForumBlock TR:hover
{
background-image:url(images/MTForumBlock_row_over.png);
}
#MTForumBlock TD
{
font-family:Tahoma;
font-size:12px;
border:1px solid #e6e9ec;
color:#666666;
}
.MTForumtitle
{
text-align:center;
}
.MTForumanswer
{
width:40px;
text-align:center;
}
.MTForumview
{
width:40px;
text-align:center;
}
.MTForumlast
{
width:90px;
text-align:center;
}
.MTForumrowtitle
{
padding-right:5px;
}
#MTForumBlock A
{
float:right;
width:100%;
height:100%;
color:#666666;
text-decoration:none;
}
#MTForumBlock A:hover
{
text-decoration:none;
color:#FF0000;
}
#MTForumBlockControl TABLE
{
height:22px;
font-family:Tahoma;
font-size:12px;
color:#999999;
}
#MTForumBlockControl A
{
text-decoration:none;
color:#999999;
float:right;
width:49px;
height:22px;
line-height:20px;
}
.MTForumButton
{
width:49px;
background-image:url(images/MTForumBlock_button.png);
background-position:right;
background-repeat:no-repeat;
text-align:center;
}
.MTForumButton:hover
{
background-image:url(images/MTForumBlock_button.png);
background-position:left;
background-repeat:no-repeat;
}
#MTFloader
{
width:40px;
text-align:center;
}
</style>
<div id="MTForumBlock">
<table id="webalfa-lastpost">
<tr class="MTForumfirst">
<td class="MTForumtitle">عنوان</td>
<td class="MTForumanswer">پاسخ</td>
<td class="MTForumview">بازديد</td>
<td class="MTForumlast">زمان</td>
</tr>
{$threadlist}
</table>
</div>
<br />
کد php:
<tr>
<td class="MTForumrowtitle"><a target='_blank' href="{$mybb->settings['bburl']}/showthread.php?tid={$thread['tid']}"><img src="images/FBarrow.gif" border="0">{$thread['subject']}</a></td>
<td class="MTForumanswer">{$thread['replies']}</td>
<td class="MTForumview">{$thread['views']}</td>
<td class="MTForumlast">{$lastpostdate}</td>
</tr>
در فایل پیوست شده موجوده!
توجه ! اگر از پلاگین قسمت های کناری در صفحه اصلی استفاده می کنید باید با یه تغییر دیگر انجام دهید.
برای این کار به من پیام خصوصی دهید!
تشکر و اعتبار هم یادتان نره...
فقط برای رضایت صاحبش توی سایت فروم 2 آنلاین عضو شوید!