Jump to content

sam_h

Members
  • Posts

    46
  • Joined

  • Last visited

    Never

Everything posted by sam_h

  1. I'm having some similar traumas! Although I'm doing it with WPMU I'm close to getting it right, but had the same problem as you when trying it on the newer version of WP I'll let you know how I get on
  2. thank you haku, that worked a treat!!
  3. Hi, I have a simple header and two column layout all surrounded by a #outer. one colomn is #page and one is #right I want to be able to set the background-image of #outer so that it is also the background for #page and #right but for some reason it stops being the background as soon as it gets to the top of those divs. if that makes any sense?! is there a way to get around this? here is my code: body { background-color:#f3f3f3; font-family:Arial, Helvetica, Geneva, sans-serif; font-size:0.88em; line-height:1.5em; color:#444; } #outer { width:970px; text-align:center; margin:0 auto 50px; padding:0; background-image:url(/Images/body_bg.jpg); background-position:top; background-repeat:repeat-y; } #page { width:640px; text-align:left; padding: 10px 0 10px 10px; float:left; } #right { float:right; text-align:left; width: 300px; padding:10px 10px 0 0; } html: <body> <div id="outer"> <a href="/index.html"><img src="/Images/header_test_new6.png" border="0" alt="OnYaHead.com Logo"/></a> <div id="right"> content here </div> <div id="page"> more content here </div> </div> </body>
  4. well i found the missing /div tag and it now validates fine thanks for your help
  5. apart from the colour scheme being bad, I generally wasn't happy with the navigation system I posted above. I went away and put together the following: http://onyahead.com/latestnews_test.php Just focussing mainly on the navigation, what are people's views? I have a few of my own doubts/concerns but was interested to know if anyone has any more before I implement it across my site. Sam (as for the accessability issues and the semantics of the headings,....they are next on my list!)
  6. thanks for the reply cupid...and also the encouragement! could you explain to me briefly what the difference it between Image Replacement and using an alt tag because from what I have just read about IR, it appears to do something similar? As for the inline styles, for some reason it was the only way that I could seem to remove the border around my img links....I do now know a touch more about CSS so will have a try that way around.
  7. I did have a look a the error reports, but wasn't sure how to close a div tag that I didn't create manually? what are htmlentities darkwater?
  8. more than happy to change that! i do agree they are pretty horrible, just the colours i went for when i tested the idea, just not round the changing it yet!
  9. yep that is most definitely right! i am only new to the php ropes, so bear with me! the page that I am in reference to is onyahead.com/latestnews.php and the PHP that i used there is the following: <?php $host = "localhost"; $username = "*******"; $password = "*******"; $con = mysql_connect($host,$username,$password) or die ("cannot connect"); $databases = array( 'onyahe_wrdp1', 'onyahe_wrdp2', 'onyahe_wrdp3' ); echo '<table><tbody>'; foreach($databases as $database){ $q = mysql_query("SELECT u.user_nicename , (SELECT COUNT(*) FROM {$database}.wp_posts WHERE post_author=u.ID AND post_type = 'post') AS posts FROM {$database}.wp_posts AS p LEFT JOIN {$database}.wp_users AS u ON u.ID = p.post_author WHERE p.post_type = 'post' GROUP BY p.post_author ORDER BY posts DESC LIMIT 1") or die ("<tr><td>Error:</td><td>Unable to run query on db: ".$database."</td></tr>"); $a = mysql_fetch_assoc($q); echo '<tr><td><strong>'.$a['user_nicename'].'</strong> has written</td><td><strong>'.$a['posts'].'</strong> articles </td></tr>'; } echo '</tbody></table>'; ?>
  10. Hi again! So i've been away for a bit and worked through everyone's suggestions. I have put together some dynamic php pages such as latest news and comments and also my about page. There a still a couple of things I've not got round to changing, but I was hoping for some advice re:my navigation system for pages other than the homepage. have a quick look at onyahead.com/latestnews.php I found that right hand grey space a pretty difficult space to use, and I have tried with this page to make a 'tabbed effect' system out of CSS. It's obviously by no means perfect and there are a few things that I myself would like to change, but if anyone has any ideas as to how I could improve the tabs or generally create a better nav system, they would be welcomed! (or even a better way to use that grey space?!) (I also realise that the green footer (which I am hoping to actually make out of a vector grass image one day!) does not align as I would wish. I am trying to work out how to make it cross the whole width of my #outer div...any ideas?! It works on html pages, but not php!) Thanks, Sam (also, my page rank has since become 2 for my homepage and 3 for my main blog, happy days!!)
  11. any speed issues aside (loading a lot quicker now btw!), I am a big fan of the general layout. It's well organised and the structure is clear. From purely a design perpective, one of my main issues was with the 'readability' of the handwriting font you use in your header and in you subheadings. It's a nice font, but it took me a little while to work out what the site was called! Maybe something a little easier to read and that stands out a lot more for the header?
  12. Hi all, I'm just looking through some validation issues for my site. On of my PHP pages has 66 Errors all of which occur because of an RSS feed I have called with PHP...at least I think that is the issue! It would appear that the output of my page ommits the closing div tag for each headline/story in my feed... If anyone has any ideas how to correct this, it would be greatly appreciated! Regards, Sam
  13. hi again! just slightly concerned jeremy regarding the false 404's...the number has now gone up from 92 to 256 within the last couple of crawls. According to my webmaster account all the errors are missing a / between the directory and the date in my URL eg. example.com/directory2008/06/posttitle , instead of example.com/directory/2008/06/postitle In response to this, I have downloaded and looked through my sitemap (and looked at every URL!) and nothing seems to be wrong!
  14. ok, may have just been my interpretation...apologies if you wasnt
  15. don't like to maybe state the obvious, but if your site is so popular and you seem to know so much stuff already, why are you asking for a critique? but while i'm here, I found the header pretty garish and hard to read....other than that, the rest of the content is still loading. I'm new hear and obviously not a moderator, but please don't be rude to people who respond to your threads.
  16. has anyone got any ideas regarding this? i am struggling!
  17. thanks for the reply....has certainly put my mind at ease!
  18. A quick question about the submission of sitemaps. I have several wordpress blogs associated to with my domain. One wordpress plugin allows you to submit a sitemap for that particular blog to google. So i have a sitemap plugin installed and active on each blog, and I also have a sitemap on my main homepage that links to all of the blogs (this main sitemap I have added to my google webmasters account). I would have thought that the main sitemap would show all of the blogs and all of the links to the content in each blog (a lot of content all in all!) However it doesn't seem to be showing that at all....in fact, the only stats about my site and the sitemap for the whole thing is that I have 92 errors (which from what I can work out don't actually exist at all. The errors show that many pages on my site don't actually exist, where I know full well that they do!) This is beginning to confuse me a little and was wondering if anyone had any ideas as to why I seem to be having problems.
  19. from what i've learned in my very short time of coding, use tables only to display tabular data. even then I reckon someone does that with CSS and lists! just a quick pointer in terms of SEO etc, i personally couldn't find anywhere that told me what the site was actually for. To get listed well in google et al, you need to have some content that clearly outlines what the site does. The pages that I thought logically that information should be under are all password protected...even if you don't do it for google, do it for the end user!! I didn't have any scrolling issues...have a look at browsershots.org and change the settings to view your site in different screen sizes...I used that so much when designing my site it was very useful...and still is actually!! (if you do really want to use tables, then maybe use CSS to style them a little)
  20. hello again! i'm back now...charity golf day was calling! here is the feed to the thread on the wordpress forums where i learned how to add an extra sidebar in http://wordpress.org/support/rss/topic/186583 you can also try this however: http://www.glish.com/css/home.asp i hope those are of use. remember, you will need to manipulate the code a little to get the sidebars that you create to show side by side as you described, but this technique will work sam
  21. thanks very much, I use a very simple Name, Email, Message form and currently have no spam protection. I don't want to clog up my page/form with captcha etc and havn't got the no-how to implement a simple 'math based question'. Do you think that this is an OK alternative?
  22. there is an alternative way to do it involving sidebars. I have used it to changes my blog templates slightly. Have a google for adding sidebars for the time being as I have to go out now and can't post how to do it myself. I will get back on here when I'm back though and help you through it. the sidebars can be used as columns so long as you call them correctly!
  23. Hi, I was just on here looking for something very simple to act as a spam protection for my contact forms (avoiding captcha). I come across this thread, but was advised to start a new topic because it is so old! http://www.phpfreaks.com/forums/index.php/topic,86873.0.html In response the question, which is the same as mine, one of the answers was put the following lines of code to the top of the script: <? if(!isset($_SERVER['HTTP_USER_AGENT'])){ exit; } if(!$_SERVER['REQUEST_METHOD'] == "POST"){ exit; } ?> can anyone tell me what this does, and is it fairly effective? Regards Sam
  24. i also found this tut very useful when applying CSS styles to my forms http://www.jankoatwarpspeed.com/post/2008/07/27/Enhance-your-input-fields-with-simple-CSS-tricks.aspx
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.