|
||||||
| ركن المجلات الإلكترونيه وبرامج إدارة المحتوى [يمنع]منعا باتا كتابة مواضيع الطلبات او المشاكل او الاستفسارات |
|
|
|
LinkBack | أدوات الموضوع | طرق العرض |
|
||||
|
ببساطه عشان يظهر الخبر بهذه الطريقه ![]() واثناء الاضافه ![]() واثناء التحرير ![]() اولا //بنضيف حقلين name2 و title2 لجدول rafia_news واعطاء كل حقل الطول 200 الي مايعرف يتابع الشرح (لوامكن اخوي عبقري او عبد القاهر يختصروها بامر واحد ) تذهب لصفحه phpMyAdmin وتختار قاعده بيانت المجله كما في الصوره ![]() ونختار من يمين الشاشه الجدول rafia_news ![]() وفي وسط الصفحه بتلاقي الصوره ادناه اكتب رقم 2 ثم تنفيذ نعطي اسماء للحقلين وهيه name2 و title2 وطول لكل منهما 200 ثم اضغط تنفيذ ![]() راح تلاحظ انه اضيفت في اخر الجدول الحقلين name2 و title2 كما بصوره ![]() انتهت اضافة الجداول بنجاح ثانيا// استبدل ملف news.php و index.php وملف form.php الموجود بداخل مجد func ثالثا//التغير في القوالب 1-1 استبدل قالب news_add ظمن قوالب الاخبار بهذا القالب رمز Code:
<script language="javascript">
function checkForm(){
document.rafia.spam.value ='newsnotspam_$cap';
}
</script>
<form onsubmit="return checkForm(this)" action="news.php?action=insert" method="post" name="rafia" enctype="multipart/form-data">
<table border="0" width="90%" cellspacing="0" cellpadding="0">
<tr>
<td align="right" class="forum_header">إضافة خبر </td>
</tr>
<tr>
<td>
<table border="0" width="100%" id="table13" cellpadding="2" class="fontablt">
$usernamef$useridf$selectform
<tr>
<td align="right" nowrap="" class="info_bar">الموضوع :
<font color="#FF0000">*</font> </td>
<td align="right" width="100%">
<input type="text" name="title" value="" size="35" class="text_box">
</td>
</tr>
<tr>
<td align="right" nowrap="" class="info_bar">عنوان اختياري :
</td>
<td align="right" width="100%">
<input type="text" name="title2" value="" size="35" class="text_box">
</td>
</tr>
<tr>
<td align="right" nowrap="" class="info_bar">المصدر :
</td>
<td align="right" width="100%">
<input type="text" name="name2" value="" size="35" class="text_box">
</td>
</tr>
$txtcounth<tr>
<td align="right" nowrap="" class="info_bar" valign="top">رأس
الخبر : <br>اختياري</td>
<td align="right" width="100%">
<textarea name="post_head" rows="8" cols="60" onkeypress="return countIt();"></textarea></td>
</tr>
$editor$txtcount<tr>
<td align="right" nowrap="" class="info_bar" valign="top">نص
الخبر : <font color="#FF0000">*</font> <br>
طول النص يجب ان يكون <br>
أقل من : $countpost حرف<br>
<center><a href="#" onmouseover="return proces()">إختبار الطول</a><br>
تبقى لك :
<input size="5" name="remain" type="text" value="$countpost">
<center></center></center></td>
<td align="right" width="100%">$form_code<br>
<textarea onmouseover="return proces()" onbeforeeditfocus="return proces()" onmouseout="return proces()" name="post" rows="15" cols="60" id="post" wrap="virtual"></textarea><input type="hidden" name="left" value="$countpost" size="7" class="text_box"></td>
</tr>
<tr>
<td align="right" nowrap="" class="info_bar">التبليغ بالبريد
الإلكتروني </td>
<td align="right" width="100%">
<input type="radio" name="H" value="1"> نعم
<input type="radio" name="H" value="0" checked> لا </td>
</tr>
<tr>
<td align="right" nowrap="" class="info_bar">عرض الموضوع في
صفحة البداية؟ </td>
<td align="right" width="100%">
<input type="radio" name="inindex" value="1" checked=""> نعم
<input type="radio" name="inindex" value="0"> لا</td>
</tr>
<tr>
<td align="right" nowrap="" class="info_bar">عرض الموضوع في
قائمة أهم الاخبار؟ </td>
<td align="right" width="100%">
<input type="radio" name="inmenu" value="1"> نعم
<input type="radio" name="inmenu" value="0" checked=""> لا</td>
</tr>
$main_n<tr>
<td align="right" nowrap="" class="info_bar">استخدام الصورة
الافتراضية للقسم؟ </td>
<td align="right" width="100%">
<input type="radio" name="catmig" value="1"> نعم
<input type="radio" name="catmig" value="0" checked=""> لا</td>
</tr>
$fileupload $imgupload
$chose_func
<input type="hidden" name="spam" value="spam">
<input type="hidden" name="action" value="insert">
</table>
</td>
</tr>
<tr>
<td align="center">
<input border="0" src="themes/$apt->themepath/newnews.gif" name="dosubmit" type="image">
</td>
</tr>
</table> </form>
1-index_main_table في القوالب العامه 2-index_table في القوالب العامه 3- news_topic_list في قوالب الاخبار بهذا القالب رمز Code:
<table border="0" cellpadding="0" cellspacing="0" width="95%"> <tr> <td height="14"> <div class="news_title"> <img border="0" src="themes/$apt->themepath/news_icon.gif" width="12" height="12"> <a href="$news_link">$title</a></div> </td> </tr> <tr> <td height="7"> <b><font color="#CC0000"> </font> <a href="$news_link"><font color="#CC0000" size="4">$title2</font></a></b></td> </tr> <tr> <td height="7"> <b><font color="#CC0000"> <span lang="ar-sa">المصدر</span><span lang="ar-sa">:</span></font><font color="#0066CC"> $name2</font></b></td> </tr> <tr> <td width="100%"> <table border="0" cellpadding="2" style="border-collapse: collapse" width="100%" id="AutoNumber1" class="article_info"> <tr> <td align="right" width="100%"> <div class="article_info"> <img border="0" src="themes/$apt->themepath/info.gif" width="13" height="18"> الكاتب: <a href="members.php?action=info&userid=$userid">$name</a> بتاريخ: $date </div> </td> <td nowrap align="left" colspan="3"></td> </tr> </table> </td> </tr> <tr> <td width="100%" style="padding-top: 5; padding-bottom: 5; text-align: justify"> $newsimage <font class="home_text">$news_head </font></td> </tr> <tr> <td align="right" width="100%" class="info_bar2" style="padding-top: 5; padding-bottom: 5"> <p align="right"><a href="$news_link"> <img border="0" src="themes/$apt->themepath/readmore.gif" align="right"></a> </p> <div class="article_info"> الزوار: $reader التعليقات: $numrows </div> </td> </tr> <tr> <td width="100%">$pagenum </td> </tr> </table> <hr color="#C0C0C0" width="95%" size="1" style="border-style: dotted; border-width: 1px"> رمز Code:
<table border="0" cellpadding="3" cellspacing="3" width="100%">
<tr>
<td valign="top" colspan="2">
<div class="news_title">
<img border="0" src="themes/$apt->themepath/news_icon.gif" width="12" height="12">
$title</div>
</td>
</tr>
<tr>
<td height="7">
<b><font color="#CC0000"> </font>
<a href="$news_link"><font color="#CC0000" size="4">$title2</font></a></b></td>
</tr>
<tr>
<td height="7">
<b><font color="#CC0000"> <span lang="ar-sa">المصدر</span><span lang="ar-sa">:</span></font><font color="#0066CC">
$name2</font></b></td>
</tr>
<tr>
<td align="right" valign="top">
<div class="article_info">
<img border="0" src="themes/$apt->themepath/info.gif" width="13" height="18">
بواسطة: <a href="members.php?action=info&amp;userid=$userid">$username</a><br>
بتاريخ : $date </div>
</td>
<td valign="top">
<p align="left">
<a href="javascript:rafiawin('popup.php?action=printnews&id=$id',500,600)">
<img border="0" src="themes/$apt->themepath/print_page.gif" width="70" height="24"></a><a href="mail.php?action=sendpage"><img border="0" src="themes/$apt->themepath/send_f.gif" width="70" height="24"></a><a href="pdf.php?id=$id"><img border="0" src="themes/$apt->themepath/pdf.gif" width="70" height="24"></a><br>
<a href="translate.php">
<img border="0" src="themes/$apt->themepath/t.gif" width="70" height="24"></a><a href="filemanager.php?action=save&id=$id"><img border="0" src="themes/$apt->themepath/save.gif" width="70" height="24"></a><a href="$PHP_SELF?action=addcomment&amp;id=$postid"><img border="0" src="themes/$apt->themepath/add_comment.gif" width="70" height="24"></a></p>
</td>
</td>
</tr>
</table>
<table border="0" cellpadding="3" cellspacing="3" width="100%">
<tr>
<td align="right" width="100%" class="normal">
<div class="article_pic">
$newsimage</div>
$news_head<br>
$post </td>
</tr>
<tr>
<td width="100%">
<div class="article_info">
<img border="0" src="themes/$apt->themepath/info.gif" width="13" height="18">
مرات القراءة: $reader - التعليقات: $c_comment</div>
</td>
</tr>
</table>
<hr color="#C0C0C0" width="95%" size="1" style="border-style: dotted; border-width: 1px">
<br>
<b><center>$topic_nav</center></b>
ملاحظه // رح تلاحظ اثناء اضافه خبر مابتظهر رساله الخطاء الي كان يشتكي منها مستخدمي محرر html هو تحقق من كتابت عنوان الخبر ملاحظه اخرى//انا معدل على ملفاتي بحيث انه محرر html يظهر في كامل المنتدى بطلب من الاخوان في هذا الموضوع http://traidnt.net/vb/showthread.php?t=1235147 http://www.arab-portal.info/forum.ph...n=view&id=6877 يعني الي يحب ازيل المحرر وارجع العادي للمنتدى فقط يطلب مرفق صور الشرح متسلسله + الملفات |
![]() |
| العلامات المرجعية |
| العبارات الدليلة |
| المجلة العربية |
| أدوات الموضوع | |
| طرق العرض | |
|
|