inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Jan 29, 2015 16:20:23 GMT -8
Forum URL: psychic-psyghtings.proboards.comI have put the following code into my mini profile template: {if $[user.id] == 1} <div id="mp-pm"> {if $[current_user.is_member]}{if $[user.is_staff]}<a href="$[user.pm_href]" alt="PM $[user.name]">Send PM</a> {/if}{/if} | </div> {/if}{else} {if $[user.is_staff]} <div id="MP-PM"> {if $[current_user.is_member]}{if $[user.is_staff]}<a href="$[user.pm_href]" alt="PM $[user.name]">Send PM</a> {/if}{/if} </div>
I put in a div for my user id, and I attempted to put in something for the rest of my staff, but can I separate the user id's with commas? 2,3,5, etc? Is that how I have to do it instead of putting $[user.is_staff]? Thanks!
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Jan 29, 2015 16:27:02 GMT -8
Here's what you'd want to use:
{if $[user.id] == 1 || $[user.id] == 2 || $[user.id] == 3 || $[user.id] == 4}
|
|
Former Member
inherit
guest@proboards.com
181302
0
May 9, 2024 13:15:54 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Jan 29, 2015 16:27:12 GMT -8
If want them all different, then could just make an if statement for each member, so they have their own, I think.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Jan 29, 2015 16:39:38 GMT -8
David Clark: I want myself to have more than just the Send PM button in the box when I am done. I will be putting other things into only the black box on my mini profile; not my other staff members'. I want them just to have the PM link, and I want it centered in the box for them.) I'm not saying your answer is wrong; I just reread how I asked it and I realized I probably made people confused; sorry about that! @burkeknight: Thank you
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Jan 29, 2015 16:44:39 GMT -8
What you gave me, David Clark, gave me what came up and prompted me to put the user.id == 1; the box in the member's profiles.
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Jan 29, 2015 16:44:48 GMT -8
Just make a unique {if} for each person for whom you'd like to display unique content.
{if $[user.id] == 1} Code here for user ID 1 "I'm the admin!" {/if}
{if $[user.id] == 2} Code here for user ID 2 "I'm the user with the ID 2!" {/if}
{if $[user.id] == 3} Code here for user ID 3 "I'm the user with the ID 3!" {/if}
Etc!
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Jan 29, 2015 16:46:39 GMT -8
I got it; thanks, David Clark. My mind has been racing with coding the past few days -- it's on overload
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Jan 29, 2015 16:48:05 GMT -8
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Jan 29, 2015 16:52:49 GMT -8
|
|