I just upgraded to JSMF 2.0.2, along with a number of other updates.
Thanks very much for the updates. It looks good.
I did find a problem with the mos_smf_discussbot changes to support $hide_js.
Some of the output is generated outside of the function, so you need a test at the head of the file. Also, preg_replace() should be used instead of preg_match_all(). I have attached an updated file with my fix.
Note that in order to use $hide_js with the current J! (now that RegisterGlobals is off), you may need a small hack to $mosConfig_absolute_path . "index.php". I inserted the following at line 75:
You can then see the effects by tacking &hide_js=1 onto the URL. The print icon and its friends, and the discussbot output should all disappear from the page.
JSMF - 2.0RC1 to 2.0.2 (or 2.0.2a if necessary) SMF - 1.1RC3 to 1.1.2 CB - 1.0.1 to 1.0.2 Joomla - 1.0.11 to 1.0.12
Any suggestions on the most efficient way to do the upgrade ? I am assuming I can't use the 2.0+ to 2.0.2 patch, correct ? Do I need to de-install and re-install ?
Also anything to watch out for with the above versions with respect to compatibility ?
Thanks much. It seems to work if I do not try to manually sync after the import. The login logic seems to do whatever is necessary. Not sure why the sync would be an issue, but it's cool now.
Manually turned off smf_members.is_activated for a record, then logged out and in a couple of times as that user. Password hash is changed in smf_members. is_activated gets set to 1.
BUT -- SMF still gives "That username does not exist"
Note that we are trying to import the list as registered, confirmed, approved, etc. i.e. good to go without activation eMail.
I am still running 2.0RC1 (which makes me a bozo, I know). I have an upgrade scheduled for this week. Honest. If the sync stuff has been updated, let me know and I will come back after upgrading. But I'm on a tight schedule and would be interested in any tips.
I am trying to import a large number of registered users. I have a modified version of com_juice that loads them into J! and CB. It seems that they go in OK, and I can log in to J! from a new account and see my profile, etc. I did a JSMF sync after the import, But SMF is still reporting "that username does not exist" when I log in. I looked in smf_members and it looks like the records are there.
One thing I noticed was that the hashed passwords in jos_users and smf_members are the same, which may be the problem, since one is supposed to be md5 and the other sha1. Perhaps this is the issue ? It seems like JSMF would need to have the unhashed password available to create the sha1 when it syncs. Where would it get this ? Perhaps my importer is not setting a field correctly?
Would there be a better way to do the import ? I have done a search of the forum and have not found anything.
I'm planning to go to RC2 asap. I will be putting it up on the staging server for testing today. After a quick test I hope to get it on the live site tomorrow. Thanks very much for the update.
I confess to being a little confused by the various login and registration settings. I have J! login set in JSMF configuration, but I have mod_cblogin published as my only login module. Is that a bug ? Should I set login=CB login in my JSMF config ? I sort of had the impression that JSMF would use J! and J! would use CB ... like I said, I'm probably confused. Now that I said it, it sounds like I should probably set JSMF to CB login. Right ?
I read through the FAQ. It seemed like "remember me" is expected to avoid the SMF logout problem. Did I miss something ?
After leaving myself logged in for a while, then going to the SMF page, SMF says I am not logged in (guest), but I am still logged into Joomla. I have "remember me" set in cblogin.
Is this an error in my setup ? (I'm not completely sure about my registration and login settings).
I just installed 2.0RC1. Congratulations on a great job. It feels solid and is much appreciated.
A while back we had been talking about upgrading vs. reinstalling. At the time I was investigating the possibility of copying in the new .php files without having to remove/reinstall. In cases where the database and the patch logic have not been changed, it seems OK to (very carefully, at my own risk, unsupported, etc.) copy over the new .php and .xml files.
Anyway, you had asked me what work was involved in re-installing, and I couldn't really give you an answer at the time. I took a few notes this time, and can now answer the question. I'm certainly not complaining. This is mostly to document the process, and see if there are any suggestions for making it go more smoothly the next time I have to do it. It also explains why I am willing to consider the manually-copy-in-the-new-files approach where it is appropriate.
I have multiple menus that link to the forum. The menu items must be re-created and relevant parameters set up.
If there are external (hard-coded Itemid=123) links to the forum using menu IDs, I either need to change all of them, or manually tweak the new menu item ids back to the old IDs, and reset the settings in #_jsmf_config.
If I have conflicting local changes to the patched files, I need to remove them, patch via jsmf, and re-edit.
Have to re-install discussbot and reset parameters.
Have to re-create recent_topics modules (in multiple places), and restore module settings.
In the latest re-install, I first reinstalled on a staging server, which made it easier to copy parameter settings to the new version, since the old version was accessible.
Do you have any thoughts on whether 2.0 might be upgradeable from 2.0RC1 with a file copy when it comes out ?
I see your point. I was working with a prelaunch site, where there aren't any "new" messages. I will revert my change when we launch and the forum picks up activity.
If the maximum aging time is not given in the Joomap configuration for the SMF plugin, it does not dump any topics.
Is this the intended operation ?
Change the code as follows to dump ALL topics if the time is not given.
Line 252:
Code:
/* dump all topics if time not given */ if( $jsmfConfig->jm_from ) { if ($jsmfConfig->jm_sticky) { $query .= "\n AND (m.posterTime > {$topics_from} OR t.isSticky = 1)"; } else { $query .= "\n AND m.posterTime > {$topics_from}"; } }
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