inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Jan 28, 2015 12:09:11 GMT -8
Forum URL: psychic-psyghtings.proboards.comI want to put a button into my mini profile template. I want it to be with the Send PM. I'm going to further style it once I get that to work, but for some reason (not sure if it's the wrong code or what), but my mini profile template isn't accepting it: <button type="button" onclick="alert('Hello world!')">Click Me!</button> I want it to use the link in the following, but I don't think I did it right: {if $[current_user.is_member]}{if $[user.is_staff]}<br /><a href="$[user.pm_href]" alt="PM $[user.name]">Send PM</a>{/if}{/if} I was doing the following: {if $[current_user.is_member]}{if $[user.is_staff]}<br /><button type="button" onclick="<a href="$[user.pm_href]" alt="PM $[user.name]">Send PM</a>"{/if}{/if} Thank you for your help
|
|
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:21:23 GMT -8
Bump Thanks in advance for your help
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Feb 1, 2015 13:24:26 GMT -8
Bump
|
|
inherit
133146
0
Oct 5, 2024 10:13:46 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Feb 1, 2015 13:44:06 GMT -8
For one, you didn't even close the <button> tag.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Feb 1, 2015 13:46:07 GMT -8
Thank you, @khristian. I didn't see that!
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Feb 1, 2015 13:48:47 GMT -8
I think I was looking at it fast and thought that the </button> was there. Thank you again My other question, because for some reason, now it's bigger than the 'divider' that I have, is there any way to make the button smaller? I assume that you would use the height and width HTML and such, right?
|
|
inherit
133146
0
Oct 5, 2024 10:13:46 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Feb 1, 2015 13:50:20 GMT -8
That should do the trick.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Feb 1, 2015 13:57:02 GMT -8
Thank you For some reason, though, when I attempt to resize it, it doesn't change: {if $[current_user.is_member]}{if $[user.is_staff]}<br /><button type="button" height="50" width="50" onclick="<a href="$[user.pm_href]" alt="PM $[user.name]">Send PM</a>"{/if}{/if} That's the code I'm manipulating at the moment.
|
|
inherit
133146
0
Oct 5, 2024 10:13:46 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Feb 1, 2015 14:00:25 GMT -8
Try adding px after each 50. It's hard to help you since I can't see it since you have it set for only members to see, so I am just sorta of making the best guess. XD
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Feb 1, 2015 14:03:22 GMT -8
I don't remember how I did that lol. When I changed it, it made the button unclickable for me. So I'll be looking into that, too. I assume it's because of where I put the code.
How do I change the setting for the profiles? I don't remember lol
|
|
inherit
133146
0
Oct 5, 2024 10:13:46 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Feb 1, 2015 14:05:59 GMT -8
It's not a setting, it's the IF Statements you put around it to make it only appear for members whom are staff. I have to go though so hopefully someone else can help you in the meantime.
|
|
inherit
194230
0
Nov 21, 2015 5:56:42 GMT -8
Alan Vende
4,215
May 2013
l1o2u3i4s5
|
Post by Alan Vende on Feb 1, 2015 14:07:37 GMT -8
Thank you for your help! And I thought you were talking about the profiles themselves. Lol. Thank you again I thought that that If Statement made it so it only appeared on the mini profiles of the staff, not for staff only lol!
|
|