1. geri1104
  2. General
  3. Monday, September 07 2015, 03:35 PM
Hi,

is this possible?
hide avatar if no avatar is uploaded?
thx
admin Accepted Answer
Admin
Hi,
no sorry, to do this you need to override profile page layout with your custom layout.
  1. more than a month ago
  2. General
  3. # 1
geri1104 Accepted Answer
Ok - thanx for the fast reply.
  1. more than a month ago
  2. General
  3. # 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
  1. more than a month ago
  2. General
  3. # 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.
  1. more than a month ago
  2. General
  3. # 4
geri1104 Accepted Answer
great! this works perfectly.
thanx a lot!
  1. more than a month ago
  2. General
  3. # 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.