|
إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...
انضم الينا
#1
| ||
| ||
السلام عليكم لدي هاك برمجي يعرض صور من المواضيع في الرئيسيه يعرض جميع المواضيع التي تحتوي على صور وبدون صور تظهر فارغه الصوره اريد اخفاء الموضوع الذي لا يوجد به صوره يعني فقط المواضيع التي تحتوي على صور رمز Code: forumhome_start global $db, $vbulletin; function catchuoi($chuoi,$gioihan){ if(strlen($chuoi) $gioihan){ $new_gioihan=strpos($chuoi," ",$gioihan); $new_chuoi = substr($chuoi,0,$new_gioihan)."..."; return $new_chuoi; } $new_chuoi = substr($chuoi,0,$gioihan)."..."; return $new_chuoi; } } switch ($vbulletin->options['img_ord']) { case 0: $ord = 'dateline'; break; case 1: $ord = 'RAND( )'; break; } $forumid = $vbulletin->options['forumid1']; $limitimg = $vbulletin->options['limitimg']; if ($vbulletin->options['endislastxb']) $img_query = $db->query_read("SELECT thread.forumid as forumid, thread.visible, thread.postusername as postusername, thread.lastpost as lastpost, thread.dateline as dateline, post.title as title, thread.threadid as threadid, post.postid, post.pagetext as pagetext,icon.iconid, post.iconid as iptal FROM " . TABLE_PREFIX . "thread as thread LEFT JOIN " . TABLE_PREFIX . "post as post on (thread.firstpostid = post.postid) LEFT JOIN " . TABLE_PREFIX . "forum as forum on (thread.forumid = forum.forumid) LEFT JOIN " . TABLE_PREFIX . "icon AS icon ON(icon.iconid = post.iconid) WHERE thread.visible = 1 AND thread.forumid IN (0,".$forumid.") ORDER BY ".$ord." DESC LIMIT 0,".$limitimg." "); eval('$anhduc_imgdemo .= "' . fetch_template('anhduc_imgcss') . '";'); while ($img_query_db = $db->fetch_array($img_query)) { $noidung = $img_query_db['pagetext']; if(strlen($img_query_db['title']) > $vbulletin->options['titleimg']) { $img_query_dbx['title'] = catchuoi($img_query_db['title'], $vbulletin->options['titleimg']); }else{ $img_query_dbx['title'] = $img_query_db['title'];} preg_match('/\[(img|IMG)\]\s*(https?:\/\/([^*\r\n]+|[a-z0-9\/\\\._\- !]+))\[\/(img|IMG)\]/Ui',$noidung,$img); if(isset($img['2'])){ $url_img['threadid'] = $img['2']; }else{ $url_img['threadid'] = "http://www.traidnt.net/vb/images/misc/unknown.gif"; } $anhduc_imgdemo .= " __DEFINE_LIKE_SHARE__ |
مواقع النشر (المفضلة) |
| |
المواضيع المتشابهه | ||||
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
[طلب] طلب مساعدة في تعديل كود برمجي php | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 01-20-2014 02:40 PM |
سئوال برمجي ~ | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 09-20-2009 08:10 PM |
سئوال برمجي ~ | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 09-20-2009 08:00 PM |
حلم برمجي جميل | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 09-18-2009 03:40 AM |
مشروع برمجي ! | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 04-13-2009 09:00 AM |