phpBB2 Mods Forum Index phpBB2 Mods
A demo forum demonstrating my mods
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   TV GuideTV Guide   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bug with link?

 
 
Post new topic Reply to topic
   phpBB2 Mods Forum Index -> Autolinks [v2.1.4]
View previous topic :: View next topic  
Author Message
femu



Joined: 31 Aug 2006
Posts: 5

PostPosted: Thu Aug 31, 2006 1:16 pm    Post subject: Bug with link? Reply with quote

Hi Marc,

I just installed Autolink 2.1.3. Looks fine so far, but when clicking on an Autolink, I get could not found page from my server. So in the bottom, it shows the correct link, but in the address line of the new window, you will find the link as:

Code:
http://www.die-muellers.org/index?lurl=http%3A%2F%2Fwww.mysqldumper.de&lid=1


Any idea?

EDIT: Just played around a bit. The .php in the link is missing (after the /index). So I just need to know, where I need to change it, that it will appear in the final link ...

EDIT 2: Ok. Th error seems to be in the funktions.php part at this point:

Code:
append_sid(index.$phpEx) . '?lurl=' . urlencode($row[


So the append_sid seems to be wrong ....

EDIT 3 Ok. I fixed it this way (although I'm sure, that it isn't the correct programmers way (and I am no programmer). I replaced above one with following:

Code:
append_sid('index.php') . '?lurl=' . urlencode($row[


This works.


Thanks,
Felix
Back to top
View user's profile Send private message
Afkamm
Site Admin


Joined: 22 Sep 2004
Posts: 568
Location: Scotland

PostPosted: Fri Sep 01, 2006 10:42 am    Post subject: Reply with quote

You know it's weird. You test things and they work, but then when somebody has a problem you test again and it doesn't. Embarassed|-1 Nobody else seems to have this problem, but I've spotted my mistake and fixed it. Very Happy|-1

Code:
#
#----[ OPEN ]-----
#
includes/functions.php

#
#----[ FIND ]-----
#
function obtain_autolink_list(&$orig_autolink, &$replacement_autolink, $forum_id)
{
   global $db, $userdata;

#
#----[ INLINE, FIND ]-----
#
$userdata

#
#----[ AFTER ADD ]-----
#
, $phpEx

#
#----[ FIND ]-----
#
append_sid(index.$phpEx) . '?lurl='

#
#----[ REPLACE WITH ]-----
#
append_sid("index.$phpEx") . '?lurl='

#
#----[ SAVE/CLOSE FILE ]-----
#


Thanks for coming back (several times heh) and posting about the problem and a fix. Cheers. Smile|-1

_________________
Marc Smile|-1
Remember, Google is your friend.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
femu



Joined: 31 Aug 2006
Posts: 5

PostPosted: Fri Sep 01, 2006 1:42 pm    Post subject: Reply with quote

I know Smile|-1 Whatever you do, there's always someone, who found something not working.

So I just played around and checked, how other parts call a program and then found, where the error occures.

So after that I just have to say a great MOD and a good job!


Thanks and have a good upcoming weekend!
Felix
Back to top
View user's profile Send private message
Display posts from previous:   
  Post new topic Reply to topic
   phpBB2 Mods Forum Index -> Autolinks [v2.1.4] All times are GMT + 1 Hour

Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


 


Powered by phpBB © 2001, 2005 phpBB Group