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)

SEW810 09-18-2010 02:46 AM

Is this hack still working in 3.8.6???

vblove 10-04-2010 04:18 PM

It would be great if we can get this mod working in vb4 too, thank you

washingtonboise 11-05-2010 07:00 PM

Installed successfully on 3.7.5
Have not tested other versions.

m!dn!ght 11-13-2010 08:06 AM

i use this mod on my forum vb 3.8.6 and work great
dear Developer vb 4 please

TheLastSuperman 12-15-2010 07:50 AM

Quote:

Originally Posted by vblove (Post 2106701)
It would be great if we can get this mod working in vb4 too, thank you

Quote:

Originally Posted by washingtonboise (Post 2118397)
Installed successfully on 3.7.5
Have not tested other versions.

Quote:

Originally Posted by m!dn!ght (Post 2121295)
i use this mod on my forum vb 3.8.6 and work great
dear Developer vb 4 please

Quote:

Originally Posted by MadK (Post 2051798)
Any reports for vB 4.x?

This works on 4.x however not for CMS and one user reported it does not hide links within BB Codes i.e. Quote/Code/PHP etc.

Quote:

Originally Posted by MadK (Post 2054773)
I wanted to add that this mod works PERFECTLY in vB 4.x! However, it does not hide links inside CODE tags so if somebody can code that, please look at this.


altafali 12-15-2010 08:41 AM

installed on vb 4.1 work great

But can you plz add function to hide links under [code] bbcode

thanks

kevin12 12-18-2010 09:49 AM

how to parse RSS? Guests see links in RSS

★Slap 01-04-2011 07:59 PM

Can this mod also include hide CODE and HTML BBCodes.

prandah 02-01-2011 06:55 PM

hey this code work for vbulletin 4.1.1 :D

yahsuah 02-10-2011 08:24 AM

I removed it but the links are still hidden from guest???

How can I fix this?

Sworm 03-22-2011 10:21 PM

Hi, work perfect on 3.8.7.

Not there's a method to hide the not clickable links too?

yahsuah 04-15-2011 05:34 AM

Quote:

Originally Posted by yahsuah (Post 2160911)
I removed it but the links are still hidden from guest???

How can I fix this?

Any idea?

mertiliuss 04-20-2011 04:04 PM

You can hide the links to records? and reveal the answer it?

thanks.

yahsuah 04-21-2011 06:50 AM

I understood that is my fault. I have been installed a plugin https://vborg.vbsupport.ru/showthrea...ghlight=nolink. The issue belongs to it. No problem with Stoebi's "Hide Links From Guests" plugin

Sworm 04-21-2011 12:45 PM

Quote:

Originally Posted by yahsuah (Post 2186918)
I understood that is my fault. I have been installed a plugin https://vborg.vbsupport.ru/showthrea...ghlight=nolink. The issue belongs to it. No problem with Stoebi's "Hide Links From Guests" plugin

Do you have uninstalled the hack?

yahsuah 04-22-2011 08:31 AM

Quote:

Originally Posted by Sworm (Post 2186995)
Do you have uninstalled the hack?

Yes, I uninstalled both

Sworm 04-22-2011 09:05 AM

....and can i know why? Don't work?

yahsuah 04-23-2011 06:59 AM

for SEO

Sworm 04-23-2011 07:08 AM

Quote:

Originally Posted by yahsuah (Post 2187679)
for SEO

Seoed links are not showed on google's results? Or there's any other problem?

yahsuah 04-24-2011 02:47 PM

Quote:

Originally Posted by Sworm (Post 2187684)
Seoed links are not showed on google's results? Or there's any other problem?

There is not a problem, it's my opinion.

Sworm 04-24-2011 03:03 PM

Sure, not in the use, but if the seo score will decreased using this hack, for me is a problem too, but i would understand what problem is this .....

Sworm 04-24-2011 04:29 PM

Code:

<span class="smallfont"><font color="red"><b>[Solo gli utenti registrati e Attivati possono visualizzare i links. <a href="register.php" onclick="alert('GRANDE!!!!! Hai preso la decisione migliore  :)')"><input class="smallfont" type="button" value="Click Qui Per Registrarti....." onclick="javascript:window.location.href='register.php'"></a>]</span></b></font>
The sintax for the 3.8.7 is the same or should better to change something?

yahsuah 04-25-2011 09:10 AM

Quote:

Originally Posted by Sworm (Post 2188144)
Sure, not in the use, but if the seo score will decreased using this hack, for me is a problem too, but i would understand what problem is this .....

It is about all of your website coding. If you are not linking anyone, if you are hiding all external links in all of your webpages, then this can be a problem. If you are linking other websites, then you can use this plugin without serp problems...

iglow 04-29-2011 01:21 AM

ive instlal on 4.1.3 but doesnt work [nothing get hidden].
ANy ideas ?

iglow 04-29-2011 01:26 AM

Quote:

Originally Posted by nico_swd (Post 1491936)
The latest version v132_36x does work on 3.6.7, but I had to edit the plugin Guests will not see links in posts.

Admin CP -> Plugins & Products -> Plugin manager -> Guests will not see links in posts -> And replace:

PHP Code:

if (ereg("(showthread)"$GLOBALS[vbulletin]->scriptpath)) 

... by:
PHP Code:

if (THIS_SCRIPT == 'showthread'


u rock dude.

iglow 07-29-2011 08:38 PM

this stopped owkring on lastest vbull.
gives sqli errors:

http://screencast.com/t/CnEREQkvS9BW

any ideas?

webgroup 08-04-2011 05:22 AM

Works fine with 4.1.5

Sworm 08-07-2011 05:19 AM

Work on 4.1.5 for me too

etca 09-20-2011 02:48 PM

work on 4.1.5 if there's wrap in [code]

bada_bing 09-27-2011 03:32 PM

Does this hack cause any issue with web bots like Google/Yahoo and SEO ?

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 10:30 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.01850 seconds
  • Memory Usage 1,925KB
  • 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
  • (2)bbcode_code_printable
  • (13)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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