yii: double database table prefix error in yii-user-management

by prettyscripts on 2010-12-16 14:51:27 • Leave a comment »

yii

important note: this applies to yii-user-management extension V0.7. this probably have already been fixed but not yet released. this is a quick fix if you don't want to download the trunk. if database prefix has been defined in config file, when access… more »

Tags: php, prefix, table, user, yii

b2evo: hide login from user profile

by prettyscripts on 2010-06-05 02:14:35 • Leave a comment »

phpb2evolution

by default, post author's name is linked to profile page. and by default, b2evolution shows user login on profile page. this raises some security concerns - you don't want the public to know what is your login and you don't want to make it easier for hac… more »

Tags: b2evo, login, profile, user

symfony: hacking sfDoctrineActAsSignablePlugin to allow updated and created by specific user

by prettyscripts on 2010-05-25 14:36:07 • Leave a comment »

symfony

i'm using sfDoctrineActAsSignablePlugin to audit record creation and updates. ie fields created_by and updated_by are automatically created and updated. this is perfect when running from browsers. but when running as command line such as loading initia… more »

Tags: created, hack, plugin, symfony, updated, user

symfony: sfDoctrineGuardPlugin and customizing user profile

by prettyscripts on 2010-03-03 11:43:54 • 2 comments »

symfony

sfDoctrineGuardPlugin provides basic authentication. sf_guard_user table only contains minimal fields to make this feature work. all other user relevant information such as name, birthday, contact numbers etc require a new table sf_guard_user_profile tha… more »

Tags: doctrine, profile, symfony, user

ubuntu: add user

by prettyscripts on 2009-10-15 10:23:11 • Leave a comment »

unix

there are 2 commands to add user: userad and adduser. (the commands could be the same for other linux.) adduser is easier to use. it prompts for relevant information. to allow new user to run sudo, run: $ usermod -G admin <username> more »

Tags: linux, ubuntu, user