|
|
|
Re:[CONF] JavaScript error cbshowtabs array undefined
|
|
Date: 2007/08/24 02:55
|
By: drlovegun
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 7 |   | |
|
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 );'] );
|
|
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 |   | |
|
What parameters are you talking about?
Thanks
|
|
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 |   | |
|
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
|
|
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 |   | |
|
Hi,
I have the same issue with cbshowtabsarray message displayed in IE.
Did anyone manage to find a solution of this problem?
regards,
P.
|
|
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 |   | |
|
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
|
|
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 |   | |
|
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
|
|
The administrator has disabled public write access. |
|
|