Jump to content
TNG Community

HI site, Her SITE..


bobek

Recommended Posts

Robin Richmond

I like template 9,10,,, but i dont want to see "her site, his site" . what i want to remove that?

Well, I hope you've noticed that by using the template edit screen, you can change the text "her side" and "his side", and point to any two people in the database.

But I'll assume for the moment that you don't want to do that, either.

It will help a lot if you answer two questions before I try to give you detailed instructions:

1. How familiar are you with HTML?

2. What do you want on the heading line where, by default, template 9 says "His Side Her Side Contact Us"?

Link to comment
Share on other sites

Well, I hope you've noticed that by using the template edit screen, you can change the text "her side" and "his side", and point to any two people in the database.

But I'll assume for the moment that you don't want to do that, either.

It will help a lot if you answer two questions before I try to give you detailed instructions:

1. How familiar are you with HTML?

2. What do you want on the heading line where, by default, template 9 says "His Side Her Side Contact Us"?

i dont want to see "her site /his site" because is useless for me. of course i can edit html but maybe is a way to edit cms?

Link to comment
Share on other sites

Robin Richmond

i dont want to see "her site /his site" because is useless for me. of course i can edit html but maybe is a way to edit cms?

I'll focus on Template 9. The others should work pretty much the same way.

If all you want to do is eliminate the His Side and Her Side links, leaving Contact Us alone in the orange navigation bar, then, in the Template Editor (Admistration / Setup / Template Settings), just erase the text "His Side" and "Her Side" from the appropriate text boxes on the template form. The links will remain, but since no text is there, users won't have any text to click on.

You could link to one or two specific people in your database by changing the "His Side" and "Her Side" text to, say "George Washington" and "Abraham Lincoln", and setting the person ID and tree ID to point to the right records.

If you want to put something altogether different in the orange navigation bar, then you'll need to edit index.php and topmenu.php. The php module index.php is a PHP include file used to display the "home page", and topmenu.php is a PHP include file used to display the top part of most other user pages, including the person profile, pedigree reports, and so on.

You'll need to make pretty much the same change in both files. Looking at lines 41-51 in topmenu.php:

<ul class="art-hmenu">
    <li>
        <a href="<?php echo $cms['tngpath']; ?>pedigree.php?personID=<?php echo $tmp['t9_dadperson']; ?>&tree=<?php echo $tmp['t9_dadtree']; ?>"><span class="l"></span><span class="t"><?php echo getTemplateMessage('t9_dadside'); ?></span></a>
    </li>
    <li>
        <a href="<?php echo $cms['tngpath']; ?>pedigree.php?personID=<?php echo $tmp['t9_momperson']; ?>&tree=<?php echo $tmp['t9_momtree']; ?>"><span class="l"></span><span class="t"><?php echo getTemplateMessage('t9_momside'); ?></span></a>
    </li>
    <li>
        <a href="<?php echo $cms['tngpath']; ?>suggest.php"><span class="l"></span><span class="t"><?php echo $text['contactus']; ?></span></a>
    </li>
</ul>

You'll see that the orange toolbar (defined with class 'art-hmenu') is made up of three list items, arranged horizonally. The first two list items link to pedigree.php (that's interesting; I had assumed that they would link to the person profile at getperson.php, but instead they link to the person's pedigree report).

There is PHP code embedded in each HTML hyperlink. On line 43,

* <?php echo $cms['tnpath']; ?> just makes sure that it's invoking pedigree.php in the right folder.

* <?php echo $tmp['t9_dadperson']; ?> gets the "His Side" record number from the template definition,

* <?php echo $tmp['t9_dadtree']; ?> gets the "His Side" tree id from the template definition, and

* <?php echo getTemplateMessage('t9_dadside'); ?> gets the "His Side" text from the template definition, using a function to handle any embedded entities or HTML tags.

Line 46 contains similar code for the "Her Side" link, and line 49 is the "Contact Us" link. The term "Contact Us" is expressed as the PHP associative array element $text['contactus'] to support TNG's language internationalization. The array $text[] holds values for the language that is in effect at the time the page is displayed.

I hope that helps.

Link to comment
Share on other sites

I'll focus on Template 9. The others should work pretty much the same way.

If all you want to do is eliminate the His Side and Her Side links, leaving Contact Us alone in the orange navigation bar, then, in the Template Editor (Admistration / Setup / Template Settings), just erase the text "His Side" and "Her Side" from the appropriate text boxes on the template form. The links will remain, but since no text is there, users won't have any text to click on.

You could link to one or two specific people in your database by changing the "His Side" and "Her Side" text to, say "George Washington" and "Abraham Lincoln", and setting the person ID and tree ID to point to the right records.

If you want to put something altogether different in the orange navigation bar, then you'll need to edit index.php and topmenu.php. The php module index.php is a PHP include file used to display the "home page", and topmenu.php is a PHP include file used to display the top part of most other user pages, including the person profile, pedigree reports, and so on.

You'll need to make pretty much the same change in both files. Looking at lines 41-51 in topmenu.php:

<ul class="art-hmenu">
    <li>
        <a href="<?php echo $cms['tngpath']; ?>pedigree.php?personID=<?php echo $tmp['t9_dadperson']; ?>&tree=<?php echo $tmp['t9_dadtree']; ?>"><span class="l"></span><span class="t"><?php echo getTemplateMessage('t9_dadside'); ?></span></a>
    </li>
    <li>
        <a href="<?php echo $cms['tngpath']; ?>pedigree.php?personID=<?php echo $tmp['t9_momperson']; ?>&tree=<?php echo $tmp['t9_momtree']; ?>"><span class="l"></span><span class="t"><?php echo getTemplateMessage('t9_momside'); ?></span></a>
    </li>
    <li>
        <a href="<?php echo $cms['tngpath']; ?>suggest.php"><span class="l"></span><span class="t"><?php echo $text['contactus']; ?></span></a>
    </li>
</ul>

You'll see that the orange toolbar (defined with class 'art-hmenu') is made up of three list items, arranged horizonally. The first two list items link to pedigree.php (that's interesting; I had assumed that they would link to the person profile at getperson.php, but instead they link to the person's pedigree report).

There is PHP code embedded in each HTML hyperlink. On line 43,

* <?php echo $cms['tnpath']; ?> just makes sure that it's invoking pedigree.php in the right folder.

* <?php echo $tmp['t9_dadperson']; ?> gets the "His Side" record number from the template definition,

* <?php echo $tmp['t9_dadtree']; ?> gets the "His Side" tree id from the template definition, and

* <?php echo getTemplateMessage('t9_dadside'); ?> gets the "His Side" text from the template definition, using a function to handle any embedded entities or HTML tags.

Line 46 contains similar code for the "Her Side" link, and line 49 is the "Contact Us" link. The term "Contact Us" is expressed as the PHP associative array element $text['contactus'] to support TNG's language internationalization. The array $text[] holds values for the language that is in effect at the time the page is displayed.

I hope that helps.

:mrgreen::mrgreen: thank You so much !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...