[Template] postbit_legacy بسيط ومنسّق مع إضافات خفيفة و إختياريّة

Mohammad Kamal

:: مسؤول سابق ::
15 سبتمبر 2009
501
2
0
الأردن
بسم الله الرحمن الرحيم​


قالب postbit_legacy بسيط ومنسّق مع إضافة خفيفة​


من تصميمي Mohammad Kamal

مثال : www.compu6ar.com​



الإضافات :​

  • تحديد حجم خط إفتراضي مناسب لجميع المواضيع و المشاركات .
  • وضع صورة إفتراضية للأعضاء الذين لم يحددوا صورة رمزية لهم .​
  • إضافة بيانات موقعي .​
  • إضافة المجموعات الإجتماعية ، حيث تستطيع إضافة رابط موقع facebook و twitter الخاص بك .​
  • تنسيق اسم العضو بخط جميل .​
  • وضع إيطار حول المعلومات لتنسيقها .​
  • وضع التوقيع في إيطار .​
  • إظهار اسم العضو بخط عريض .​
  • إظهار اسم مجموعة العضو بخط عريض .​
  • توسيط تلقائي للمواضيع و الردود .​
  • الـ SMS جديد .​
صورة عن القالب :



postbit_legacy.jpg


كل ما عليك هو إنشاء حقول وتعديل رقمها في القالب .​

تجد في القالب الكود التالي وهو مخصص لبيانات موقع العضو :

كود:
<!-- siteinfo compu6ar.com -->
<if condition="$post['field[COLOR=red]14[/COLOR]']">
  <br /><div align="$stylevar[left]">
    <fieldset class="fieldset smallfont">
    <legend><b><font color="#000000">بيانات موقعي</font></b></legend>
    <if condition="$post['field[COLOR=red]14[/COLOR]']">
      <div><span style="color:black;"><font size="2">اسم المنتدى</font></span> : <a href="$post[field[COLOR=red]14[/COLOR]]" rel="nofollow" target="_blank">$post[field[COLOR=red]12[/COLOR]]</a></div>
    </if>
    <if condition="$post['field[COLOR=red]13[/COLOR]']">
      <div><span style="color:black;"><font size="2">إصدار المنتدى</font></span> : $post[field[COLOR=red]13[/COLOR]]</div>
    </if>
    </fieldset>
  </div>
</if>
<!-- / siteinfo compu6ar.com -->



استبدل رقم 14 برقم حقل رابط المنتدى

استبدل رقم 12 برقم حقل اسم المنتدى
استبدل رقم 13 برقم حقل إصدار المنتدى​


تجد في القالب الكود التالي وهو مخصص لبيانات المجموعات الإجتماعيّة :​


كود:
<!-- social networking compu6ar.com -->
<br>
<if condition="$post[field[COLOR=red]15[/COLOR]]">
   <fieldset><legend><b><font color="#000000">مجموعاتي الإجتماعيّة</font></b></legend></br>
  <a href="$post[field[COLOR=red]15[/COLOR]]" rel="nofollow" target="_blank"><img border="0" src="[URL="http://compu6ar.com/images/facebook.gif"></a></if"][COLOR=#1d98b1]http://compu6ar.com/images/facebook.gif"></a></if[/COLOR][/URL]>[CENTER]<if condition="$post[field[COLOR=red]16[/COLOR]]">
    <a href="$post[field[COLOR=red]16[/COLOR]]" rel="nofollow" target="_blank"><img border="0" src="[URL="http://compu6ar.com/images/twitter.gif"></a"][COLOR=#1d98b1]http://compu6ar.com/images/twitter.gif"></a[/COLOR][/URL]>
</fieldset>  
</if>
<!-- / social networking compu6ar.com -->


استبدل رقم 15 برقم حقل رابط الـ facebook .

استبدل رقم 16 برقم حقل رابط Twitter .

تجد في القالب الكود التالي وهو مخصص للـ SMS :​

كود:
<!---MySMS compu6ar.com -->
<if condition="$post['field[COLOR=red]17[/COLOR]']">
<fieldset style="padding: 2; width:208; height:104">
<legend><b><font color="#000000">My SMS</font></b></legend>
<marquee onmouseover="this.stop()" onmouseout="this.start()" direction="up" scrolldelay="2" scrollamount="1" style="text-align: center; font-family: Tahoma; " height="78">$post[field[COLOR=red]17[/COLOR]]</marquee>
</fieldset>
</if>
<!---/ MySMS compu6ar.com -->



