Bandit-X.Net  
ID Password
   All Posts (Bandit-X)


« 1 2 3 (4) 5 6 »


Re: i cant change Category Settings
Webmaster
Joined:
2006/6/3 9:27
From UsA - MiChIgAn
Posts: 154
Offline
What is the version of XM-Spotlight that you are having this problem with?

If you are using (the current version) XM-Spotlight 1.02 Beta2 10272006 . is the problem similar to this one.?
http://www.bandit-x.net/modules/newbb/viewtopic.php?topic_id=25&forum=7

if not .. then can u also post a screenshot of where you are having that issue?
(upload it to http://imageshack.us/ or some place)

Posted on: 2006/12/3 5:05
_________________
Bandit-X.Net
Transfer the post to other applications Transfer


Re: Category Settings
Webmaster
Joined:
2006/6/3 9:27
From UsA - MiChIgAn
Posts: 154
Offline
Bug in : XM-Spotlight 1.02 Beta2 10272006
Today's Date: 11 06 2006
Description: Fixes Bug. Issue With Incorrect # Of Categories Saving.
=========================================
ok.. here is a zip file with a file 'index.php' it should fix that problem

it goes in modules/xmspotlight/admin/index.php

Attach file:


zip fix1_xmspotlight_10272006.zip Size: 2.12 KB; Hits: 917

Posted on: 2006/11/6 8:39
_________________
Bandit-X.Net
Transfer the post to other applications Transfer


Re: Category Settings
Webmaster
Joined:
2006/6/3 9:27
From UsA - MiChIgAn
Posts: 154
Offline
hmm.. thanks. .. i see what you mean.. ill look into it.

Posted on: 2006/11/4 18:05
_________________
Bandit-X.Net
Transfer the post to other applications Transfer


Re: Download
Webmaster
Joined:
2006/6/3 9:27
From UsA - MiChIgAn
Posts: 154
Offline
hmm i also found this post from Mith

Re: Create New Users With PHP

// Get new user object
$member_handler =& xoops_gethandler('member');
$newuser =& $member_handler->createUser();

// Set user variables - either directly or from form values
$newuser->setVar('uname', $uname);
$newuser->setVar('email', $email);
$newuser->setVar('pass', md5($pass), true);

// Automatically calculated values
$newuser->setVar('user_regdate', time(), true);
$actkey = substr(md5(uniqid(mt_rand(), 1)), 0, 8);
$newuser->setVar('actkey', $actkey, true);

// Insert the user in the database
$member_handler->insertUser($newuser);

// Add the user to the registered users group
$member_handler->addUserToGroup(XOOPS_GROUP_USERS, $newuser->getVar('uid'));

Posted on: 2006/11/2 7:17
_________________
Bandit-X.Net
Transfer the post to other applications Transfer


Re: Download
Webmaster
Joined:
2006/6/3 9:27
From UsA - MiChIgAn
Posts: 154
Offline
i actually had this theme on this site for a while. after a while i get tired of the silver/gray/white.

sry i dont have google talk.. so. ill try to explain it in here.

k this is how i believe the user is created..

file:register.php

$member_handler =& xoops_gethandler('member');
        $newuser =& $member_handler->createUser();
        $newuser->setVar('user_viewemail',$user_viewemail, true);
        $newuser->setVar('uname', $uname, true);
        $newuser->setVar('email', $email, true);
(those first two lines creates an instance of the class . that one would be XoopsMemberHandler ... and then the info for the user is stored in a variable.an array i believe)


$member_handler->insertUser($newuser)


insertuser... class:XoopsMemberHandler file:kernel/member.php

    function insertUser(&$user, $force = false)
    {
        return $this->_uHandler->insert($user, $force);
    }

_uhandler is.. (created by the constructor)

$this->_uHandler = new XoopsUserHandler($db);
And the insert function is in class:XoopsUserHandler (extends XoopsObjectHandler) file:kernel/user.php

which insert the info to the database..
code below....

        foreach ($user->cleanVars as $k => $v) {
            ${$k} = $v;
        }

        if ($user->isNew()) {
            $uid = $this->db->genId($this->db->prefix('users').'_uid_seq');
            $sql = sprintf("INSERT INTO %s (uid, uname, name, email, url, user_avatar, user_regdate, user_icq, user_from, user_sig, user_viewemail, actkey, user_aim, user_yim, user_xfire, user_msnm, pass, posts, attachsig, rank, level, theme, timezone_offset, last_login, umode, uorder, notify_method, notify_mode, user_occ, bio, user_intrest, user_mailok) VALUES (%u, %s, %s, %s, %s, %s, %u, %s, %s, %s, %u, %s, %s, %s, %s, %s, %s, %u, %u, %u, %u, %s, %.2f, %u, %s, %u, %u, %u, %s, %s, %s, %u)", $this->db->prefix('users'), $uid, $this->db->quoteString($uname), $this->db->quoteString($name), $this->db->quoteString($email), $this->db->quoteString($url), $this->db->quoteString($user_avatar), time(), $this->db->quoteString($user_icq), $this->db->quoteString($user_from), $this->db->quoteString($user_sig), $user_viewemail, $this->db->quoteString($actkey), $this->db->quoteString($user_aim), $this->db->quoteString($user_yim), $this->db->quoteString($user_xfire), $this->db->quoteString($user_msnm), $this->db->quoteString($pass), $posts, $attachsig, $rank, $level, $this->db->quoteString($theme), $timezone_offset, 0, $this->db->quoteString($umode), $uorder, $notify_method, $notify_mode, $this->db->quoteString($user_occ), $this->db->quoteString($bio), $this->db->quoteString($user_intrest), $user_mailok);
        } else {
            $sql = sprintf("UPDATE %s SET uname = %s, name = %s, email = %s, url = %s, user_avatar = %s, user_icq = %s, user_from = %s, user_sig = %s, user_viewemail = %u, user_aim = %s, user_yim = %s, user_xfire = %s, user_msnm = %s, posts = %d,  pass = %s, attachsig = %u, rank = %u, level= %u, theme = %s, timezone_offset = %.2f, umode = %s, last_login = %u, uorder = %u, notify_method = %u, notify_mode = %u, user_occ = %s, bio = %s, user_intrest = %s, user_mailok = %u WHERE uid = %u", $this->db->prefix('users'), $this->db->quoteString($uname), $this->db->quoteString($name), $this->db->quoteString($email), $this->db->quoteString($url), $this->db->quoteString($user_avatar), $this->db->quoteString($user_icq), $this->db->quoteString($user_from), $this->db->quoteString($user_sig), $user_viewemail, $this->db->quoteString($user_aim), $this->db->quoteString($user_yim), $this->db->quoteString($user_xfire), $this->db->quoteString($user_msnm), $posts, $this->db->quoteString($pass), $attachsig, $rank, $level, $this->db->quoteString($theme), $timezone_offset, $this->db->quoteString($umode), $last_login, $uorder, $notify_method, $notify_mode, $this->db->quoteString($user_occ), $this->db->quoteString($bio), $this->db->quoteString($user_intrest), $user_mailok, $uid);
        }

the array keys and values gets assigned to variables the same names as their keys
i believe thats where the users info get put in.. when they are new users.. and the 2nd part is for updating existing users info..

*the above codes and your codes will differ since this was taken off of my computer and some changes has been made to it. and im not a php expert..

so the easiest solution would be.. to add some lines for it to add the same stuff in a different prefix. since you want it in the same database (which makes it easier). function XoopsUserHandler in the class XoopsUserHandler that is in kernel/user.php

Posted on: 2006/11/2 6:41
_________________
Bandit-X.Net
Transfer the post to other applications Transfer


Re: Download
Webmaster
Joined:
2006/6/3 9:27
From UsA - MiChIgAn
Posts: 154
Offline
u got IM?

Posted on: 2006/10/31 18:54
_________________
Bandit-X.Net
Transfer the post to other applications Transfer


Re: XM-Spotlight 1.02 In The Works.
Webmaster
Joined:
2006/6/3 9:27
From UsA - MiChIgAn
Posts: 154
Offline
Ok. Released A New Version Of XM-Spotlight.

XM-Spotlight 1.02Beta2 10272006 (OCT 27, 2006)

Posted on: 2006/10/28 5:37
_________________
Bandit-X.Net
Transfer the post to other applications Transfer


Re: Download
Webmaster
Joined:
2006/6/3 9:27
From UsA - MiChIgAn
Posts: 154
Offline
Quote:

JamesSAEP wrote:
Got it, thanks!

I put a thread on XOOPS, any chance you'd know how to answer it? See it HERE.

Thanks,

im not really sure on how to do that. but ill look deeper in to it when i get back from work tonight.

Posted on: 2006/10/27 12:23
_________________
Bandit-X.Net
Transfer the post to other applications Transfer


Re: Download
Webmaster
Joined:
2006/6/3 9:27
From UsA - MiChIgAn
Posts: 154
Offline

Posted on: 2006/10/27 11:59
_________________
Bandit-X.Net
Transfer the post to other applications Transfer


Re: Download
Webmaster
Joined:
2006/6/3 9:27
From UsA - MiChIgAn
Posts: 154
Offline
man.. not a good week for me.. i cant find a copy of that file.. but ill try to get an updated version of the module later this week. it will also have that subcategory feature you wanted.

Posted on: 2006/10/25 20:53
_________________
Bandit-X.Net
Transfer the post to other applications Transfer



 Top
« 1 2 3 (4) 5 6 »