Render js_profile_top module

Responsive Joomla template for Entertainment and Music purpose with clean and lightweight design.
GK User
Tue Sep 18, 2012 1:01 pm
Hi,

I added this module at the frontpage.index.php file to show a sort of welcome text inside. Everything's fine except when I enter into someone's profile: this welcome text of the frontpage appears at the top (it's the only place appart from the frontpage where it shows) and it shouldn't...

Any help please?

Thank you
User avatar
Junior Boarder

Konrad M
Tue Sep 18, 2012 7:01 pm
Hi,
can you send me PM with some test account to check it ?
User avatar

GK User
Wed Sep 19, 2012 8:34 am
Done, thank you
User avatar
Junior Boarder

Konrad M
Wed Sep 19, 2012 10:16 am
OK I've got it. But I need to have some frends added or link to someone else profile account. Becasue now I can't find it. Did you unpublish this module, becasue I didn't find it in my profile after I logged in.
User avatar

GK User
Wed Sep 19, 2012 10:22 am
in this type of site there'll be no friends, just group members, so you'll find profiles to view into your group
User avatar
Junior Boarder

GK User
Thu Sep 20, 2012 11:09 am
I'm still waiting here...
User avatar
Junior Boarder

Konrad M
Thu Sep 20, 2012 11:26 am
I checked it, tell me did you do some changes in source code or you just publish module ? I need one thing more access to joomla back-end.
User avatar

GK User
Thu Sep 20, 2012 4:59 pm
it's a module I added in the code and it is supposed to appear only in the frontpage but it also do it viewing other's profile and it should'nt

the only code I added was:

Code: Select all
<?php $this->renderModules( 'js_profile_top' ); ?>



I had given you access to backend. The module is named "Bienvenidos"
User avatar
Junior Boarder

Konrad M
Fri Sep 21, 2012 11:59 am
Try publish your module in 'js_side_top' position. And only on welcome page.
User avatar

GK User
Fri Sep 21, 2012 4:05 pm
that doesn't help, if I publish in that position the welcome text appears on the right side and still can see it in other member's profile...you have access to the administrator, please try your answers before posting them wrong
User avatar
Junior Boarder

Konrad M
Mon Sep 24, 2012 9:28 am
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');
   }

}
User avatar

GK User
Mon Sep 24, 2012 5:17 pm
That's it, thanks for your work
User avatar
Junior Boarder


cron