Home arrow Forum JSMF 2.0 RC1 released
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2008, 12:00:02 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 2.0.x (Moderators: -Wolverine, kai920)
| | | |-+  JSMF 2.0 RC1 released
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 ... 4 5 [6] 7 8 Go Down Print
Author Topic: JSMF 2.0 RC1 released  (Read 26402 times)
kenosha
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9



View Profile WWW
Re: JSMF 2.0 RC1 released
« Reply #75 on: October 22, 2006, 12:00:17 PM »

Joomla cuts the returned error message off in the display of it.  Check the URL for that page, the full error message is in the URL.

That was it.  Had a few phantom users that were imported a long time ago from my old Geeklog user-base, some had apostrophe's in their names and there was the problem.  Many thanks. 
Logged

John Nordquist
The Daily Kenoshan
http://dailykenoshan.com
866-816-4081 x 3
kenosha
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 9



View Profile WWW
Re: JSMF 2.0 RC1 released
« Reply #76 on: October 22, 2006, 12:08:19 PM »

There is one more tiny little thing that has changed with RC1. 

The Joomla_SMF_Discussbot in the Betas included the discussbot link on the front page articles, which display only the introtext on my Joomla template setup.  While the link was there, it would not work unless a user viewed the entire story. 

Now, in RC1 the link does not display on the front page and only when the full story is viewed. 

I checked all my settings double to see that it wasn't a switch.  Is this intended, or something I'm missing?

Logged

John Nordquist
The Daily Kenoshan
http://dailykenoshan.com
866-816-4081 x 3
Andrew Morpeth
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 17



View Profile
Re: JSMF 2.0 RC1 released
« Reply #77 on: October 23, 2006, 05:31:16 AM »

Hi!
I've been trying to redirect a user to the comprofiler on login, but the redirect just doesn't seem to work. It always redirects to main page after login.

Do you have any ideas?
Thanks in advance

Version Information:
Your Joomla version is: 1.0.11
Your SMF version is: 1.1 RC3
Your Joomla-SMF version: 2.0 RC1
Mad SMF Login 2.0.1


Hey,

I have the exact problem with the above configuration. Im using the mod_smf_login URL redirect but it does not work.

Does anyone have a fix or can you tell me where I can change this in the code?

Cheers

Andrew
« Last Edit: October 23, 2006, 05:32:53 AM by Andrew Morpeth » Logged

Joomla Version: 1.0.11
SMF Version smf 1.1rc3
Joomla-SMF Forum Integration Version 2.0 RC2
PHP Version: 5.1.2
Apache 2.2.0
mySQL 5.0.18
pk
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 10


View Profile
Re: JSMF 2.0 RC1 released
« Reply #78 on: October 23, 2006, 08:07:42 AM »

Same problem on my site:
- After I log-in using the form on the SMF forum - I'm redirected to the joomla main page. The same with logout.
- After I log-in from community builder native login module - I stay on the same page I was previously. No matter if it was a forum or other component.

Wolverine - was it planned or it is a bug?
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: JSMF 2.0 RC1 released
« Reply #79 on: October 23, 2006, 09:49:29 AM »

It is not a bug, but because there are so many things interacting here I do not redirect unless there is nothing else set for a redirect url.  If something is set that is where the bridge will redirect you to.  It says as much in the user guide and the help in configuration.  For the mod_smf_login this will be improved with the next build.  For the other modules it is up to them to set the correct data for the redirects.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
sabt
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: JSMF 2.0 RC1 released
« Reply #80 on: October 23, 2006, 10:33:38 AM »

Installed JSMF 2.0 RC1 today but got a problem syncing users...

Joomla/Mambo[0] / SMF[0] inserted Failed :Unknown column \\\'activation\\\' in \\\'field list\\\' SQL=SELECT name, username, password, email, registerDate, block, activation FROM jos1011_users LEFT J

i hope anyone of u can help me cause i have already read many topics but haven't found any answers to my question...
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: JSMF 2.0 RC1 released
« Reply #81 on: October 23, 2006, 10:46:11 AM »

better check your smf_members table, it seems an entire column is missing.  Did you just upgrade SMF?  I have had problems with the SMF upgrade procedure in the past.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
sabt
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 4


View Profile
Re: JSMF 2.0 RC1 released
« Reply #82 on: October 23, 2006, 11:08:51 AM »

I reinstalled smf and the bridge but now i get the following error:

Failed:_JSMF_MSG_SMF_JOOMLA_SYNC_CHECK_ERR: db_error:Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation \\\'=\\\' SQL=SELECT count(*) FROM smf_members

how can I change collations?
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: JSMF 2.0 RC1 released
« Reply #83 on: October 23, 2006, 11:15:07 AM »

you should search before posting, this has been reported numerous times.  You can change your collation using phpMyAdmin
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Christian
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Problem with return value of db_insert_id() inside function registerMember()
« Reply #84 on: October 23, 2006, 12:48:35 PM »

My versions:

    Joomla: 1.0.11
    SMF   : 1.1 RC3
    Joomla-SMF: 2.0 RC1
    CB: no   

File: smf\Sources\Subs-Members.php (patched)


The error:
   
The memberid of the inserted user is not always reported back correctly by db_insert_id()! So subsequent updates on this member fail!

I am not sure, but could it depend in some way on the integrate_register function which is called before the db_query call? Anyhow, i fixed it by adding an explicit query to get the correct $memberID. Now it works without problems.

The context, unchanged:

Code:
    //this calls the integrate registry function of smf component, so we cannot disable it!
    if (isset($modSettings['integrate_register']) && function_exists($modSettings['integrate_register']))
