Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Aiheen aloitti: Gardian - toukokuu 28, 2006, 07:17:51 AP

Otsikko: Bug 1.1.4 - Form Registration ItemID (Mambo Pathway) + Solution
Kirjoitti: Gardian - toukokuu 28, 2006, 07:17:51 AP
Hi,

I wanted to inform you of a bug I found out.
Once you click on the link in the menu bar you're going to something like "http://yoursite/index.php?option=com_smf&Itemid=45"

But what happens if you change the Itemid to something like 43. Then your mambo pathway doesn't work anymore.

Now about the problem, when i upgrade to older bridge to the new bridge. I deleted the menu link "forum"
(Itemid=43) and created a new one (itemid=45).

But what i forgot was to delete the forum link from the Trash Manager.

Now when I go to the register page from the Bridge Login Form, I got the link from itemid=43.
That gave me automatic that the mambo pathway doesn't work.

The problem is that there are two links of "'index.php?option=com_smf'" in the table {$mosConfig_dbprefix}.
But one is flagged for deleted.

You can solve this just by Empty your menu items in your Trash Manager.
Or you can also fix this by adjusting the code in two files:
/modules/mod_smf_login.php
/component/com_smf_registration/smf_registration.php

In those two files you find a query:
Lainaa$result = mysql_query("
   SELECT id
   FROM {$mosConfig_dbprefix}menu
   WHERE link = 'index.php?option=com_smf'");

If you change that to:
Lainaa$result = mysql_query("
   SELECT id
   FROM {$mosConfig_dbprefix}menu
   WHERE link = 'index.php?option=com_smf'
   AND published = '1'");
Then your problem is solved as well.

Greets,
Arjon
Otsikko: Re: Bug 1.1.4 - Form Registration ItemID (Mambo Pathway) + Solution
Kirjoitti: Kindred - toukokuu 28, 2006, 08:37:25 AP
it's not really a bug...   You just did not follow the instructions.
Every set of instructions that I have written for the bridge tells you to empty your trash.

However... thanks for the suggestion on the code.