Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Advertise on this site

Joomlapolis Forums  


<< Start < Prev 1 2 3 4 Next > End >>
Re:[CONF] JavaScript error cbshowtabs array undefined
Date: 2007/08/24 02:55 By: drlovegun Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 7
graphgraph
I am seeing the same error. Is there a fix yet? Here are the Tabs I am using:

cbshowtabsArray.push( [['articles','12','getauthortab'],'tabPanecb_tabmain.setSelectedIndex( 0 );'] );
cbshowtabsArray.push( [['contact info','11','getcontacttab'],'tabPanecb_tabmain.setSelectedIndex( 1 );'] );
cbshowtabsArray.push( [['additional info','2'],'tabPanecb_tabmain.setSelectedIndex( 2 );'] );
cbshowtabsArray.push( [['connections','15','getconnectiontab'],'tabPanecb_tabmain.setSelectedIndex( 3 );'] );
cbshowtabsArray.push( [['my invites','23','getplaxoinvitetab'],'tabPanecb_tabmain.setSelectedIndex( 4 );'] );
cbshowtabsArray.push( [['myblog','28','getmyblogtab'],'tabPanecb_tabmain.setSelectedIndex( 5 );'] );
Click here to see the profile of this user The administrator has disabled public write access.

Re:[CONF] JavaScript error cbshowtabs array undefined
Date: 2007/08/24 02:59 By: drlovegun Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 7
graphgraph
What parameters are you talking about?

Thanks
Click here to see the profile of this user The administrator has disabled public write access.

Re:[CONF] JavaScript error cbshowtabs array undefined
Date: 2007/11/10 17:17 By: schipperijn Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 1
graphgraph
I did had the same error. I have unplublished all tabs, can not unpiblish contact info. Contact info is at head, with Panel with tabs. When I unpublisg aditional info (also at head) and place tab contact at Tabmain the error is not there anymore.

When I than publish aditional info at Head the error is back.
So... I think it has something to do with head... there where the title is on.

Post edited by: schipperijn, at: 2007/11/10 17:17
Click here to see the profile of this user The administrator has disabled public write access.

Re:[CONF] JavaScript error cbshowtabs array undefi
Date: 2007/11/12 15:25 By: pavkata Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 7
graphgraph
Hi,

I have the same issue with cbshowtabsarray message displayed in IE.

Did anyone manage to find a solution of this problem?

regards,

P.
Click here to see the profile of this user The administrator has disabled public write access.

Re:[CONF] JavaScript error cbshowtabs array undefi
Date: 2007/11/15 01:33 By: beat Status: Admin  
Karma: 231  
Admin

Posts: 3601
graphgraph
It's fixed now for next CB version.

Since we got CB supporters in this thread (thank you ! ), here a quick-fix for CB 1.1:

in file administrator/components/com_comprofiler/comprofiler.class.php

Search for :

Code:

 if ( ! $functionOutputed ) {



and replace everything between that line and the closing } (that line and closing tag included) by:

Code:

         if ( ! $functionOutputed ) {             global $_CB_ui;             $head        =    "<script type=\"text/javascript\"><!--//--><![CDATA[//><!--\n"                         .    "var cbshowtabsArray = new Array();\n"                         .    "function showCBTab( sName ) {\n"                         .    "    if ( typeof(sName) == 'string' ) {\n"                         .    "        sName = sName.toLowerCase();\n"                         .    "    }\n"                         .    "    for (var i=0;i<cbshowtabsArray.length;i++) {\n"                         .    "        for (var j=0;j<cbshowtabsArray[i][0].length;j++) {\n"                         .    "            if (cbshowtabsArray[i][0][j] == sName) {\n"                         .    "                eval(cbshowtabsArray[i][1]);\n"                         .    "                return;\n"                         .    "            }\n"                         .    "        }\n"                         .    "    }\n"                         .    "}\n"                         .    "//--><!]]></script>\n";             addCbHeadTag$_CB_ui$head );             $functionOutputed    =    true;         }



Post edited by: beat, at: 2007/11/15 11:05
Beat - Developer on Community Builder core Team
- If you like CB and this forum, you will love Nick's CB 1.1 reference manual ! : Click here to Get it now
- Would like to help us move faster ? Get it, and/or help us spend more time coding by helping others in this forum, many thanks
Click here to see the profile of this user The administrator has disabled public write access.

Re:[CONF] JavaScript error cbshowtabs array undefi
Date: 2007/11/15 09:01 By: pavkata Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 7
graphgraph
Hi,

thank you for the fix, I replaced the code in the comprofiler.class.php but I got this error:

Fatal error: Call to a member function getUi() on a non-object in D:xampphtdocscadloreadministratorcomponentscom_comprofilercomprofiler.class.php on line 4152

any idea what I am doing wrong?

Thanks in advance
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 3 4 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC2, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login