vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Mini Mods - Guest can't see links. (https://vborg.vbsupport.ru/showthread.php?t=222216)

Alexey? 08-31-2009 10:00 PM

Guest can't see links.
 
1 Attachment(s)
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.

enemy@fps 09-01-2009 11:56 AM

In use.
Thanks again but one question:

can u add that there stand:

Your a guest, please login or register ( with links) to see this link

aliali 09-01-2009 01:27 PM

Thanks

Alfa1 09-01-2009 03:15 PM

Please add the function for guests to see internal links.

Alexey? 09-01-2009 04:25 PM

Quote:

Originally Posted by enemy@fps (Post 1877719)
In use.
Thanks again but one question:

can u add that there stand:

Your a guest, please login or register ( with links) to see this link

in steand of "$vbphrase[nolink]" you may write what ever messege you want.
did it help you?
Quote:

Originally Posted by Alfa1 (Post 1877832)
Please add the function for guests to see internal links.

What do you mean?
This modification only bloked links from guests in threads\posts

enemy@fps 09-01-2009 09:06 PM

no sorry i am a noob in those things and getting learning it step by step

i want that there stand you must be registered to read this content as a link to the /register.php

can u pls fast do this?

will vote u to MoTM

Michael.A 09-02-2009 04:06 AM

thanks but not installed yet...

Alexey? 09-02-2009 04:21 AM

Quote:

Originally Posted by enemy@fps (Post 1878030)
no sorry i am a noob in those things and getting learning it step by step

i want that there stand you must be registered to read this content as a link to the /register.php

can u pls fast do this?

will vote u to MoTM

aaa, now i get it.


just do this:

Code:

<b><font color="red">To view the link you have to <a href="register.php">Register</a></b></font>

elenh 09-02-2009 12:26 PM

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.

Alexey? 09-02-2009 01:01 PM

Yes this is another way.


All times are GMT. The time now is 02:25 AM.

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.01037 seconds
  • Memory Usage 1,737KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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