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: #9
RE: Show item on profile page if "x" field is populated
(05-23-2012 04:16 AM)RateU Wrote:  You can use preg_match for that (if you're using PHP In Template plugin - I can't find preg_match in the phptpl_allowed_funcs.txt file for Template Conditional).
Something like this (in template conditional style, without capturing any part of the matched pattern):

Code:
<if preg_match($pattern,$text) then>
The out put here
</if>


Thanks RateU! Unfortunately i'm just starting learning PHP and am confused about how to set that up. Would I set $pattern = STEAM_X:X:XXXXXXXX or something before? Also how would I set that up for only custom profile field fid4?
Thanks!
05-23-2012 04:44 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 04:44 AM

 Standard Tools
Forum Jump: