![]() |
[استفسار] في كود هاك برمجي السلام عليكم لدي هاك برمجي يعرض صور من المواضيع في الرئيسيه يعرض جميع المواضيع التي تحتوي على صور وبدون صور تظهر فارغه الصوره اريد اخفاء الموضوع الذي لا يوجد به صوره يعني فقط المواضيع التي تحتوي على صور رمز 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 .= " |
الساعة الآن 02:23 PM |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir