المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : هاك اخر عشرة مواضيع [ بمميزات جميلة جداً ]


Mr.ATef
11-09-2005, 02:01 AM
بسم الله الرحمن الرحيم


هاك اخر عشرة مواضيع متوقف مع مرور الماوس

[ , اخر مشاركه , عدد الردود , عدد القراءات , ]

نازف الجرح
12-09-2005, 01:45 PM
اقووول
وش الســالفه
ولا اني مضيع الطـــاسه

:):

haouari
05-10-2005, 02:30 AM
مشكوووووووووووووووور

Mizo
31-01-2006, 07:21 PM
دا احطة فين

Mr.ATef
31-01-2006, 07:28 PM
دا احطة فين

في تلمبت header

الراس

وبالتوفيق :)

دمعة البحارنه
31-01-2006, 08:26 PM
شنو السالفة ؟؟؟

Mr.ATef
31-01-2006, 08:29 PM
شنو السالفة ؟؟؟

هذي برمجة لغة البي اتش بي php تضع بالمنتدى لكي تسحب المواضيع الاخير المطروحة بالمنتدى من قاعدة البيانات لمنتدى ....

تحياتي

Mizo
03-02-2006, 05:29 PM
مش بتشتغل ,,


لما بحط كل الحاجات الى فى الملف


فى الهيدر



مش بتشتغل


و بتقولى



"; =mysql_connect(,,) or die("Can't open connection to MySQL"); mysql_select_db(dardashaonline) or die("Can't select database"); = +2; .= "pt"; .= "pt"; // the base WHERE statement = "WHERE thread.lastposter=user.username AND thread.open!='10'"; // we can't have both the last 24 hours *and* the last 7 days, so error out if needed if ( == "1" && == "1") { print("Error: $last24 and $last7 are both set to 1. Please change one of them to 0."); exit; } // otherwise we're gonna find out which one it is // last 24 if ( == "1") { = time()-86400; .= " AND thread.lastpost>''"; } // last 7 if ( == "1") { = time()-604800; .= " AND thread.lastpost>''"; } // are we trying to exclude *and* include forums? if so, error out if ( != "" && != "") { print("Error: $includeforums and $excludeforums are both set with numbers. Please remove the numbers from one of these two to proceed."); exit; } // otherwise figure out which one we're using // include forums if ( == "" or <= "0") { = "no"; } else { = explode(",",); = 0; = count(); if ( > 1) { .= " AND (thread.forumid=''"; ++; while ( < ) { .= " OR thread.forumid=''"; ++; } .= ")"; } else { .= " AND thread.forumid=''"; } } // or exclude forums if ( == "" or <= "0") { = "no"; } else { = explode(",",); = 0; = count(); while ( < ) { .= " AND thread.forumid!=''"; ++; } } // ooh a query! = "SELECT thread.lastpost,thread.title,thread.lastposter,thr ead.replycount,thread.views,user.userid,thread.thr eadid,thread.forumid,thread.iconid FROM thread,user ORDER BY thread. LIMIT "; // let's get the info = mysql_query() or die("MySQL reported this error while trying to retreive the info: ".mysql_error()); = mysql_query("SELECT value FROM setting WHERE varname='dateformat' OR varname='timeformat' OR varname='timeoffset' ORDER BY varname"); = mysql_result(,0,0); = mysql_result(,1,0); = mysql_result

Mr.ATef
03-02-2006, 05:34 PM
مش بتشتغل ,,


لما بحط كل الحاجات الى فى الملف


فى الهيدر



مش بتشتغل


و بتقولى



"; =mysql_connect(,,) or die("Can't open connection to MySQL"); mysql_select_db(dardashaonline) or die("Can't select database"); = +2; .= "pt"; .= "pt"; // the base WHERE statement = "WHERE thread.lastposter=user.username AND thread.open!='10'"; // we can't have both the last 24 hours *and* the last 7 days, so error out if needed if ( == "1" && == "1") { print("Error: $last24 and $last7 are both set to 1. Please change one of them to 0."); exit; } // otherwise we're gonna find out which one it is // last 24 if ( == "1") { = time()-86400; .= " AND thread.lastpost>''"; } // last 7 if ( == "1") { = time()-604800; .= " AND thread.lastpost>''"; } // are we trying to exclude *and* include forums? if so, error out if ( != "" && != "") { print("Error: $includeforums and $excludeforums are both set with numbers. Please remove the numbers from one of these two to proceed."); exit; } // otherwise figure out which one we're using // include forums if ( == "" or <= "0") { = "no"; } else { = explode(",",); = 0; = count(); if ( > 1) { .= " AND (thread.forumid=''"; ++; while ( < ) { .= " OR thread.forumid=''"; ++; } .= ")"; } else { .= " AND thread.forumid=''"; } } // or exclude forums if ( == "" or <= "0") { = "no"; } else { = explode(",",); = 0; = count(); while ( < ) { .= " AND thread.forumid!=''"; ++; } } // ooh a query! = "SELECT thread.lastpost,thread.title,thread.lastposter,thr ead.replycount,thread.views,user.userid,thread.thr eadid,thread.forumid,thread.iconid FROM thread,user ORDER BY thread. LIMIT "; // let's get the info = mysql_query() or die("MySQL reported this error while trying to retreive the info: ".mysql_error()); = mysql_query("SELECT value FROM setting WHERE varname='dateformat' OR varname='timeformat' OR varname='timeoffset' ORDER BY varname"); = mysql_result(,0,0); = mysql_result(,1,0); = mysql_result

الرسالة تقول انا الملف ليس متصل بقاعدة البيانات
ارفع الملف اخر المواضيع في المكان المخصص له وهذا على حسب مجلداتك بالموقع وغالبا يكون في الخارج ....

تحياتي لك

Mizo
03-02-2006, 05:48 PM
معلش مش فاهم قصدك

الملف اللى وصلنى منك فى المرفقات

last10.config

صح


مااشى فين ملف اخر المواضيع دا

و ارفعة فين

Mizo
26-03-2006, 10:13 PM
مستر بن ممكن ترد عليا

Mr.ATef
26-03-2006, 10:41 PM
مستر بن ممكن ترد عليا

وعليكم السلام

الهاك واضح اخوي ميزو ....مش عارف اوضح ايش

ببساطة ترفع الملف الى مجلد المنتدى الرئيسي ....

وتغير البيانات الموجود بداخلة ...

بما يتوافق مع موقعك ومجلد الكونفيق config.php

ومن ثم تستدعي شريط اخر المواضيع من المتصفح

بالشكل التالي

http://www.XXXXXX.com/vb/last10config.php

XXXXXX = اسم موقعك ...

وبكذا راح يعمل معك زي اللوز :)

وبالتوفيق ...

Mizo
26-03-2006, 11:04 PM
اصلك انت نضعة فى قالب الهيدر