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: #4
RE: Show item on profile page if "x" field is populated
If you only want htmlspecialchars_uni, you can do that like this:

Code:
<if $userfields['fid8'] then>
	<a href="http://twitter.com/<func htmlspecialchars_uni>{$userfields['fid8']}</func>" target="_blank"><img src="images_url" alt="Go to <func htmlspecialchars_uni>{$memprofile['username']}</func> Twitter page" title="Go to <func htmlspecialchars_uni>{$memprofile['username']}</func> Twitter page" /></a>
</if>


For the PM button in profile, maybe something like this:

Code:
<if $mybb->usergroup['cansendpms'] == 1 && $mybb->settings['enablepms'] == 1 && $memprofile['receivepms'] != 0 then>PM Button</if>


(This post was last modified: 04-28-2012 05:14 AM by RateU.)
04-28-2012 05:13 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 - 04-28-2012 05:13 AM

 Standard Tools
Forum Jump: