Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 31)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

(SOLVED) Friendly URLS problem

16 years 10 months ago #56620 by epimetheus
Replied by epimetheus on topic Re:Friendly URLS problem
Hi again,
I have done two side by side installations for you. Both are Joomla 1.5.1 Dutch on a Windows Wampserver environment with PHP 5 and Apache 2.
Both installs use seperate MySQL databases and are completely clean installs. No errors, no messages and everything works. I loaded the sample content. And added nothing myself. The only thing I did was adjust the left user menu and adjust the login and logout redirection urls for the CB_login module in the \joomla\ directory installation.
I generated the code by changing the value for search engine friendly urls in the Administrator module and hitting F5 in the browser window that contained the homepage.
First the code that is generated bij the Joomla config in the root with engine friendly url's switched off:
Link used is: http://192.168.1.102/
Generated code (from page source in Firefox):
<link rel="stylesheet" href="http://192.168.1.102/components/com_uddeim/templates/monorange/css/uddemodule.css" type="text/css" />
<div id='uddeim-modulenew'>
<p class='uddeim-module-head'>
<a href='http://192.168.1.102/index.php?option=com_uddeim&amp;task=inbox'>Privé Berichten
<a href='http://192.168.1.102/index.php?option=com_uddeim&amp;task=inbox'>
</p>
<p class='uddeim-module-row'>uddeIM <a href='http://192.168.1.102/index.php?option=com_uddeim&amp;Itemid=&amp;task=show&amp;messageid=1'>Welkom bij...
</p>
</div>

When I switch on the url's this becomes:
<link rel="stylesheet" href="http://192.168.1.102/components/com_uddeim/templates/monorange/css/uddemodule.css" type="text/css" />
<div id='uddeim-modulenew'>
<p class='uddeim-module-head'>
<a href='http://192.168.1.102/index.php/component/uddeim/?task=inbox'>Privé Berichten
<a href='http://192.168.1.102/index.php/component/uddeim/?task=inbox'>
</p>
<p class='uddeim-module-row'>uddeIM <a href='http://192.168.1.102/index.php/?task=show&amp;messageid=1'>Welkom bij...
</p>
</div>

Both code snippets for the link at http://192.168.1.102/joomla/ are as follows:

<link rel="stylesheet" href="http://192.168.1.102/joomla/components/com_uddeim/templates/monorange/css/uddemodule.css" type="text/css" />
<div id='uddeim-modulenew'>
<p class='uddeim-module-head'>
<a href='http://192.168.1.102/joomla/index.php?option=com_uddeim&amp;task=inbox'>Privé Berichten
<a href='http://192.168.1.102/joomla/index.php?option=com_uddeim&amp;task=inbox'>
</p>
<p class='uddeim-module-row'>uddeIM <a href='http://192.168.1.102/joomla/index.php?option=com_uddeim&amp;Itemid=&amp;task=show&amp;messageid=1'>Welkom bij...
</p>
</div>


<link rel="stylesheet" href="http://192.168.1.102/joomla/components/com_uddeim/templates/monorange/css/uddemodule.css" type="text/css" />
<div id='uddeim-modulenew'>
<p class='uddeim-module-head'>
<a href='http://192.168.1.102/joomla/index.php/component/uddeim/?task=inbox'>Privé Berichten
<a href='http://192.168.1.102/joomla/index.php/component/uddeim/?task=inbox'>
</p>
<p class='uddeim-module-row'>uddeIM <a href='http://192.168.1.102/joomla/index.php/?task=show&amp;messageid=1'>Welkom bij...
</p>
</div>

What I see is identical behaviour independent of the actual location of the Joomla site.

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 10 months ago #56623 by slabbi
Replied by slabbi on topic Re:Friendly URLS problem
Hi,

great, thanks. Thats helps a lot. It seems that the problem is definitely the missing Itemid:

[code:1]href='http://192.168.1.102/index.php?option=com_uddeim&Itemid=&task=show&messageid=1'>Welkom[/code:1]

I will check the code.

Have you created a menu link for the component (it must not be published but must exists since the module needs the database entry to get the correct Itemid)?

Afaik this is the problem.

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

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 10 months ago #56624 by slabbi
Replied by slabbi on topic Re:Friendly URLS problem
A hotfix could be:

Replace line 222 (line contains $pms_show with

[code:1]$pms_show = sefRelToAbs("index.php?option=com_uddeim".($item_id ? "&Itemid=".$item_id : ""«»)."&task=show&messageid=".$themessage->id);
[/code:1]

or try mod_uddeim from the trunk, it contains two additional minor bugfixes.

This suppresses Itemid when the Id is 0 but when you have created a menu link this should never happen.

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

Please Log in or Create an account to join the conversation.

16 years 10 months ago #56632 by epimetheus
Replied by epimetheus on topic Re:Friendly URLS problem
I think I have found it.
It's an RTFM problem. Or actually, a slight misinterpretation on my side of the CB_PMS_INTEGRATION.pdf manual.
On page 14 it says (warning) that you need a published menu item for uddeIM for the itemids to get generated properly. When you read this litterally, it says MENU item. So, if you add uddeIM to the user menu (which I did not), it works. Reason is that adding uddeIM to a menu means that you add an alias for the item, and that (apparently) is used for the search engine friendly urls.
I misinterpreted the manual, because I thought that putting the uddeIM mailbox as a module on the frontpage was the same as 'publishing' it. It obviously is not. And the fact that everything worked without search engine friendly urls also did not help, of course.

Sorry for the trouble I caused. And thanks for your patience!
But it has given me an indepth understanding of how the searchengine friendly urls actually work, and how you can manipulate them (by using tha aliases that is).

PS. I work in a techsupport department myself, and I can't even remember how often I have told people to read the manual first. And now it's my turn...

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 10 months ago #56649 by slabbi
Replied by slabbi on topic Re:Friendly URLS problem
slabbi wrote:

Have you created a menu link for the component (it must not be published but must exists since the module needs the database entry to get the correct Itemid)?


This is exactly what I have written some posts above ;)

Its not RTFM only but also RTFP :P

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

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum