Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Show item on profile page if "x" field is populated
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #10
RE: Show item on profile page if "x" field is populated
(05-23-2012 04:44 AM)mdb Wrote:  Would I set $pattern = STEAM_X:X:XXXXXXXX or something before?
You can use it directly in the conditional.

I don't know much about the STEAM ID.
Based on your post:
(05-22-2012 06:34 PM)mdb Wrote:  IE: STEAM_#:#:########
Where the # is only numbers from 0-9
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.


05-23-2012 05:01 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 - RateU - 05-23-2012 05:01 AM

 Standard Tools
Forum Jump: