vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Hide Links From Guests (https://vborg.vbsupport.ru/showthread.php?t=123415)

grafbyte 09-28-2011 11:30 AM

work 4.1.6 :)

product-Hide_Links_From_Guest_v132_36x_german.xml

M.C. 11-08-2011 03:27 PM

links are visible in RSS... need to be fixed!

Alibass 11-14-2011 03:44 AM

Quote:

Originally Posted by M.C. (Post 2265728)
links are visible in RSS... need to be fixed!

This mod is not supported, hasn't been updated in 5 years.

webmastersitesi 12-08-2011 06:54 AM

i have problem at showthread showpost area. Links are not hidden there. any solution?

Ary Braga 03-25-2012 09:38 PM

wow, working great onto vb 4.1.11. I recommend to all

Ary Braga 06-17-2012 02:23 AM

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_STRREQ_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->userinfo2,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

jinglefreak1972 08-23-2012 02:27 PM

Ary, do you want to share your updated plugin? If yes, can you tell me where I can download it?

The original plugin hide old links, but when I post a new message with a link in it, the link is still visible.

RedTurtle 10-29-2012 05:07 AM

I am unable to create any new forums on my site with this plugin. Even disabling or uninstalling it keeps giving me errors.

I'm on 4.2.0 PL2 and when I try to create a forum I get this error:

Fatal error: Field forum_hlfg is not defined in $validfields in class vB_DataManager_Forum in [path]/includes/class_dm.php on line 515

I have uninstalled Hide Links From Guests but still have the issue.

Anyone know what I could do next? Thank you.

Ary Braga 12-24-2012 02:25 PM

1 Attachment(s)
Well, I share my product

This Mod don't support rewriting method. Please Uninstall another version before.

The code I change to support Xhtml .

No more TAG <b> ou <Font>

Now is <span> OK?

Here my update:

Code:

<defaultvalue><![CDATA[&lt;span style='font-weight: bold; color: #CD0000;'&gt;
[Only registered users can see links.]&lt;a href="register.php" onclick="alert('Wisely Decision :)')"&gt;&lt;input type="button" value="Click Here to Register." onclick="javascript:window.location.href='register.php'"&gt;&lt;/a&gt;&lt;/span&gt;]]></defaultvalue>


poomins 01-29-2013 08:02 AM

I installed in vB 4.2, I do not know why when I logged out, I can see the link.


All times are GMT. The time now is 03:36 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02744 seconds
  • Memory Usage 1,860KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (11)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete