|
|
Re:[CONF] JavaScript error cbshowtabs array undefi
|
|
Date: 2007/11/15 11:06
|
By: beat
|
Status: Admin
|
|
|
Karma: 238  
|
|
Admin  | Posts: 3998 |   | |
|
pavkata wrote: 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
Sorry, my error, code was not completely adapated to CB 1.1, i edited my post above with the CB 1.1 code. Should now work, please confirm. 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/16 08:00
|
By: pavkata
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 7 |   | |
|
This fix worked 
Thank you for providing it 
best regards,
Pavel
|
|
The administrator has disabled public write access. |
|
|
|
|
Re:[CONF] JavaScript error cbshowtabs array undefi
|
|
Date: 2007/12/29 23:11
|
By: subhumanjackyl
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 6 |   | |
|
beat wrote: 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;
}
| <br><br>Post edited by: beat, at: 2007/11/15 11:05
Can someone please give me an idea as to what area of the file this code is located...ive looked up and down over an over, but cant find it.
Thanks
|
|
The administrator has disabled public write access. |
|
|
|
|
Re:[CONF] JavaScript error cbshowtabs array undefi
|
|
Date: 2007/12/30 00:03
|
By: subhumanjackyl
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 6 |   | |
|
subhumanjackyl wrote: beat wrote: 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;
}
| <br><br>Post edited by: beat, at: 2007/11/15 11:05
Can someone please give me an idea as to what area of the file this code is located...ive looked up and down over an over, but cant find it.
Thanks
I found it! Thank the Lord!
For anyone else searching for it, line 1134 near the bottom.
Post edited by: subhumanjackyl, at: 2007/12/30 00:04
|
|
The administrator has disabled public write access. |
|
|
|
Re:[CONF] JavaScript error cbshowtabs array undefi
|
|
Date: 2007/12/30 02:40
|
By: nicowolf
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 10 |   | |
|
Thank you so much for the code fix!
|
|
The administrator has disabled public write access. |
|
|
|
Re:[FIX] JavaScript error cbshowtabs array undefined
|
|
Date: 2008/02/04 05:33
|
By: mpausch
|
Status:
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 18 |   | |
|
Hi Beat and everyone else.
I just upgraded to cb 1.1 and Joomla 1.0.14 and this same error appeared.
I checked the comprofiler.class.php file but the fix in this thread had already been applied to the file in cb 1.1
So I started checking by unpublishing items and testing. Noticed that when I unpublish CB captcha under tab manager, the error disappears.. but of course so does the captcha feature at registration.
Any help would be appreciated.
|
|
The administrator has disabled public write access. |
|
|