Any plans?

CommentFileSizeAuthor
#5 ext_link_page.zip9.92 KBbatbug2

Comments

zzolo’s picture

Sure. It should be pretty simple. It may take a few weeks before I have the time to do it, though.

batbug2’s picture

Well, i guess i'd have to convert it myself since i need it asap...

batbug2’s picture

ok, it was not too hard so i have somewhat converted it for myself. i have cut out the admin page because i don't really need it. therefore all values are hardcoded in the module. i can share my version if anyone is interested, just don't wont to publish it here because it is not complete port.

zzolo’s picture

@batbug2

It would be helpful for myself and anyone that needs a D6 port of it, even if it is not a complete port. You can just attach attach it here.

batbug2’s picture

StatusFileSize
new9.92 KB

Ok, here it is. Complete module for 6.x.
Few notes:
As I said earlier, there is no admin page now, because I'm not really sure what is different in hook_form in 6.x so I have omitted it and all values are hardcoded. You can check them at the end of .module file.
All I had to change was hook_menu, and url() function. Aside from that, I think, there was nothing more to do.

There is still one bug remained from 5.x version that I should mention, because I don't know how to fix it myself: this module incorrectly converts the following type of links

http://bizmama.ru/index.php?option=com_content&view=article&id=46:2008-0...

Thought it correctly converts it in hook_filter, printing out the link like this:
http://yousite.ru/out?url=http://bizmama.ru/index.php?option=com_content...

The actual link it is trying to redirect to is http://bizmama.ru/index.php?option=com_content

Obviously this is because of the & character, but as I said, I don't really know how to fix it because I'm not really good at regular expressions.

zzolo’s picture

@batbug2

Awesome! Thank you! Time is still limited but I will try to get to this soon. Yeah, regular expressions have always been a low point of mine as well. Thanks again.

--
zzolo

zzolo’s picture

Assigned: Unassigned » zzolo
Status: Active » Fixed

Done and done. Thanks batbug2. I ported everything. So the admin settings are working. I also cleaned up the code and made things a little more simpler.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.