PDA

View Full Version : Only selected usergroups can see links


luroca
11-01-2005, 10:00 PM
I know that there are a similar hack more simple and elegant (https://vborg.vbsupport.ru/showthread.php?t=99918) but this is more powefull and adecuate for me.

With this hack only selected usergroups can see links. Besides, Staff (admin and others) can post links that can see all usergroups.

This product install 4 independ plugins, 1 new settinggroup and 7 new phrases.

No links are visible for unauthorized usergroups in replypost, printversion and archive. In showthread and showpost only links posted by staff (mods, smods, admins and others of you election) are visible for all usergroups.

Change in V.1.1.0:
- Customizable in ACP --> Links Permissions
Change in V.1.2.0:
- No links escapes now. Thanks to board.trash
- Links of not allowed usegroups are hidden for all usergroups in post ( but not for allowed usergroups in Archive and PrintVersion, sorry)

Regards

Boofo
11-02-2005, 09:59 PM
Instead of editing the xml code, why not make settings for this in the Admin CP? ;)

luroca
11-03-2005, 05:11 AM
Instead of editing the xml code, why not make settings for this in the Admin CP? ;)Because I have to learn to do it yet :)

Marv
11-03-2005, 05:41 AM
Hey, luroca - *gnarf* why haven´t you realeased this little beauty yesterday? Would have saved me a lot of time cause php is still a pain in the ... for me :knockedout:

Is this Plugin already tested yet ? In which versions ?

luroca
11-03-2005, 06:27 AM
Hello, marv, your php is better than mine.
This hack works fine in both 3.5.1 and 3.5.0

Regards

luroca
11-03-2005, 11:37 AM
Because I have to learn to do it yet :)I have learned, if I have time, today update :)

Snake
11-03-2005, 12:07 PM
Woohoo for 3.5.1, thanks!!

luroca
11-03-2005, 07:17 PM
Instead of editing the xml code, why not make settings for this in the Admin CP? ;)
Thanks very much for your sugestion, Boofo, now this hack is fully customizable in ACP.

Boofo
11-03-2005, 08:33 PM
Thanks very much for your sugestion, Boofo, now this hack is fully customizable in ACP.

I had no doubt you could do it. Good job! ;)

board.trash
11-03-2005, 10:49 PM
Hello luroca !

Thank you for this hack but i think there is a little misstake ?!

pls look at the screenshot.

if someone use a link like this: "http://www.link.tld" "http://link.tld ... <-> guest´s can see the link at the thread (archive works fine) - why???

board.trash
11-03-2005, 10:50 PM
here comes the german translation :D

.. hope you like it :rolleyes:

luroca
11-03-2005, 11:26 PM
why???We need a RegEx guru :)
Thanks for the traslation, German it?s very difficult for me :D

board.trash
11-03-2005, 11:29 PM
We need a RegEx guru :)
Thanks for the traslation, German it?s very difficult for me :D

okay, just waiting for ^^ :P

ps. n1 hack - thanks again :banana:

Virtuosofriend
11-04-2005, 08:41 AM
extremely helpful,well done.

bigmonay2k
11-05-2005, 11:22 PM
what about it you want it only 2 section of the board. thanks

luroca
11-06-2005, 01:24 PM
what about it you want it only 2 section of the board. thanksThe ideal soluction for you would be a hack based in forumpermisions and I have not interested in that by now, maybe in the future.
This is only a personal solution for me and, perhaps, for other persons.
A quick solution for you can be to add a conditional of type "and if forumid = X"

Regards

board.trash
11-06-2005, 02:22 PM
hi, here comes a fixed version.

all links work fine now.

credits goes to my mod smasher :D

Flow Fusion
11-06-2005, 09:12 PM
Where do I find this after I install it?

Boofo
11-06-2005, 09:36 PM
hi, here comes a fixed version.

all links work fine now.

credits goes to my mod smasher :D

What is "fixed" in this? ;)

luroca
11-07-2005, 08:33 AM
What is "fixed" in this? ;)Some links were visible. Today update with this (thanks, board.trash) and a minor improve.

