, Guest!
Already a Member? Login or Register.

Menu



Showcase


Due to the volume of spam happening on our forums, posting is now restricted to verified members only.  If you're not verified, drop us a note with your username.

Home > FlexCMS Support Forum > Recent Messages

FlexCMS Support Forum


Recent Messages

Previous Page Next Page

User Help > General Support Requests > Adding users in bulk (Go To Message)
DCSun
 
December 10, 2007 @ 11:46pm
Wolf,

No, the ReturnTo field there is currently only used to redirect after verifying the creation of a new account through the email link.

You can have your users directed to a certain page after logging in with the "Destination After Login" field in the Modify Site Preferences section. If you want everyone to end up in the same place after logging in (yourself included), simply enter the location there (such as "pages/members.html"). If you would like it determined by who they are or what level they are, you'd do it the same way but put another page in between. On the intermediate page, enable PHP and enter this code:
Code

if ($UserLevel < 50) {
header('Location: '.$MainURL.'/pages/destination_page_1.html');
}
else {
header('Location: '.$MainURL.'/pages/destination_page_2.html');
}

Of course, you can modify as you see fit, but that should get you started. You can also filter it further, with the $CookieUsername variable containing the username, $UserLevel containing the user's permission level, and $LoggedIn being "y" if they're logged in.

That could be used to accomplish what I think you're going for there, which is to have them brought to the Edit Profile page only on their first login. In that case you can also have the page look in the core-Users table to see if certain information you want entered hasn't been stored yet, or, since you're quite capable of modifying things to suit your needs, you could add a field to the database to record whether they'd been presented with the Edit Profile page yet.


David
User Help > General Support Requests > Adding users in bulk (Go To Message)
Wolf
 
Thanks and another questionDecember 10, 2007 @ 11:20pm
David,

Hope you're having a great evening.

Thanks! That did the trick, encrypting my password fields for my bulk upload.

If you don't mind, I have another question...

I noticed there's a field called "ReturnTo" in the user file.

When my users log in, I'd like them to be presented with their "edit profile" page so they can enter their email address and contact information. Is there a way I can use the "ReturnTo" field to accomplish this?

Thanks!

Cheers,
Wolf
User Help > General Support Requests > Adding users in bulk (Go To Message)
DCSun
 
December 9, 2007 @ 1:25pm
Wolf,

Yes, the final encrypted password is a combination of the username and password. It consists of the first 8 characters of the encrypted username and then the complete encrypted password.


David
User Help > General Support Requests > Adding users in bulk (Go To Message)
Wolf
 
Thanks and one more clarificationDecember 9, 2007 @ 7:33am
Hi David,

Thanks! One more clarification for me... am I reading the code correctly in that after I encrypt my temporary bare password field then I do the same thing for the username and concatenate the two together for the new password?

Cheers,
Wolf
User Help > General Support Requests > Adding users in bulk (Go To Message)
DCSun
 
December 8, 2007 @ 11:59pm
Hey Wolf,

Yes, you're on the right track there. Lines 73 through 81 in inc-core-profile-edit-save.php should do the trick. I think the only changes you'll need to make are $FormArguments['Username'] to the username pulled for the loop, and $FormArguments['Password1'] to the bare password pulled. Then you can spit $FinalPassword back into the database in the Password field and you're good to go.

BarePassword can be cleared from the database when you've encrypted it. Its purpose there is just for the registration verification system to send the user their welcome email once the new account is verified with the email link, and then it's cleared.


David
User Help > General Support Requests > Adding users in bulk (Go To Message)
Wolf
 
Adding users in bulkDecember 8, 2007 @ 10:25pm
Wondering if you could tell me if I'm going in the right direction (or a better way to do this...)

I'm working on a project for my neighborhood. Using phpmyadmin, I added close to 700 accounts (username, address, account level, etc).

In the process, I generated a unique password for each user and temporarily stored them in the "BarePassword" field.

Now I'm working on encrypting (flex style) and storing those passwords in the real password field.

I looked at the flex code, inc-core-profile-edit-save.php around lines 73 thru 83 where you're using the crypt() function.

I'm thinking I might be able to create a new temporary page, enable "process php code" and write code to loop through the records and encrypt the passwords like is being done in the edit-save module...

Am I on the right track or might there be an easier way to accomplish this?

Thanks in advance for your feedback!

Cheers,
Wolf
User Help > General Support Requests > Changing Domain Name (Go To Message)
otter
 
December 6, 2007 @ 9:10am
If you have a Pro or Standard FlexCMS license in place, simply write an email to support () with the existing domain name and the new domain name and we'll assist you.

otter
User Help > General Support Requests > Changing Domain Name (Go To Message)
xp951
 
Changing Domain NameDecember 6, 2007 @ 6:51am
We are currently changing our domain name. We are staying on the same server with the same hotsting company.

What do i have to do with Flex to make the change?
User Help > General Support Requests > changing name of some fileds at registration (Go To Message)
cbc58
 
December 5, 2007 @ 4:45pm
thank you........ i'll try that.

User Help > General Support Requests > changing name of some fileds at registration (Go To Message)
DCSun
 
December 5, 2007 @ 4:21pm
Changing the labels in the language file will have no effect on any of the programming, so that's an easy fix if you want to steal some of the other fields and use them. Keep in mind that they're all different sizes of fields in the database depending on the information they were designed to hold.

You could also add additional custom fields by doing the following:

- Copy the code on lines 138 and 139 of inc-core-register.php and duplicating that the number of times required, increasing the numbers in red by one for each time you duplicate it.
$FieldName[20] = $RegFormOpts[2];
$FieldCode[20] = '<input type="text" name="Custom3" size="35" maxlength="50" style="'.$FormStyle.'">';

- Copy the code on line 54 of inc-core-admin-registration.php, again duplicating once for each field you're adding and updating the numbers in red accordingly
$Custom3Title = $RegFormOpts[2];

- Copy the code on line 110 of inc-core-admin-registration.php, again duplicating once for each field you're adding and updating the numbers in red accordingly
<tr><td><font face="'.$FontFace.'" size="2" color="'.$Colors['Text'].'">'.$MsgText[0][423].' 3<br><input type="text" name="Custom3Title" size="20" value="'.$Custom3Title.'"></td><td><font face="'.$FontFace.'" size="2" color="'.$Colors['Text'].'"><input type="text" name="sample" size="35" maxlength="50"></td><td align="center"><font face="'.$FontFace.'" size="2" color="'.$Colors['Text'].'"><input type="radio" name="status20" value="Required"'.$Checked[20]['r'].'> '.$MsgText[0][417].'<br><input type="radio" name="status20" value="Optional"'.$Checked[20]['o'].'> '.$MsgText[0][418].' <br><input type="radio" name="status20" value="Disabled"'.$Checked[20]['d'].'> '.$MsgText[0][419].'</td></tr>

- And finally, adjust line 42 in inc-core-admin-registration-save.php increasing the 20 by the number you added.

You'll also need to add the Custom# fields to your core-Users table in the database to hold the new information.

Once you've completed all that, edit and save the control panel section for the registration form options, and you should be all set.


David

Previous Page Next Page





Try & Buy FeedForAll - Easy to use RSS Feed Creator - great for iTunes users!

MEMBERS




All Contents, Code, Scripts and Technologies Copyright 2003-2009 FlexCMS.
All Rights Reserved. Software License Agreement

Processing Time: 0.57245 seconds.
 
Management Login

Powered By FlexCMS
Powered By FlexCMS