The Arcive of vBulletin Modifications Site. |
|
Guest can't see links. Details »»
|
|||||||||||||||||||||||||
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
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
|
|||||||||||||||||||||||||
| 2 благодарности(ей) от: | ||
| farazfaraz, Myth! | ||
| Comments |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
Thanks
|
|
#4
|
||||
|
||||
|
Please add the function for guests to see internal links.
|
|
#5
|
|||
|
|||
|
Quote:
did it help you? What do you mean? This modification only bloked links from guests in threads\posts |
|
#6
|
|||
|
|||
|
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 |
|
#7
|
||||
|
||||
|
thanks but not installed yet...
|
|
#8
|
|||
|
|||
|
Quote:
just do this: Code:
<b><font color="red">To view the link you have to <a href="register.php">Register</a></b></font> |
|
#9
|
|||
|
|||
|
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> Code:
$vbphrase[nolink] |
|
#10
|
|||
|
|||
|
Yes this is another way.
|
![]() |
|
|