Thread Rating:
  • 9 Vote(s) - 3.78 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] MyBB SafeLink 1.3.4
#41
(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.
My Plugins: [1.8]|[1.6]

** Selling custom plugin that enables Bitcoin payments. PM me if interested in purchasing! **
Reply
#42
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.
Reply
#43
(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.
My Plugins: [1.8]|[1.6]

** Selling custom plugin that enables Bitcoin payments. PM me if interested in purchasing! **
Reply
#44
I want the users to be auto redirected within 5 seconds.
Is that possible?
Reply
#45
(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.
My Plugins: [1.8]|[1.6]

** Selling custom plugin that enables Bitcoin payments. PM me if interested in purchasing! **
Reply
#46
This user has been denied support. This user has been denied support.
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)
Reply
#47
(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.
My Plugins: [1.8]|[1.6]

** Selling custom plugin that enables Bitcoin payments. PM me if interested in purchasing! **
Reply
#48
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 ??
Reply
#49
(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.
My Plugins: [1.8]|[1.6]

** Selling custom plugin that enables Bitcoin payments. PM me if interested in purchasing! **
Reply
#50
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)