Add a reply
View Replies (
5
)
Resolved
hide avatar if no avatar is selected?
geri1104
General
Monday, September 07 2015, 03:35 PM
Hi,
is this possible?
hide avatar if no avatar is uploaded?
thx
Responses (
5
)
Likes
Latest
Oldest
admin
Accepted Answer
Admin
Hi,
no sorry, to do this you need to override profile page layout with your custom layout.
more than a month ago
General
# 1
geri1104
Accepted Answer
Ok - thanx for the fast reply.
more than a month ago
General
# 2
geri1104
Accepted Answer
hmm..can you please give me a hint.
how can i check if
$avatar=$this->form->getField('avatar');
contains the default value?
thx
more than a month ago
General
# 3
admin
Accepted Answer
Admin
Hi,
you can get avatar url with this variable: $this->data->avatar
If $this->data->avatar is equal to default avatar then avatar is not uploaded.
Alternative is to build a query to check this, but this is more complicated and heavy.
more than a month ago
General
# 4
geri1104
Accepted Answer
great! this works perfectly.
thanx a lot!
more than a month ago
General
# 5
Page :
1
There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.