Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Hide Links From Guests Details »»
Hide Links From Guests
Version: 1.32, by Stoebi Stoebi is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.2 Rating:
Released: 08-07-2006 Last Update: 10-27-2006 Installs: 691
DB Changes Uses Plugins
 
No support by the author.

Original Autor: natro Forum
Co-Autor: Stoebi

A big thank you goes out to natro for allowing me not only to translate the plug-in, but also to publish/release this with
my error corrections and some further additions.


Thank you very much also Andreas, Christian and Hoffi. Since some additions to the addon would have not been possible without their input.


Functions:
  • Guests won't see links in Posts
  • Guests won't see links in Archive (fixed parsing)
  • Guests won't see links in "Show Printable Version"
  • Guests won't see links in Reply (For registered user visible now (fixed))
  • Guests won't see links in Signatures (new)
  • Guests won't see links in Quotes (new)
  • Guests won't see links in Search (new)
  • Popup above the theme title is not shown for guests (new)
  • Fixed: extra ] was fixed in vbphrase
  • Guests won't see emails links
  • Exclude forums
  • Global activate/deactivate
  • Groups can be included
  • Link added
  • Version check added
  • Most options configurable
  • Info text configurable
  • Fixed bug in PN
  • Fixed database problem during install ( overwrite the product now possible )
  • Fixed multiquote and direct reply if a usergroup not allowed to shown links.
  • Added option "Show own posted links"
  • Added option "Exclude links" ( vbulletin.org|gif|jpg for example )
  • Added option "Show links from groups" ( 5,6 for example -> default )
  • Added option "Show links from users" ( webmaster|stoebi for example )
  • Source code optimizes
  • Guests won't see links in SHOWPOST (Post and Signature)
  • Supports my new hack Show Post In Printable Version
Intallation: Download, deinstall and reimport an existing version.



Update: 09-08-2006
  • Fixed link parsing in Quotes (View Post) in Reply, Signature and Post
  • Added 2 new screenshots
Update: 13-08-2006
  • Guests won't see email links (GregF)
  • Exclude forums (TygerTyger)
  • Global activate/deactivate
  • Groups can be included (JonnyF)
  • Link added
  • Version check added
  • Most options configurable
Update: 21-08-2006
  • Info text configurable (payamix1)
  • Fixed bug in PN (payamix1)
Update: 05-09-2006
  • Fixed database problem during install ( overwrite the product now possible )
  • Fixed multiquote and direct reply if a usergroup not allowed to shown links.
  • Added option "Show own posted links"
  • Added option "Exclude links" ( vbulletin.org|gif|jpg for example ) (JonnyF, DSPR)
  • Added option "Show links from groups" ( 5,6 for example) (TygerTyger)
  • Added option "Show links from users" ( webmaster|stoebi for example )
  • Source code optimizes
Update: 28-10-2006
  • Guests won't see links in SHOWPOST (Post and Signature) (new)
  • Supports my new hack Show Post In Printable Version (new)
Enjoy this fine update.


Guests always seen hidden links, if this addon activated. You can't exclude guests and include group ids. Non-excluded Forums are depend by the made options in vbulletins-options.


You'll find different versions in the archive. "product-Hide_Links_From_Guest_v132_36x_english.xml" is the newest one.
36x in filename means, product for vBulletin 3.6.x only, not downward-compatibly
354 in filename means, product for vBulletin 3.5.4.

This Addon works fine with the "Post Replacement" addon from Larrysw.
You need only to change the "Execution Order" from 5 to 4 in "Plugin Manager" -> Guests will not see links in posts (Hook: postbit_display_complete)

For german members of vBulletin, please click here for install. Thx


Have Fun

Regards, Stoebi


Sorry for german screenshots

Download Now

File Type: zip hide_link_from_guests_v132_english.zip (25.5 KB, 7751 views)
File Type: zip hide_link_from_guests_v132_german.zip (27.5 KB, 950 views)

Screenshots

File Type: jpg 1.jpg (45.7 KB, 0 views)
File Type: jpg 2.jpg (76.3 KB, 0 views)
File Type: jpg 3.jpg (95.6 KB, 0 views)
File Type: jpg 4.jpg (71.8 KB, 0 views)
File Type: jpg 5.jpg (129.5 KB, 0 views)
File Type: jpg 6.jpg (93.7 KB, 0 views)
File Type: jpg 7.jpg (134.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #352  
Old 09-28-2011, 11:30 AM
grafbyte grafbyte is offline
 
Join Date: Apr 2007
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

work 4.1.6

product-Hide_Links_From_Guest_v132_36x_german.xml
Reply With Quote
  #353  
Old 11-08-2011, 03:27 PM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

links are visible in RSS... need to be fixed!
Reply With Quote
  #354  
Old 11-14-2011, 03:44 AM
Alibass's Avatar
Alibass Alibass is offline
 
Join Date: Mar 2007
Posts: 615
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by M.C. View Post
links are visible in RSS... need to be fixed!
This mod is not supported, hasn't been updated in 5 years.
Reply With Quote
  #355  
Old 12-08-2011, 06:54 AM
webmastersitesi webmastersitesi is offline
 
Join Date: Oct 2007
Location: Turkey
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have problem at showthread showpost area. Links are not hidden there. any solution?
Reply With Quote
  #356  
Old 03-25-2012, 09:38 PM
Ary Braga Ary Braga is offline
 
Join Date: Jun 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow, working great onto vb 4.1.11. I recommend to all
Reply With Quote
  #357  
Old 06-17-2012, 02:23 AM
Ary Braga Ary Braga is offline
 
Join Date: Jun 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #358  
Old 08-23-2012, 02:27 PM
jinglefreak1972 jinglefreak1972 is offline
 
Join Date: Aug 2012
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #359  
Old 10-29-2012, 05:07 AM
RedTurtle's Avatar
RedTurtle RedTurtle is offline
 
Join Date: May 2006
Location: California
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #360  
Old 12-24-2012, 02:25 PM
Ary Braga Ary Braga is offline
 
Join Date: Jun 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Attached Files
File Type: xml product-hidelinksfromguest.xml (16.2 KB, 61 views)
Reply With Quote
  #361  
Old 01-29-2013, 08:02 AM
poomins poomins is offline
 
Join Date: Oct 2012
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:35 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05938 seconds
  • Memory Usage 2,460KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (11)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete