MyBB Community Forums

Full Version: MyBB SafeLink 1.3.4
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
(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?
(2012-10-14, 05:30 PM)iMichael Wrote: [ -> ]I want the users to be auto redirected within 5 seconds.
Is that possible?

I've replied to your PM.
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.
Hi,
If I copy a "safelinked" link, and past it in a new post, the link is "safelinked" an other time.

For instance:

I copy this link:
Quote:http://localhost/safelink.php?url=http:/....4.1.0.zip

I past it in a new post, I get:

Quote:http://localhost/safelink.php?url=http:/....4.1.0.zip

That link when clicked is converted in the address bar to:

Quote:http://localhost/http://www.quest-app.ap....4.1.0.zip

And gives a page with this error:

Quote:Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14