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

Joomlapolis Forums  


<< Start < Prev 11 12 13 Next > End >>
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
graphgraph
file didn't attach. Reposted. Mod, please delete this post

Post edited by: CyberCobre, at: 2008/11/18 00:19
Click here to see the profile of this user 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
graphgraph
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.




File Attachment:
File name: cb-e13bd50628871d3cf476322ca5ce5619.zip
File size:5939 bytes
Click here to see the profile of this user 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
graphgraph
sdwyer wrote:
I would also recommend changing line 238 of cb.core.php from:
Code:

 if ( ( count$userParams ) > ) && in_array$_CB_framework->getCfg"frontend_userparams" ), array( '1'null) ) ) {


to:
Code:

 if ($userParams !== false && ( count$userParams ) > ) && 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!...
Click here to see the profile of this user 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
graphgraph
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.
Click here to see the profile of this user 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
graphgraph
thnx man , you are genius!!!!!
Click here to see the profile of this user 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
graphgraph
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
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 11 12 13 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC4)

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 RC4, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers and now also to all registered joomlapolitans.

CB Login