mod_uddeim url problem(+Fix)

16 years 2 months ago #55869 by Machiel
mod_uddeim url problem(+Fix) was created by Machiel
Hello,

I found a bug in mod_uddeim.

When using dhtml boxes(floating and regular) the link you get to view your inbox isn't right.

The link contains 2 times my domain.

It could have to do with the fact that my joomla installation isn't in the root directory of my site. So I don't know if the problem also occurs when your joomla installation is in the home directory. Maybe someone could verify this.


You can find a fix below:
Find on line 299:
[code:1]$link = '<a href="'.sefRelToAbs($pms_link).'"><div style="text-align: justify; padding: 2px 5px; font-size: 13px; font-family: Arial; width: 250px; background-color: #FFFFFF; color: #000000;">'.$message.'</div></a>';[/code:1]
Replace with:
[code:1]$link = '<a href="' .$pms_link. '"><div style="text-align: justify; padding: 2px 5px; font-size: 13px; font-family: Arial; width: 250px; background-color: #FFFFFF; color: #000000;">'.$message.'</div></a>';[/code:1]


Find on line 321:
[code:1]$link = "<a href='".sefRelToAbs($pms_link)."'>".$message."</a>";[/code:1]
Replace with:
[code:1]$link = "<a href='$pms_link'>".$message."</a>";[/code:1]

from both links sefreltoabs should be removed. $pms_link already has sefreltoabs used so you shouldn't use it again.

Post edited by: slabbi, at: 2008/02/06 21:50

Best Regards
Machiel

CB tester

Please Log in to join the conversation.

16 years 2 months ago #55871 by slabbi
Replied by slabbi on topic Re:mod_uddeim url problem(+Fix)
Confirmed. Thanks!
The fix is correct. I checked it in for uddeIM 1.1.

The problem appears only when your site is not in the root directory.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in to join the conversation.

16 years 2 months ago #55873 by Machiel
Replied by Machiel on topic Re:mod_uddeim url problem(+Fix)
Thanks for conforming it only when it's not in root directory.

Best Regards
Machiel

CB tester

Please Log in to join the conversation.

16 years 1 month ago #57820 by mustaq
Replied by mustaq on topic Re:mod_uddeim url problem(+Fix)
Hi

The problem appears only when your site is not in the root directory.


I have Joomla installed in my root directory and also experienced this issue.

Regards

Please Log in to join the conversation.

16 years 1 month ago #57867 by slabbi
Replied by slabbi on topic Re:mod_uddeim url problem(+Fix)
Fixed in trunk you can get the file from there.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in to join the conversation.

Moderators: beatnantslabbikrileon
Time to create page: 0.210 seconds

Facebook Twitter LinkedIn