> 1 <
| Author | Message |
SpySnaKe
6 posts
Location: Turkey Occupation: Age: |
#261 2008-03-16 07:07 GMT |
|
Hide link core hack for guest users block
Open Functions.php Find Code: function sed_bbcode_autourls($text) { $text = ' '.$text; $text = preg_replace("#([\n ])([a-z0-9]+?)://([^\t \n\r]+)#i", "\\1[url]\\2://\\3[/url]", $text); $text = preg_replace("#([\n ])([a-z0-9-_.]+?@[A-z0-9-]+\.[^,\t \n\r]+)#i", "\\1[email]\\2[/email]", $text); return(substr($text,1)); } Replace code Code: function sed_bbcode_autourls($text)
{ global $usr; if ($usr['maingrp']>0) { $text = ' '.$text; $text = preg_replace("#([\n ])([a-z0-9]+?)://([^\t \n\r]+)#i", "\\1[url]\\2://\\3[/url]", $text); $text = preg_replace("#([\n ])([a-z0-9-_.]+?@[A-z0-9-]+\.[^,\t \n\r]+)#i", "\\1[email]\\2[/email]", $text); return(substr($text,1)); } else { $text = ' '.$text; $text = preg_replace("#([\n ])([a-z0-9]+?)://([^\t \n\r]+)#i", " Linkleri görebilmek için <a href=\"users.php?m=register\">ÜYE</a> olmalısınız.", $text); $text = preg_replace("#\[url([^\t \n\r]+)#i", " Linkleri görebilmek için <a href=\"users.php?m=register\">ÜYE</a> olmalısınız.", $text); $text = preg_replace("#([\n ])([a-z0-9-_.]+?@[A-z0-9-]+\.[^,\t \n\r]+)#i", "\\1[email]\\2[/email]", $text); return(substr($text,1)); } } This post was edited by Kilandor (2008-03-16 17:36 GMT, 295 days ago) |
|
> 1 <

