Hello KK,
I am trying out your extended users feature and in the uers/index.php file I have defined this editable region because I want authenticated users to be able to upload profile pictures to thier account.
On the regitsation page I used this in my form which works perfectly:
To show a registered users profile picture in his account. I combined k_logged_in and id=k_user_id to bring the users details into perspective. However when I try to show the user profile picture with this
A few questions:
1. How can I allow new authenticated users to just upload their profile images without using the secure file type?
2. How do I show a secure file which is an image on the frontend without using the cloak tag?
3. Are secured files not supposed to be in a secure folder in the uploads folder? Mine is rather saved inside the attachments folder.
I am trying out your extended users feature and in the uers/index.php file I have defined this editable region because I want authenticated users to be able to upload profile pictures to thier account.
- Code: Select all
<cms:template title='Users' clonable='1'>
<cms:editable name='user_image' allowed_ext='jpg, jpeg, bmp, png' max_size='2048' type='securefile' thumb_width='100' width='600' height='800' quality='95' crop='1' show_preview='1' use_thumb_for_preview='1'/>
</cms:template>
On the regitsation page I used this in my form which works perfectly:
- Code: Select all
...
<cms:db_persist
_masterpage=k_user_template
_mode='create'
method='post'
anchor='0'
_invalidate_cache='0'
_auto_title='0'
k_page_name = "<cms:random_name />"
k_page_title = "<cms:concat frm_fname ' ' frm_lname />"
firstname=frm_fname
lastname=frm_lname
extended_user_email = frm_extended_user_email
extended_user_password = frm_password
extended_user_password_repeat = frm_password />
...
To show a registered users profile picture in his account. I combined k_logged_in and id=k_user_id to bring the users details into perspective. However when I try to show the user profile picture with this
- Code: Select all
<img src="<cms:show_securefile 'user_image' ><cms:if file_is_image ><cms:cloak_url link=file_id /></cms:if></cms:show_securefile>">
A few questions:
1. How can I allow new authenticated users to just upload their profile images without using the secure file type?
2. How do I show a secure file which is an image on the frontend without using the cloak tag?
3. Are secured files not supposed to be in a secure folder in the uploads folder? Mine is rather saved inside the attachments folder.