Thankful for My ability to design websites

 site

My ability to design websites

Another one for a geekfest nomination. I started this website in 2004. I rember a couple of frineds had blogs and i thought it was a rather cool idea. I think it was my curious nature that drove me onwards to continuously imporrve it na dto get to the poimnt i am now where i can build and run entire websites on my own. I’m no pro and would never claim to be but i would say all the web stuff i have done has been a labour of love. I get huge enjoyment and a sense of achievement when i figure out how to do certain tasks.

Thank you Jesus for my ability to design websites

During the season of Advent i wanted to try and be thankful for as much as i can on a daily basis so I’m gonna try and be thankful for at least one thing a day

Post Templates… not working as i expected…

I’ve managed to tweak this theme to sort of do what i want it to do.

If you look at the image below you will see the tweet posts are all simply done with no heading or meta data. (i may add the date back in later) This is great but this happens only when you go to the tweets catagory page.

 tweets-good

This image shows the front page of the site but the tweets are not being displayed as per the tweets page.

 mixedWhat i want to happen is for the main page to show all the catagories but when it displays a tweet to display it like it does on the tweet page.

The code is thus:

<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post();  ?>

<div>

<?php
if (is_category(28)) {
include(TEMPLATEPATH . ‘/tweetpost.php’);
} else {
include(TEMPLATEPATH . ‘/blogpost.php’);
}
?>

</div>

<?php comments_template(); ?>

<?php endwhile; ?>

<div>
<div><?php next_posts_link(‘&laquo; Older Entries’) ?></div>
<div><?php previous_posts_link(‘Newer Entries &raquo;’) ?></div>
</div>

<?php else : ?>

<h2>Not Found</h2>
<p>Sorry, but you are looking for something that isn’t here.</p>

<?php endif; ?>

The code for the “tweetpost.php” page is thus:

<?php include(TEMPLATEPATH.”/Cat_Thumb_Assign.php”);?>

<h1>

<?php the_content(‘Read the rest of this entry &raquo;’); ?>

</h1>

And the code for the “blogposts.php” page is thus:

<a href=”<?php the_permalink() ?>”>

<?php if( get_post_meta($post->ID, “hpbottom”, true) ): ?>

<img style=”” src=”<?php echo get_post_meta($post->ID, “hpbottom”, true); ?>” width=”100″ height=”100″  alt=”<?php the_title(); ?>” />

<?php else: ?>

<?php include(TEMPLATEPATH.”/Cat_Thumb_Assign.php”);?>

<?php endif; ?>

<h1><?php the_title(); ?></a></h1>