استبدل رقم 17 برقم الحقل الخاص بالـ SMS .

إذا أردت حذف أحد الإضافات "بيانات الموقع" أو "المجموعات الإجتماعيّة" أو "الـ SMS" قم بحذف الأكواد أعلاه من القالب .

وباقي الحقول في القالب مثل الجنس و الإقامة حسب أرقام الحقول عندك .​

القالب :​

كود:
<!-- Postbit_legacy By Mohammad Kamal -->
<if condition="$show['spacer']"> 
    <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px"> 
    <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>     
</if> 
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> 
<tr> 
    <if condition="$show['announcement']"> 
        <td class="thead" style="font-weight:normal" colspan="2"> 
            <img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /> 
            <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase> 
        </td> 
    <else /> 
        <td class="thead" style="font-weight:normal" $post[scrolltothis]>         
            <!-- status icon and date --> 
            <a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a> 
            $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if> 
            $post[firstnewinsert] 
            <!-- / status icon and date -->                  
        </td> 
        <td class="thead" style="font-weight:normal" align="$stylevar[right]"> 
              
            <if condition="$show['postcount']">رقم المشاركة :  
            <a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]0" name="$post[postcount]0"><strong>$post[postcount]</strong></a></if> 
            <if condition="$show['inlinemod']"> 
                <input type="checkbox" name="plist[$postid]0" id="plist_$postid0" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" /> 
            </if> 
        </td> 
    </if> 
</tr> 
<tr valign="top"> 
    <td class="alt2" width="175"> 
             <fieldset><legend><b><font color="#000000">الملف الشخصي للعضو</font></b></legend>
            <div align="center" id="postmenu_$post[postid]"> 
                <if condition="$show['profile']"> 
                <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><font face="Times New Roman">$post[musername]</font></a> 
                <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script> 
                <else /> 
                $post[musername] 
                </if> 
            </div> 
            <div align="center" class="smallfont"> 
            <if condition="$post['usertitle']"><div class="smallfont"><b>$post[usertitle]</b><br></div></if> 
            <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if> 
            </div> 
            <if condition="$show['avatar']"> 
                <div align="center" class="smallfont"> 
                     <br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a><else /><div class="smallfont" align="center"><img border="0" src="[URL]http://compu6ar.com/images/avatars/noavatar.jpg"></div><br[/URL]>
                </div> 
            </if> 
   <if condition="$show['avatar']"> 
   </if> 
</fieldset>
            <p align="center">
<fieldset><legend><b><font color="#000000">معلومات العضو</font></b></legend>
   <div class="smallfont" style="text-align:right">
     <br />
<if condition="$post['joindate']"> 
<input type="text" name="Date" size="24" dir="rtl" value="الـتـســجـيـل : $post[joindate]" class="alt1" style="border-style:solid; border-width:1px; font-family:MS Sans Serif; font-size:10px; vertical-align:middle; letter-spacing:0;; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px"><br></if> 
<input type="text" name="Number1" size="24" dir="rtl" value="رقم العضوية : $post[userid]" class="alt1" style="border-style:solid; border-width:1px; font-family:MS Sans Serif; font-size:10px; vertical-align:middle; letter-spacing:0;; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px"><br>
<if condition="$post[field2]"> 
<input type="text" name="City" size="24" dir="rtl" value="الإقــــامـــــة : $post[field2]" class="alt1" style="border-style:solid; border-width:1px; font-family:MS Sans Serif; font-size:10px; vertical-align:middle; letter-spacing:0;; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px"><br></if> 
<input type="text" name="Cuantity" size="24" dir="rtl" value="المـشـاركـات : $post[posts]" class="alt1" style="border-style:solid; border-width:1px; font-family:MS Sans Serif; font-size:10px; vertical-align:middle; letter-spacing:0;; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px">
<input type="text" name="Number" size="24" dir="rtl" value="عدد الــنـقـاط : $post[reputation]" class="alt1" style="border-style:solid; border-width:1px; font-family:MS Sans Serif; font-size:10px; vertical-align:middle; letter-spacing:0;; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px">
<input type="text" name="Every_day" size="24" dir="rtl" value="بــــمـــعـــدل : $post[postsperday] يومياً" class="alt1" style="border-style:solid; border-width:1px; font-family:MS Sans Serif; font-size:10px; vertical-align:middle; letter-spacing:0;; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px">
<if condition="$post['age']"><br> 
<input type="text" name="age" size="24" dir="rtl" value="$vbphrase[age]: $post[age]" class="alt1" style="border-style:solid; border-width:1px; font-family:MS Sans Serif; font-size:10px; vertical-align:middle; letter-spacing:0;; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px"></if>
<if condition="$post['field6']">
<input type="text" name="الـــجــنـــس" size="24" dir="rtl" value="الـــــجــنـــس : $post[field6]" class="alt1" style="border-style:solid; border-width:1px; font-family:MS Sans Serif; font-size:10px; vertical-align:middle; letter-spacing:0;; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px"></if> 
               <p align="center"> 
