Hey, just ran into this module and had some questions.

Will this be ported to Drupal 6?

I see there are not other support request so I have to ask if there are any known conflicts with any other module.

What's the difference in the dev package.

Thanks.

CommentFileSizeAuthor
#25 single_login-202247.patch18.32 KBpebosi
#13 202247.patch8.29 KBpebosi
#12 202247.patch8 KBpebosi
#8 single_login_5to6.patch28.37 KBpebosi
#6 single_login.zip12.4 KBAnonymous (not verified)
#5 single_login.zip10.22 KBnekobul

Comments

mdekkers’s picture

Hey there, thanks for checking out the module! We will be moving to D6 at some point for our production stuff, so this module will be ported - no timeframes yet, but think sooner rather then later. As far as we know there are no conflicts with other modules, and we have gone through some lenghts to make sure this module plays nicely with the "remember me" module. And, no difference with dev, so far :)

mdekkers’s picture

Assigned: Unassigned » mdekkers
Status: Active » Postponed

...

nekobul’s picture

Hi,

I did some work on D6 version. I haven't found yet what is needed to contribute this directly without bothering you. Please advise.

Anonymous’s picture

This module seems to be what I'm looking for. If you need help, testing it on D6, tell me.

nekobul’s picture

StatusFileSize
new10.22 KB

While waiting for the original developer to publish the module, check this updated for D6 version. Report issues you find in this message thread.

Anonymous’s picture

StatusFileSize
new12.4 KB

I updated your package with some missing t() at some strings and added a german translation. Please check, if the translation is correct utf-8.

Can you tell me, how to translate the messages, that are displeyed if a user is logging in twice or an account is blocked?

Everything else seems to work fine.

sanduhrs’s picture

Title: Drupal 6? » Port to Drupal 6
Version: 5.x-1.0 » 5.x-1.x-dev
Component: Miscellaneous » Code
Assigned: mdekkers » sanduhrs
Category: support » task
Status: Postponed » Needs work

Please provide a patch [1] that makes it a lot easier to work on the issue.
[1] http://drupal.org/patch/create

pebosi’s picture

Status: Needs work » Needs review
StatusFileSize
new28.37 KB

created a patch from #6 with a small change to use user_roles().

regards

sanduhrs’s picture

Status: Needs review » Needs work

At a first glance that looks reasonable, thanks.
Could you please stick to the coding standards?

pebosi’s picture

i could cleanup the code if there's a 6.dev version.

regards

sanduhrs’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev

I commited your patch as 6.x-1.x-dev after some minor changes.
A further code-cleanup would be very welcome!

pebosi’s picture

StatusFileSize
new8 KB

here's a first, little patch to clean up 6.x

regards

pebosi’s picture

StatusFileSize
new8.29 KB

new patch...

a_c_m’s picture

any new working going on with this? Quite interested.

Mambo89’s picture

Title: Port to Drupal 6 » drupal5 error
Version: 6.x-1.x-dev » 5.x-1.0
Category: task » bug

Hi, i enabled this modul for drupal 5 and got this erro on the top of every page:

* user warning: Table 'matemati_drupal5.profile_fields' doesn't exist query: SELECT fid FROM profile_fields WHERE name = 'profile_current_session_id' in /home/matemati/public_html/novice/includes/database.mysql.inc on line 174.
* user warning: Table 'matemati_drupal5.profile_values' doesn't exist query: DELETE FROM profile_values WHERE uid = 2 AND fid = 0 in /home/matemati/public_html/novice/includes/database.mysql.inc on line 174.
* user warning: Table 'matemati_drupal5.profile_values' doesn't exist query: INSERT INTO profile_values SET fid = 0, uid = 2, value = '07dbb8bd3f9bce41fe6e904d49bea310' in /home/matemati/public_html/novice/includes/database.mysql.inc on line 174.
* user warning: Table 'matemati_drupal5.profile_fields' doesn't exist query: SELECT fid FROM profile_fields WHERE name = 'profile_current_session_id' in /home/matemati/public_html/novice/includes/database.mysql.inc on line 174.
* user warning: Table 'matemati_drupal5.profile_values' doesn't exist query: DELETE FROM profile_values WHERE uid = 2 AND fid = 0 in /home/matemati/public_html/novice/includes/database.mysql.inc on line 174.
* user warning: Table 'matemati_drupal5.profile_values' doesn't exist query: INSERT INTO profile_values SET fid = 0, uid = 2, value = '07dbb8bd3f9bce41fe6e904d49bea310' in /home/matemati/public_html/novice/includes/database.mysql.inc on line 174.

Whats wrong?:)
by

Mambo89’s picture

Version: 5.x-1.0 » 6.x-1.x-dev
Category: bug » support
Priority: Normal » Minor
Status: Needs work » Active

Ou, one mroe thing: When can i expect stabil relase single login for drupal 6? Til september, october??

pebosi’s picture

Title: drupal5 error » Port to Drupal 6

reverted the title...

@15 is profile module enabled?

@16 a dev release is available since 1 April: http://drupal.org/node/189570/release, you could help testing to get it stable.

regards

drupaloo-1’s picture

Subscribing. Would love to use a version of single login for D6.
Newbie, sorry I can't help program.

macrodesign’s picture

subscribe

Anonymous’s picture

Whats it gonna take to get this ported?

cspbm’s picture

Can you please let me know when Drupal 6 version will come out of dev mode?

kstellana’s picture

Hey, We'd love to see Single Login in D6 as well. I could help developing and testing but i'd need to know what is needed from me.

Great job!!

kstellana’s picture

I get this error:

Fatal error: Call to undefined function user_logout() in /home/kst/public_html/test/modules/single_login/single_login.module on line 312

I believe that

      require_once drupal_get_path('module', 'user') .'/user.pages.inc';
      user_logout();

would solve the problem :)

Moreover the history doesn't seem to be able to load though the db has the information...

kstellana’s picture

Well I have investigated why nothing appears in the history report.

I've fount our that the $uid passed to single_login_history_form_list isn't what it should, thought I couldn't find out why...

You can try with this

    function single_login_history_form_list($uid) {
         $result = db_query("SELECT * FROM {single_login_history} WHERE uid=%d", variable_get(SINGLE_LOGIN_HISTORY_UID, 0));

That will make it work.

Any one has found any other bug?

pebosi’s picture

StatusFileSize
new18.32 KB

I've got time to create another patch.

details:
- moved settings and history report to separate file
- changed history report path
- added permissions
- removed t() from menu entries
- added case for delete in hook_user implementation
- removed some temporay variables "$sql"...
- and more.

@kstellana
your problems should be fixed in my patch

regards pebosi

pebosi’s picture

Status: Active » Needs review
nicoloconte’s picture

Status: Needs review » Needs work

@pebosi:

I have this error appling you patch:

patch -p0 < /Users/nicoloconte/Desktop/single_login-202247.patch
patching file single_login.admin.inc
patching file single_login.module
patch: **** malformed patch at line 420: @@ -321,52 +159,38 @@ function single_login_user($op, &$edit,

RikiB’s picture

Im getting the malformed error too. I tried to fix it but failed, looks like its an easy fix though.

RikiB’s picture

Could someone please let us know how to get the patch working? :)

giorgio79’s picture

subs

Could the devs confirm if they abandoned this module?

giorgio79’s picture

It seems this one is better maintained:
http://drupal.org/project/session_limit