luroca
11-07-2005, 12:03 PM
Updated.
Please, if you use it, click install, I have an ego :)

board.trash
11-08-2005, 05:16 PM
What is "fixed" in this? ;)


all these (https://vborg.vbsupport.ru/showpost.php?p=812063&postcount=10) problems are fixed and the xml is in german now.

Mastar
11-22-2005, 03:32 PM
Neva mind

ggiersdorf
12-24-2005, 02:56 PM
any possible way to stop img tags from being seen with this link!? I do alot of game stuff and it uses alot of pictures..

croportal
12-26-2005, 04:26 PM
i have version 3.5.0 and i have instaled this but not working

luroca
12-29-2005, 04:47 PM
Well, in my experience, it works ok in 3.5.0, 3.5.1 and 3.5.2.
Have you set it in Admin Control Panel?

Yorixz
01-02-2006, 04:59 PM
Hmm, I'm having a little problem with this.

When I enable the plugin and try to write a new reply I get the following error:
Fatal error: Using $this when not in object context in /home/ftpusers/otfans/html/newreply.php(809) : eval()'d code on line 6
Which should be in this code:
eval('$canseelinks = in_array($vbulletin->userinfo[usergroupid], array(' . $vbulletin->options['canseelinks'] . '));');
if ((!in_array($vbulletin->userinfo[usergroupid], array($canseelinks)) or !is_member_of($post, explode(',', $this->registry->options['canseelinks']))))
{
$reviewmessage = preg_replace("!<a[^>]*>(.*)</a>!siU", $vbphrase[nolink], $reviewmessage);
}

Could anyone explain me how to fix that please?

ccplim
01-03-2006, 03:42 AM
any possible way to stop img tags from being seen with this link!? I do alot of game stuff and it uses alot of pictures..

I would be interested in one that hides the [img] tag too.

A nice one there luroca! I'm gonna give it a try on my test board.

kadafi_alive
01-04-2006, 07:06 AM
Hmm,

This hack seems to be hiding links downloaded from usenet to all usergroups. Anyone know how to fix that?

fuldon
01-08-2006, 05:55 AM
Help!!!
Links from unauthorized usergroups are not visible. :(

vB 3.5.2

computer1
01-25-2006, 03:58 PM
I have install this to my board 3.5.3 but I cant se this to the admin page
where can I se this ????

computer1
01-25-2006, 04:11 PM
I can se that nowe but when I coming to the forum like guest I can se all
the links howe can I fix this ???
lok here you can se that

http://forum.wrestlingsidan.se/showthread.php?t=36

Wildthinks
01-27-2006, 07:36 AM
Hi,

can you please to add a specify forum feature?
Means, that only in this forum the usergroup dont see the links. in all other forums links are allowed and ok.

Thank you
Thomas :rolleyes:

Zia
01-30-2006, 04:55 PM
it sounds nice...
doest it works on Pm too??
un-authories user cant link even in pm now....only the authoried links can be seen in post+pm??

Thankx

luroca
01-30-2006, 06:32 PM
can you please to add a specify forum feature?I am very busy now, but this feature can be added easily.
doest it works on Pm too??No, sorry, it doesn?t work in PM.

Regards

Zia
01-31-2006, 06:08 AM
oh it would be nice...if it works on PM...spamer will fall in deep shit..

thnx man

NeutralizeR
02-03-2006, 03:55 AM
There is a serious bug.

If a member posts a message with a link then he's deleted (account), this plugin won't let you to see the link. No matter if you are registered or admin...

I need a solution for this. Because i have more than 500-600 posts which belong to deleted users.

You should add a conditional like "if userid=0" or smth similar, not sure...

Waiting for an update...

bashy
02-17-2006, 09:48 PM
Hi

I do not like the Phrase Paid Subscribers....
I have tried to change this using the phrase manager but it does not
change... Please can you let me know how to change this????

EDIT: I have edited the product, was the only way and now its just how i want it, thanks :)

luroca
02-18-2006, 10:38 AM
There is a serious bugWell, it?s not a bug for me. I don?t delete users with posts.

Greetings

fuldon
02-19-2006, 04:06 AM
luroca
Please, help!

https://vborg.vbsupport.ru/showpost.php?p=867756&postcount=30

luroca
02-19-2006, 02:24 PM
Links from unauthorized usergroups are not visible. :(Yes, it?s what this hack does.
Links of not allowed usegroups are hidden for all usergroups in post

mefromspace
04-04-2006, 09:07 AM
Is this one working for 3.5.4 or only for older version 3.5.1 ?

What about all the questions that users have posted unanswered regarding their errors.....is the plugin dead or?

luroca
04-07-2006, 02:45 PM
Hello, this hack is working well in 3.5.4. About the errors, I don´t see that errors, as I say, it´s working ok for me.
And finally, this hack is unsuported, it´s as it is, sorry.

Regards

johon
06-08-2006, 06:19 PM
The hack works fine for me in 3.5.4 until I switch to PHP5, then there occurs the error message: Fatal error: Using $this when not in object context in /is/htdocs/wpXXXXXX_BGAGMANCCP/www/newreply.php(818) : eval()'d code on line 3

When I switch back to PHP4, everything works fine.

Any suggestions?

Thanks

JoHon

theguywhoknowz
06-10-2006, 06:48 AM
Found a bug, if a guest reply to a post with link using [quote] all links will show up.

Test from Maternity.com (http://www.maternity.com)

Razasharp
06-25-2006, 01:22 PM
Is there possible to get a stripped down version of this please?

Just:

Logged-in-users = can see links
Guests = can't see links

Just so it's more streamlined for people who run big boards :)

Razasharp
07-14-2006, 11:10 AM
How about the calendar? Any chance it can stop those links showing too?

Hemanth
07-17-2006, 04:48 AM
Got a bug. I don't know it can be fixed. The issue is the links in the Posts of Deleted Users are not visible for any usergroups.

Take a look at the link posted by the deleted user in the first post here (http://www.techtalkz.com/mobile-softwares/701-sms-guard-password-protect-your-sms-messages.html)

It's invisible to all the users!

Please fix it.

Razasharp
08-03-2006, 11:54 PM
Has anyone tested this on 3.6 yet?

Watched
08-08-2006, 05:34 AM
i HAD this hack working beautifully on 3.5.4, all of a sudden stopped working and was hiding links from ALL usergroups. disabled/re-enabled.. no luck.. uninstalled, reinstalled.. no luck.. so i finally gave up and pulled the plug.. installed hide links from guests as a plugin .. works great. now if i could only make it work for multiple usergroups.

tm21
08-14-2006, 04:31 PM
I am getting a lot of links seemingly at random that are not being displayed to anyone, including admins. I have this installed on vb 3.5.4, and I have used it for some time now. I really enjoy it, but the random denial of links is getting annoying. Does anyone have a fix?

Watched
08-18-2006, 06:40 AM
i had the same problem.. so i said ta heck w/ it and simply blocked out links for guests w/ the hack listed above. nice hack.. but needs updating/fixing before i'll use it again.

7annoosh
04-23-2007, 04:15 AM
its working on version 3.6.5.. but it doesn't give an error message for unregistered users, it just hides the links

Razasharp
10-30-2008, 03:49 PM
Does this hack work with post caching at all? Or does it turn it off?

I remember installing a hide links from guests hack a while ago and it slowed down the board a lot - so I uninstalled it, not sure if it was this one though :-/

Razasharp
11-04-2008, 03:12 PM
Anyone?

Vaupell
01-29-2009, 09:32 AM
great mod,
just testet for 3.8.1 unfortunally didnt work..

installs fine and settings etc is there, just dont have an actual effect.

tele955848
08-06-2012, 05:40 PM
Bringt nur ne Fehlermeldung -.-
Fatal error: Using when not in object context in /www/htdocs/w0xxxx1/forum/newreply.php(1086) : eval()'d code on line 17

Wieder gelöscht