Home arrow Forum Latest posts of: Patrick Johnson
  Welcome, Guest. Please login or register.
Did you miss your activation email?
January 09, 2009, 01:38:58 AM
Home New Posts Search Calendar


Login with username, password and session length
  Show Posts
Pages: [1] 2 3
1  Joomla Hacks / Joomla-SMF 1.1.x / Re: Should discussbot respect $hide_js ?? on: February 26, 2007, 09:03:29 AM
Hi Wolverine,

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:

Code:
$hide_js = intval( mosGetParam( $_REQUEST, 'hide_js', null ) );

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.

Thanks again for all your hard work,
Patrick

http://www.ElectronicDesignNet.com

2  Joomla Hacks / Joomla-SMF 2.0.x / Best upgrade from JSMF 2.0RC1? on: February 25, 2007, 03:41:57 PM
Hi,

I am (finally) getting to upgrading:

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,
Patrick
3  Joomla Hacks / Joomla-SMF 2.0.x / Re: Sync after import? on: January 30, 2007, 10:02:27 AM
Wolverine,

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.

(Thank heavens).

Best regards,
Patrick
4  Joomla Hacks / Joomla-SMF 2.0.x / Re: Sync after import? on: January 30, 2007, 08:50:37 AM
PS

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.
5  Joomla Hacks / Joomla-SMF 2.0.x / Sync after import? on: January 30, 2007, 06:28:08 AM
Hi,

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.

Thanks,
Patrick
6  Joomla Hacks / Joomla-SMF 1.1.x / Re: Should discussbot respect $hide_js ?? on: December 26, 2006, 07:46:32 PM
Yes.  I believe so.

It's comparable to the behavior of the "Print" icon, which hides itself if $hide_js is true.

Thank you and happy new year,
Patrick
7  Joomla Hacks / Joomla-SMF 1.1.x / Re: Should discussbot respect $hide_js ?? on: December 21, 2006, 12:48:05 PM
The only problem will be that the {mos_smf_discussbot} token will be visible when $hide_js is on.  But it will not generate JavaScript.

The updated patch gets rid of the token.

Sorry,
Patrick
8  Joomla Hacks / Joomla-SMF 1.1.x / Re: Should discussbot respect $hide_js ?? on: December 21, 2006, 12:21:12 PM
Quote
so the purpose here would be to hide the discussbot when $hide_js is enabled?

Yes.  That's the easiest way.

I did not look into changing discussbot to generate a link without JavaScript.

The problem is that the page is being read in an eMail client (i.e. no JavaScript, so the link won't work).

The second part of the patch is a little different with mos_smf_discussbot.php 52 2006-09-30 02:11:04Z:

On line 124 change:

Code:
if (strcasecmp($mos_smf_discuss_match, "no_discuss") == 0) {
to:

Code:
global $hide_js;
if( $hide_js
|| (strcasecmp( $mos_smf_discuss_match, "no_discuss" ) == 0 ) ) {

Thanks (... and Happy Holidays!),
Patrick
9  Joomla Hacks / Joomla-SMF 2.0.x / Re: Logged out from SMF but not J! on: November 02, 2006, 02:50:11 PM
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 ?

Thanks again,
Patrick
10  Joomla Hacks / Joomla-SMF 2.0.x / Logged out from SMF but not J! on: November 02, 2006, 01:53:15 PM
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).

Thanks,
Patrick

JSMF 2.0RC1
J! 1.0.11
SMF 1.1RC3
CB 1.0.1
Registration: J!
Login: J!
mod_cblogin: 1.0.1
JSMF mod_smf_login: no



The live site is at http://www.electronicdesignnet.com

(There is a test/staging site at /stage/cms.)

11  Joomla Hacks / Joomla-SMF 2.0.x / Upgrading JSMF code vs. reinstalling on: October 25, 2006, 08:53:52 AM
Hi Wolverine,

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 ?

Many thanks,
Patrick Johnson

12  Joomla Hacks / Joomla-SMF 2.0.x / Re: Joomap plugin shows no topics if time is missing on: October 23, 2006, 01:17:19 PM
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.

Thanks,
Patrick
13  Joomla Hacks / Joomla-SMF 2.0.x / Joomap plugin shows no topics if time is missing on: October 22, 2006, 11:49:22 PM
Hi,

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}";
}
}

Thanks,
Patrick
14  Joomla Hacks / Joomla-SMF 1.1.x / Re: Login question on: October 10, 2006, 05:10:19 PM
Wolverine,

Thanks much for the info, and for all of your excellent work on JSMF.

I will plan on going to 2.0 as soon as it is released.  (Any thoughts on time frame?  If it is more than a week away, I will go to 2.0RC1 first.)

Thanks again,
Patrick
15  Joomla Hacks / Joomla-SMF 1.1.x / Re: Login question on: October 10, 2006, 09:36:44 AM
The CB2.0 plugin wouldn't work with JSMF 1.1.4.2, right ?

So, I will need to upgrade the main JSMF component to 2.0RC1, right ?

Would you say that at this point it is comparable to 1.1.4.2 in terms of stability ?

Thanks,
Patrick
Pages: [1] 2 3


Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

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
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login