Ok. Please set your module to your first position. Then please add this rule to override.css
- Code: Select all
.nodisplay {
display:none;
}
then please add ' welcome' suffix to your module and last thing you need to do is add this to js/gkscripts.js In this file find:
- Code: Select all
//changes for module in jomsocial position
if(document.getElements('.moduletable')){
var el = document.getElements('.moduletable');
var tab = document.getElements('.moduletable h3');
for (var i=0; i < tab.length; i++) {
tab[i].addClass('header').innerHTML = '<span>'+ tab[i].get('html')+'</span>';
if(el[i].hasClass('border2')) {
el[i].addClass('box').innerHTML = '<div><div>'+ el[i].get('html')+'</div></div>';
} else {
el[i].addClass('box').innerHTML = '<div>'+ el[i].get('html')+'</div>';
}
}
}
and add this code after it :
- Code: Select all
if(document.id('cProfileWrapper')) {
var em = document.getElements('.welcome');
for (var i=0;i<em.length;i++) {
em[i].addClass('nodisplay');
}
}