تحديث آخر نسخة 1.8.37

تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
هاك شريط اخر الاخبار - A clear news bar modified MYBB 1.8
#1
السلام عليكم ورحمه الله وبركاته


معن اليوم هاك شريط اخر الاخبار A clear news bar modified 1.8


وظيفه الهاك هو اضافه شريط اخر الاخبار المتحرك في رئيسيه المنتدي ويظهر اخر المواضيع 


صوره من الهاك بعد التفعيل :


[صورة: 1412789495471.jpg]










تحميل الهاك من المرفقات


الملفات المرفقة
.zip   A clear news bar modified.zip (الحجم : 2.65 ك ب / التحميلات : 179)
الرد
شكر من طرف :
#2
كيف اقوم بتركيب الهاك الله يجازيك
الرد
شكر من طرف :
#3
السلام عليكم...
الشريط فارغ ..هل من حل ؟ ن 1.8.18
الرد
شكر من طرف : Egyptghost
#4
بعد بعض التعديلات على الكود ..: اتجاه سير النص من اليسار إلى اليمين وهذا يناسب اللغة العربية / اضافة ايقونة font-awesome، طبعا لا بد من تثبيث Font awesome على المنتدى/ حذفت انحناء البوردر border-radius في الخانة الاولى والذي كان يشوه المنظر / تحديد عدد المواضيع المنشورة بـ10...توجد هذه القيمة في آخر الكود sql
[صورة: vuCkmtz.png]


كما قمت بحذف بعض الأسطر التي لم افهمها ... Smack .... اصبح الكود صغيرا جدا ...


PHP كود :
<?php
if(!defined("IN_MYBB"))
{
 
   die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}

$plugins->add_hook('pre_output_page','aclearnewsbar');

function 
aclearnewsbar_info()
{
 return array
 (
 
"name"=>"هاك شرط اخر الاخبار المعدل",
 
"description"=>"يقوم باضافة شريط اخر المواضيع متحرك.",
 
"website"=>"http://www.ajdija.com",
 
"author"=>"Mateusz Grzesiukiewicz",
 
"authorsite"=> "http://www.ajdija.com",
 
"version"=>"1.0",
 
"guid"=>"7dc27e3041bfe6e412f1a9b2f7634db2",
 
"compatibility"=>"18*"
 
);
}

function 
aclearnewsbar($page)
{
 global 
$mybb,$theme$db;
 

$announcements '';
$query $db->query("
 
 SELECT t.*, t.username AS threadusername, u.username AS USER0
 FROM "
.TABLE_PREFIX."threads t
 LEFT JOIN "
.TABLE_PREFIX."users u ON (u.uid = t.uid)
 WHERE t.visible='1' AND t.closed NOT LIKE 'moved|%'
 ORDER BY t.dateline DESC
 LIMIT 0,10 "
);

$news '';
while(
$announcement $db->fetch_array($query))
{
 
$announcement['threadlink'] = get_thread_link($announcement['tid']);
 
$announcement['subject'] = htmlspecialchars_uni($announcement['subject']);
 
$announcement['threadusername'] = htmlspecialchars_uni($announcement['threadusername']);
 
$news $news.'&nbsp;&nbsp;<strong><a href="'.htmlspecialchars_uni($announcement['threadlink']).'">'.htmlspecialchars_uni($announcement['subject']).'</a> &nbsp;</strong>['.htmlspecialchars_uni($announcement['threadusername']).']&nbsp;<i class="fa fa-quote-left" aria-hidden="true"></i>
 '
;
}
 
 
$page=preg_replace('#<div class="navigation">(.*)</div>#Usi','<div class="navigation">$1</div><br />
<table border="0" cellspacing="'
.$theme["borderwidth"].'" cellpadding="'.$theme["tablespace"].'" class="tborder">
 <thead>
 <tr> 
 
 <td class="thead" width="100" align="center" style="color: aquamarine; border-radius: 0 6px 0 0"><strong>آخر '
.
 
/* Use below code and set ^^(width) higher if you want board name to be said:
 $mybb->settings['bbname'] 
 */
 
'المواضيع : </strong></td><td class="thead" style="color: aqua;border-radius: 6px 0 0 0"><marquee direction="right" scrollamount="6" onmouseover="this.stop();" onmouseout="this.start();">'.$news.'</marquee></td>
 
 </tr>
 </thead>
</table>'
,$page);
 return 
$page;
 
 }

?>
الرد
شكر من طرف :
#5
استمر يا بطل وتسلم
جاري التجربه لهذي النسخه والتطوير
الرد
شكر من طرف :
#6
السلام عليكم
شكرا لك اخى الكريم
تم التجربة و يعمل بنجاح
الرد
شكر من طرف :


التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم