درسنا اليوم سيكون عن كيفية انشاء صفحة بحيث تكون وكأنها جزء من المنتدى .
اولاً قم بفتح برنامج المفكرة .. وضع هذا الكود
------------------------------------------
<?php
error_reporting(7);
$templatesused='rouad_ad,headinclude,';
$loadbirthdays=1;
$loadmaxusers=1;
require('./global.php');
$permissions=getpermissions();
if (!$permissions['canview']) {
show_nopermission();
}
// insert here code
eval("dooutput(\"".gettemplate('rouad_ad')."\");");
?>
---------------------------------------------------------------------------------
واحفظ الملف باسم الذي تريده واتبع الاسم ب php. مثلا ( rouad_ad.php )
---------------------------------------------------------------------------------
الآن أنشئ تمبلت جديد بالإسم الذي تريده .. في الشرح افترضنا الاسم هو ( rouad_ad )
وضع فيه هذا الكود
---------------------------------------------------------------------------------
{htmldoctype}
<html dir="rtl">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<!-- end no cache headers -->
<meta name="keywords" content="vbulletin,forum,bbs,discussion,jelsoft">
<title>$bbtitle </title>
$headinclude
</head>
<body>
$header
<!-- text -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr valign="top">
<td><img src="{imagesfolder}/vb_bullet.gif" border="0" align="middle" alt="$bbtitle : $templateversion">
<normalfont><b>$bbtitle</b></normalfont></td>
<td align="right"></b></smallfont></td>
</tr>
</table>
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr valign="bottom">
<td><smallfont><!-- insert here .... -->
</smallfont></td>
<td align="left"><!-- insert here .... --></td>
</tr>
</table>
<!-- /text -->
<br>
<!-- main -->
<!-- /main -->
<br>
<!-- timezone/login-->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr valign="top">
<td><smallfont>$timezone</smallfont></td>
<td align="right"></td>
</tr>
</table>
<!-- /timezone/login -->
<br>
$footer
</body>
</html>
---------------------------------------------------------------------------------
ملاحظه :
لا بد ان يكون اسم التمبلت في الملف مطابقاً لإسم التمبلت الذي أنشأته
في templatesused='rouad_ad,headinclude,';
غير اسم التمبلت rouad_ad الى اسم التمبلت الذي أنشأته
وفي آخر الملف أيضا
eval("dooutput(\"".gettemplate('rouad_ad')."\");");
استبدل اسم التمبلت rouad_ad باسم التمبلت الذي أنشأته
---------------------------------------------------------------------------------
نأتي للخطوة الأخير ... اذهب الى تمبلت header اذا كنت تود اضافة رابط للصفحة بالهيدر ( أيقونة )
<a href="rouad_ad.php"><img src="images/top_home.gif" border="0"></a>
تحياتي ،،،