تحديث آخر نسخة 1.8.37

تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
كيف يتم عمل صفحة اضافية للمنتدى
#3
قم بإنشاء ملف .php جديد واضف به التالى
PHP كود :
<?php

define
('IN_MYBB'1); // (1a)

require "./global.php"// (1b)

add_breadcrumb("اعلن لدينا""ads.php"); // (2)

eval("\$ads = \"".$templates->get("ads")."\";"); // (3)

output_page($ads); // (4)
?>
السطر 1a والسطر 1b هم اساسيان لا يمكن التخلى عنهم.

السطر 2 تحدد به عنوان الصفحة الذى سيظهر فى النافيجاتور.. كاهذا

.png   الإعلان فى منتديات الدعم العربى_1215789253248.png (الحجم : 973 بايت / التحميلات : 45)

واسم ملف الـ php الذى انشأته.

السطر 3 و 4 تغيير كلمة ads بإسم القالب الذى يحتوى على محتوى هذه الصفحة.
وفى حالة المثال الذى اخترته انت فهو قالب ads والذى يحتوى على التالى
كود :
<html>
<head>
<title>الإعلان فى منتديات الدعم العربى</title>
<meta name="description" content="الإعلان فى منتديات الدعم العربى لـ MyBB" />
{$headerinclude}
</head>
<body>
{$header}<br />
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div><strong>الإعلان فى منتديات الدعم العربى</strong></div>
</td>
</tr>
</thead>
<tbody>
<tr>
<td class="tcat"><strong>المقاس بالبيكسل</strong></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><strong>مكان الظهور</strong></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><strong>اقصى حجم للبنر</strong></td>
<td class="tcat" width="200" align="center"><strong>فترة الأعلان</strong></td>
<td class="tcat" width="200" align="center"><strong>السعر بالدولار</strong></td>
</tr>
<tr>
<td class="trow1" valign="top">120 * 60</td>
<td class="trow2" valign="top" align="center" style="white-space: nowrap">اسفل الصفحة الرئيسية فقط</td>
<td class="trow1" valign="top" align="center" style="white-space: nowrap">20 kb</td>
<td class="trow2" valign="top" align="right" style="white-space: nowrap">شهر</td>
<td class="trow2" valign="top" align="right" style="white-space: nowrap">20</td>
</tr>
<tr>
<td class="trow1" valign="top">468 * 60</td>
<td class="trow2" valign="top" align="center" style="white-space: nowrap">اسفل الصفحة الرئيسية فقط</td>
<td class="trow1" valign="top" align="center" style="white-space: nowrap">25 kb</td>
<td class="trow2" valign="top" align="right" style="white-space: nowrap">شهر</td>
<td class="trow2" valign="top" align="right" style="white-space: nowrap">30</td>
</tr>
<tr>
<td class="trow1" valign="top">120 * 60</td>
<td class="trow2" valign="top" align="center" style="white-space: nowrap">اسفل جميع الصفحات</td>
<td class="trow1" valign="top" align="center" style="white-space: nowrap">20 kb</td>
<td class="trow2" valign="top" align="right" style="white-space: nowrap">شهر</td>
<td class="trow2" valign="top" align="right" style="white-space: nowrap">30</td>
</tr>
<tr>
<td class="trow1" valign="top">468 * 60</td>
<td class="trow2" valign="top" align="center" style="white-space: nowrap">اسفل جميع الصفحات</td>
<td class="trow1" valign="top" align="center" style="white-space: nowrap">25 kb</td>
<td class="trow2" valign="top" align="right" style="white-space: nowrap">شهر</td>
<td class="trow2" valign="top" align="right" style="white-space: nowrap">50</td>
</tr>
</tbody></table>
<div class="bottommenu"><strong>ملحوظة:</strong> نوفر خطط اعلانية حسب الطلب والسعر يكون حسب الإتفاق يمكنك طلب احد الخطط اعلاه او خطط حسب رغبتك.. بالإتصال بنا.. الا اننا لا نعرض اى اعلانات فى اعلى الصفحات حاليا..</div>
{$footer}</body></html>

بالنسبة لصفحة اتصل بنا فهى هاك اضافى
شكر من طرف :


الردود في هذا الموضوع
RE: كيف يتم عمل صفحة اضافية للمنتدى - بواسطة Pepo - 2008-07-11, 04:16 PM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم