gir gir <?xml version="1.0" encoding="ISO-8859-1"?>
<plugins>
<plugin active="1" product="vbulletin">
<title>Hide links from guests</title>
<hookname>bbcode_create</hookname>
<phpcode>
<![CDATA[if (!function_exists('custom_handle_bbcode_url'))
{
function custom_handle_bbcode_url($parser, $text, $link)
{
$parser->options['cacheable'] = false;
if (!$parser->registry->userinfo['userid'])
{
return '<a href="register.php" title="Please register first or login" target="_blank">Link Görüntüleyemezsiniz Üye Olmanız Gerekiyor ?</a>';
}
else
{
return $parser->handle_bbcode_url($text, $link);
}
}
}
$this->tag_list['option']['url']['callback'] = 'handle_external';
$this->tag_list['option']['url']['external_callback'] = 'custom_handle_bbcode_url';
$this->tag_list['no_option']['url']['callback'] = 'handle_external';
$this->tag_list['no_option']['url']['external_callback'] = 'custom_handle_bbcode_url'; ]]>
</phpcode>
</plugin>
</plugins> kop