News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Anonymize Links

Started by M-DVD, August 12, 2007, 12:27:48 PM

Previous topic - Next topic

mzeblu

I've got this same error.  Does anyone know why this is happening?

Quote from: AllMassive on September 02, 2007, 06:15:04 PM
Hi - i've got some errors with v1.1 and smf 1.1.3:

First Error:
8: Undefined index: host
Datei: /web/forum/Sources/Subs.php
Zeile: 2558


My Line 2558:
$parsed = $temp['host'];

karlbenson

I need to know a couple of things.

1) The topic/link on your forum where it is occuring (so I can take a look at content which maybe causing it)
2) To be able to view the links in that topic/post that could be causing it.

mzeblu

Hi, if you are referencing my post, It appears when I simply go to the index page.
I am not psting anything or typing a link anywhere.
The simple action of going from the ACP to the main page of the forum caused this error.

// GET THE BASE OF THE DOMAIN/IP (CAN'T USE COMPONENT AS ONLY PHP5 SUPPORTED) :(
               $temp = parse_url($link);
               $parsed = $temp['host'];
               // ANONYMISER
               $anonymiser = ($modSettings['anonymchooseanonymiser'] == 'random') ? $a[array_rand($a,1)] : $modSettings['anonymchooseanonymiser'];
               


Quote from: karlbenson on September 17, 2007, 09:02:21 PM
I need to know a couple of things.

1) The topic/link on your forum where it is occuring (so I can take a look at content which maybe causing it)
2) To be able to view the links in that topic/post that could be causing it.

metallica48423

i get the same error on a fresh install of 1.1.3
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

karlbenson

I've installed clean installs of 1.1.3 and 1.1.4 and I can't get this error to appear.
I've also tried it on my latest 5.2.1 version of php.
(as well as my normal 5.1.3)

Can I ask what version of php you guys are running it on?

owvvwo

i found one error;
[URL=http://"http://www.asdf.com/asdf"] asdfafd[/URL]

i used this url code. this url redirected with double with  http:// prefix
example: http://anonym.to/?http://"http://www.asdf.com/asdf"

karlbenson

#46
I may need to try to determine a valid url.
I need to make it 'idiot' proof for users who put crappy urls between url tags like the above.

Thanks for posting owvvwo.

The mod will never 'fix' crappy urls. its just whether we want bad urls to be anonymized or not.

WH33LS

i'd hate to waste your time

but i'm a complete noob with mods and i don't wanna f*ck up my forum,

my forum is on Domain.com/forum
would i paste these files in the main forum folder? or is there a certain folder i need to paste them in?

thanks in advance for any help and it's greatly appreciated

karlbenson

you install mods via the package manager.

WH33LS

cool, i didn't realize it was that easy

thank you for your time and i got it working

great mod

slackerpunk

any news on the forum specific option?

karlbenson

I'm still busy with finishing other incomplete mods rather than improving current ones.

It will probably be around 2.0 public release time that this mod gets updated.

shatter

Quote from: AllMassive on September 02, 2007, 06:15:04 PM
Hi - i've got some errors with v1.1 and smf 1.1.3:

First Error:
8: Undefined offset: -1

Second Error:
8: Undefined index: host

i'm using smf 1.1.4 and i also get those errors, however i noticed that if i turn on "Anonym.to YOUR subdomain links?" the first error goes away. i'm still left with the second error however.


the other problem i'm noticing is with email addresses. hxxp:anonym.to [nonactive] is also being added to mailto links as well, which when you click on it you get a browser warning that you're trying to log on to the email domain. does anyone have any idea how to fix this?

thank you

karlbenson

That is a bug.
I'll try to get it fixed asap.

I don't think it will be easy to fix either bug and may take me some time to re-write it.
Please bear with me, hopefully by the end of the weekend I'll have it fixed.  I am at the moment bug fixing lots of my mods and this is ON the list already.

shatter

thanks a lot. wish i could help out in some way, but unfortunately i'm a php newbie..

oh yeah, i wanted to suggest hxxp:hiderefer.com [nonactive] as an anonymizer. they have a simple and clean redirection page.

karlbenson

I'll look at it when i bug fix.
thx.

slackerpunk

can't wait for 2.0 for this mod hehe

karlbenson

Indeed, I will look to have a fixed version very soon.

However at the moment I have yet to find an alternative to using the php function parse_url which is the cause of the problem.

pcspecialist

#58
When viewing a post as a guest and then logging in (post still visible) the following error is logged:

8: Undefined index: host
File: /home/suhs84/public_html/forums/Sources/Subs.php
Line: 2413

Line 2413 is as follows:
$parsed = $temp['host'];


Also but no big deal, version 1.3 is listed as 1.2 in the package manager

darkNiGHTS

This saves me so much time, you're awesome!  Before we had to code all of our links, but now we don't have to worry about that.

Advertisement: