Posts: 1,200
Threads: 21
Joined: Jan 2011
Reputation:
59
(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! **
Posts: 8
Threads: 1
Joined: Apr 2012
Reputation:
0
2012-04-22, 03:10 PM
(This post was last modified: 2012-04-22, 03:11 PM by gronafingrar.)
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.
Posts: 1,200
Threads: 21
Joined: Jan 2011
Reputation:
59
(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! **
Posts: 7
Threads: 1
Joined: Oct 2012
Reputation:
0
I want the users to be auto redirected within 5 seconds.
Is that possible?
Posts: 1,200
Threads: 21
Joined: Jan 2011
Reputation:
59
(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! **
Posts: 26
Threads: 7
Joined: Nov 2012
Reputation:
1
2012-11-27, 02:40 AM
(This post was last modified: 2012-11-27, 02:40 AM by ahmedengu.)
 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)
Posts: 1,200
Threads: 21
Joined: Jan 2011
Reputation:
59
(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! **
Posts: 6
Threads: 1
Joined: Sep 2010
Reputation:
0
2012-12-13, 10:36 AM
(This post was last modified: 2012-12-14, 07:45 PM by XTrian.)
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 ??
Posts: 1,200
Threads: 21
Joined: Jan 2011
Reputation:
59
(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! **
Posts: 39
Threads: 12
Joined: Jan 2011
Reputation:
0
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
|