<small><?php the_time(‘F jS, Y’) ?> | <b>Author:</b> <?php the_author_posts_link(); ?> |
<b>Filed under:</b> <?php the_category(‘, ‘) ?>  <?php if ( $user_ID ) : ?> | <b>Modify:</b>
<?php edit_post_link(); ?> <?php endif; ?>|
<?php comments_popup_link(‘No Comments &#187;’, ’1 Comment &#187;’, ‘% Comments &#187;’); ?></small>

<?php the_content(‘Read the rest of this entry &raquo;’); ?>

I know that some of my readers are wordpress junkies, so come on, step up to the plate, be a man lie you’ve never been a man before (especially apt if you are in fact a girl) and help me out my geeky bretheren…..

EDIT:

WP LOOP:

<!-- Start the Loop. -->
 <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

 <!-- The following tests if the current post is in category 3. -->
 <!-- If it is, the div box is given the CSS class "post-cat-three". -->
 <!-- Otherwise, the div box will be given the CSS class "post". -->
 <?php if ( in_category('3') ) { ?>
           <div>
 <?php } else { ?>
           <div>
 <?php } ?>

 <!-- Display the Title as a link to the Post's permalink. -->
 <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

 <!-- Display the date (November 16th, 2009 format) and a link to other posts by this posts author. -->
 <small><?php the_time('F jS, Y') ?> by <?php the_authors_post_link() ?></small>

 <!-- Display the Post's Content in a div box. -->
 <div>
   <?php the_content(); ?>
 </div>

 <!-- Display a comma separated list of the Post's Categories. -->
 <p>Posted in <?php the_category(', '); ?></p>
 </div> <!-- closes the first div box -->

 <!-- Stop The Loop (but note the "else:" - see next line). -->
 <?php endwhile; else: ?>

 <!-- The very first "if" tested to see if there were any Posts to -->
 <!-- display.  This "else" part tells what do if there weren't any. -->
 <p>Sorry, no posts matched your criteria.</p>

 <!-- REALLY stop The Loop. -->
 <?php endif; ?>

Last Friday’s failed vlog post

Because this has been such a failure in trying to get it on-line and because of the influence of Human 3rror‘s “Husband Friday Fail” I am considering a new catagory called FAIL.

I do want to wait until wordpress 2.9 comes out asit looks like thumbnail cats are gonna be part of the markup. Lets wait and see.

I realise also i need to sort out the lighting in these videos – i just cant be a**ed setting it all up in the small suite.

While i love this curerent design i feel its a little too dark – i may try and flip it all over and make it more white rather than so black.

missing photos

This ite seems to be swallowing photos and spitting them out with no sign left of them.

I put this down to configuration errors of some of the plugins. Especially the postie/email ones. Everytime i set the meida to go to the right folder and then when the plugin is upgraded tis gets reset and i loose a load of em!

Most frustrating

Oh, of course. Now I see.

New Theme

I saw the theme on this site: www.ragamuffinsoul.com and it was very close to a theme ive had in the pipeline.

The one you see now is a first draft of it. I still have to add lots of previous functions like category thumbnails and such but it will happen over time. It’s a combo of the above linked theme and this one: Clean Home.

What do you think?

irishmark.net to ruthandmark.net?

I’ve been thinking more on the development of his site and since my last post abut this I was having another thought.

You can visit my lovely wife’s blog at a subdomain on this site: ruth.irishmark.net but i was thinking of maybe combining them. As she is, after all, my wife then why not combine the into one main blog for the two of us. When the kiddies come along they could join in too…..

Below here isa list of ideas fr it that i wanna write down in the site so i dont loose them – i would do so if i wrote it on a scrap of paper.

Cat Images – Photos of Ruth and I together doing stuff. – ideally facial expression!

  • WordPress -
  • Arg – both lookin miffed – sulking
  • Church -
  • Family -
  • Film – eating pop corn
  • Friends -
  • General/Uncategorized – looking bored
  • God / God Stuff -
  • I Laughed – tickling each other
  • Love – the kiss shot
  • N95 / Phone – looking at phone with joy
  • Photos -
  • Private – going shhhhhhh
  • Profound – looking stupidly profound
  • Rides -
  • Sad – looking sad
  • Techie -
  • Tunage – headphones bot of us
  • Tweet -
  • Video -
  • WooYaa – going oooooooh/holding alternate sigs saying woo and yay
  • Work -
  • Geek-tastic – geek out
  • Holidays – tent
  • Reviews – looking estudious

Functions

Twitter integration  – needs to be able to link in to multiple twitter accounts twitter users may help

facebook integration – needs to be able to link in to multiple facebook accounts read: smashing mag’s article on this

The Loop and Multiple Queries

This is the bit i’m srtuggling with:

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<h2><a href=”<?php the_permalink() ?>” rel=”bookmark”>

<?php if( get_post_meta($post->ID, “hpbottom”, true) ): ?>
<img style=”float:left;margin:0px 10px 0px 0px;width:50px; height:50px;” src=”<?php echo get_post_meta($post->ID, “hpbottom”, true); ?>” width=”150″ height=”150″  alt=”<?php the_title(); ?>” />
<?php include(TEMPLATEPATH.”/Cat_Thumb_Assign.php”);?>
<?php endif; ?>


<?php if (is_category(’28′) ): ?>
<?php include(TEMPLATEPATH.”/cat_tweet.php”); ?>
<?php else: ?>

<?php the_title(); ?></a>
</h2>
<div class=”date”>
<div class=”dateleft”>
<p><span class=”time”><?php the_time(‘F j, Y’); ?></span>
by <?php the_author_posts_link(); ?> &nbsp;<?php edit_post_link(‘(Edit)’, ”, ”); ?>
Filed under <?php the_category(‘, ‘) ?></p>
</div>

<div class=”dateright”>
<p><span class=”comment”><?php comments_popup_link(‘Leave a Comment’, ’1 Comment’, ‘% Comments’); ?></span></p>
</div>
</div>

<?php the_content(__(‘Read more’));?><div style=”clear:both;”></div>

<!– These are the ‘tags’ markup   <div class=”postmeta2″>
<p><span class=”tags”>Tags: <?php the_tags(”) ?></span></p>
</div>–>
<div style=”border-bottom:1px dotted #2255AA; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;”></div>

<?php endif; ?>

<?php endwhile; else: ?>

<p><?php _e(‘Sorry, no posts matched your criteria.’); ?></p>

<?php endif; ?>

I want it to choose a thumbnail depending on the catagory (the thumbnail assigning happens in  Cat_Thumb_Assign.php). This I’ve had working no problem. Then it should  choose how to display that post dependingon wether its either catagory 28 (a twitter update) or not.

Can anyone figure this out?