<if condition="$show['reputation']">
$post[reputationdisplay]
                <div><p align="center">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</p></div></if>
</fieldset>
<!---MySMS compu6ar.com -->
<if condition="$post['field17']">
<fieldset style="padding: 2; width:208; height:104">
<legend><b><font color="#000000">My SMS</font></b></legend>
<marquee onmouseover="this.stop()" onmouseout="this.start()" direction="up" scrolldelay="2" scrollamount="1" style="text-align: center; font-family: Tahoma; " height="78">$post[field17]</marquee>
</fieldset>
</if>
<!---/ MySMS compu6ar.com -->
<!-- siteinfo compu6ar.com -->
<if condition="$post['field14']">
  <br /><div align="$stylevar[left]">
    <fieldset class="fieldset smallfont">
    <legend><b><font color="#000000">بيانات موقعي</font></b></legend>
    <if condition="$post['field14']">
      <div><span style="color:black;"><font size="2">اسم المنتدى</font></span> : <a href="$post[field14]" rel="nofollow" target="_blank">$post[field12]</a></div>
    </if>
    <if condition="$post['field13']">
      <div><span style="color:black;"><font size="2">إصدار المنتدى</font></span> : $post[field13]</div>
    </if>
    </fieldset>
  </div>
</if>
<!-- / siteinfo compu6ar.com -->
<!-- social networking compu6ar.com -->
<br>
<if condition="$post[field15]">
   <fieldset><legend><b><font color="#000000">مجموعاتي الإجتماعيّة</font></b></legend></br>
  <a href="$post[field15]" rel="nofollow" target="_blank"><img border="0" src="[URL]http://compu6ar.com/images/facebook.gif"></a></if[/URL]>
<if condition="$post[field16]">
    <a href="$post[field16]" rel="nofollow" target="_blank"><img border="0" src="[URL]http://compu6ar.com/images/twitter.gif"></a[/URL]>
</fieldset>  
</if>
<!-- / social networking compu6ar.com -->
      <p align="center"> 
            </p> 
            <p align="center"> 
            </div>                     
         
            $post[userawards]                 
    </td>
    <if condition="$show['moderated']"> 
    <td class="alt2" id="td_post_$post[postid]"> 
    <else /> 
    <td class="alt1" id="td_post_$post[postid]"> 
    </if> 
     
        <if condition="$show['messageicon'] OR $post['title']"> 
            <!-- icon and title --> 
            <div class="smallfont"> 
                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if> 
                <if condition="$post['title']"><strong>$post[title]</strong></if> 
            </div> 
            <hr size="1" style="color:$stylevar[tborder_bgcolor]" /> 
            <!-- / icon and title --> 
        </if> 
         
        <!-- message --> 
        <div id="post_message_$post[postid]"> 
            <div align="center"> 
                <table border="0" width="100%" cellspacing="0" cellpadding="0" height="48"> 
                    <tr> 
                        <td height="0" align="center" valign="top"> 
           <p align="center"><font size="4" face="Tahoma">$post[message]</font> 
            <p align="center"> </p> 
            <p align="center"> </p> 
                    </tr> 
                </table> 
            </div> 
            <p align="center"> </p> 
            <p align="center"> </div> 
        <if condition="$show['attachments']"> 
            <div style="padding:$stylevar[cellpadding]px"> 
             
            <if condition="$show['thumbnailattachment']"> 
                <fieldset class="fieldset"> 
                    <legend>$vbphrase[attached_thumbnails]</legend> 
                    <div style="padding:$stylevar[formspacer]px"> 
                    $post[thumbnailattachments] 
                    </div> 
                </fieldset> 
            </if> 
         
            <if condition="$show['imageattachment']"> 
                <fieldset class="fieldset"> 
                    <legend>$vbphrase[attached_images]</legend> 
                    <div style="padding:$stylevar[formspacer]px"> 
                    $post[imageattachments] 
                    </div> 
                </fieldset> 
            </if> 
             
            <if condition="$show['imageattachmentlink']"> 
                <fieldset class="fieldset"> 
                    <legend>$vbphrase[attached_images]</legend> 
                    <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> 
                    $post[imageattachmentlinks] 
                    </table> 
                    </fieldset> 
            </if> 
             
            <if condition="$show['otherattachment']"> 
                <fieldset class="fieldset"> 
                    <legend>$vbphrase[attached_files]</legend> 
                    <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> 
                    $post[otherattachments] 
                    </table> 
                </fieldset> 
            </if> 
             
            <if condition="$show['moderatedattachment']"> 
                <fieldset class="fieldset"> 
                    <legend>$vbphrase[attachments_pending_approval]</legend> 
                    <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> 
                    $post[moderatedattachments] 
                    </table> 
                </fieldset>         
            </if> 
             
            </div> 
        <!-- / attachments --> 
        </if> 
         
        <if condition="$post['signature']"> 
        <!-- sig --> 
            <div> 
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="52%" align="center"> 
<tr> 
    <td class="thead" align="center">$vbphrase[signature]</td> 
