:: BarakaSoft Forum ::
04-14-2009, 08:02 AM
السلام عليكم ورحمة الله وبركاتة
مثال القالب
http://www.k7lk.com/vb/showthread.php?t=18183
بعد عناء طويل وبعد حذف أعضاء في المنتدى بطريقة الخطء واجهتني مشكلة Database Error ولاكن بحمد الله تعالى تم حل المشكلة بالكامل في هذا القالب postbit_legacy المطور من قبل الشتري في هذا الموضوع هنا (http://www.k7lk.com/vb/showthread.php?t=5848&highlight=postbit_legacy)
طريقة التركيب
1- لوحة تحكم المنتدى
2- التحكم بالاستايلات
3- اختر الاستايل المطلوب العمل به
4- توجه لتعديل القالب postbit_legacy وأمسح جميع محتوى القالب
5- أنسخ الكود التالي ولصقه مكانه
رمز Code:
$template_hook[postbit_start]
http://www.barakasoft.com/vb/$stylevar/post_$post[statusicon].gif
$vbphrase[x_until_y]
http://www.barakasoft.com/vb/$stylevar[imgdir_statusicon]/post_$post[statusicon].gif
$post[postdate], $post[posttime]
$post[firstnewinsert]
#$post[postcount] (http://www.barakasoft.com/vb/showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount])
معلومات العضو
$post[musername] (http://www.barakasoft.com/vb/member.php?$session[sessionurl]u=$post[userid])
$post[musername]
$post[usertitle]
$post[rank]
$post[staffrank_opentag]
$post[staffrank]
$post[staffrank_closetag]
[IMG]http://www.barakasoft.com/vb/images/wsam/$post[field6].gif
http://www.barakasoft.com/vb/$post[avatarurl] (http://www.barakasoft.com/vb/member.php?$session[sessionurl]u=$post[userid])
http://www.barakasoft.com/vb/$stylevar/sortasc{$collapseimg_postid2}.gif (http://www.barakasoft.com/vb/#top)اخر
مواضيعي
http://www.barakasoft.com/vb/images/flags/$post[field5].gif
$favo
$vbphrase: $post[warnings]/$post[infractions] ($post[ipoints])
$vbphrase[reppower]: $post[reppower]
$post[reputationdisplay]
$template_hook[postbit_userinfo_right]
$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
$template_hook[postbit_messagearea_start]
[IMG]http://www.barakasoft.com/vb/$post[iconpath]
$post[title]
$ad_********[ad_showthread_firstpost_start]
$post[message]
$vbphrase[attached_thumbnails]
$post[thumbnailattachments]
$vbphrase[attached_images]
$post[imageattachments]
$vbphrase[attached_images]
$post[imageattachmentlinks]
$vbphrase[attached_files]
$post[otherattachments]
$vbphrase[attachments_pending_approval]
$post[moderatedattachments]
$template_hook[postbit_signature_start] $ad_********[ad_showthread_firstpost_sig]
$vbphrase[signature]
$post[signature]
[I]
$vbphrase[last_edited_link_by_x_on_y_at_z_postid]
$vbphrase[last_edited_by_x_on_y_at_z]
$vbphrase[reason]: $post[edit_reason]
$post[onlinestatus]
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/reputation.gif (http://www.barakasoft.com/vb/reputation.php?$session[sessionurl]p=$post[postid])
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/infraction.gif (http://www.barakasoft.com/vb/infraction.php?$session[sessionurl]do=report&p=$post[postid])
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/report.gif (http://www.barakasoft.com/vb/report.php?$session[sessionurl]p=$post[postid])
$post[iplogged]
http://www.barakasoft.com/vb/$stylevar[imgdir_misc]/progress.gif
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/edit.gif (http://www.barakasoft.com/vb/$post[editlink])
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/forward.gif (http://www.barakasoft.com/vb/$post[forwardlink])
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/<if condition= (http://www.barakasoft.com/vb/$post[replylink])
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/multiquote_<if condition= (http://www.barakasoft.com/vb/$post[replylink])
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/quickreply.gif (http://www.barakasoft.com/vb/$post[replylink])
http://www.barakasoft.com/vb/$stylevar[imgdir_misc]/moderated.gif
http://www.barakasoft.com/vb/$stylevar[imgdir_misc]/spam_detected.png
http://www.barakasoft.com/vb/$stylevar[imgdir_misc]/trashcan.gif (http://www.barakasoft.com/vb/postings.php?$session[sessionurl]do=managepost&p=$post[postid])
http://www.barakasoft.com/vb/$stylevar[imgdir_misc]/trashcan.gif
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/redcard.gif (http://www.barakasoft.com/vb/infraction.php?$session[sessionurl]do=view&p=$post[postid])
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/yellowcard.gif (http://www.barakasoft.com/vb/infraction.php?$session[sessionurl]do=view&p=$post[postid])
$template_hook[postbit_controls]
$template_hook[postbit_end]
$post[username]
$vbphrase[view_public_profile] (http://www.barakasoft.com/vb/member.php?$session[sessionurl]u=$post[userid])
$vbphrase[send_private_message_to_x] (http://www.barakasoft.com/vb/private.php?$session[sessionurl]do=newpm&u=$post[userid])
$vbphrase[send_email_to_x] (http://www.barakasoft.com/vb/sendmessage.php?$session[sessionurl]do=mailmember&u=$post[userid])
$vbphrase[visit_xs_homepage] (http://www.barakasoft.com/vb/$post[homepage])
$vbphrase[find_more_posts_by_x] (http://www.barakasoft.com/vb/search.php?$session[sessionurl]do=finduser&u=$post[userid])
$vbphrase[add_x_to_contacts] (http://www.barakasoft.com/vb/profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid])
$template_hook[postbit_user_popup]
6- احفظ العمل ثم أتجه الى التحكم بالاضافات ابرمجية Plugin وأرفع Plugin الي في المرفق
================================================== =====
================================================== ====
================================================== ==
==================================================
أو اتبع الخطوات التالية في حالة انك مركب الهاك وعندك المشكلة
طريقـة التعـديل ::
اتبعوآ الصـور آخـوآني ،،
http://www.up.awraq-m.com/uploads/a00fd0ce68.bmp (http://www.up.awraq-m.com/)
http://www.up.awraq-m.com/uploads/bdd62416ed.bmp (http://www.up.awraq-m.com/)
ارعص على ( تعديل ) كما هو موضح عندكـ ،،
وبعدها ،،
http://www.up.awraq-m.com/uploads/4a5af3d776.bmp (http://www.up.awraq-m.com/)
الصق الكود التالي في المحل الموضح لك ( امسح القديم و الصق الجديد مباشرة ) ،،
رمز Code:
//arabdeaf.net###
global $db;
$this_hack_userid = $this->post[userid];
if($post[userid] !=0){
$user_theard_query = $db->query_read("SELECT COUNT(threadid) AS total FROM " . TABLE_PREFIX . "thread WHERE postuserid=$this_hack_userid");
$personal1=$db->query_first("SELECT SUM(views) AS personalviews FROM thread WHERE postuserid=$post[userid] AND open!='10'");
$personal= 2*$post[posts]+$personal1[personalviews];
if ($personal1 == ""):
$personal1 = "0";endif;
global $db;$personal1=$db->query_first("SELECT SUM(views) AS personalviews FROM thread WHERE postuserid=$post[userid] AND open!='10'");
$personal= 2*$post[posts]+$personal1[personalviews];
if ($personal1 == ""):
$personal1 = "0";endif;
$attachment = $db->query_first("SELECT COUNT(attachmentid) AS total FROM attachment WHERE userid=$post[userid] ");
$attachcoun = $attachment[total];
$usertherd_pro_fetch = $db->fetch_array($user_theard_query);
$usertherdcoun = $usertherd_pro_fetch[total];
$userpostdcoun = $post[posts] - $usertherdcoun ;}
//arabdeaf.net###
تم بحمد الله
الملفات المرفقة http://www.traidnt.net/vb/images/attach/zip.gif بعد حل مشكلة Database Error.zip (http://www.traidnt.net/vb/attachment.php?attachmentid=363298&d=1239649345) (1.4 كيلوبايت)
مثال القالب
http://www.k7lk.com/vb/showthread.php?t=18183
بعد عناء طويل وبعد حذف أعضاء في المنتدى بطريقة الخطء واجهتني مشكلة Database Error ولاكن بحمد الله تعالى تم حل المشكلة بالكامل في هذا القالب postbit_legacy المطور من قبل الشتري في هذا الموضوع هنا (http://www.k7lk.com/vb/showthread.php?t=5848&highlight=postbit_legacy)
طريقة التركيب
1- لوحة تحكم المنتدى
2- التحكم بالاستايلات
3- اختر الاستايل المطلوب العمل به
4- توجه لتعديل القالب postbit_legacy وأمسح جميع محتوى القالب
5- أنسخ الكود التالي ولصقه مكانه
رمز Code:
$template_hook[postbit_start]
http://www.barakasoft.com/vb/$stylevar/post_$post[statusicon].gif
$vbphrase[x_until_y]
http://www.barakasoft.com/vb/$stylevar[imgdir_statusicon]/post_$post[statusicon].gif
$post[postdate], $post[posttime]
$post[firstnewinsert]
#$post[postcount] (http://www.barakasoft.com/vb/showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount])
معلومات العضو
$post[musername] (http://www.barakasoft.com/vb/member.php?$session[sessionurl]u=$post[userid])
$post[musername]
$post[usertitle]
$post[rank]
$post[staffrank_opentag]
$post[staffrank]
$post[staffrank_closetag]
[IMG]http://www.barakasoft.com/vb/images/wsam/$post[field6].gif
http://www.barakasoft.com/vb/$post[avatarurl] (http://www.barakasoft.com/vb/member.php?$session[sessionurl]u=$post[userid])
http://www.barakasoft.com/vb/$stylevar/sortasc{$collapseimg_postid2}.gif (http://www.barakasoft.com/vb/#top)اخر
مواضيعي
http://www.barakasoft.com/vb/images/flags/$post[field5].gif
$favo
$vbphrase: $post[warnings]/$post[infractions] ($post[ipoints])
$vbphrase[reppower]: $post[reppower]
$post[reputationdisplay]
$template_hook[postbit_userinfo_right]
$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
$template_hook[postbit_messagearea_start]
[IMG]http://www.barakasoft.com/vb/$post[iconpath]
$post[title]
$ad_********[ad_showthread_firstpost_start]
$post[message]
$vbphrase[attached_thumbnails]
$post[thumbnailattachments]
$vbphrase[attached_images]
$post[imageattachments]
$vbphrase[attached_images]
$post[imageattachmentlinks]
$vbphrase[attached_files]
$post[otherattachments]
$vbphrase[attachments_pending_approval]
$post[moderatedattachments]
$template_hook[postbit_signature_start] $ad_********[ad_showthread_firstpost_sig]
$vbphrase[signature]
$post[signature]
[I]
$vbphrase[last_edited_link_by_x_on_y_at_z_postid]
$vbphrase[last_edited_by_x_on_y_at_z]
$vbphrase[reason]: $post[edit_reason]
$post[onlinestatus]
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/reputation.gif (http://www.barakasoft.com/vb/reputation.php?$session[sessionurl]p=$post[postid])
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/infraction.gif (http://www.barakasoft.com/vb/infraction.php?$session[sessionurl]do=report&p=$post[postid])
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/report.gif (http://www.barakasoft.com/vb/report.php?$session[sessionurl]p=$post[postid])
$post[iplogged]
http://www.barakasoft.com/vb/$stylevar[imgdir_misc]/progress.gif
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/edit.gif (http://www.barakasoft.com/vb/$post[editlink])
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/forward.gif (http://www.barakasoft.com/vb/$post[forwardlink])
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/<if condition= (http://www.barakasoft.com/vb/$post[replylink])
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/multiquote_<if condition= (http://www.barakasoft.com/vb/$post[replylink])
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/quickreply.gif (http://www.barakasoft.com/vb/$post[replylink])
http://www.barakasoft.com/vb/$stylevar[imgdir_misc]/moderated.gif
http://www.barakasoft.com/vb/$stylevar[imgdir_misc]/spam_detected.png
http://www.barakasoft.com/vb/$stylevar[imgdir_misc]/trashcan.gif (http://www.barakasoft.com/vb/postings.php?$session[sessionurl]do=managepost&p=$post[postid])
http://www.barakasoft.com/vb/$stylevar[imgdir_misc]/trashcan.gif
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/redcard.gif (http://www.barakasoft.com/vb/infraction.php?$session[sessionurl]do=view&p=$post[postid])
http://www.barakasoft.com/vb/$stylevar[imgdir_button]/yellowcard.gif (http://www.barakasoft.com/vb/infraction.php?$session[sessionurl]do=view&p=$post[postid])
$template_hook[postbit_controls]
$template_hook[postbit_end]
$post[username]
$vbphrase[view_public_profile] (http://www.barakasoft.com/vb/member.php?$session[sessionurl]u=$post[userid])
$vbphrase[send_private_message_to_x] (http://www.barakasoft.com/vb/private.php?$session[sessionurl]do=newpm&u=$post[userid])
$vbphrase[send_email_to_x] (http://www.barakasoft.com/vb/sendmessage.php?$session[sessionurl]do=mailmember&u=$post[userid])
$vbphrase[visit_xs_homepage] (http://www.barakasoft.com/vb/$post[homepage])
$vbphrase[find_more_posts_by_x] (http://www.barakasoft.com/vb/search.php?$session[sessionurl]do=finduser&u=$post[userid])
$vbphrase[add_x_to_contacts] (http://www.barakasoft.com/vb/profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid])
$template_hook[postbit_user_popup]
6- احفظ العمل ثم أتجه الى التحكم بالاضافات ابرمجية Plugin وأرفع Plugin الي في المرفق
================================================== =====
================================================== ====
================================================== ==
==================================================
أو اتبع الخطوات التالية في حالة انك مركب الهاك وعندك المشكلة
طريقـة التعـديل ::
اتبعوآ الصـور آخـوآني ،،
http://www.up.awraq-m.com/uploads/a00fd0ce68.bmp (http://www.up.awraq-m.com/)
http://www.up.awraq-m.com/uploads/bdd62416ed.bmp (http://www.up.awraq-m.com/)
ارعص على ( تعديل ) كما هو موضح عندكـ ،،
وبعدها ،،
http://www.up.awraq-m.com/uploads/4a5af3d776.bmp (http://www.up.awraq-m.com/)
الصق الكود التالي في المحل الموضح لك ( امسح القديم و الصق الجديد مباشرة ) ،،
رمز Code:
//arabdeaf.net###
global $db;
$this_hack_userid = $this->post[userid];
if($post[userid] !=0){
$user_theard_query = $db->query_read("SELECT COUNT(threadid) AS total FROM " . TABLE_PREFIX . "thread WHERE postuserid=$this_hack_userid");
$personal1=$db->query_first("SELECT SUM(views) AS personalviews FROM thread WHERE postuserid=$post[userid] AND open!='10'");
$personal= 2*$post[posts]+$personal1[personalviews];
if ($personal1 == ""):
$personal1 = "0";endif;
global $db;$personal1=$db->query_first("SELECT SUM(views) AS personalviews FROM thread WHERE postuserid=$post[userid] AND open!='10'");
$personal= 2*$post[posts]+$personal1[personalviews];
if ($personal1 == ""):
$personal1 = "0";endif;
$attachment = $db->query_first("SELECT COUNT(attachmentid) AS total FROM attachment WHERE userid=$post[userid] ");
$attachcoun = $attachment[total];
$usertherd_pro_fetch = $db->fetch_array($user_theard_query);
$usertherdcoun = $usertherd_pro_fetch[total];
$userpostdcoun = $post[posts] - $usertherdcoun ;}
//arabdeaf.net###
تم بحمد الله
الملفات المرفقة http://www.traidnt.net/vb/images/attach/zip.gif بعد حل مشكلة Database Error.zip (http://www.traidnt.net/vb/attachment.php?attachmentid=363298&d=1239649345) (1.4 كيلوبايت)