![]() |
Links for Registered Users Only
Very simple hack, as requested here.
What does it do? All links can only be viewed by registered members. Time to install: 5 minutes, if not less Files to edit: 1 Open up includes/functions_bbcodeparse.php, and find: PHP Code:
PHP Code:
NOTE: If you are using Floris' standard URL hyperlink opening in same window, the first step is: Find PHP Code:
Please click install if used! |
Big big thanks for useful hack!
|
No problem ;).
|
Nice. Wondering about something. If I just want this to show for a select amount of usergroups, like admins, mods and a special usergroup just to view, while non members and regular members can not view, how would I do that please?
|
You can replace
PHP Code:
PHP Code:
You can add more usergroups to the list, like this: array(W,X,Y,Z) If you's like to enter a list of usergroups that are NOT allowed, please a little ! in from of the in_array, like this: PHP Code:
Hope that helps :). |
Thanks, will try it soon. :)
|
fantastic hack :)
thanks for that :) |
Nice One,thx!
|
No proble guys, glad you like it :)
|
Very good modification. Thnx. ;)
|
Link still visible if the post is created in html (non bbcode) :(
Any idea? |
Hi, i´ve tested this great Hack but got one Question.
Is it possible that only lLinks in Threads can be disabeled and Links in Signatures are still to see? At the Moment this Hack make all Links impossible to see, altough them in Signatures. Thanx for help Greets from Germany |
will it hide it if they are viewing the archive?
|
Hello...Can the links be hided also from users that they havent activated their account? (and so only registered users can see them)
Thnx in advance |
Quote:
|
Quote:
I wouldn't know how to hide them for posts only, I don't think there is a variable which shows where the BBCode is currently parsed. Anyone? |
Quote:
PHP Code:
PHP Code:
Not sure whether this works or not, but you can try. |
Quote:
When i did that, the code didnt worked at all (neither for the userid 0) :( |
Quote:
Thanks! |
this hack doesnt seem to work if the user puts a URL in BBCODE [URL] and BBCODE [URL] tags... Is there a fix?
|
Quote:
Replace PHP Code:
PHP Code:
|
can this work on 3.5 RC2
|
Code:
return "<a href=\"$rightlink\" target=\"_blank\">$text</a>"; it works but it hides links from everyone trying to figure conditions but so far no luck. |
great hack added to my second board
but 1 question!!! it stopps you from seeing the link however before you go into the thread if you hover the mouse over the thread title it shows the link any fix for that? regards dean |
Quote:
i did that to my forum btw: the mouse over is kinda annoying. it made me dizzy :lol: so turning it off is not a big deal to me |
nice one cheers for that :D
|
just have this installed and the img code wont work with this
i have to uninstall it now very nice and simple mod :thumbup: |
Hopefully someone will find out what the conditions in vB3.5 are supposed to be, I'd like to implent something like this for quotes/codes, just like on vB.org here ;)
|
What happens if theres a [url] around an [img] and this hack is installed?
|
ok for this to work in vb 3.5 rc 3 do the following in
forums/includes/class_bbcode.php find Code:
return "<a href=\"$rightlink\" target=\"_blank\">$text</a>"; Code:
if ($vbulletin->userinfo['userid']) |
Quote:
|
nice addon thank you much
|
What code for 3.5 gold tried the above but even i the admin cannot view links. ??
Thanks |
:cool:
can this be adapted in someway to prevent non-registered users from viewing signatures? |
vB Version: 3.0.7
This hack is too old, where is the new one that works with 3.6.5 ? |
Quote:
|
I tried it but it didn't work i use vBulletin 3.6.7 PL1)
|
All times are GMT. The time now is 04:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|