Working great on my vb 4.2.0pl2 ( FF and IE
My Plugin page is:
Product:
Guest dont see links
Hook: forumdata_start
Title: Place valid row
Order execution: 5
code:
PHP Code:
$this->validfields['forum_hlfg'] = array(TYPE_STR, REQ_NO);
__________________________________________________ __________
Product:
Guest dont see links
Hook: archive_thread_post
Title: Guest dont see linksin archive
Order execution: 5
code:
PHP Code:
if ($vbulletin->options['hlfg_global'])
{
$groups = explode(',',$vbulletin->options['hlfg_groups']);
if ($vbulletin->options['hlfg_archive'] AND !$vbulletin->userinfo['userid'] OR $vbulletin->options['hlfg_archive'] AND (is_member_of($vbulletin->userinfo, $groups) OR $groups[0] == 0))
{
if (!$foruminfo['forum_hlfg'])
{
$post['pagetext'] = eregi_replace('(http|www)([[:alnum:]/\n+-=%&:_.~?]+[#[:alnum:]+]*)', $vbphrase[nolinkinarchive], $post['pagetext_simp']);
$post['pagetext_simp'] = strip_bbcode($post['pagetext']);
$post['pagetext_simp'] = preg_replace("!(.+@\.*.+)!i", $vbphrase[nolinkinarchive], $post['pagetext_simp']);
$post['postdate'] = vbdate($vbulletin->options['dateformat'], $post['dateline']);
$post['posttime'] = vbdate($vbulletin->options['timeformat'], $post['dateline']);
}
}
}
__________________________________________________ ________
Name:
Guest dont see links
Hook: forumadmin_edit_form
Title: Guests don't see links in some forums
Order execution: 5
code:
PHP Code:
print_yes_no_row($vbphrase['forum_hlfg'], 'forum[forum_hlfg]', $forum['forum_hlfg']);
__________________________________________________ _______
Name:
Guest dont see links
Hook: search_results_postbit
Title: Guests can not see links to Search
Order execution: 5
code:
PHP Code:
if ($vbulletin->options['hlfg_global'])
{
$groups = explode(',',$vbulletin->options['hlfg_groups']);
if ($vbulletin->options['hlfg_search'] AND !$vbulletin->userinfo['userid'] OR $vbulletin->options['hlfg_search'] AND (is_member_of($vbulletin->userinfo, $groups) OR $groups[0] == 0))
{
$post['pagetext'] = eregi_replace('(http|www)([[:alnum:]/\n+-=%&:_.~?][^<>[:space:]]+[#[:alnum:]+]*)', $vbphrase[nolinkinarchive], $post['pagetext']);
$post['pagetext'] = preg_replace("!(.+@\.*.+)!i", $vbphrase[nolinkinarchive], $post['pagetext']);
}
}
_________________________________________________
Name:
Guest dont see links
Hook: postbit_display_complete
Title: Guests don't see links in Signatures
Order execution: 5
code:
PHP Code:
if (ereg("(showthread)", $GLOBALS[vbulletin]->scriptpath))
{
if ($this->registry->options['hlfg_global'])
{
$groups = explode(',',$this->registry->options['hlfg_groups']);
if ($this->registry->options['hlfg_sigs'] AND !$this->registry->userinfo['userid'] OR $this->registry->options['hlfg_sigs'] AND (is_member_of($this->registry->userinfo, $groups) OR $groups[0] == 0))
{
if (!$forum['forum_hlfg'])
{
$this->post['signature'] = preg_replace("!<a[^>]*(http|www|mailto)(.*)</a>!siU", $this->registry->options['hlfg_info'], $this->post['signature']);
$this->post['signature'] = preg_replace("!mailto:(.+\.*.)!siU", $this->registry->options['hlfg_info'] . '<', $this->post['signature']);
}
}
}
}
__________________________________________________ _____
Name:
Guest dont see links
Hook: newreply_start
Title: Guests don't see links in quotes
Order execution: 5
code:
PHP Code:
if ($vbulletin->options['hlfg_global'])
{
$groups = explode(',',$vbulletin->options['hlfg_groups']);
if ($vbulletin->options['hlfg_quotes'] AND !$vbulletin->userinfo['userid'] OR $vbulletin->options['hlfg_quotes'] AND (is_member_of($vbulletin->userinfo, $groups) OR $groups[0] == 0))
{
if (!$foruminfo['forum_hlfg'])
{
$vbulletin->GPC['noquote'] = true;
}
}
}
__________________________________________________ _______
Name:
Guest dont see links
Hook: member_complete
Title: Guests don't see links in Profiles
Order execution: 5
code:
PHP Code:
if ($vbulletin->options['hlfg_global'])
{
$groups = explode(',', $vbulletin->options['hlfg_groups']);
if ($vbulletin->options['hlfg_profile'] AND !$vbulletin->userinfo['userid'] OR $vbulletin->options['hlfg_profile'] AND (is_member_of($vbulletin->userinfo, $groups) OR $groups[0] == 0))
{
if (!is_member_of($vbulletin->userinfo, 2,5,6,7))
{
$userinfo['signature'] = preg_replace("!<a[^>]*(http|www|mailto)(.*)</a>!siU", $vbulletin->options['hlfg_info'], $userinfo['signature']);
$userinfo['signature'] = preg_replace("!mailto:(.+\.*.)!siU", $vbulletin->options['hlfg_info'] . '<', $userinfo['signature']);
}
}
}
________________________________________________
Name:
Guest dont see links
Hook: newreply_form_reviewbit
Title: Guests don't see links in replies
Order execution: 5
code:
PHP Code:
if ($vbulletin->options['hlfg_global'])
{
$groups = explode(',',$vbulletin->options['hlfg_groups']);
if ($vbulletin->options['hlfg_reply'] AND !$vbulletin->userinfo['userid'] OR $vbulletin->options['hlfg_reply'] AND (is_member_of($vbulletin->userinfo, $groups) OR $groups[0] == 0))
{
if (!$foruminfo['forum_hlfg'])
{
$reviewmessage = preg_replace("!<a[^>]*(http|www|mailto)(.*)</a>!siU", $vbulletin->options['hlfg_info'], $reviewmessage);
$reviewmessage = preg_replace("!mailto:(.+\.*.)!siU", $vbulletin->options['hlfg_info'] . '<', $reviewmessage);
}
}
}
__________________________________________________ ______
Name:
Guest dont see links
Hook: threadbit_process
Title: Guests don't see links in outline view
Order execution: 5
code:
PHP Code:
if ($vbulletin->options['hlfg_global'])
{
$groups = explode(',',$vbulletin->options['hlfg_groups']);
if ($vbulletin->options['hlfg_prev'] AND !$vbulletin->userinfo['userid'] OR $vbulletin->options['hlfg_prev'] AND (is_member_of($vbulletin->userinfo, $groups) OR $groups[0] == 0))
{
if (!$foruminfo['forum_hlfg'])
{
$thread['preview'] = '';
}
}
}
__________________________________________________ ___________
Name:
Guest dont see links
Hook: postbit_display_complete
Title: Guests don't see links in posts
Order execution: 5
code:
PHP Code:
if (ereg("(showthread)", $GLOBALS[vbulletin]->scriptpath))
{
if ($this->registry->options['hlfg_global'])
{
$groups = explode(',',$this->registry->options['hlfg_groups']);
if ($this->registry->options['hlfg_posts'] AND !$this->registry->userinfo['userid'] OR $this->registry->options['hlfg_posts'] AND (is_member_of($this->registry->userinfo, $groups) OR $groups[0] == 0))
{
if (!$forum['forum_hlfg'])
{
$this->post['message'] = preg_replace("!<a[^>]*(http|www|mailto)(.*)</a>!siU", $this->registry->options['hlfg_info'], $this->post['message']);
$this->post['message'] = preg_replace("!mailto:(.+\.*.)!siU", $this->registry->options['hlfg_info'] . '<', $this->post['message']);
}
}
}
}
__________________________________________________ __
Product:
Guest dont see links
Hook: printthread_post
Title: Guests can not see links in the "Printable Version"
Order execution: 5
code:
PHP Code:
if ($vbulletin->options['hlfg_global'])
{
$groups = explode(',',$vbulletin->options['hlfg_groups']);
if ($vbulletin->options['hlfg_print'] AND !$vbulletin->userinfo['userid'] OR $vbulletin->options['hlfg_print'] AND (is_member_of($vbulletin->userinfo, $groups) OR $groups[0] == 0))
{
if (!$foruminfo['forum_hlfg'])
{
$post['message'] = preg_replace("!<a[^>]*>(.*)</a>!siU", $vbphrase[nolink], $post['message']);
$post['message'] = preg_replace("!mailto:(.+\.*.)!siU", $vbphrase[nolink] . '<', $post['message']);
}
}
}
I hope to have aided