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

مشاهدة النسخة كاملة : تحول رابط الموضوع الى إسمــه تلقائياً ..



said
10-31-2013, بتوقيت غرينيتش 04:29 AM
http://www.dzbatna.com/images/icons/idea.gif طھط*ظˆظ„ ط±ط§ط¨ط· ط§ظ„ظ…ظˆط¶ظˆط¹ ط§ظ„ظ‰ ط¥ط³ظ…ظ€ظ€ظ‡ طھظ„ظ‚ط§ط¦ظٹط§ظ‹ .. (http://www.dzbatna.com/t1342022/)



السلام عليكم ورحمه الله وبركاته



سلام الرحمن يغشاكم احبتي ..






الشرح طريقة عبارة عن كود code


يستبدل روابط


المرفقات + الاقسام + المجموعات + المواضيع + المشاركات + الاعضاء


بالاسم الخاص للرابط



طرحه الاستاذ مجهول في منتديات عهـود ..


,,






في مجلد الـ


رمز Code:
includes
افتح ملف



رمز Code:
class_bbcode.php

ابحث عن

رمز Code:
// standard URL hyperlink
اضف اعلاه بسطر

رمز Code:
/* +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ *\ |* | BY MGHOOL FOR LINKS - A | *| \* +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ */ if (@empty($link) AND @preg_match('#(' . @str_replace('www.', '', $_SERVER['HTTP_HOST']) . ')#i', $rightlink)) { // +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ if (@preg_match('#\.html#', $rightlink)) { $rightlink = @preg_replace('#\/f\-([0-9]+)\-([0-9]+)\.html#', '/forumdisplay.php?f=$1&page=$2', $rightlink); $rightlink = @preg_replace('#\/f\-([0-9]+)\.html#', '/forumdisplay.php?f=$1', $rightlink); $rightlink = @preg_replace('#\/t\-([0-9]+)\-([0-9]+)\.html#', '/showthread.php?t=$1&page=$2', $rightlink); $rightlink = @preg_replace('#\/t\-([0-9]+)\.html#', '/showthread.php?t=$1', $rightlink); $rightlink = @preg_replace('#\/v\-([0-9]+)\.html#', '/showthread.php?p=$1#post$1', $rightlink); $rightlink = @preg_replace('#\/s\-([0-9]+)\-([0-9]+)\.html#', '/showthread.php?p=$1&posted=$2', $rightlink); $rightlink = @preg_replace('#\/s\-([0-9]+)\.html#', '/showthread.php?p=$1', $rightlink); $rightlink = @preg_replace('#\/p\-([0-9]+)\-([0-9]+)\.html#', '/showpost.php?p=$1&postcount=$2', $rightlink); $rightlink = @preg_replace('#\/p\-([0-9]+)\.html#', '/showpost.php?p=$1', $rightlink); $rightlink = @preg_replace('#\/u\-([0-9]+)\.html#', '/member.php?u=$1', $rightlink); } // +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ $rightlink = @preg_replace('#(|)#i', '', $rightlink); if (@preg_match('#\/(attachment|forumdisplay|group|showthread|showpost |member)\.php\?(attachmentid|f|groupid|t|p|u)\=([0-9]+)#i', $rightlink, $i)) { // +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ if ($i[1] == 'attachment' AND $i[2] == 'attachmentid' AND @intval($i[3])) { $Sqls = $this->registry->db->query_first_slave(&quot;SELECT filename, filesize FROM &quot; . TABLE_PREFIX . &quot;attachment WHERE attachmentid = '&quot; . $i[3] . &quot;'&quot;); if ($Sqls['filename']) { $text = 'مرفق : ' . $Sqls['filename'] . ' - <span dir=&quot;rtl&quot;>' . @vb_number_format($Sqls['filesize'], 0, true) . '</span>'; } } // +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ if ($i[1] == 'forumdisplay' AND $i[2] == 'f' AND @intval($i[3])) { $Sqls = $this->registry->db->query_first_slave(&quot;SELECT title FROM &quot; . TABLE_PREFIX . &quot;forum WHERE forumid = '&quot; . $i[3] . &quot;'&quot;); if ($Sqls['title']) { $text = 'قسم : ' . $Sqls['title']; } } // +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ if ($i[1] == 'group' AND $i[2] == 'groupid' AND @intval($i[3])) { $Sqls = $this->registry->db->query_first_slave(&quot;SELECT name FROM &quot; . TABLE_PREFIX . &quot;socialgroup WHERE groupid = '&quot; . $i[3] . &quot;'&quot;); if ($Sqls['name']) { $text = 'مجموعة : ' . $Sqls['name']; } } // +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ if ($i[1] == 'showthread' AND $i[2] == 't' AND @intval($i[3])) { $Sqls = $this->registry->db->query_first_slave(&quot;SELECT title FROM &quot; . TABLE_PREFIX . &quot;thread WHERE threadid = '&quot; . $i[3] . &quot;'&quot;); if ($Sqls['title']) { $text = 'موضوع : ' . $Sqls['title']; } } // +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ if (($i[1] == 'showpost' OR $i[1] == 'showthread') AND $i[2] == 'p' AND @intval($i[3])) { $Sqls = $this->registry->db->query_first_slave(&quot;SELECT title, threadid FROM &quot; . TABLE_PREFIX . &quot;post WHERE postid = '&quot; . $i[3] . &quot;'&quot;); if (!$Sqls['title']) { $Sqls = $this->registry->db->query_first_slave(&quot;SELECT title FROM &quot; . TABLE_PREFIX . &quot;thread WHERE threadid = '&quot; . $Sqls['threadid'] . &quot;'&quot;); } if ($Sqls['title']) { $text = 'مشاركة : ' . $Sqls['title']; } } // +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ if ($i[1] == 'member' AND $i[2] == 'u' AND @intval($i[3])) { $Sqls = $this->registry->db->query_first_slave(&quot;SELECT username FROM &quot; . TABLE_PREFIX . &quot;user WHERE userid = '&quot; . $i[3] . &quot;'&quot;); if ($Sqls['username']) { $text = 'عضوية : ' . $Sqls['username']; } } // +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ } } /* +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ *\ |* | BY MGHOOL FOR LINKS - V | *| \* +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ */

المصدر :


منتديات عهود


أطيب تحيه للجميع






ألعاب الأندرويد مجانا و حصريا (http://www.apotox.info/forum)



https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©

استعمل مربع البحث في الاسفل لمزيد من المواضيع


سريع للبحث عن مواضيع في المنتدى