HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[RESOLVED] - 8.1.2 - Editing Profile ...

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#88633 (In Topic #17945)
Avatar

Community saint


I don't think I can add any more info …


Last edit: by Fletch

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#88645
Avatar

OCF_MEMBER_PROFILE_SCREEN.tpl was updated to handle the new AJAX-based tabs, you'll need to update your override.

Sorry for not mentioning, I forgot about this.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#88648
Avatar

Community saint

Chris Graham said

OCF_MEMBER_PROFILE_SCREEN.tpl … you'll need to update your override …

No overrides in place - not even in 'default/templates_custom'. Using the original. So I'm a bit stumped here …!

bummer


Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#88654
Avatar

Actually, JAVASCRIPT.tpl. The select_tab function has become…

Code


function select_tab(id,tab)
{
   if (document.getElementById('tab__'+tab.toLowerCase()))
      window.location.hash='#tab__'+tab.toLowerCase();

   var tabs=[];
   var i,element;
   element=document.getElementById('t_'+tab);
   for (i=0;i<element.parentNode.childNodes.length;i++)
   {
      if ((element.parentNode.childNodes[i].id) && (element.parentNode.childNodes[i].id.substr(0,2)=='t_'))
         tabs.push(element.parentNode.childNodes[i].id.substr(2));
   }

   for (i=0;i<tabs.length;i++)
   {
      element=document.getElementById(id+'_'+tabs[i]);
      if (element)
      {
         element.style.display=(tabs[i]==tab)?'block':'none';

         if ((typeof window.nereidFade!='undefined') && (tabs[i]==tab))
         {
            if (typeof window['load_tab__'+tab]=='undefined')
            {
               setOpacity(element,0.0);
               nereidFade(element,100,30,8);
            }
         }
      }

      element=document.getElementById('t_'+tabs[i]);
      if (element)
      {
         element.className=element.className.replace(' tab_active','');
         if (tabs[i]==tab)   element.className+=' tab_active';
      }
   }

   if (typeof window['load_tab__'+tab]!='undefined') window['load_tab__'+tab](); // Usually an AJAX loader

   return false;
}


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#88656
Avatar

Community saint

Chris Graham said

Actually, JAVASCRIPT.tpl. The select_tab function has become…
Whooooosh! ← (exhalation of breath)

The instant I read that I realised it just HAD to be an override problem!

It was - and it has now been fixed!

thanks




Note to self: Must mention to Bob that we need to add 'check for overrides' (and how to do it) in the 'Troubleshooting' section of EVERY chapter!

 :thumbs:


Last edit: by Fletch

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: