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

Reply
 
Thread Tools
Guest can't see links. Details »»
Guest can't see links.
Version: 1.00, by Alexey? Alexey? is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.x Rating:
Released: 08-31-2009 Last Update: Never Installs: 56
Uses Plugins
Translations  
No support by the author.

OK, lately i made a little template modification that make guests register before they can see any link on the website.

Here is what you need to do to active it and use it in your Forum.



Go to AdminCp>Plugin & Products > Add New Plugin

then do this:



Code:
Hook Location : postbit_display_complete
Name : what ever you want
Execution Order : 5
Plugin PHP Code :
if ((!$this->registry->userinfo[userid]) OR (is_member_of($this->registry->userinfo, 1, 3)))
{
$this->post['message'] = preg_replace("!<a[^>]*(http|www)(.*)</a>!siU", $vbphrase[nolink], $this->post['message']);  
}
Plugin is Active : Yes
After you complete all the fields just press on SAVE button and you are done.

Insteand of 1,3 you can change the numbers to a diffrent groups you want.
but 1 and 3 is the Default groups that not allowed to see links in posts.

Worked fine to me and should work fine for you.
Have Fun.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
farazfaraz, Myth!

Comments
  #12  
Old 09-02-2009, 01:25 PM
enemy@fps enemy@fps is offline
 
Join Date: Jul 2008
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works

thanks for the great support

5* + MOTM
Reply With Quote
  #13  
Old 09-02-2009, 07:48 PM
SnakeV SnakeV is offline
 
Join Date: Jun 2008
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

It is possible for exclude internal link of the HIDE?.

For example if my board domain is www.testdomain.com and an user post in a thread www.testdomain.com/showthread.php?t=11853 can be excluded from the HIDE and show to guests?.

Thanks!!!
Reply With Quote
  #14  
Old 09-03-2009, 07:55 AM
Log on Log on is offline
 
Join Date: Aug 2009
Location: KSA
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank u
Reply With Quote
  #15  
Old 09-03-2009, 10:33 AM
Alexey? Alexey? is offline
 
Join Date: Oct 2008
Location: ISRAEL
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SnakeV View Post
Hello,

It is possible for exclude internal link of the HIDE?.

For example if my board domain is www.testdomain.com and an user post in a thread www.testdomain.com/showthread.php?t=11853 can be excluded from the HIDE and show to guests?.

Thanks!!!
Now i see what you mean.
i will check it out and see what i can do.
Reply With Quote
  #16  
Old 09-04-2009, 02:13 AM
itsblack itsblack is offline
 
Join Date: Dec 2005
Location: Augsburg
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There was a similar addon, "hide links from guests". Just too old, it is for vb 3.6.

https://vborg.vbsupport.ru/showthread.php?t=123415
Reply With Quote
  #17  
Old 09-04-2009, 07:38 AM
Alexey? Alexey? is offline
 
Join Date: Oct 2008
Location: ISRAEL
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ofcurse there is another MOD for this but what i posted here is without installing any thing.
so it is more simple to use.
Reply With Quote
  #18  
Old 09-04-2009, 08:41 PM
itsblack itsblack is offline
 
Join Date: Dec 2005
Location: Augsburg
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No offense, but I think a MOD with install script is more simple than yours. Whatever, that's not the point.

I posted the url for that, maybe you can take some ideas from that old one.

At least your method is incomplete, if the guest switch the page to the print mode, than your solution will not work.
Reply With Quote
  #19  
Old 09-05-2009, 06:25 AM
Alexey? Alexey? is offline
 
Join Date: Oct 2008
Location: ISRAEL
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know i made it up quickly so the guest can't see it only from posts.
ofcurse it is possible to do it for the arhive and signature and all the other stuff
Reply With Quote
  #20  
Old 09-18-2009, 09:23 AM
andrew67 andrew67 is offline
 
Join Date: Dec 2001
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Exactly what was needed , thanks works a treat.
Reply With Quote
  #21  
Old 09-24-2009, 03:59 AM
luan7749's Avatar
luan7749 luan7749 is offline
 
Join Date: Apr 2008
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, I have two questions :
1. Images 're hide for guests ? I Want images can be displayed for guests
2. I want that Google , Yahoo and other Search Bot can see 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 03:41 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.07136 seconds
  • Memory Usage 2,318KB
  • 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
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete