Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Profile Fields if exist or not
dthiago Offline
Junior Member
**
Posts: 30
Joined: Sep 2012
Post: #1
Profile Fields if exist or not
Hi

I wish to show a information on post bit.I use this to show.And I create 2 custom fields to

Code:
 <td align="center"><a href="http://bf3stats.com/{$post['fid7']}/{$post['fid6']}"><img src="http://g.bf3stats.com/{$post['fid7']}/pDX91iDK/{$post['fid6']}.png" alt="BF3 Stats" /></a></td>


[Image: th_Seleccedilatildeo_013_zpsf74ae723.png]


{$post['fid7']} = plataform
{$post['fid6']} = nick in game

But some users don't have nickname (because dont have the game)or not filled profile.. When the user does not have displayed an "image not reached."

How to replace this by a standard image,text or any other..? Or create a default value for that fields?



thx

(This post was last modified: 06-13-2013 12:28 PM by dthiago.)
06-13-2013 12:26 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Profile Fields if exist or not
Maybe something like this:

Code:
<if $post['fid7'] && $post['fid6'] then>
....
<else>
....
</if>


06-15-2013 01:20 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: