fluffy82 Posted October 31, 2020 Report Share Posted October 31, 2020 Hi @XerxX (is that you, Erik?) and @Robin Richmond Fixed Family Tab and Regroup Person Profile want to change the same piece of code and are incompatible. I'm afraid of breaking things by altering either of them... (I don't mind playing around bychanging a word or a couple of words within a similar context, but here complete blocks of code are being replaced by something totally different... before doing anything I'd like your advice). Is there any easy way for me to make them compatible? The original line that's being replaced is: $persontext .= showEvent( array( "text"=>$text['familyid'], "date"=>$marriagerow['familyID'], "place"=>"<a href=\"$familygroup_url" . "familyID={$marriagerow['familyID']}&tree=$tree\">{$text['groupsheet']}</a> | <a href='{$familychart_url}familyID={$marriagerow['familyID']}&tree=$tree'>{$text['familychart']}</a>", "np"=>1 ) ); FIXED FAMILY TAB wants to replace it with: $persontext .= showEvent( array( "text"=>$text['familyid'], "date"=>$marriagerow['familyID'], "place"=>"<a href=\"$familygroup_url" . "personID=$personID&tree=$tree\">{$text['groupsheet']}</a> | <a href='{$familychart_url}personID=$personID&tree=$tree'>{$text['familychart']}</a>", "np"=>1 ) ); REGROUP PERSON PROFILE wants to replace it with: if ($rrconfig['ppSiblingsBlock'] == 'parents') $persontext .= rrGetSiblings($personID, 'parents', $parent['familyID']); $persontext .= "</tbody></table>\n"; My ultimate goal is to keep Regroup Person Profile as much as possible, but when clicking on the family tab, I want it to remain in the person context in stead of changing to a family context (with different tabs and no way to return to the person you were looking at). Quote Link to comment Share on other sites More sharing options...
XerxX Posted October 31, 2020 Report Share Posted October 31, 2020 Hi, yes that's me My code is replacing the IDs in these links (own family): in order to keep track of the current person on the Family pages. It looks like Robin's code removes those links completely. If that is so; maybe removing my code will solve it. I'll check it out later but, I'm sorry, for now there is no time. I'll be back! Erik Quote Link to comment Share on other sites More sharing options...
fluffy82 Posted October 31, 2020 Author Report Share Posted October 31, 2020 46 minutes ago, XerxX said: My code is replacing the IDs in these links (own family): Ok, if that's what that line does it's ok to remove it. Just tried that and it works. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.