trying to split edit form - need assistance

My edit form is getting too long and I'm trying to split it.

1. I've created a new special block in the sys_page_compose table and copy the same line Func = INFO and gave it a new Func = NewGroup

2. In edit.php I've copied the section of function getBlockCode_Info() { to getBlockCode_NewGroup() {

3. in bxDolProfileFields.php I've copied function getFormEdit($aParams) into function getFormNewGroup($aParams)

in function getFormCode($aParams = null) I've add at the end:
switch ($this->iAreaID) {
// join
case 1:
$aForm = $this->getFormJoin($aParams);
break;
......
// Yossi - My New Group
case 12:
case 13:
case 14:
$aForm = $this->getFormsNewGroup($aParams);
break;

However I'm not sure I did the right thing here since I'm not sure from where it gets ($this->iAreaID) so it will execute (12 - 14)

Now in the NewGroup I want to show only few Blocks from the list and the rest in the new group.

 

Where I can control the $aBlocks?? is it coming only from the cache?

If i could perfom an If or Case in Info and NewGroup I could control the forms block list

 

I'll appreciate if someone can help me.

Quote · 24 Aug 2010

check inc.profiles.inc.php  you will find a couple bxlogin related functions that call getprofiledata one uses cache , the other bypasses....you will have to use this technique to achieve what you want.

I have video tutorials to help you mrpowless.com
Quote · 24 Aug 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.