|
|
|
Re:[Joomla 1.5RC3-FIX] Profile update cb.core fore
|
|
Date: 2008/11/18 00:11
|
By: CyberCobre
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 2 |   | |
|
file didn't attach. Reposted. Mod, please delete this post
Post edited by: CyberCobre, at: 2008/11/18 00:19
|
|
The administrator has disabled public write access. |
|
|
|
|
Re:[Joomla 1.5RC3-FIX] Profile update cb.core fore
|
|
Date: 2008/11/18 00:18
|
By: CyberCobre
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 2 |   | |
|
To fix this, simply FTP into your account, download (forced ascii) the cb.core.php file found in:
../components/com_comprofiler/plugin/user/plug_cbcore
Find lines 235 and 236 which will look like this:
$userParams = array(); $userParams = $this->_getUserParams($ui, $user);
Change them to this (in other words, swap them around):
$userParams = $this->_getUserParams($ui, $user); $userParams = array();
Reload the cb.core.php file (forced ascii, overwrite)
Problem solved.
A zip file of the fixed cb.core.php file is attached.
|
|
The administrator has disabled public write access. |
|
|
|
|
Re:[Joomla 1.5RC3-FIX] Profile update cb.core fore
|
|
Date: 2008/11/22 23:28
|
By: chechovacan
|
Status: User
|
|
|
Karma: 1  
|
|
Fresh Joomlapolitan  | Posts: 1 |   | |
|
sdwyer wrote: I would also recommend changing line 238 of cb.core.php from:
| Code: | if ( ( count( $userParams ) > 0 ) && in_array( $_CB_framework->getCfg( "frontend_userparams" ), array( '1', null) ) ) {
|
to:
| Code: | if ($userParams !== false && ( count( $userParams ) > 0 ) && in_array( $_CB_framework->getCfg( "frontend_userparams" ), array( '1', null) ) ) {
|
since it is possible that JParameter::getParams could return false, and count(false) returns 1 for some reason.
This just work fine!... thanks a lot!...
|
|
The administrator has disabled public write access. |
|
|
|
|
Re:i fix 1.5 profile update error
|
|
Date: 2008/11/24 09:48
|
By: judlee
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 1 |   | |
|
squallata wrote: in comprofiler.html.php change this
| Code: |
//--><!]]></script>
<form action="<?php echo sefRelToAbs("index.php?option=$option".getCBprofileItemid(true)); ?>" method="post" id="adminForm" name="adminForm" onsubmit="return submitbutton(this)">
<!-- TAB -->
|
white this
| Code: |
//--><!]]></script>
<form action="<?php echo "index.php?option=$option".getCBprofileItemid(); ?>" method="post" id="adminForm" name="adminForm" onsubmit="return submitbutton(this)">
<!-- TAB -->
|
and i can update my profile now
This worked perfectly. Thanks so much for posting the fix.
|
|
The administrator has disabled public write access. |
|
|
|
|
Re:i fix 1.5 profile update error
|
|
Date: 2008/12/04 12:28
|
By: motnaf
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 1 |   | |
|
|
thnx man , you are genius!!!!!
|
|
The administrator has disabled public write access. |
|
|
|
|
Re:[Joomla 1.5RC3-FIX] Profile update cb.core foreach
|
|
Date: 2008/12/10 11:49
|
By: iPoul
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 1 |   | |
|
For some reason, the only thing all these fixes do, is remove the error, im still not able to actual update the profile (front-end) as a regular user, it just tries to fetch some article which doesnt exist, tho it equal the user id i try to update.
Joomla 1.5.7 - CB 1.1
|
|
The administrator has disabled public write access. |
|
|