thewillistree Posted February 15, 2009 Report Share Posted February 15, 2009 I've just completed a 'beta' version of my TNG Home Page:http://www.thewillistree.me.uk/genealogy/index4.phpbut 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.phptoptensurnames4.txt Quote Link to comment Share on other sites More sharing options...
Brett Posted February 16, 2009 Report Share Posted February 16, 2009 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. Quote Link to comment Share on other sites More sharing options...
thewillistree Posted February 16, 2009 Author Report Share Posted February 16, 2009 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.phpLet me know what you think...PaulDid 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. Quote Link to comment Share on other sites More sharing options...
dmaskew Posted February 16, 2009 Report Share Posted February 16, 2009 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. --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/gk9aHope this helps.peace Quote Link to comment Share on other sites More sharing options...
Brett Posted February 17, 2009 Report Share Posted February 17, 2009 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.phpPaulUsing 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. Quote Link to comment Share on other sites More sharing options...
thewillistree Posted February 20, 2009 Author Report Share Posted February 20, 2009 Hi BretThanks for your patience - have tried both of your simple suggestions, and both produce the results shown in http://www.thewillistree.me.uk/genealogy/index6.phpNot 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!PaulUsing 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. Quote Link to comment Share on other sites More sharing options...
Brett Posted February 21, 2009 Report Share Posted February 21, 2009 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.PaulLooks 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 Quote Link to comment Share on other sites More sharing options...
thewillistree Posted February 28, 2009 Author Report Share Posted February 28, 2009 hi BrettI've done some tinkering with the homepage, and will have a look at your suggestion later this weekend!PaulPaulLooks 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. 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.