</tr> 
<tr> 
    <td class="alt1" title="$vbphrase[signature]" align="center"> 
    <p align="center"> $post[signature]
</td> 
</tr> 
</table> 
            </div> 
        <!-- / sig --> 
        </if> 
         
        <if condition="$show['postedited']"> 
        <!-- edit note --> 
            <div class="smallfont">            <hr size="1" style="color:$stylevar[tborder_bgcolor]" /> 
                <em> 
                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>. 
                <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if> 
                </em> 
            </div> 
        <!-- / edit note --> 
        </if> 
     
    </td> 
</tr> 
<tr> 
    <td class="alt2"> 
        $post[onlinestatus]
        <if condition="$show['reputationlink']"> 
            <span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span></if> 
        <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if> 
        $post[iplogged] 
          
    </td> 
    <if condition="$show['moderated']"> 
    <td class="alt2" align="$stylevar[right]"> 
    <else /> 
    <td class="alt1" align="$stylevar[right]"> 
    </if> 
        <!-- controls --> 
        <!-- AddThis Button BEGIN --> 
<script type="text/javascript">addthis_pub  = 'shatea';</script> 
<a href="[URL]http://www.addthis.com/bookmark.php[/URL]" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"></a><script type="text/javascript" src="[URL]http://s7.addthis.com/js/152/addthis...t.js"></script[/URL]> 
<!-- AddThis Button END --> 
        <if condition="$post['editlink']"> 
            <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a> 
        </if> 
        <if condition="$post['forwardlink']"> 
            <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a> 
        </if> 
        <if condition="$post['replylink']"> 
            <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a> 
        </if> 
        <if condition="$show['quickreply'] AND !$show['threadedmode']"> 
            <a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a> 
        </if> 
        <if condition="$show['moderated']"> 
            <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" /> 
        </if> 
        <!-- / controls --> 
    </td> 
</tr> 
</table> 
<!-- post $post[postid] popup menu --> 
$template_hook[postbit_end] 
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none"> 
    <table cellpadding="4" cellspacing="1" border="0"> 
    <tr> 
        <td class="thead">$post[username]</td> 
    </tr> 
    <if condition="$show['profile']"> 
        <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr> 
    </if> 
    <if condition="$show['pmlink']"> 
        <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr> 
    </if> 
    <if condition="$show['emaillink']"> 
        <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr> 
    </if> 
    <if condition="$show['homepage']"> 
        <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr> 
    </if> 
    <if condition="$show['search']"> 
        <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr> 
    </if> 
    <if condition="$post['userid'] AND $show['member']"> 
    <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr> 
    </if> 
    </table> 
</div> 
<!-- / post $post[postid] popup menu --> 
$template_hook[postbit_end] 
<if condition="$show['spacer']"> 
    </div> 
    $spacer_close 
</if> 
<!-- / post #$post[postid] -->
<!-- / Postbit_legacy By Mohammad Kamal -->



إن أصبت فمن الله ، وإن أخطأت فمني ومن الشيطان .


تحياتي، محمد​


​


​


​


​


[/CENTER]
 

المشاركات المتشابهة