Home arrow Forum Latest posts of: Mika Lindqvist
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 06:49:49 PM
Home New Posts Search Calendar


Login with username, password and session length
  Show Posts
Pages: [1]
1  Joomla Hacks / Joomla-SMF 2.0.x / Re: JSMF 2.0.2.1 on: December 04, 2007, 01:46:47 PM
In _isValidUser of smf.class.php (jsmf 2.0.2.1)

$mos needs to be initialized to false before the two

if ((strpos($data->password, ':') === true))

clauses that reference it, because otherwise the variable will be out of scope when it is checked after the initial if clauses. I'm pretty sure the original code of inner if clauses in first part of those clauses can be shortened to just

if ($hash == $cryptpass) {
    //CORRECT password
    $mos = true;
}

after this change, because it is pointless to set variable to its default value second time.
2  Joomla Hacks / Joomla-SMF 2.0.x / Re: JSMF 2.0.2.1 on: November 29, 2007, 01:14:10 PM
Joomla version: 1.0.13
SMF version: 1.1.4
JSMF version: 2.0.2.1

When trying password recovery, it doesn't initialize db prefix in updatePass($id, $pass) of admin.smf.class.php

if I add
        global $jsmfConfig;
after
        global $database;
and change line
            "WHERE id = '$smf_id' ";
to
            "WHERE ID_MEMBER = '$smf_id' ";

it works better
3  Joomla Addon Discussion / Joomla Components / SMF Profile 2.1.1 uses wrong URL for avatar on: August 12, 2007, 12:03:13 PM
When viewing SMF user profile inside CB it uses URL format

/community/attachments/avatar_3.png

even though the correct format is

/community/index.php?action=dlattach;attach=2;type=avatar
Pages: [1]


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