Hello,
please I am really desperate. I badly need to disable url parsing in forums. I mean to disable all url/hyper link that boards converts into clickable links e.g. if i write
http://www.google.com board makes active link and i need just a text (passive
).
Is there any option to disable this in administration? I found none... :/
I have even tried to use nolinks, noparse plugins but it does not work. I have found discussion about this problem in 1.2.x support forum, but suggestion posted there cant help bacause files have changed in actual release.
Please can anyone help me?
Thanks
Doesn't the WYSIWYG plug-in have a "remove hyperlink" feature??
(2008-10-16, 08:15 AM)Baldilocks Wrote: [ -> ]Doesn't the WYSIWYG plug-in have a "remove hyperlink" feature??
Probably, but what about current links posted??
Well, until another solution is found, you can stay up until 4am and edit every post.
yes exactly i want it just in post, while for example some user just paste some text with url address, board converts it into hyperlink.
Yes remove hyperlink feature if fine but i need to remove all links in all recent posts
and of course i need posting to be some kind dumb-free
I need remove all hyperlinks in past and of course in future automaticaly..
(2008-10-16, 08:22 AM)Baldilocks Wrote: [ -> ]Well, until another solution is found, you can stay up until 4am and edit every post.
Out of curiosity, why do you want to stop them??
(2008-10-16, 08:24 AM)Matt_ Wrote: [ -> ] (2008-10-16, 08:22 AM)Baldilocks Wrote: [ -> ]Well, until another solution is found, you can stay up until 4am and edit every post.
Out of curiosity, why do you want to stop them??
I don't.
(I know you are asking the OP.)
Here's a crazy suggestion... you need to edit the source code files, in particular, edit ./inc/class_parser.php (any text editor is good enough). Circa line 835, find
$link = "<a href=\"$fullurl\" target=\"_blank\">$name</a>";
This is where the [url] is parsed into a hyperlink. You can do a mulitude of things with this. If you want it so everyone doesn't have URLs, simple change this line to
$link = $fullurl;
You can also do it so that it is only guests who don't have hyperlinks, and only your members can have them. Change the line to
if($mybb->user['uid'] != 0){
$link = "<a href=\"$fullurl\" target=\"_blank\">$name</a>";
}else{ $link = $fullurl; }
Or limit it to usergroups - change the line to
if($mybb->user['usergroup'] == 4 || $mybb->user['usergroup'] == 5){
$link = "<a href=\"$fullurl\" target=\"_blank\">$name</a>";
}else{ $link = $fullurl; }
adding or replacing the usergroup numbers. In the example above, only admins and moderators on my board would have hyperlinks.
Using $fullurl in the code means that they'll see
http://google.com but it won't be a hyperlink. Using $name instead of this will give you what they put inbetween the url tags.
Hope this helps!
the goal is to not allow to send refferers to linked sites and force the users to just copy&paste link into their web browser
that is "why"