bubu
New Member
Posts: 19
inherit
269110
0
Mar 2, 2024 8:17:03 GMT -8
bubu
19
February 2024
bubu
|
Post by bubu on Feb 22, 2024 2:07:46 GMT -8
Forum URL: (private)
Hi! It's me again. I have a problem with the users/members button, when I press several, the window opens but there are no users in it. Do I have something blocked in the administration panel or is the problem in the code?
<div class="links">
<a href="/" class="tooltip" title="Home">
<i class="fas fa-home"></i>
</a>
<a href="/user/$[current_user.id]" class="tooltip" title="Profile">
<i class="fas fa-user"></i>
</a>
{if !$[current_user.is_guest]}
<a href="/user/$[current_user.id]/notifications" class="{if $[current_user.new_notifications] > 0}alert {/if}tooltip" title="{if $[current_user.new_notifications] > 0}$[current_user.new_notifications] {/if}notification{if $[current_user.new_notifications] != 1}s{/if}">
<i class="fas fa-bell"></i>
</a>
<a href="/conversations" class="{if $[current_user.messages.new] > 0}alert {/if}tooltip" title="{if $[current_user.messages.new] > 0}$[current_user.messages.new] {/if}message{if $[current_user.messages.new] != 1}s{/if}">
<i class="fas fa-envelope"></i>
</a>
<a href="/members" class="tooltip" title="Members">
<i class="fas fa-users"></i>
</a>
<a href="/search" class="tooltip" title="Search">
<i class="fas fa-search"></i>
</a>
<a href="$[register_link.href]" class="tooltip" title="Register" style="margin-bottom: 0;">
<i class="fas fa-plus"></i>
</a>
|
|
#eb7100
1480
0
1
Apr 27, 2024 2:30:37 GMT -8
Craig
208,868
September 2001
cmdynasty
|
Post by Craig on Feb 22, 2024 3:38:18 GMT -8
Hey bubu I don't think the issue is with that code. Could you post what you currently have in your members template. admin > themes > layout templates > members
|
|
bubu
New Member
Posts: 19
inherit
269110
0
Mar 2, 2024 8:17:03 GMT -8
bubu
19
February 2024
bubu
|
Post by bubu on Feb 22, 2024 5:13:28 GMT -8
Hey bubu I don't think the issue is with that code. Could you post what you currently have in your members template. admin > themes > layout templates > membersHi Craig! Thank you for your answer! Well, in layout templates I had nothing, must have thrown out the code but now it's fine! But maybe you can help me with another thing so that I don't have to start another topic with the problem How can I make this button responsible for logging in and logging out at the same time on the forum? I can't do it in code and I had to provide two separate buttons - one for logging in and the other for logging out. I don't know how to combine them into one <a href="$[login_link.href]" class="tooltip" title="Log In"> <i class="fas fa-power-off"></i> </a> <a href="$[logout_link.href]" class="tooltip" title="Log Out" style="margin-bottom: 0;"> <i class="fas fa-power-off"></i> </a> {else} <a href="$[login_link.href]" class="tooltip" title="log in"> <i class="fas fa-power-off"></i> </a> <a href="$[register_link.href]" class="tooltip" title="register"> <i class="fas fa-plus"></i> </a>
|
|
#eb7100
1480
0
1
Apr 27, 2024 2:30:37 GMT -8
Craig
208,868
September 2001
cmdynasty
|
Post by Craig on Feb 22, 2024 5:51:24 GMT -8
You could try this <a href="{if $[current_user.is_guest]}$[login_link.href]{else}$[logout_link.href]{/if}" class="tooltip" title="{if $[current_user.is_guest]}Log In{else}Logout{/if}"> <i class="fas fa-power-off"></i> </a>
{if $[register_link]} <a href="$[register_link.href]" class="tooltip" title="register"> <i class="fas fa-plus"></i> </a> {/if}
That should display the login/logout button and the register button That will
|
|
bubu
New Member
Posts: 19
inherit
269110
0
Mar 2, 2024 8:17:03 GMT -8
bubu
19
February 2024
bubu
|
Post by bubu on Feb 22, 2024 6:17:38 GMT -8
You could try this <a href="{if $[current_user.is_guest]}$[login_link.href]{else}$[logout_link.href]{/if}" class="tooltip" title="{if $[current_user.is_guest]}Log In{else}Logout{/if}"> <i class="fas fa-power-off"></i> </a>
{if $[current_user.is_guest] && $[register_link]} <a href="$[register_link.href]" class="tooltip" title="register"> <i class="fas fa-plus"></i> </a> {/if}
That should display the login/logout button and the register button That will Hmm, logging out and registering works, there is no option to log in. After logging out, the logout and registration icons disappear (there is still no login icon)
|
|
#eb7100
1480
0
1
Apr 27, 2024 2:30:37 GMT -8
Craig
208,868
September 2001
cmdynasty
|
Post by Craig on Feb 22, 2024 6:32:40 GMT -8
Could you post the whole section of code you have for the menu It is working ok on my test forum, so i wonder if something else is interfering with it.
|
|
bubu
New Member
Posts: 19
inherit
269110
0
Mar 2, 2024 8:17:03 GMT -8
bubu
19
February 2024
bubu
|
Post by bubu on Feb 22, 2024 6:37:26 GMT -8
Could you post the whole section of code you have for the menu It is working ok on my test forum, so i wonder if something else is interfering with it. It looks like this: <!-- LINKI IKONKI --> <div class="links"> <a href="/" class="tooltip" title="Home"> <i class="fas fa-home"></i> </a> <a href="/user/$[current_user.id]" class="tooltip" title="Profile"> <i class="fas fa-user"></i> </a> {if !$[current_user.is_guest]} <a href="/user/$[current_user.id]/notifications" class="{if $[current_user.new_notifications] > 0}alert {/if}tooltip" title="{if $[current_user.new_notifications] > 0}$[current_user.new_notifications] {/if}notification{if $[current_user.new_notifications] != 1}s{/if}"> <i class="fas fa-bell"></i> </a> <a href="/conversations" class="{if $[current_user.messages.new] > 0}alert {/if}tooltip" title="{if $[current_user.messages.new] > 0}$[current_user.messages.new] {/if}message{if $[current_user.messages.new] != 1}s{/if}"> <i class="fas fa-envelope"></i> </a> <a href="/members" class="tooltip" title="Members"> <i class="fas fa-users"></i> </a> <a href="/search" class="tooltip" title="Search"> <i class="fas fa-search"></i> </a> <a href="$[register_link.href]" class="tooltip" title="Register" style="margin-bottom: 0;"> <i class="fas fa-plus"></i> </a> <a href="$[login_link.href]" class="tooltip" title="Log In"> <i class="fas fa-power-off"></i> </a> <a href="$[logout_link.href]" class="tooltip" title="Log Out" style="margin-bottom: 0;"> <i class="fas fa-power-off"></i> </a> {else} <a href="$[login_link.href]" class="tooltip" title="log in"> <i class="fas fa-power-off"></i> </a> <a href="$[register_link.href]" class="tooltip" title="register"> <i class="fas fa-plus"></i> </a> {/if} </div> </div> The icons repeated at the top belong to the navigation on the left side of the page. What should I remove?
|
|
#eb7100
1480
0
1
Apr 27, 2024 2:30:37 GMT -8
Craig
208,868
September 2001
cmdynasty
|
Post by Craig on Feb 22, 2024 6:52:04 GMT -8
This should show all of the buttons if you replace the whole menu code with this:
<div class="links"> <a href="/" class="tooltip" title="Home"> <i class="fas fa-home"></i> </a>
{if !$[current_user.is_guest]} <a href="/user/$[current_user.id]" class="tooltip" title="Profile"> <i class="fas fa-user"></i> </a> <a href="/user/$[current_user.id]/notifications" class="{if $[current_user.new_notifications] > 0}alert {/if}tooltip" title="{if $[current_user.new_notifications] > 0}$[current_user.new_notifications] {/if}notification{if $[current_user.new_notifications] != 1}s{/if}"> <i class="fas fa-bell"></i> </a>
<a href="/conversations" class="{if $[current_user.messages.new] > 0}alert {/if}tooltip" title="{if $[current_user.messages.new] > 0}$[current_user.messages.new] {/if}message{if $[current_user.messages.new] != 1}s{/if}"> <i class="fas fa-envelope"></i> </a>
<a href="/members" class="tooltip" title="Members"> <i class="fas fa-users"></i> </a>
<a href="/search" class="tooltip" title="Search"> <i class="fas fa-search"></i> </a>
{/if} <a href="{if $[current_user.is_guest]}$[login_link.href]{else}$[logout_link.href]{/if}" class="tooltip" title="{if $[current_user.is_guest]}Log In{else}Logout{/if}"> <i class="fas fa-power-off"></i> </a> {if $[current_user.is_guest] && $[registration.enabled]} <a href="$[register_link.href]" class="tooltip" title="register"> <i class="fas fa-plus"></i> </a> {/if}
</div>
|
|
bubu
New Member
Posts: 19
inherit
269110
0
Mar 2, 2024 8:17:03 GMT -8
bubu
19
February 2024
bubu
|
Post by bubu on Feb 22, 2024 7:08:03 GMT -8
Not working - when I change the codes it cuts the bar
|
|
#eb7100
1480
0
1
Apr 27, 2024 2:30:37 GMT -8
Craig
208,868
September 2001
cmdynasty
|
Post by Craig on Feb 22, 2024 7:12:43 GMT -8
Could you put it back in, but leave it in so i can see it in action. Or if you would rather, put it in, and if it doesn't work, post the section of code, including it's surrounding lines, so we can see how it sits within that code.
|
|
bubu
New Member
Posts: 19
inherit
269110
0
Mar 2, 2024 8:17:03 GMT -8
bubu
19
February 2024
bubu
|
Post by bubu on Feb 22, 2024 7:21:36 GMT -8
sure, it's on!
|
|
#eb7100
1480
0
1
Apr 27, 2024 2:30:37 GMT -8
Craig
208,868
September 2001
cmdynasty
|
Post by Craig on Feb 22, 2024 7:23:08 GMT -8
Thanks. Pop another </div> below it and it should hopefully be good
|
|
bubu
New Member
Posts: 19
inherit
269110
0
Mar 2, 2024 8:17:03 GMT -8
bubu
19
February 2024
bubu
|
Post by bubu on Feb 22, 2024 7:26:51 GMT -8
OMG, thank you from the bottom of my heart, Craig!!!
|
|
#eb7100
1480
0
1
Apr 27, 2024 2:30:37 GMT -8
Craig
208,868
September 2001
cmdynasty
|
Post by Craig on Feb 22, 2024 7:27:20 GMT -8
You're most welcome. Glad i could help
|
|