bai
Junior Member
I coughed. Then I went into labor.
Posts: 209
inherit
tbsofficial@outlook.com
241711
0
Sept 23, 2018 14:23:39 GMT -8
bai
I coughed. Then I went into labor.
209
February 2017
bai
|
Post by bai on Sept 20, 2018 12:06:41 GMT -8
I am currently coding a custom profile layout, and have decided to move around a follow button. Clicking the follow button only makes the page move. Doesn't do anything. What am I doing wrong? Here is a snippet of my profile code for now. HTML <span class="interact-buttons">{if $[current_user.id] != $[user.id]} <br>$[user.follow_button] {/if}</span> CSS (if that's the problem?) .interact-buttons {float: right; margin-right: -40px; margin-top: 37px;}
|
|
#eb7100
33409
0
1
May 2, 2024 15:37:37 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on Sept 20, 2018 13:28:57 GMT -8
$[user.follow_button] doesn't actually do anything.
You can use $[follow_button] to produce the Follow button but it only works in the User Profile template.
|
|
bai
Junior Member
I coughed. Then I went into labor.
Posts: 209
inherit
tbsofficial@outlook.com
241711
0
Sept 23, 2018 14:23:39 GMT -8
bai
I coughed. Then I went into labor.
209
February 2017
bai
|
Post by bai on Sept 20, 2018 14:40:23 GMT -8
$[user.follow_button] doesn't actually do anything. You can use $[follow_button] to produce the Follow button but it only works in the User Profile template. That's where I am using it! Thanks! But now the Unfollow button is not aligned. Brian
|
|
#eb7100
33409
0
1
May 2, 2024 15:37:37 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on Sept 20, 2018 14:57:19 GMT -8
This is purely due to your .interact-buttons element having CSS that absolute positions it on the page in that manner.
|
|