(2012-04-19, 02:34 PM)gronafingrar Wrote: [ -> ]The function to exclude some urls from SafeLink is not working on my forum. I use latest version of Mybb.
The url I've tried with is youtube.com
What is the error? Is it still linking to the safelink page even though you've excluded it?
If that's the case then you need to make sure that the exact base URL of the site you want to exclude is on the list. Meaning you need to type
http://youtube.com into the list. Not
http://www.youtube.com or just
www.youtube.com.
Why not use this:
$message = str_ireplace('href="', "href=\"/safelink.php?url=", $message);
Instead of:
$message = str_ireplace('<a href="http://', "<a href=\"".$mybb->settings['bburl']."/safelink.php?url=http://", $message);
$message = str_ireplace('<a href="https://', "<a href=\"".$mybb->settings['bburl']."/safelink.php?url=https://", $message);
$message = str_ireplace('<a href="ftp://', "<a href=\"".$mybb->settings['bburl']."/safelink.php?url=ftp://", $message);
$message = str_ireplace('<a href="file://', "<a href=\"".$mybb->settings['bburl']."/safelink.php?url=file://", $message);
At least I had to change the code to this since my forum is forcing the connection to be ssl only.
(2012-04-22, 03:10 PM)gronafingrar Wrote: [ -> ]Why not use this:
$message = str_ireplace('href="', "href=\"/safelink.php?url=", $message);
Instead of:
$message = str_ireplace('<a href="http://', "<a href=\"".$mybb->settings['bburl']."/safelink.php?url=http://", $message);
$message = str_ireplace('<a href="https://', "<a href=\"".$mybb->settings['bburl']."/safelink.php?url=https://", $message);
$message = str_ireplace('<a href="ftp://', "<a href=\"".$mybb->settings['bburl']."/safelink.php?url=ftp://", $message);
$message = str_ireplace('<a href="file://', "<a href=\"".$mybb->settings['bburl']."/safelink.php?url=file://", $message);
At least I had to change the code to this since my forum is forcing the connection to be ssl only.
Either way works, I just happened to choose the second route. I still don't follow where your problem is with the plugin.
I want the users to be auto redirected within 5 seconds.
Is that possible?
thank you
i have this error
Type: 2
File: safelink.php (Line no. 45)
Message
preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: nothing to repeat at offset 1
and
Type: 2
File: safelink.php (Line no. 52)
Message
Cannot modify header information - headers already sent by (output started at /home/gar/public_html/forum/inc/class_error.php:213)
(2012-11-27, 02:40 AM)ahmedengu Wrote: [ -> ]thank you
i have this error
Type: 2
File: safelink.php (Line no. 45)
Message
preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Compilation failed: nothing to repeat at offset 1
and
Type: 2
File: safelink.php (Line no. 52)
Message
Cannot modify header information - headers already sent by (output started at /home/gar/public_html/forum/inc/class_error.php:213)
Did you modify the plugin or something? Because I have no idea how you got that error otherwise.
Hi there
We're experiencing the following Problem. Safelink is installed - all Settings are done but it doesn't work. While clicking a Link you will be taking to the Page the Link is referring too, but it doesn't show the Warnung.
Any Suggestion on how to get this fixed ??
(2012-12-13, 10:36 AM)XTrian Wrote: [ -> ]Hi there
We're experiencing the following Problem. Safelink is installed - all Settings are done but it doesn't work. While clicking a Link you will be taking to the Page the Link is referring too, but it doesn't show the Warnung.
Any Suggestion on how to get this fixed ??
Well I was checking your site and manually entering links into safelink.php and it appears to be working fine. I think you might've messed up your forum settings or your usergroup settings.