Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Show item on profile page if "x" field is populated
mdb Offline
Junior Member
**
Posts: 27
Joined: May 2012
Post: #11
RE: Show item on profile page if "x" field is populated
(05-23-2012 05:01 AM)RateU Wrote:  maybe you can write it like this:

Code:
<if preg_match('~^STEAM_\d:\d:\d{8}$~',$userfields['fid4']) then>
	<func htmlspecialchars_uni>{$userfields['fid4']}</func>
</if>

Or, if you're really sure about the output value, you can remove the htmlspsecialchars_uni for that.
Modify the pattern as your needs.


Thanks so much RateU, that worked perfectly!
05-23-2012 05:16 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Show item on profile page if "x" field is populated - mdb - 05-23-2012 05:16 AM

 Standard Tools
Forum Jump: