Jump to content
TNG Community
fluffy82

RPP and FFT incompatible

Recommended Posts

fluffy82

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']}&amp;tree=$tree\">{$text['groupsheet']}</a>&nbsp; | &nbsp;<a href='{$familychart_url}familyID={$marriagerow['familyID']}&amp;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&amp;tree=$tree\">{$text['groupsheet']}</a>&nbsp; | &nbsp;<a href='{$familychart_url}personID=$personID&amp;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).

Share this post


Link to post
Share on other sites
XerxX

Hi, yes that's me ;-)

 

My code is replacing the IDs in these links (own family):

famid.gif

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

Share this post


Link to post
Share on other sites
fluffy82
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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×