$modSettings['integrate_register']($regOptions, $theme_vars);

    // Register them into the database.
    db_query("
INSERT INTO {$db_prefix}members
(" . implode(', ', array_keys($regOptions['register_vars'])) . ")
VALUES (" . implode(', ', $regOptions['register_vars']) . ')', __FILE__, __LINE__);

...continues, with my fix:

Code:
    //original code: but doesn't always return correct inserted memberID!!!
    //I just renamed the variable to $memberID0 so one could track the fault situation by comparing the 2 different results!
    $memberID0 = db_insert_id();
 
    //my workaround: i do a query of the membername to get the corrisponding id,
    //thus not relying on the value which db_insert() give back, Now it works!

    //begin fix
    $request = db_query("
        SELECT ID_MEMBER
        FROM {$db_prefix}members
        WHERE memberName = '" .$regOptions['username']. "'
        LIMIT 1", __FILE__, __LINE__);
       
    $inserted_row = mysql_fetch_assoc($request);
    $memberID = $inserted_row['ID_MEMBER'];
    mysql_free_result($request);
    //end fix
Logged
Christian
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Bug in trimQuotes() leads to query error if users real name contains quotes
« Reply #85 on: October 23, 2006, 12:52:32 PM »

    My versions:

    Joomla: 1.0.11
    SMF   : 1.1 RC3
    Joomla-SMF: 2.0 RC1
    CB: no   

    File: componentes\com_smf\smf.class.php

    The function obviouly was designed to strip the enclosing "'" characters from a string
    But it fails to remove the closing "'" character, if $val contains
    a "'" string too! This leads in my case to subsequent database query errors!!

    As a simple remedy i substitued the second strpos with strrpos, which searches from right to left.


Code:
    function trimQuotes($val)
    {
    if (strpos($val, "'") == 0) {
            $val = substr($val, 1);
        }
        if (strrpos($val, "'") == (strlen($val)-1)) {   //fixed: strrpos() instead of strpos()!
        $val = substr($val, 0, strlen($val)-1);
        }
        return $val;
    }

Logged
Christian
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 7


View Profile
Query error if users realName contains quote character "'": Fixed
« Reply #86 on: October 23, 2006, 01:02:48 PM »

    My versions:

    Joomla: 1.0.11
    SMF   : 1.1 RC3
    Joomla-SMF: 2.0 RC1
    CB: no   

    file: componentes\com_smf\smf.class.php

    Bug in function integrateChangeMemberData() lead to query error if
    the users realName contains quote character "'":
    Missed: invoking of addslashes()!

    original lines, left unchanged:

Code:
    $field = $joomla_cols[$var];
    $value = $jsmf->trimQuotes($value);
   

    my lines added immedeately after: 


 
Code:
   //as eventuel present slashes have been trimmed away by the caller and as
    //as joomla is designed to run without magic quotes off, as far as i know,
    //we have to invoke addslashes here, otherwise subsequent queries may fail!

    //if(!get_magic_quotes_gpc()) { //better omitt the if statement completely
        $value = addslashes($value);
    //}


Together with the bug fix of trimQuotes() (see my posting above!!!)
i get no more query errors when the full user name contains
quote character "'". (magic_quotes_gpc = off!)
Logged
Andrew Morpeth
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 17



View Profile
Re: JSMF 2.0 RC1 released
« Reply #87 on: October 23, 2006, 02:08:16 PM »

It is not a bug, but because there are so many things interacting here I do not redirect unless there is nothing else set for a redirect url.  If something is set that is where the bridge will redirect you to.  It says as much in the user guide and the help in configuration.  For the mod_smf_login this will be improved with the next build.  For the other modules it is up to them to set the correct data for the redirects.

Hi Wolverine,

In regards to the redirects. I need to be able to login and logout and be redirected to ONE specific page on my site. However the redirect to URL in the smf_login module does not seem to work.

Is there any fix for this?
OR
Could you tell me where in the code I could enter a fixed page that will used when you login or log out?

Thanks

Andrew
Logged

Joomla Version: 1.0.11
SMF Version smf 1.1rc3
Joomla-SMF Forum Integration Version 2.0 RC2
PHP Version: 5.1.2
Apache 2.2.0
mySQL 5.0.18
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: JSMF 2.0 RC1 released
« Reply #88 on: October 23, 2006, 02:11:12 PM »

Hi Wolverine,

In regards to the redirects. I need to be able to login and logout and be redirected to ONE specific page on my site. However the redirect to URL in the smf_login module does not seem to work.

Is there any fix for this?
OR
Could you tell me where in the code I could enter a fixed page that will used when you login or log out?

Thanks

Andrew
the newest version of the mod_smf_login will resolve this.  I should have it released this week. 
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: JSMF 2.0 RC1 released
« Reply #89 on: October 23, 2006, 02:12:48 PM »

    My versions:

    Joomla: 1.0.11
    SMF   : 1.1 RC3
    Joomla-SMF: 2.0 RC1
    CB: no   

    File: componentes\com_smf\smf.class.php

    The function obviouly was designed to strip the enclosing "'" characters from a string
    But it fails to remove the closing "'" character, if $val contains
    a "'" string too! This leads in my case to subsequent database query errors!!

    As a simple remedy i substitued the second strpos with strrpos, which searches from right to left.


Code:
    function trimQuotes($val)
    {
    if (strpos($val, "'") == 0) {
            $val = substr($val, 1);
        }
        if (strrpos($val, "'") == (strlen($val)-1)) {   //fixed: strrpos() instead of strpos()!
        $val = substr($val, 0, strlen($val)-1);
        }
        return $val;
    }

good call... thx.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Pages: 1 ... 4 5 [6] 7 8 Go Up Print 
« previous next »
Jump to:  



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