- الرئيسية
- ما الجديد !
-
الصفحات▼
الصفحات
أهلا وسهلا بك زائرنا الكريم في منتدى دعم PBBoard الرسمي، لكي تتمكن من المشاركة ومشاهدة جميع أقسام المنتدى وكافة الميزات ، يجب عليك إنشاء حساب جديد بالتسجيل بالضغط هنا أو تسجيل الدخول اضغط هنا إذا كنت عضواً .
عدم ظهور الروابط في التوقيع
-
-
عدم ظهور الروابط في التوقيع06-02-2012 08:33 مساءً
-
Solimanمعلومات الكاتبPBBoard developer
- انضم في :
- 18-07-2009
- رقم العضوية :
- 1
- المشاركات :
- 13422
- الدولة :
- KSA
- الجنس:
- الدعوات:
- 55
- قوة السمعة:
- 82296
- موقعي:
- زيارة موقعي
-
حرر ملف : modules/topic.module.php
ابحث عن:
CODE$this->Info['user_sig'] = $PowerBB->Powerparse->replace($this->Info['user_sig']);
استبدله ب :
CODE$this->Info['user_sig'] = $PowerBB->Powerparse->replaceno($this->Info['user_sig']);
ابحث عن:
CODE$this->RInfo[$this->x]['user_sig'] = $PowerBB->Powerparse->replace($this->RInfo[$this->x]['user_sig']);
استبدله ب :
CODE$this->RInfo[$this->x]['user_sig'] = $PowerBB->Powerparse->replaceno($this->RInfo[$this->x]['user_sig']);
حرر ملف : includes/pbboardCodeparse.class.php
ابحث عن تجدها في نهاية الملف :
CODE//end_function
ضع فوقها الكود التالي :
CODEfunction replaceno($string) { global $PowerBB; $brackets = (strpos($string,'[') !== false) and (strpos($string,']') !== false); if ($brackets) { $string = htmlspecialchars($string); $first_search = array(); $first_replace = array(); $first_search['[code]'] = '#\[code\](.*)\[/code\]#esiU'; $first_replace['[code]'] = "\$this->PowerCode_Code('\\1')"; $first_search['[php]'] = '#\[php\](.*)\[/php\]#esiU'; $first_replace['[php]'] = "\$this->PowerCode_Code('\\1')"; $string = preg_replace($first_search,$first_replace,$string); $search_array = array(); $replace_array = array(); //replace $querybbcode = $PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->table['custom_bbcode'] . " "); while ($getbbcode_row = $PowerBB->DB->sql_fetch_array($querybbcode)) { $bbcode_tag = $getbbcode_row['bbcode_tag']; $bbcode_replace = $getbbcode_row['bbcode_replace']; if ($getbbcode_row['bbcode_useoption'] == '1') { $search_array['['.$bbcode_tag.'='] = '#\['.$bbcode_tag.'=(.*)\](.*)\[/'.$bbcode_tag.'\]#esiU'; $replace_array['['.$bbcode_tag.'='] = "\$this->PowerCode_BBcode('\\1', '\\2', $bbcode_tag)"; } else { $search_array['['.$bbcode_tag.']'] = '#\['.$bbcode_tag.'\](.*)\[/'.$bbcode_tag.'\]#esiU'; $replace_array['['.$bbcode_tag.']'] = "\$this->PowerCode_Tag_BBcode('$bbcode_replace','$bbcode_tag','\\1')"; } } $search_array['[img]'] = '#\[img\](.*)\[/img\]#esiU'; $replace_array['[img]'] = "\$this->resize_image('\\1')"; $search_array['[IMG]'] = '#\[IMG\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/IMG\]#iUe'; $replace_array['[IMG]'] = "\$this->resize_image('\\1', '\\1')"; $search_array['[b]'] = '#\[b\](.*)\[/b\]#esiU'; $replace_array['[b]'] = "\$this->PowerCode_Tag('b', '\\1')"; $search_array['[u]'] = '#\[u\](.*)\[/u\]#esiU'; $replace_array['[u]'] = "\$this->PowerCode_Tag('u', '\\1')"; $search_array['[i]'] = '#\[i\](.*)\[/i\]#esiU'; $replace_array['[i]'] = "\$this->PowerCode_Tag('i', '\\1')"; $search_array['[blockquote]'] = '#\[blockquote\](.*)\[/blockquote\]#esiU'; $replace_array['[blockquote]'] = "\$this->PowerCode_Tag('blockquote', '\\1')"; $search_array['[indent]'] = '#\[indent\](.*)\[/indent\]#esiU'; $replace_array['[indent]'] = "\$this->PowerCode_Tag('blockquote', '\\1')"; $search_array['[right]'] = '#\[right\](.*)\[/right\]#esiU'; $replace_array['[right]'] = "\$this->PowerCode_Tag('p', '\\1', ' align=\"right\"')"; $search_array['[left]'] = '#\[left\](.*)\[/left\]#esiU'; $replace_array['[left]'] = "\$this->PowerCode_Tag('p', '\\1', ' align=\"left\"')"; $search_array['[justify]'] = '#\[justify\](.*)\[/justify\]#esiU'; $replace_array['[justify]'] = "\$this->PowerCode_Tag('p', '\\1', ' align=\"justify\"')"; $search_array['[JUSTIFY]'] = '#\[JUSTIFY\](.*)\[/JUSTIFY\]#esiU'; $replace_array['[JUSTIFY]'] = "\$this->PowerCode_Tag('p', '\\1', ' align=\"justify\"')"; $search_array['[h1]'] = '#\[h1\](.*)\[/h1\]#esiU'; $replace_array['[h1]'] = "\$this->PowerCode_Tag('h1', '\\1')"; $search_array['[h2]'] = '#\[h2\](.*)\[/h2\]#esiU'; $replace_array['[h2]'] = "\$this->PowerCode_Tag('h2', '\\1')"; $search_array['[h3]'] = '#\[h3\](.*)\[/h3\]#esiU'; $replace_array['[h3]'] = "\$this->PowerCode_Tag('h3', '\\1')"; $search_array['[h4]'] = '#\[h4\](.*)\[/h4\]#esiU'; $replace_array['[h4]'] = "\$this->PowerCode_Tag('h4', '\\1')"; $search_array['[h5]'] = '#\[h5\](.*)\[/h5\]#esiU'; $replace_array['[h5]'] = "\$this->PowerCode_Tag('h5', '\\1')"; $search_array['[h6]'] = '#\[h6\](.*)\[/h6\]#esiU'; $replace_array['[h6]'] = "\$this->PowerCode_Tag('h6', '\\1')"; $search_array['[highlight='] = '#\[highlight=(.*)\](.*)\[/highlight\]#esiU'; $replace_array['[highlight='] = "\$this->PowerCode_Tag('span', '\\2',' style=\"background: \\1\"')"; $search_array['[center]'] = '#\[center\](.*)\[/center\]#esiU'; $replace_array['[center]'] = "\$this->PowerCode_Tag('p', '\\1', ' align=\"center\"')"; $search_array['[-WEBKIT-CENTER]'] = '#\[-WEBKIT-CENTER\](.*)\[/-WEBKIT-CENTER\]#esiU'; $replace_array['[-WEBKIT-CENTER]'] = "\$this->PowerCode_Tag('p', '\\1', ' align=\"center\"')"; $search_array['[font='] = '#\[font=(.*)\](.*)\[/font\]#esiU'; $replace_array['[font='] = "\$this->PowerCode_Tag('font', '\\2', ' face=\"\\1\"')"; $search_array['[color='] = '#\[color=(.*)\](.*)\[/color\]#esiU'; $replace_array['[color='] = "\$this->PowerCode_Tag('font', '\\2', ' color=\"\\1\"')"; $search_array['[quote='] = '#\[quote=(.*)\](.*)\[/quote\]#esiU'; $replace_array['[quote='] = "\$this->PowerCode_Quote('\\2', '\\1')"; $search_array['[quote]'] = '#\[quote\](.*)\[/quote\]#esiU'; $replace_array['[quote]'] = "\$this->PowerCode_Quote('\\1')"; $search_array['[qu]'] = '#\[qu\](.*)\[/qu\]#esiU'; $replace_array['[qu]'] = "\$this->PowerCode_Quote('\\1')"; $search_array['[youtube]'] = '#\[youtube\](.*)\[/youtube\]#esiU'; $replace_array['[youtube]'] = "\$this->PowerCode_Youtube('\\1', '\\1')"; $search_array['[youtube='] = '#\[youtube=(.*)\](.*)\[/youtube\]#esiU'; $replace_array['[youtube='] = "\$this->PowerCode_Youtube('\\1', '\\2')"; $search_array['[media]'] = '#\[media\](.*)\[/media\]#esiU'; $replace_array['[media]'] = "\$this->PowerCode_Media('\\1', '\\1')"; $search_array['[media='] = '#\[media=(.*)\](.*)\[/media\]#esiU'; $replace_array['[media='] = "\$this->PowerCode_Media('\\1', '\\2')"; $search_array['[ram]'] = '#\[ram\](.*)\[/ram\]#esiU'; $replace_array['[ram]'] = "\$this->PowerCode_Ram('\\1', '\\1')"; $search_array['[ram='] = '#\[ram=(.*)\](.*)\[/ram\]#esiU'; $replace_array['[ram='] = "\$this->PowerCode_Ram('\\1', '\\2')"; $search_array['[Flash='] = '#\[flash=("|"|\'|)(.*)\\1\](height=)\\1([0-9]+)\\1[ ]+(width=)\\1([0-9]+)\\1\[/flash\]#esiU'; $replace_array['[Flash='] = "\$this->PowerCode_Flash('\\2', '\\6','\\4', 'flash')"; $search_array['[Flash='] = '#\[flash=("|"|\'|)(.*)\\1\]([w|W][i|I][d|D][t|T][h|H][=])\\1([0-9]+)\\1[ ]+([h|H][e|E][i|I][g|G][h|H][t|T][=])\\1([0-9]+)\\1\[/flash\]#esiU'; $replace_array['[Flash='] = "\$this->PowerCode_Flash('\\2', '\\6','\\4', 'flash')"; $search_array['[frame]'] = '#\[frame\](.*)\[/frame\]#esiU'; $replace_array['[frame]'] = "\$this->PowerCode_frame('\\1', '\\1')"; $search_array['[frame='] = '#\[frame=(.*)\](.*)\[/frame\]#esiU'; $replace_array['[frame='] = "\$this->PowerCode_frame('\\1', '\\2')"; $search_array['[gradient]'] = '#\[gradient\](.*)\[/gradient\]#esiU'; $replace_array['[gradient]'] = "\$this->PowerCode_gradient('\\1', '\\1')"; $search_array['[gradient='] = '#\[gradient=(.*)\](.*)\[/gradient\]#esiU'; $replace_array['[gradient='] = "\$this->PowerCode_gradient('\\1', '\\2')"; $search_array['[poem]'] = '#\[poem\](.*)\[/poem\]#esiU'; $replace_array['[poem]'] = "\$this->PowerCode_poem('\\1', '\\1')"; $search_array['[poem='] = '#\[poem=(.*)\](.*)\[/poem\]#esiU'; $replace_array['[poem='] = "\$this->PowerCode_poem('\\1', '\\2')"; $search_array['[s]'] = '#\[s\](.*)\[/s\]#esiU'; $replace_array['[s]'] = "\$this->PowerCode_Tag('s', '\\1')"; $search_array['[hr]'] = '#\[hr\](.*)\[/hr\]#esiU'; $replace_array['[hr]'] = "\$this->PowerCode_Tag('span', '<HR id=null>')"; $search_array['[sub]'] = '#\[sub\](.*)\[/sub\]#esiU'; $replace_array['[sub]'] = "\$this->PowerCode_Tag('SUB', '\\1')"; $search_array['[sup]'] = '#\[sup\](.*)\[/sup\]#esiU'; $replace_array['[sup]'] = "\$this->PowerCode_Tag('SUP', '\\1')"; $search_array['[table]'] = '#\[table\](.*)\[/table\]#esiU'; $replace_array['[table]'] = "\$this->PowerCode_table('\\1')"; $search_array['[tr]'] = '#\[tr\](.*)\[/tr\]#esiU'; $replace_array['[tr]'] = "\$this->PowerCode_tr('\\1')"; $search_array['[td]'] = '#\[td\](.*)\[/td\]#esiU'; $replace_array['[td]'] = "\$this->PowerCode_td('\\1')"; $search_array['[th]'] = '#\[th\](.*)\[/th\]#esiU'; $replace_array['[th]'] = "\$this->PowerCode_th('\\1')"; $search_array['[url]'] = '#\[url\](.*)\[/url\]#esiU'; $replace_array['[url]'] = "\$this->PowerCode_Tag_Url('\\1', '\\1')"; $search_array['[url='] = '#\[url=(.*)\](.*)\[/url\]#esiU'; $replace_array['[url='] = "\$this->PowerCode_Tag_Url('\\1', '\\2')"; $search_array['[size='] = '#\[size=(.*)\](.*)\[/size\]#esiU'; $replace_array['[size='] = "\$this->PowerCode_Tag('font', '\\2', ' size=\"\\1\"')"; $search_array['[list]'] = '#\[list\](.*)\[/list\]#esiU'; $replace_array['[list]'] ="\$this->DoList('\\1','\\1')"; $search_array['[list='] = '#\[list=(1|2)\](.*)\[/list\]#esiU'; $replace_array['[list='] ="\$this->DoList('\\1','\\2')"; $search_array['[guest_name]'] = '#\[guest_name\](.*)\[/guest_name\]#esiU'; $replace_array['[guest_name]'] = "\$this->PowerCode_Tag('br', '\\1' )"; foreach($search_array AS $tag => $regex) { while (stristr($string, $tag) !== false) { $text = $string; $string = preg_replace($regex, $replace_array["$tag"], $string); if ($text == $string) { break; } } } $Guest_message = ($PowerBB->_CONF['info_row']['guest_message_for_haid_links']); //start_replace_links_reply $search_array[] = ",([^]_a-z0-9-=\"'\/])((https?|ftp|gopher|news|telnet):\/\/)([^ \r\n\(\)\*\^\$!`\"'\|\[\]\{\}<>]*),i"; $replace_array[] = '<a href="$2$4" target="_blank">$2$4</a>'; $search_array[] = ",^((https?|ftp|gopher|news|telnet):\/\/|\.)([^ \r\n\(\)\*\^\$!`\"'\|\[\]\{\}<>]*),i"; $replace_array[] = '<a href="$1$3" target="_blank">$1$3</a>'; //$search_array[] = ",([^]_a-z0-9-=\"'\/])((ftp|gopher|news|telnet):\/\/|www\.)([^ \r\n\(\)\*\^\$!`\"'\|\[\]\{\}<>]*),i"; //$replace_array[] = '<a href="http://$2$4" target="_blank">$2$4</a>'; $search_array[] = "/^([\\._a-zA-Z0-9-]+(\.[\\._a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*(\.[a-zA-Z]{2,3}))/i"; $replace_array[] = '<a href="mailto:$1">$1</a>'; $string = preg_replace($search_array,$replace_array ,$string); } else { $Guest_message = ($PowerBB->_CONF['info_row']['guest_message_for_haid_links']); //start_replace_links_reply $search_array[] = ",([^]_a-z0-9-=\"'\/])((https?|ftp|gopher|news|telnet):\/\/)([^ \r\n\(\)\*\^\$!`\"'\|\[\]\{\}<>]*),i"; $replace_array[] = '<a href="$2$4" target="_blank">$2$4</a>'; $search_array[] = ",^((https?|ftp|gopher|news|telnet):\/\/|\.)([^ \r\n\(\)\*\^\$!`\"'\|\[\]\{\}<>]*),i"; $replace_array[] = '<a href="$1$3" target="_blank">$1$3</a>'; //$search_array[] = ",([^]_a-z0-9-=\"'\/])((ftp|gopher|news|telnet):\/\/|www\.)([^ \r\n\(\)\*\^\$!`\"'\|\[\]\{\}<>]*),i"; //$replace_array[] = '<a href="http://$2$4" target="_blank">$2$4</a>'; $search_array[] = "/^([\\._a-zA-Z0-9-]+(\.[\\._a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*(\.[a-zA-Z]{2,3}))/i"; $replace_array[] = '<a href="mailto:$1">$1</a>'; $string = preg_replace($search_array,$replace_array ,$string); } return nl2br($string); }
انتهى
بالتوفيق ..
الساعة الآن 09:21 PM