inherit
180580
0
Oct 13, 2024 16:46:13 GMT -8
My Display Name
335
June 2012
jsher1994
|
Post by My Display Name on Nov 20, 2012 4:10:42 GMT -8
This was a request.
Go to Admin -- Structure -- Layout templates -- forum wrapper
remove 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]
|
|
inherit
186770
0
Jan 19, 2013 3:22:38 GMT -8
user07
193
December 2012
user07
|
Post by user07 on Dec 5, 2012 5:30:58 GMT -8
Is it possible to replace "Guest" with another word?
|
|
inherit
126477
0
Apr 21, 2023 15:18:52 GMT -8
Shrike
Re-appeared briefly after 6 years only to no doubt disappear again.
1,569
June 2008
shrike
|
Post by Shrike on Dec 5, 2012 5:32:53 GMT -8
Is it possible to replace "Guest" with another word? Yep, it's just plain text. It's things inside these < arrows > of HTML tags and the $[blah] variables that you want to be careful about changing.
|
|
inherit
186770
0
Jan 19, 2013 3:22:38 GMT -8
user07
193
December 2012
user07
|
Post by user07 on Dec 5, 2012 5:47:12 GMT -8
Thanks Shrike! ... but... I'm sorry I'm that ignorant ... How exactly am I supposed to replace one word with another ? in v4 there is this code here: <script> document.getElementsByTagName("td").item(2).innerHTML = document.getElementsByTagName("td").item(2).innerHTML.replace(/Guest/i,"visitor").replace(/hey,/i,"Welcome"); </script> But I think in v5 something different is needed, isn't it?
|
|
inherit
126477
0
Apr 21, 2023 15:18:52 GMT -8
Shrike
Re-appeared briefly after 6 years only to no doubt disappear again.
1,569
June 2008
shrike
|
Post by Shrike on Dec 5, 2012 5:50:45 GMT -8
Do you mean where it says "Welcome Guest. Please login or register" at the end of the menu? Find this part of code in the forum wrapper template as per the instructions in Justin's post above and simply change Guest to what you want: {if !$[current_user.is_member]} Welcome Guest. Please $[login_link] or $[register_link].
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Jul 22, 2024 13:57:10 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Dec 5, 2012 5:57:30 GMT -8
Thanks Shrike! ... but... I'm sorry I'm that ignorant ... How exactly am I supposed to replace one word with another ? in v4 there is this code here: <script> document.getElementsByTagName("td").item(2).innerHTML = document.getElementsByTagName("td").item(2).innerHTML.replace(/Guest/i,"visitor").replace(/hey,/i,"Welcome"); </script> But I think in v5 something different is needed, isn't it? Find the code in the first page again, I've coloured it in for you to show you what to do. =] {if !$[current_user.is_member]} Welcome Guest. Please $[login_link] or $[register_link]. {else} <span>Welcome $[current_user.name].</span> $[logout_link] {/if}The word Guest in purple is what displays on the screen. You can change that simply by deleting it, and typing over it. No coding or fancy stuff needed. The bit in orange is the bit you're wanting to remove - it contains the "Welcome *name*. Logout" text. Nice and easy. =] Like Shrike said before, if it's not a $[variable ] or <html >, feel free to play. The best way to do it is to have your template open in one tab/window, and the forum open in another. That way, if you make a change to the template, you can view it in the forum by clicking to the other tab and hitting refresh. If you like what you see, brilliant. If not, just head back to the template tab and undo, save again. No harm done. =] ed; sorry Shrike, must have had the window open a while before I replied mate. =P
|
|
inherit
186770
0
Jan 19, 2013 3:22:38 GMT -8
user07
193
December 2012
user07
|
Post by user07 on Dec 5, 2012 6:54:52 GMT -8
Shrike, Paul, thank you !
|
|
Entris
Junior Member
Posts: 281
inherit
158702
0
Dec 31, 2014 9:05:29 GMT -8
Entris
281
September 2010
entris
|
Post by Entris on Jan 22, 2013 11:36:13 GMT -8
Ok, I added the <!--/--> to that code but noticed that altering that will remove the logout link. I would like to keep the logout but get rid of the "Welcome Name" part but adding the <!-- part to the other things just messes up the looks. The "Logout" ends up a bit above the other menu buttons and looks messy. If I remove all that with the <!--/--> to the whole code is there a way to get a "Logout" link to the menu with the other buttons that will be aligned with the rest? atm I did this "<!--<span>Welcome $[current_user.name].</span>-->" but then the logout ends up against the banner instead of in the middle as the rest of the buttons. Same goes for the "Welcome guest login.." text as you can see here: link
|
|
Entris
Junior Member
Posts: 281
inherit
158702
0
Dec 31, 2014 9:05:29 GMT -8
Entris
281
September 2010
entris
|
Post by Entris on Jan 27, 2013 12:18:00 GMT -8
I decided to set it all back again since it was screwing up the alignment with the links in the menu row the "Welcome guest.." and "Welcome <Name>" part is still messed up and not aligned with the menu links. AFAIK I haven't changed anything with the code all I did was adding the <!--/--> to the code and removed it when i noticed it didn't do as I wanted and that it wasn't aligned but that didn't set things back to the original way it was.
Anyone know how to get that aligned and set up as it was?
|
|
inherit
186770
0
Jan 19, 2013 3:22:38 GMT -8
user07
193
December 2012
user07
|
Post by user07 on Jan 27, 2013 13:30:46 GMT -8
I guess there is an easier way, but, anyway, if you temporarily create a brand new default theme and then confrontate its Forum Wrapper's Layout Template with the one of the theme you're talking about, you should be able to see what's wrong... Or not ?!
|
|
Entris
Junior Member
Posts: 281
inherit
158702
0
Dec 31, 2014 9:05:29 GMT -8
Entris
281
September 2010
entris
|
Post by Entris on Jan 28, 2013 13:37:37 GMT -8
I guess there is an easier way, but, anyway, if you temporarily create a brand new default theme and then confrontate its Forum Wrapper's Layout Template with the one of the theme you're talking about, you should be able to see what's wrong... Or not ?! Seems to be the only option atm so gave it a shot, made a new theme and then copied and pasted the code in and it worked. Tyvm for the help
|
|
inherit
167603
0
Aug 5, 2013 21:55:15 GMT -8
LifeOfWylie
261
June 2011
wylie
|
Post by LifeOfWylie on Feb 5, 2013 5:21:50 GMT -8
Here's the config to remove the "Welcome..." part, leaving "Please login..." and/or "Logout." You have to hide both welcomes: <p id="welcome"> {if !$[current_user.is_member]} <!--Welcome, Guest. -->Please $[login_link] or $[register_link]. {else} <!--<span>Welcome, $[current_user.name].</span> -->$[logout_link] {/if} </p>
|
|