Change Variable Text
2 posters
Page 1 of 1
Change Variable Text
I've spent about 2 hours looking for this and nothing.
I want to know how to change Log out [ !_NICK_! ] to just Log out.
I also want to change the text of some variables. Like the variable text is, "Your last visit was on Sat Apr 21, 2012 12:15 pm". I want to change it to, "Last Visit: Sat Apr 21, 2012 12:15 pm".
I hope you'all understand, I've seen this done before.
I want to know how to change Log out [ !_NICK_! ] to just Log out.
I also want to change the text of some variables. Like the variable text is, "Your last visit was on Sat Apr 21, 2012 12:15 pm". I want to change it to, "Last Visit: Sat Apr 21, 2012 12:15 pm".
I hope you'all understand, I've seen this done before.
!_NICK_!- Active Poster
- Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.
Re: Change Variable Text
To change logout put this in an announcement or widget or somewhere:
- Code:
<script>
if(document.getElementById('logout')) { document.getElementById('logout').innerHTML='Log Out'; }
</script>
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Change Variable Text
Your the one I was looking for LGforum.
It won't let me change the profile either. Can I have the code for that and the Logout. I want the profile button to say Settings.
It won't let me change the profile either. Can I have the code for that and the Logout. I want the profile button to say Settings.
!_NICK_!- Active Poster
- Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.
Re: Change Variable Text
This should do both of them for you:
I always recommend putting navbar related things in an announcement block, as then the effect is instant
- Code:
<script>
if(document.getElementById('logout')) { document.getElementById('logout').innerHTML='Log Out';
document.getElementById('i_icon_mini_profile').nextSibling.nodeValue='Settings';
}
</script>
I always recommend putting navbar related things in an announcement block, as then the effect is instant
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Change Variable Text
Thank you, I was including the "if" tag in it twice.
Can you help em change the part of the last visit variable?
Also, I'm having trouble hiding the groups on top. Any Ideal on how to do this?
Can you help em change the part of the last visit variable?
Also, I'm having trouble hiding the groups on top. Any Ideal on how to do this?
!_NICK_!- Active Poster
- Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.
Re: Change Variable Text
Change it all for this:
And for the last visit text i've never looked at that bit on PunBB sorry. Hopefully someone else will help.
- Code:
<script>
if(document.getElementById('logout')) { document.getElementById('logout').innerHTML='Log Out';
document.getElementById('i_icon_mini_profile').nextSibling.nodeValue='Settings';
document.getElementById('i_icon_mini_groups').parentNode.parentNode.parentNode.removeChild(document.getElementById('i_icon_mini_groups').parentNode.parentNode);
}
</script>
And for the last visit text i've never looked at that bit on PunBB sorry. Hopefully someone else will help.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Change Variable Text
I've seen it done before, and I'm pretty sure you was the one to give it to me. 'll wait for someone else to help me with it.
!_NICK_!- Active Poster
- Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.
!_NICK_!- Active Poster
- Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.
Re: Change Variable Text
Now how will I be able to edit anything else? For like when I want to change another variable text?
!_NICK_!- Active Poster
- Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.
Re: Change Variable Text
Well, I'd love to learn Javascript, but I'm not sure I can learn it, it's looking confusing with all the ', +, -, and all the other symbols. Any ideal on where to start for forumotion forums javascript?
!_NICK_!- Active Poster
- Posts : 1505
Reputation : 69
Language : English, HTML, and CSS
Location : In the middle of no return.
Similar topics
» Chat box text color change/shadow change
» text change.
» Text change.
» How can I change this text?
» Change the text!
» text change.
» Text change.
» How can I change this text?
» Change the text!
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum