Jump to the post that solved this thread.
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 11 Years ago Profile conditional help!
#1
Solved: 11 Years ago
Guys I want to show a default avatar in the user profile when user doesn't have avatar????

<if ($memprofile['avatar']) then>TEST</if>
#2
Solved: 11 Years ago
(2014-01-28, 05:18 PM)marcus123 Wrote: Guys I want to show a default avatar in the user profile when user doesn't have avatar????

<if ($memprofile['avatar']) then>TEST</if>

try something like
<if ($memprofile['avatar']) then>
code to display avatar
<else>
code to display std avatar
</if>
just slot the code into the correct template... I have not checked if $memprofile is a valid array so u may need to use the $mybb array
Not in this land alone,
But be God's mercies known,
From shore to shore!
Lord make the nations see,
That men should brothers be,
And form one family,
The wide world ov'er

#3
Solved: 11 Years ago
How embarrassing I am using this all the time! Thanks very much LOL

<if ($memprofile['avatar']) then><else>
code to display std avatar
</if> 
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 2 Guest(s)