أهلا وسهلا بك زائرنا الكريم في منتدى دعم PBBoard الرسمي، لكي تتمكن من المشاركة ومشاهدة جميع أقسام المنتدى وكافة الميزات ، يجب عليك إنشاء حساب جديد بالتسجيل بالضغط هنا أو تسجيل الدخول اضغط هنا إذا كنت عضواً .

عدم ظهور الروابط في التوقيع


مشاهدة المشاركة في الموضوع بالعرض العادي
look/images/icons/i1.gif عدم ظهور الروابط في التوقيع
  06-02-2012 08:33 مساءً  
Soliman
معلومات الكاتب
حرر ملف : 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


ضع فوقها الكود التالي :
CODE
	function 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[&#39;[IMG]&#39;] = &#39;#\[IMG\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/IMG\]#iUe&#39;;
            $replace_array[&#39;[IMG]&#39;] = "\$this->resize_image(&#39;\\1&#39;, &#39;\\1&#39;)";

            $search_array[&#39;[b]&#39;] = &#39;#\[b\](.*)\[/b\]#esiU&#39;;
            $replace_array[&#39;[b]&#39;] = "\$this->PowerCode_Tag(&#39;b&#39;, &#39;\\1&#39;)";

            $search_array[&#39;[u]&#39;] = &#39;#\[u\](.*)\[/u\]#esiU&#39;;
            $replace_array[&#39;[u]&#39;] = "\$this->PowerCode_Tag(&#39;u&#39;, &#39;\\1&#39;)";

            $search_array[&#39;[i]&#39;] = &#39;#\[i\](.*)\[/i\]#esiU&#39;;
            $replace_array[&#39;[i]&#39;] = "\$this->PowerCode_Tag(&#39;i&#39;, &#39;\\1&#39;)";

            $search_array[&#39;[blockquote]&#39;] = &#39;#\[blockquote\](.*)\[/blockquote\]#esiU&#39;;
            $replace_array[&#39;[blockquote]&#39;] = "\$this->PowerCode_Tag(&#39;blockquote&#39;, &#39;\\1&#39;)";

            $search_array[&#39;[indent]&#39;] = &#39;#\[indent\](.*)\[/indent\]#esiU&#39;;
            $replace_array[&#39;[indent]&#39;] = "\$this->PowerCode_Tag(&#39;blockquote&#39;, &#39;\\1&#39;)";

            $search_array[&#39;[right]&#39;] = &#39;#\[right\](.*)\[/right\]#esiU&#39;;
            $replace_array[&#39;[right]&#39;] = "\$this->PowerCode_Tag(&#39;p&#39;, &#39;\\1&#39;, &#39; align=\"right\"&#39;)";

            $search_array[&#39;[left]&#39;] = &#39;#\[left\](.*)\[/left\]#esiU&#39;;
            $replace_array[&#39;[left]&#39;] = "\$this->PowerCode_Tag(&#39;p&#39;, &#39;\\1&#39;, &#39; align=\"left\"&#39;)";

            $search_array[&#39;[justify]&#39;] = &#39;#\[justify\](.*)\[/justify\]#esiU&#39;;
            $replace_array[&#39;[justify]&#39;] = "\$this->PowerCode_Tag(&#39;p&#39;, &#39;\\1&#39;, &#39; align=\"justify\"&#39;)";

            $search_array[&#39;[JUSTIFY]&#39;] = &#39;#\[JUSTIFY\](.*)\[/JUSTIFY\]#esiU&#39;;
            $replace_array[&#39;[JUSTIFY]&#39;] = "\$this->PowerCode_Tag(&#39;p&#39;, &#39;\\1&#39;, &#39; align=\"justify\"&#39;)";

            $search_array[&#39;[h1]&#39;] = &#39;#\[h1\](.*)\[/h1\]#esiU&#39;;
            $replace_array[&#39;[h1]&#39;] = "\$this->PowerCode_Tag(&#39;h1&#39;, &#39;\\1&#39;)";

            $search_array[&#39;[h2]&#39;] = &#39;#\[h2\](.*)\[/h2\]#esiU&#39;;
            $replace_array[&#39;[h2]&#39;] = "\$this->PowerCode_Tag(&#39;h2&#39;, &#39;\\1&#39;)";

            $search_array[&#39;[h3]&#39;] = &#39;#\[h3\](.*)\[/h3\]#esiU&#39;;
            $replace_array[&#39;[h3]&#39;] = "\$this->PowerCode_Tag(&#39;h3&#39;, &#39;\\1&#39;)";

            $search_array[&#39;[h4]&#39;] = &#39;#\[h4\](.*)\[/h4\]#esiU&#39;;
            $replace_array[&#39;[h4]&#39;] = "\$this->PowerCode_Tag(&#39;h4&#39;, &#39;\\1&#39;)";

            $search_array[&#39;[h5]&#39;] = &#39;#\[h5\](.*)\[/h5\]#esiU&#39;;
            $replace_array[&#39;[h5]&#39;] = "\$this->PowerCode_Tag(&#39;h5&#39;, &#39;\\1&#39;)";

            $search_array[&#39;[h6]&#39;] = &#39;#\[h6\](.*)\[/h6\]#esiU&#39;;
            $replace_array[&#39;[h6]&#39;] = "\$this->PowerCode_Tag(&#39;h6&#39;, &#39;\\1&#39;)";

            $search_array[&#39;[highlight=&#39;] = &#39;#\[highlight=(.*)\](.*)\[/highlight\]#esiU&#39;;
            $replace_array[&#39;[highlight=&#39;] = "\$this->PowerCode_Tag(&#39;span&#39;, &#39;\\2&#39;,&#39; style=\"background: \\1\"&#39;)";

            $search_array[&#39;[center]&#39;] = &#39;#\[center\](.*)\[/center\]#esiU&#39;;
            $replace_array[&#39;[center]&#39;] = "\$this->PowerCode_Tag(&#39;p&#39;, &#39;\\1&#39;, &#39; align=\"center\"&#39;)";

            $search_array[&#39;[-WEBKIT-CENTER]&#39;] = &#39;#\[-WEBKIT-CENTER\](.*)\[/-WEBKIT-CENTER\]#esiU&#39;;
            $replace_array[&#39;[-WEBKIT-CENTER]&#39;] = "\$this->PowerCode_Tag(&#39;p&#39;, &#39;\\1&#39;, &#39; align=\"center\"&#39;)";

            $search_array[&#39;[font=&#39;] = &#39;#\[font=(.*)\](.*)\[/font\]#esiU&#39;;
            $replace_array[&#39;[font=&#39;] = "\$this->PowerCode_Tag(&#39;font&#39;, &#39;\\2&#39;, &#39; face=\"\\1\"&#39;)";

            $search_array[&#39;[color=&#39;] = &#39;#\[color=(.*)\](.*)\[/color\]#esiU&#39;;
            $replace_array[&#39;[color=&#39;] = "\$this->PowerCode_Tag(&#39;font&#39;, &#39;\\2&#39;, &#39; color=\"\\1\"&#39;)";

            $search_array[&#39;[quote=&#39;] = &#39;#\[quote=(.*)\](.*)\[/quote\]#esiU&#39;;
            $replace_array[&#39;[quote=&#39;] = "\$this->PowerCode_Quote(&#39;\\2&#39;, &#39;\\1&#39;)";

            $search_array[&#39;[quote]&#39;] = &#39;#\[quote\](.*)\[/quote\]#esiU&#39;;
            $replace_array[&#39;[quote]&#39;] = "\$this->PowerCode_Quote(&#39;\\1&#39;)";

            $search_array[&#39;[qu]&#39;] = &#39;#\[qu\](.*)\[/qu\]#esiU&#39;;
            $replace_array[&#39;[qu]&#39;] = "\$this->PowerCode_Quote(&#39;\\1&#39;)";

            $search_array[&#39;[youtube]&#39;] = &#39;#\[youtube\](.*)\[/youtube\]#esiU&#39;;
            $replace_array[&#39;[youtube]&#39;] = "\$this->PowerCode_Youtube(&#39;\\1&#39;, &#39;\\1&#39;)";
            $search_array[&#39;[youtube=&#39;] = &#39;#\[youtube=(.*)\](.*)\[/youtube\]#esiU&#39;;
            $replace_array[&#39;[youtube=&#39;] = "\$this->PowerCode_Youtube(&#39;\\1&#39;, &#39;\\2&#39;)";

            $search_array[&#39;[media]&#39;] = &#39;#\[media\](.*)\[/media\]#esiU&#39;;
            $replace_array[&#39;[media]&#39;] = "\$this->PowerCode_Media(&#39;\\1&#39;, &#39;\\1&#39;)";
            $search_array[&#39;[media=&#39;] = &#39;#\[media=(.*)\](.*)\[/media\]#esiU&#39;;
            $replace_array[&#39;[media=&#39;] = "\$this->PowerCode_Media(&#39;\\1&#39;, &#39;\\2&#39;)";

            $search_array[&#39;[ram]&#39;] = &#39;#\[ram\](.*)\[/ram\]#esiU&#39;;
            $replace_array[&#39;[ram]&#39;] = "\$this->PowerCode_Ram(&#39;\\1&#39;, &#39;\\1&#39;)";
            $search_array[&#39;[ram=&#39;] = &#39;#\[ram=(.*)\](.*)\[/ram\]#esiU&#39;;
            $replace_array[&#39;[ram=&#39;] = "\$this->PowerCode_Ram(&#39;\\1&#39;, &#39;\\2&#39;)";

            $search_array[&#39;[Flash=&#39;] = &#39;#\[flash=(&quot;|"|\&#39;|)(.*)\\1\](height=)\\1([0-9]+)\\1[ ]+(width=)\\1([0-9]+)\\1\[/flash\]#esiU&#39;;
            $replace_array[&#39;[Flash=&#39;] = "\$this->PowerCode_Flash(&#39;\\2&#39;, &#39;\\6&#39;,&#39;\\4&#39;, &#39;flash&#39;)";
            $search_array[&#39;[Flash=&#39;] = &#39;#\[flash=(&quot;|"|\&#39;|)(.*)\\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&#39;;
            $replace_array[&#39;[Flash=&#39;] = "\$this->PowerCode_Flash(&#39;\\2&#39;, &#39;\\6&#39;,&#39;\\4&#39;, &#39;flash&#39;)";

            $search_array[&#39;[frame]&#39;] = &#39;#\[frame\](.*)\[/frame\]#esiU&#39;;
            $replace_array[&#39;[frame]&#39;] = "\$this->PowerCode_frame(&#39;\\1&#39;, &#39;\\1&#39;)";
            $search_array[&#39;[frame=&#39;] = &#39;#\[frame=(.*)\](.*)\[/frame\]#esiU&#39;;
            $replace_array[&#39;[frame=&#39;] = "\$this->PowerCode_frame(&#39;\\1&#39;, &#39;\\2&#39;)";

            $search_array[&#39;[gradient]&#39;] = &#39;#\[gradient\](.*)\[/gradient\]#esiU&#39;;
            $replace_array[&#39;[gradient]&#39;] = "\$this->PowerCode_gradient(&#39;\\1&#39;, &#39;\\1&#39;)";
            $search_array[&#39;[gradient=&#39;] = &#39;#\[gradient=(.*)\](.*)\[/gradient\]#esiU&#39;;
            $replace_array[&#39;[gradient=&#39;] = "\$this->PowerCode_gradient(&#39;\\1&#39;, &#39;\\2&#39;)";

            $search_array[&#39;[poem]&#39;] = &#39;#\[poem\](.*)\[/poem\]#esiU&#39;;
            $replace_array[&#39;[poem]&#39;] = "\$this->PowerCode_poem(&#39;\\1&#39;, &#39;\\1&#39;)";
            $search_array[&#39;[poem=&#39;] = &#39;#\[poem=(.*)\](.*)\[/poem\]#esiU&#39;;
            $replace_array[&#39;[poem=&#39;] = "\$this->PowerCode_poem(&#39;\\1&#39;, &#39;\\2&#39;)";

      	    $search_array[&#39;[s]&#39;] = &#39;#\[s\](.*)\[/s\]#esiU&#39;;
            $replace_array[&#39;[s]&#39;] = "\$this->PowerCode_Tag(&#39;s&#39;, &#39;\\1&#39;)";


            $search_array[&#39;[hr]&#39;] = &#39;#\[hr\](.*)\[/hr\]#esiU&#39;;
            $replace_array[&#39;[hr]&#39;] = "\$this->PowerCode_Tag(&#39;span&#39;, &#39;<HR id=null>&#39;)";

            $search_array[&#39;[sub]&#39;] = &#39;#\[sub\](.*)\[/sub\]#esiU&#39;;
            $replace_array[&#39;[sub]&#39;] = "\$this->PowerCode_Tag(&#39;SUB&#39;, &#39;\\1&#39;)";

            $search_array[&#39;[sup]&#39;] = &#39;#\[sup\](.*)\[/sup\]#esiU&#39;;
            $replace_array[&#39;[sup]&#39;] = "\$this->PowerCode_Tag(&#39;SUP&#39;, &#39;\\1&#39;)";

            $search_array[&#39;[table]&#39;] = &#39;#\[table\](.*)\[/table\]#esiU&#39;;
            $replace_array[&#39;[table]&#39;] = "\$this->PowerCode_table(&#39;\\1&#39;)";

            $search_array[&#39;[tr]&#39;] = &#39;#\[tr\](.*)\[/tr\]#esiU&#39;;
            $replace_array[&#39;[tr]&#39;] = "\$this->PowerCode_tr(&#39;\\1&#39;)";

            $search_array[&#39;[td]&#39;] = &#39;#\[td\](.*)\[/td\]#esiU&#39;;
            $replace_array[&#39;[td]&#39;] = "\$this->PowerCode_td(&#39;\\1&#39;)";

            $search_array[&#39;[th]&#39;] = &#39;#\[th\](.*)\[/th\]#esiU&#39;;
            $replace_array[&#39;[th]&#39;] = "\$this->PowerCode_th(&#39;\\1&#39;)";

            $search_array[&#39;[url]&#39;] = &#39;#\[url\](.*)\[/url\]#esiU&#39;;
            $replace_array[&#39;[url]&#39;] = "\$this->PowerCode_Tag_Url(&#39;\\1&#39;, &#39;\\1&#39;)";

            $search_array[&#39;[url=&#39;] = &#39;#\[url=(.*)\](.*)\[/url\]#esiU&#39;;
            $replace_array[&#39;[url=&#39;] = "\$this->PowerCode_Tag_Url(&#39;\\1&#39;, &#39;\\2&#39;)";

            $search_array[&#39;[size=&#39;] = &#39;#\[size=(.*)\](.*)\[/size\]#esiU&#39;;
            $replace_array[&#39;[size=&#39;] = "\$this->PowerCode_Tag(&#39;font&#39;, &#39;\\2&#39;, &#39; size=\"\\1\"&#39;)";

			$search_array[&#39;[list]&#39;] = &#39;#\[list\](.*)\[/list\]#esiU&#39;;
			$replace_array[&#39;[list]&#39;] ="\$this->DoList(&#39;\\1&#39;,&#39;\\1&#39;)";

			$search_array[&#39;[list=&#39;] = &#39;#\[list=(1|2)\](.*)\[/list\]#esiU&#39;;
			$replace_array[&#39;[list=&#39;] ="\$this->DoList(&#39;\\1&#39;,&#39;\\2&#39;)";

            $search_array[&#39;[guest_name]&#39;] = &#39;#\[guest_name\](.*)\[/guest_name\]#esiU&#39;;
            $replace_array[&#39;[guest_name]&#39;] = "\$this->PowerCode_Tag(&#39;br&#39;, &#39;\\1&#39; )";


			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[&#39;info_row&#39;][&#39;guest_message_for_haid_links&#39;]);
					//start_replace_links_reply
					$search_array[] = ",([^]_a-z0-9-=\"&#39;\/])((https?|ftp|gopher|news|telnet):\/\/)([^ \r\n\(\)\*\^\$!`\"&#39;\|\[\]\{\}<>]*),i";
					$replace_array[] = &#39;<a href="$2$4" target="_blank">$2$4</a>&#39;;
					$search_array[] = ",^((https?|ftp|gopher|news|telnet):\/\/|\.)([^ \r\n\(\)\*\^\$!`\"&#39;\|\[\]\{\}<>]*),i";
					$replace_array[] = &#39;<a href="$1$3" target="_blank">$1$3</a>&#39;;
					//$search_array[] = ",([^]_a-z0-9-=\"&#39;\/])((ftp|gopher|news|telnet):\/\/|www\.)([^ \r\n\(\)\*\^\$!`\"&#39;\|\[\]\{\}<>]*),i";
					//$replace_array[] = &#39;<a href="http://$2$4" target="_blank">$2$4</a>&#39;;
					$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[] = &#39;<a href="mailto:$1">$1</a>&#39;;
	                $string = preg_replace($search_array,$replace_array ,$string);



         }
 		else
 		{
         	         $Guest_message = ($PowerBB->_CONF[&#39;info_row&#39;][&#39;guest_message_for_haid_links&#39;]);
					//start_replace_links_reply
					$search_array[] = ",([^]_a-z0-9-=\"&#39;\/])((https?|ftp|gopher|news|telnet):\/\/)([^ \r\n\(\)\*\^\$!`\"&#39;\|\[\]\{\}<>]*),i";
					$replace_array[] = &#39;<a href="$2$4" target="_blank">$2$4</a>&#39;;
					$search_array[] = ",^((https?|ftp|gopher|news|telnet):\/\/|\.)([^ \r\n\(\)\*\^\$!`\"&#39;\|\[\]\{\}<>]*),i";
					$replace_array[] = &#39;<a href="$1$3" target="_blank">$1$3</a>&#39;;
					//$search_array[] = ",([^]_a-z0-9-=\"&#39;\/])((ftp|gopher|news|telnet):\/\/|www\.)([^ \r\n\(\)\*\^\$!`\"&#39;\|\[\]\{\}<>]*),i";
					//$replace_array[] = &#39;<a href="http://$2$4" target="_blank">$2$4</a>&#39;;
					$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[] = &#39;<a href="mailto:$1">$1</a>&#39;;
              $string = preg_replace($search_array,$replace_array ,$string);

 		}

         return nl2br($string);
 	}




انتهى
بالتوفيق ..


الساعة الآن 09:21 PM