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
  #22  
Old 09-24-2009, 05:10 AM
Waqas Anwar Waqas Anwar is offline
 
Join Date: Apr 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alexey? View Post
in steand of "$vbphrase[nolink]" you may write what ever messege you want.
did it help you?
It did not help me :erm: Could it be due to version difference? I am using 3.8.3
When I replace it this message is not visible but link become visible. Without doing this links hid but then all guests start sending email to ask where are links?

Quote:
Originally Posted by elenh View Post
Go to Admincp / Language & Phrases and then create new phrase
and add:
Code:
<b><font color="red">To view the link you have to <a href="register.php">Register</a></b></font>
Then go to the plugin and replace the
Code:
$vbphrase[nolink]
With your own phrase.
It didnt work either
Reply With Quote
  #23  
Old 09-25-2009, 04:31 PM
Alexey? Alexey? is offline
 
Join Date: Oct 2008
Location: ISRAEL
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by luan7749 View Post
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 ?
1. Yes the images are hidden too.
2.No one can't search it, it like a hide mode so no one can't see the URL\s

Quote:
Originally Posted by Waqas Anwar View Post
It did not help me :erm: Could it be due to version difference? I am using 3.8.3
When I replace it this message is not visible but link become visible. Without doing this links hid but then all guests start sending email to ask where are links?



It didnt work either

You have to REEPLACE this "$vbphrase[nolink]" In the text you want to.
i'm using 3.8.2 and there is no problem.
soon i will upgrade to 3.8.4 and see if there is any bugs or isuse
Reply With Quote
  #24  
Old 09-27-2009, 05:43 PM
Waqas Anwar Waqas Anwar is offline
 
Join Date: Apr 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alexey? View Post
You have to REEPLACE this "$vbphrase[nolink]" In the text you want to.
Yes I did that but it failed. :down:

Quote:
Originally Posted by Alexey? View Post
i'm using 3.8.2 and there is no problem.
soon i will upgrade to 3.8.4 and see if there is any bugs or isuse
Thanks, I'll be waiting. :up:
Reply With Quote
  #25  
Old 09-27-2009, 07:21 PM
Alexey? Alexey? is offline
 
Join Date: Oct 2008
Location: ISRAEL
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Waqas Anwar View Post
Yes I did that but it failed. :down:


Thanks, I'll be waiting. :up:
What do you mean it failed?
what happen?
Reply With Quote
  #26  
Old 10-09-2009, 12:34 PM
alfanexus alfanexus is offline
 
Join Date: Dec 2008
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, this is soooo great, better that nofollow to keep spammers out.

But has anybody an idea on how to do the same for vbulletin blogs???
Reply With Quote
  #27  
Old 10-09-2009, 02:55 PM
cormee's Avatar
cormee cormee is offline
 
Join Date: May 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What a great little piece of code.

Yesterday my register page wasn't even in my top 25 pages visited today it's 3rd most visited.

What would be fantastic would be if it could set by membership type - ie. only paying members can see them. Would also be great if it could be for mailto: links also.
Reply With Quote
  #28  
Old 10-10-2009, 09:03 AM
Alexey? Alexey? is offline
 
Join Date: Oct 2008
Location: ISRAEL
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm happy you liked it

cormme you can make a vip group and you can add to this line
if ((!$this->registry->userinfo[userid]) OR (is_member_of($this->registry->userinfo, 1, 3)))

the id of groups that can't watch the links, and the vip group id don't add there and they will able to watch the links,For the mails i don't know how to do it.
Reply With Quote
  #29  
Old 10-12-2009, 08:46 AM
jkun666 jkun666 is offline
 
Join Date: Aug 2009
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, what 'Hook Location' do I use?
Reply With Quote
  #30  
Old 10-12-2009, 05:14 PM
Alexey? Alexey? is offline
 
Join Date: Oct 2008
Location: ISRAEL
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

postbit_display_complete
Reply With Quote
  #31  
Old 10-13-2009, 07:34 AM
cormee's Avatar
cormee cormee is offline
 
Join Date: May 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alexey? View Post
I'm happy you liked it

cormme you can make a vip group and you can add to this line
if ((!$this->registry->userinfo[userid]) OR (is_member_of($this->registry->userinfo, 1, 3)))

the id of groups that can't watch the links, and the vip group id don't add there and they will able to watch the links,For the mails i don't know how to do it.
Great, thanks. Am loving this mod!
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:07 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.05744 seconds
  • Memory Usage 2,334KB
  • 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
  • (3)bbcode_code
  • (8)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
  • (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