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

Joomlapolis Forums  


<< Start < Prev 1 2 3 4 Next > End >>
Re:[CONF] JavaScript error cbshowtabs array undefi
Date: 2007/11/15 11:06 By: beat Status: Admin  
Karma: 238  
Admin

Posts: 3998
graphgraph
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
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/16 08:00 By: pavkata Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 7
graphgraph
This fix worked

Thank you for providing it

best regards,

Pavel
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/12/29 23:11 By: subhumanjackyl Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 6
graphgraph
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
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/12/30 00:03 By: subhumanjackyl Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 6
graphgraph
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
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/12/30 02:40 By: nicowolf Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 10
graphgraph
Thank you so much for the code fix!
Click here to see the profile of this user The administrator has disabled public write access.

Re:[FIX] JavaScript error cbshowtabs array undefined
Date: 2008/02/04 05:33 By: mpausch Status: CB Doc subscriber  
Karma: 0  
Fresh Joomlapolitan

Posts: 18
graphgraph
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.
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 RC3, 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