inherit
239585
0
Aug 21, 2024 12:30:16 GMT -8
lauraloulou
9
November 2016
lauraloulou
|
Post by lauraloulou on Apr 1, 2024 18:11:02 GMT -8
Is there a code to make a generic "Welcome, Username" so that members know what account they have logged into?
If so, can someone give me this code and tell me where exactly I need to put it so that it shows up next to the logout button on the navigation bar?
Thank so much! <3
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 1, 2024 19:44:11 GMT -8
Primer: Adjusting the Forum Layout Templates lauraloulou to direct you on how to add that feature back, we would need to know on which theme you are observing the issue. If it is not the default theme, then post a copy of the contents of the forum wrapper template so we can see what was changed. If it is set as the default theme for the forum, then a link to the forum so we can see for ourselves what was changed might be all that is needed. On a standard theme, the part that shows the user what name they have logged in under resides in the forum wrapper template <p id="welcome"> {if !$[current_user.is_member]} Welcome Guest. {if $[login_link] || $[register_link]} Please $[login_link]{if $[login_link] && $[register_link]} or {/if}$[register_link]. {/if} {else} <span>Welcome $[current_user.name].</span> $[logout_link] {/if} </p>
|
|
inherit
239585
0
Aug 21, 2024 12:30:16 GMT -8
lauraloulou
9
November 2016
lauraloulou
|
Post by lauraloulou on Apr 2, 2024 0:59:34 GMT -8
Primer: Adjusting the Forum Layout Templates lauraloulou to direct you on how to add that feature back, we would need to know on which theme you are observing the issue. If it is not the default theme, then post a copy of the contents of the forum wrapper template so we can see what was changed. If it is set as the default theme for the forum, then a link to the forum so we can see for ourselves what was changed might be all that is needed. On a standard theme, the part that shows the user what name they have logged in under resides in the forum wrapper template <p id="welcome"> {if !$[current_user.is_member]} Welcome Guest. {if $[login_link] || $[register_link]} Please $[login_link]{if $[login_link] && $[register_link]} or {/if}$[register_link]. {/if} {else} <span>Welcome $[current_user.name].</span> $[logout_link] {/if} </p> Hi, sorry about that, I should have linked the site! Here it is, heartsandthrones.freeforums.net/ BUT that code worked so thank you!
|
|
inherit
239585
0
Aug 21, 2024 12:30:16 GMT -8
lauraloulou
9
November 2016
lauraloulou
|
Post by lauraloulou on Apr 2, 2024 1:30:22 GMT -8
When I log in as a charater, it looks like this. When I log into my admin account, it looks like this. I am assuming the trouble is the navigation bar needs to be wider (longer) to fit character names in there. Could I get some help on the code for this and where to add it? heartsandthrones.freeforums.net/Thanks
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 2, 2024 5:38:21 GMT -8
When I log in as a charater, it looks like this. When I log into my admin account, it looks like this. I am assuming the trouble is the navigation bar needs to be wider (longer) to fit character names in there. Could I get some help on the code for this and where to add it? heartsandthrones.freeforums.net/Thanks
The artistic decision to restrict the size and position of that navbar was a sacrifice to the aesthetic gods. The engineer in me prioritizes functionality whenever it conflicts with aesthetics. I would remove the restriction that gives that navbar a left margin of 116px and a fixed width of 610px so it can grow to accommodate more offspring and not bother the neighbors. The engineer and the muffled artist in me both agree that an acceptable alternative would be to move the greeting down to where there is a more generic greeting saying "WELCOME TO HEARTS AND THRONES." But for that to happen, someone would have to look over your shoulder to see everything in the wrapper template (and perhaps related child templates) to see how things were done to move forward, or you could post the entire wrapper template here. Pictures will reveal artistic decisions, but access to coding is necessary for engineering decisions.
|
|
inherit
239585
0
Aug 21, 2024 12:30:16 GMT -8
lauraloulou
9
November 2016
lauraloulou
|
Post by lauraloulou on Apr 2, 2024 11:36:46 GMT -8
Chris -- Thank you so much for all your help! I have managed to put it in the WELCOME TO HEARTS AND THRONES title bar, however, there's a very small spacing discrepancy. If you notice in the below image, the title is spaced evenly but the "Hello, Isaac is lower. Thoughts? - below is the section of the forum wrapper I modified to it in. <div class="titles1">WELCOME TO $[forum.name] <p id="welcome"> {if !$[current_user.is_member]} Welcome Guest. {if $[login_link] || $[register_link]} Please $[login_link]{if $[login_link] && $[register_link]} or {/if}$[register_link]. {/if} {else} <span>Hello, $[current_user.name].</span> {/if} </p></div>
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 2, 2024 20:04:42 GMT -8
Chris -- Thank you so much for all your help! I have managed to put it in the WELCOME TO HEARTS AND THRONES title bar, however, there's a very small spacing discrepancy. If you notice in the below image, the title is spaced evenly but the "Hello, Isaac is lower. Thoughts? - below is the section of the forum wrapper I modified to it in. <div class="titles1">WELCOME TO $[forum.name] <p id="welcome"> {if !$[current_user.is_member]} Welcome Guest. {if $[login_link] || $[register_link]} Please $[login_link]{if $[login_link] && $[register_link]} or {/if}$[register_link]. {/if} {else} <span>Hello, $[current_user.name].</span> {/if} </p></div>
That is due to a CSS rule forcing the line height to 31px and using the !important modifier to boot. In order to counteract that you would need to start an arms race and invoke your own nuclear option <p id="welcome" style="line-height:normal!important;" >
|
|