Coding-Spot

You are not connected. Please login or register

 
 
 

[HELP] Tool Bar "Welcome ***"

Message (Page 1 of 1)

#1

mioshi11

mioshi11
 
Advance Member

Posted April 29th 2013, 5:35 pm

 
Is it posibble to Change "Welcome ***" to "Logged in as ***" i am a Invision user ^^
Hope you can help me ^^ Thank you admins Fighting!!





#2

Mark

Mark
 
Administrator
Administrator

Posted April 29th 2013, 5:36 pm

 
Add this to your JS Management (Check in all pages):
Code:
function changeToolbar(word, replacement) {
    for (var name in word) {
        document.getElementById('fa_welcome').innerHTML = document.getElementById('fa_welcome').innerHTML.replace(RegExp(name, 'g'), word[name]);
    }
}

$(window).load(function () {
    changeToolbar({
        'Welcome': 'Logged in as',
    });
});

Then save. :D:



https://coding-spot.darkbb.com


#3

mioshi11

mioshi11
 
Advance Member

Posted April 29th 2013, 5:40 pm

 
wow~! it works~! but is it possible to add an icon before the word "Logged in as ***"





#4

Mark

Mark
 
Administrator
Administrator

Posted April 29th 2013, 5:52 pm

 
What icon you want to add? Provide me the image link :):.



https://coding-spot.darkbb.com


#5

mioshi11

mioshi11
 
Advance Member

Posted April 29th 2013, 5:54 pm

 
This one hihi http://coreclique.com/forums/public/style_images/master/user_green.png





#6

Mark

Mark
 
Administrator
Administrator

Posted April 29th 2013, 5:58 pm

 
Add this to your JS Management (Check to all pages):
Code:
$(window).load(function(){
var x = document.getElementById('fa_usermenu').getElementsByTagName('img')[0].src;
document.getElementById('fa_welcome').insertAdjacentHTML('afterbegin', '<img style="margin-bottom: -3px;" src="http://coreclique.com/forums/public/style_images/master/user_green.png"/>');
});



https://coding-spot.darkbb.com


#7

mioshi11

mioshi11
 
Advance Member

Posted April 29th 2013, 6:23 pm

 
it works Thanks ^^ Lock it now ^^





#8

Mark

Mark
 
Administrator
Administrator

Posted April 29th 2013, 7:02 pm

 
Since the problem is solved, i'll locked this and move to archive section. :D:
~ Locked and Moved



https://coding-spot.darkbb.com


#9

Sponsored content


 

Posted

 





Message (Page 1 of 1)

Permissions in this forum:
You cannot reply to topics in this forum

In total there is 0 user online :: 0 Registered, 0 Hidden and 0 Guests

Users browsing this forum: None