Jump to content
TNG Community

Can't quite get the Home Page to look right...


thewillistree

Recommended Posts

thewillistree

I've just completed a 'beta' version of my TNG Home Page:

http://www.thewillistree.me.uk/genealogy/index4.php

but have had problems trying to insert the 'Top Ten Surnames' add-on so that it appears on the right of the image slideshow. Ideally I'd like three columns there: (1) The Search box and other links, (2) the image slideshow (3) Top Ten Surnames.

However, not being a techie, when I try to add my code - as this:

<?php include ("toptensurnames4.txt"); ?>

it ends up appearing anywhere BUT where I want it to! The actual 'toptensurnames4.txt file is attached, as is the php file for the beta homepage. I'm okay to live with the beta page as it is, but I reckon there's something very simple I need to do to get it just right.

Can some kind person give me a point in the right direction?

Thanks!

index4.php

toptensurnames4.txt

Link to comment
Share on other sites

However, not being a techie, when I try to add my code - as this:

<?php include ("toptensurnames4.txt"); ?>

t direction?

Thanks!

Did you place the php code in between the TD tags at line 71?

If not, where have you tried. Could you change the index4 page and place borders="1" within each table tag, so I can see it cleaner.

Link to comment
Share on other sites

thewillistree

Hi Brett

Thanks for your reply -

I have added the php code between the tags at line 71, wasn't sure what you meant with the borders="1" bit but added it where i thought you meant. That version is at

http://www.thewillistree.me.uk/genealogy/index5.php

Let me know what you think...

Paul

Did you place the php code in between the TD tags at line 71?

If not, where have you tried. Could you change the index4 page and place borders="1" within each table tag, so I can see it cleaner.

Link to comment
Share on other sites

Paul,

Try this.

Look in your source code for:


          <p>
<img src="clickon.jpg">
and replace with this code:

<div style="float:left;margin-right:20px;">
    <img src="clickon.jpg">
</div>
<div style="float:left;">
<?php include ("toptensurnames4.txt"); ?>
</div>

This is a quick hack and should get the surname list to display with minimal code changes. The PROPER way to do this would be to create a custom class and add the properties to your style sheet (genstyle.css), but that's a bit more work for you. :shock: --If you want some help doing this, just let me know.

To see an example of your page (with this fix) on my server (with my data):

http://tr.im/gk9a

Hope this helps.

peace

Link to comment
Share on other sites

I have added the php code between the tags at line 71, wasn't sure what you meant with the borders="1" bit but added it where i thought you meant. That version is at

http://www.thewillistree.me.uk/genealogy/index5.php

Paul

Using the index4.php file, place the following at line 71 - removing the current line 71

<td><?php include ("toptensurnames4.txt"); ?></td>

If that looks better, also try with line 73 deleted, as it should not be needed.

Link to comment
Share on other sites

thewillistree

Hi Bret

Thanks for your patience - have tried both of your simple suggestions, and both produce the results shown in

http://www.thewillistree.me.uk/genealogy/index6.php

Not quite sure what to do, but am happy to try the more complex solution you mentioned, as long as you can talk me through it!

Paul

Using the index4.php file, place the following at line 71 - removing the current line 71

<td><?php include ("toptensurnames4.txt"); ?></td>

If that looks better, also try with line 73 deleted, as it should not be needed.

Link to comment
Share on other sites

but have had problems trying to insert the 'Top Ten Surnames' add-on so that it appears on the right of the image slideshow. Ideally I'd like three columns there: (1) The Search box and other links, (2) the image slideshow (3) Top Ten Surnames.

Paul

Looks OK to me, 3 columns - (1) The Search box and other links, (2) the image slideshow (3) Top Ten Surnames.

Just that the rest of the page is screwed up.

Seriously though, publish the attached file and see if this is close.

index7.php

Link to comment
Share on other sites

thewillistree

hi Brett

I've done some tinkering with the homepage, and will have a look at your suggestion later this weekend!

Paul

Paul

Looks OK to me, 3 columns - (1) The Search box and other links, (2) the image slideshow (3) Top Ten Surnames.

Just that the rest of the page is screwed up.

Seriously though, publish the attached file and see if this is close.

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...