we do leave the table on uninstall, I followed the process used by CB and others. Simply on install we first find out if the table exists, if so we get the itemid and reg code from the previous install. The itemid is saved to the table on the first click of save in the JSMF administration. We then drop the previous table and create a new table using the defaults and the two items retrieved from the old table.
I suppose if the default menu item created by the bridge is not being used then it might be possible that the Itemid is not saved, or the saved Itemid is not correct.
and what is the "default" menuitem, the one with id 154? it's always that number my only menuitem is the one with id 140 and is a component-type link like the one that gets automaticly created. So the only menuitem it must retrieve would be in my place the one witrh id 140, probaply this does not happen and all the things gets deleted :s
If not previously set. If you want to truly test your link, go in and modify the table and set it manually. Then uninstall and reinstall the bridge. That would be the correct test. I suspect the table has the wrong Itemid(154) and since it persists across installs, it keeps using that Itemid.
let's look what happens uninstal, the xml installation file is being read, uninstall query states: <query>DELETE FROM `#__menu` WHERE link="index.php?option=com_smf"</query> so my menuitem is deleted when looking in install.smf.php: $query = "INSERT INTO #__menu " . "( menutype, name, link, type, published, parent, componentid, sublevel, ordering, checked_out, checked_out_time, pollid, browserNav, access, utaccess ) " . "VALUES ('mainmenu', '"._JSMF_FORUM_LINK."', 'index.php?option=com_smf', 'components', 1, 0, 9999, 0, 8, 0, '0000-00-00 00:00:00', 0, 0, 0, 3)"; a new one is being created (i see it's being executed: $database->query()
and then we are going to look if there is an existing menuitem, verry nice, it's already deleted! The new one has indeed being input by the insert query, a new itemid has appeared so it takes an itemid that was not the one that it realy was before because it always gets deleted by uninstalling...
after that the table of JSMF gets the new id also...
Wolverine - excellent work as usual and it has solved a few of the problems I was having but I am still having a couple of issues - maybe they are my issues, or Joomla issues or maybe they are the bridge, I dont know.
1. When logged in as admin and viewing the forum in wrapped mode, I click on the SMF ADMIN link (<site>/index.php?option=com_smf&Itemid=299&action=admin) and that address always seems to take me to the password page which is unwrapped. (Previously I only got this on my first visit to admin area, subsequent visits brought admin area up wrapped inside joomla).
Bearing in mind that you mentioned there were issues regarding the integration of the bridge with joomla or the syncing of info between them if the forum is unwrapped this gives me a problem as I cant get it to load. After entering my password, the page that loads has the address <site>/<forum dir>/index.php?option=com_smf;Itemid=299;action=admin. If I manually remove the forum directory portion of the address Joomla tells me the page does not exist.
2. If I try to sync by username in the admin or 'verify', I get the same inserted / failed message (see screenshots) and the main component config changes back to show that 'synchronise' usernames is disabled
« Last Edit: September 15, 2006, 11:58:03 AM by HighlanderICT »
1. When logged in as admin and viewing the forum in wrapped mode, I click on the SMF ADMIN link (<site>/index.php?option=com_smf&Itemid=299&action=admin) and that address always seems to take me to the password page which is unwrapped. (Previously I only got this on my first visit to admin area, subsequent visits brought admin area up wrapped inside joomla).
Bearing in mind that you mentioned there were issues regarding the integration of the bridge with joomla or the syncing of info between them if the forum is unwrapped this gives me a problem as I cant get it to load. After entering my password, the page that loads has the address <site>/<forum dir>/index.php?option=com_smf;Itemid=299;action=admin. If I manually remove the forum directory portion of the address Joomla tells me the page does not exist.
In the old version my recommendation was to either disabled the admin security check or logout and log back in then go immediately to SMF admin. Both of these will have the effect of keeping your forums wrapped and allowing you into SMF admin. The URL you posted is invalid if you remove the forums part, it is close to a valid URL but not quite. The redirect link comes from SMF so I don't have any control over it at this point, so there is no solution on the horizon just yet.
2. If I try to sync by username in the admin or 'verify', I get the same inserted / failed message (see screenshots) and the main component config changes back to show that 'synchronise' usernames is disabled
Yes, I forgot to address this problem as I mentioned in a previous message. I will be looking to resolve this soon.
Somehow, unistall process always left me admin component parts into administrator/components ! Removed manually and reinstalled successfully.
Now i'm tryong to install all stuff into the zip file:)
Only thing weird wight now is that I have perform synch successfully but i can't login into joomla (frontend) with admin forum account meanwhile the viceversa works perfectly.
I'll keep you all in touch and I'll annoy you asap with something else ;-)
If a redirect url is available the bridge will redirect back to the page where the user logged in or out. If it is not the bridge will fall back to the setting of on login and on logout redirect configurations in the JSMF administration.
Search is the first thing that will be added after JSMF 2.0 full release.
When in the installation istructions "Uninstall all previous versions of modules/mambots/plugins" do you mean those realted to JSMF or are you saying that ALL modules/mambots/plugins need to be deleted out of Joomla?
Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use