inherit
221074
0
Aug 1, 2019 9:11:47 GMT -8
dillonk47polik
201
May 2015
dillonk47polik
|
Post by dillonk47polik on May 4, 2015 19:30:27 GMT -8
I followed the following instructions and was able to remove the "Welcome. Username" Is there a way to place the word "Profile" where "Welcome. Username" was and have it link to the member's profile? "Logout" is underlined, could "Profile" not be underlined and look like it does as a part of the navigation bar? Go to Admin -- Structure -- Layout templates -- forum wrapperremove the following line: {if !$[current_user.is_member]} Welcome Guest. Please $[login_link] or $[register_link]. {else} <span>Welcome $[current_user.name].</span> $[logout_link] {/if} if you want to keep the "welcome guest" then just remove: {else} <span>Welcome $[current_user.name].</span> $[logout_link]
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on May 5, 2015 12:30:21 GMT -8
Hi, dillonk47polik. I believe adding this to that same line either before or after the $[logout_link] variable should accomplish it.
|
|
inherit
221074
0
Aug 1, 2019 9:11:47 GMT -8
dillonk47polik
201
May 2015
dillonk47polik
|
Post by dillonk47polik on May 5, 2015 13:43:25 GMT -8
Thanks BrianAfter putting in your code, I was able to google how to remove underlines from html code links and put STYLE="text-decoration: none" in along with the code you provided me. And I already that put spaces in code, so I was able to put a space in between the Profile and Logout links. Thanks for the code you gave me It did what I wanted.
|
|
inherit
221074
0
Aug 1, 2019 9:11:47 GMT -8
dillonk47polik
201
May 2015
dillonk47polik
|
Post by dillonk47polik on May 5, 2015 13:57:05 GMT -8
Brian Is there a way for the Profile link to only show up for members? And be hidden from guests since they do not have profile? Here is a copy of my current code: <p id="welcome"> <a href="/user/$[current_user.id]" STYLE="text-decoration: none">Profile</a> | {if !$[current_user.is_member]} {if $[login_link] || $[register_link]} $[login_link]{if $[login_link] && $[register_link]} or {/if}$[register_link]. {/if} {else} $[logout_link] {/if} </p>
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on May 5, 2015 13:59:27 GMT -8
If you place it right before the $[logout_link] variable (between {else} and {/if} it should only show for registered users since the if statement around that section tells it to only show the logout link for registered users.
|
|
anna12
Junior Member
Posts: 349
inherit
221182
0
Feb 11, 2016 10:45:10 GMT -8
anna12
349
May 2015
anna12
|
Post by anna12 on May 5, 2015 16:23:52 GMT -8
This is nice!
|
|