1

Topic: read this if u require profile photo on registration

I wanted to share this as it annoyed me.
I do require a profile photo to be uploaded upon registration, but i noticed some users upload anything just to register then they delete it within their account. i don't want users with no profile photos on my website, so i added into the account_photo.tpl an IF statement to this section:

<!-- IF !settings.require_registration_photo -->
<li class="remove"><a href="#" onclick="javascript:confirmLink('{lang:"photo","delete?"}', '{top.virtual_path}{delete_link}')" title="{lang:"photo","delete"}">{lang:"photo","delete"}</a></li>
<!-- ENDIF -->

now if you set YES to require photo upload in Registration Settings, the delete button will not show, and it gives sense as profile photo is required.

vld. 2.7

2

Re: read this if u require profile photo on registration

great tip, thank you.

Mcp, Mcsa, Mcse, A+, Server+, Linux CP...

3

Re: read this if u require profile photo on registration

lol... i also noticed that some users can still remove their profile photo ! i was like how did they do that ?? then after spending good time on this issue, they could be using the link in the address bar.. coz if u just write delete after that link website.com/account/photo/ so having :
website.com/account/photo/delete it will delete the profile picture.. !!! good to know.. but is there a way to disable that link function ??

Thanks for helping.

4

Re: read this if u require profile photo on registration

maybe you can fix it with htaccess.
I don´t know, just a thought ...

Last edited by gugu (2012-02-12 16:02:56)

Give the world the best you have, and the best will come to you.
Tutorials and Mods for VldPersonals  Add CometChat to your vldPersonals site