inherit
229600
0
Sept 7, 2022 11:09:51 GMT -8
Ben Goodman
96
February 2016
benhun
|
Post by Ben Goodman on May 11, 2017 11:20:18 GMT -8
I came up with the idea to allow my users to set up a custom user navbar, but the problem is that it wont recognize my custom fields/recognizes someone elses user field (like on the profile). The basic idea is to allow my users to set up quick links on my board, wherever they want. This is my code, it is not completed, because the menu wont work.
<style>
td.private_menu:hover{background-color:#0c0c0c;
text-align: center;
color:white}
td.private_menu{background-color:black;
text-align: center;
color:#aab0b3}
</style><br>
<table style="background-color:black;border: 2px solid black;border-radius:18px;" width="100%" >
<tbody>
<tr>
<td class="private_menu">{foreach $[user.mini_custom_field]}{if $[user.mini_custom_field.name] == "URL 1 Name"}<strong>$[user.mini_custom_field.value]</strong>{/foreach}</td>
<td class="private_menu">Link 2</td>
<td class="private_menu">Link 3</td>
<td class="private_menu">Link 4</td>
<td class="private_menu">Link 5</td>
</tr>
</tbody>
</table>
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on May 11, 2017 14:39:13 GMT -8
$[user.mini_custom_field] gets the information of the user you're currently viewing the profile of. If you want the values assigned to the account you're logged into you'll need to use $[current_user.mini_custom_field] instead.
Also, it's of little consequence in this case, but mini_custom_field targets custom fields that are visible in the mini-profile while custom_field targets those visible in their full profile (since there's an option in your custom field settings to choose whether to display a custom field in one or the other).
|
|
inherit
240769
0
Jan 25, 2018 15:25:43 GMT -8
RuanPortes
I'm love Badge
74
January 2017
ruanportes
|
Post by RuanPortes on May 12, 2017 14:07:55 GMT -8
:
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on May 12, 2017 14:47:24 GMT -8
: This is now your 4th post in a row that adds absolutely nothing of value other than spam. It's rather annoying seeing posts like yours that are used to bump up a post counter. Post something that is on topic and worthwhile for us members to read, otherwise I can see your stay here being quite a short one by looking at your post history.
|
|
inherit
229600
0
Sept 7, 2022 11:09:51 GMT -8
Ben Goodman
96
February 2016
benhun
|
Post by Ben Goodman on May 12, 2017 22:52:00 GMT -8
Anyways, got it to to work, so can be mark as solved
|
|
inherit
240769
0
Jan 25, 2018 15:25:43 GMT -8
RuanPortes
I'm love Badge
74
January 2017
ruanportes
|
Post by RuanPortes on May 13, 2017 13:41:33 GMT -8
Hoo yes
|
|