archives

Posts tagged Wordpress

This tutorial will explain how to change or hide the display of Trackbacks/Pingbacks in WordPress. You can see an example of this.

This post follows on from my nicer trackbacks plugin and post on improving comment section readability.

  1. Open your Comments Template and look for the sort of code below (yours may look different, depending on your theme). I’ll refer to this code as the display code.

    <li class="<?php echo $oddcomment; ?>" id="comment- <?php comment_ID() ?>">
    <cite><?php comment_author_link() ?> Says:
    <?php if ($comment->comment_approved == '0') : ?>
    <em>Your comment is awaiting moderation.</em>
    <?php endif; ?>
    <br />
    <small class="commentmetadata"><a href="#comment- <?php comment_ID() ?>" title=""<>?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('e','',''); ?></small>
    <?php comment_text() ?>
    </li>

  2. Adjust the code to switch based on whether it’s a real comment.

    <?php if (get_comment_type() == "comment"){ ?>
    display code
    <?php } ?>

    This will now only show comments on your site. People can still trackback/ping your site (if your permissions allow this) and you’ll receive notification, but they won’t clutter up the comments section.

  3. If you want to show Trackbacks/Pingbacks on your site, mixed in with the comments, but in a different style, after the code in Step 2, add:

    <?php else { ?>
    display code
    <?php } ?>

    Remember that “display code” is replaced with the chunk of code in Step 1. Now, change this second lot of the display code to change the way Trackbacks/Pingbacks appear on your site. I have removed the body of the comment and just shows the link to their post:

    <li class="trackback" id="comment-lt;?php comment_ID() >">Trackback: <?php comment_author_link() ?></li>

    I’ve created a special class for my trackbacks so it can have its own style in the stylesheet (e.g. smaller font, different background color). If you decide to leave in the body of their post, my nicer trackbacks plugin will help get rid of the “[...]” bits if you want them gone.

Coming soon: I’m still working on an efficient way of being able to display your Trackbacks/Pingbacks entirely separately from your comments. One simple way would be to loop through your comments twice, once displaying the comments and the other to display the Trackbacks/Pingbacks. A better solution would be to loop through once and store the Trackbacks/Pingbacks for later display. Unfortunately most of the functions in WordPress don’t return a variable which can be stored, they echo the results directly…

I’ve now put up the code for the plugin used to create the TechCrunch Index.

Installation

  1. Check you have Ultimate Tag Warrior installed and activated
  2. Download the plugin and rename from cre8d_tags_in_columns.txt to cre8d_tags_in_columns.php
  3. Activate the plugin.
  4. Access the listing by including echo cre8d_UTW_TagArchive(); somewhere in your template. This will give, by default, 3 columns and tags grouped vertically in 5′s. If you wanted 2 columns and groups of ten, use: cre8d_UTW_TagArchive(2,10) and so forth.
  5. Add to your stylesheet the following:

    .list-column { float: left; width: 160px; margin: 0 5px; }
    .list-column ul { margin-left: 0; padding-left: 0; }
    .list-column ul li { list-style-type: none; }
    .spacer { margin-bottom: 20px; }

  6. Optionally tweak the width of .list-column to suit your blog’s layout. You may like to change the vertical spacing (.spacer) between groups too.

Blog design 101 One of the most common questions I’m asked is for beginner’s help in creating a new WordPress theme. There’s a few approaches you could take and I’ll list some of the advantages and disadvantages of each method.

  1. Adapt the default theme (Kubrick) – Great if you’re only wanting some basic changes, like putting in a new header. If that’s you, you should check out Kubrickr! I wouldn’t recommend adapting the Kubrickr theme if you’re wanting a completely different design. There’s a tonne of bits and pieces to sort through (e.g. some of the CSS code is in the header file, not in the stylesheet which can confuse beginners) and quite a bit of PHP code to figure out. Urban Giraffe has a tutorial on adapting the default theme to your own custom theme.
  2. Adapt another theme – Use something like the theme browser for something that’s similar in layout/content to what you’re after. Again, sometimes the code may be overly complex/simple for what you’re after. Working with someone else’s code can take time to get your head around.
  3. Create your own theme from scratch – The most flexible, if you know what you’re doing. Using the WordPress theme documentation is a good place to start but it can be a little daunting for beginners. If you’re wanting to release your theme publically for others to download and use on their blogs, there’s extra things you’ll need to do as well.

Plenty of starting places.

Coming soon: While one theme certainly won’t be the starting place for all themes, over the next little while I’ll be creating a skeleton WordPress theme which will be a nice easy place to start your theme’s design from.

In this series of posts, I’ll step you through I created the theme and show you how you can quickly adapt the theme to suit your own purposes.

Bene Diction is the alias of a Canadian blogger who had a successful long-running career in broadcast journalism. BD is now a passionate blogger who is renouned for connecting, encouraging and supporting other bloggers. BD blogs about world news, politics, the Christian faith and more at Bene Diction Blogs On as well as being a regular guest blogger on many other blogs. I’ve been meaning to interview a number of people about blogging and BD is one of those – because of the broad background with different blog platforms and recently switching from a custom blog system to WordPress 2.0.

If you’re considering blogging and would like to try WordPress but think it’s just for people with a tonne of technical skills: be encouraged!

You’ve been blogging now for how long?
I don’t know…May 2003?
And in that time, you’ve gone through a tonne of changes including domain name and blogging software…. how many different blogging systems have you tried? What were they?
Front page, Greymatter, Movable Type, Blogger, two hand coded…one in Cold Fusion, Word Press 1, Word Press 2.
Wow! Why so many?
I was a guest blogger on many blogs and for my own blog, I’ve had to use what I could afford.
Why not stick with blogger? It’s free.
It was not an easy system…infuriating…not worth the hassle.
Would you consider yourself quite a “techy” person?
Not at all, I have a form of dyslexia. I mix up symbols and numbers.
Do you think that blog software is intuitive for non-techy people?
It’s getting better, but I can say a few years ago it was not geared for non-technical people, access to blogging was limited.
What would you imagine the biggest hurdles for non-technical people getting started on say, WordPress 2.0, to be?
Excellent question! Taking the first steps, figuring out where it goes, then how to get it there :)
Do you like to discover things for yourself, or do you think a beginner’s tour of the features would help?
Depends – this is such a great platform anyone with a bit of courage and eagerness can bounce right out of the gate. I would use a beginners tour and would recommend one if for no other reason than a sense of accomplishment and an “I can do this!”
After all those different pieces of software, which would you most highly recommend and why?
Hands down, not a contest: Word Press 2.0. It anticipates my needs, it feels solid, I’m not worried about breaking anything or making a fatal error. It’s well-designed and fun to be in the template. I have control, I can explore and do things for myself. It’s very fast.
Where do you go for support – or do you just try and figure things out for yourself?
WP 2.0 has given me the opportunity to figure things out for myself because of how it is laid out…it’s tabbed and labelled very well…in non-tech speak. I haven’t had to holler for help :)
If people didn’t have a tech support person who knew about WordPress, and got stuck, do you think it’s obvious where to go for help?
I have no idea where to go, but that is because I have an awesome tech :) I would want a help menu that is handy and not too obtrusive and written simply. One of the difficulties with prior platforms I’ve been on is help menus they aren’t helpful. It would be great if there was tech support where I could write and get a person responding quickly.
Live support or a forum?
Live support, or email support, forums make me crazy! There is too much to follow. For example my virus/firewall company provides live tech support. It’s excellent, I don’t have to waste time reading things I have no understanding of. I go to their site, click on tech support and a chat window comes up a person deals with me directly. The response is immediate and I’m treated like a person :) Since blogging is so interactive and communicative that would be ideal. Probably not realistic, but ideal :) It would be terrific if we bloggers could have that kind of tech support, most of us don’t have the money for our own technican. I think if that was available it would assist the developers also. They’d become aware of what problems are cropping up consistently and would be able to address them.
If you were on the advisory group for WordPress 3.0 (if there were such a thing), which areas should they work on improving?
Keep doing what they’re doing. Listen to us non-tech users. This platform has made networking with other blogs and following links wonderful. Keep helping us connect :) Don’t tech speak, keep using english :)
Do you look around much at ways people are extending WordPress through plugins?
I confess I haven’t. I have read about them and understand they have tremendous potential though.
There’s been quite a bit of talk about the “Dashboard” which is the first page you see when you log in. What else would you find useful to be listed there – or do you ignore this page entirely?
I ignore it in terms of the WP news but I like the sidebar. It would be useful if the news wasn’t so prominent. When I log in I want to get to where I’m going.
How do you find uploading images?
I like the click and drop very much, but I have to learn to use it better, I find it sticky sizing and placing needs a bit of patience. I haven’t been able to figure out the text wrap around writing yet nor can I download blog quizes because I don’t understand what I need to do.
Yeah… I hear you… do you like the preview feature in checking if your code works?
I need that preview feature! My ideas get ahead of my fingers!
Have you recommended WordPress 2.0 to anyone since you stared using it?
Oh yes! I wish I could help more bloggers switch…I’ve recommended it online, I’ve emailed and I’ve had several bloggers I know upgrade or switch over. If I can use it, anyone can…my math dyslexia is proof of that.
That’s great :) Thanks for all your thoughts.. I think I’ve run out of questions for now!
Thank you for asking, this was a pleasure. Did you ever think you’d see the day I didn’t have tech questions? That’s how good this platform is: it’s made blogging fun again.

I’ve been an avid reader of TechCrunch for a while now and enjoy keeping abreast of new Web 2.0 products and news. I’m proud to say that the TechCrunch Index is now launched. It’s a great way to search for products and companies on TechCrunch and RSS feeds are available for each tag as well.

I will release the mini-plugin I created on top of the awesome Ultimate Tag Warrior plugin to wp-plugins shortly. I’ll be working on some more projects for TechCrunch in the future and will let you know of new developments as they go live.

How to install WordPress 2.0

January 19 2006
by Rachel

Tagged

If you’ve never installed WordPress before and you’d like to but maybe you’re a little scared of installing it (ssh! I won’t tell!) I’ve created a visual tutorial in Flash which explains the steps involved. If you find it useful, please let me know here.

To view the tutorial, go here and click on wordpress.swf

If you’re having trouble, you can also view it here.

I thought I’d share a little plugin I’ve been using that I recently wrote, because I wasn’t happy with the default display of trackbacks in WordPress. If you have any problems, please let me know.

This plugin changes the display of trackbacks from:

[...] Trackback text [...]

to something a little more readable – I have it producing:

Trackback text …

but you could change the plugin code to suit your tastes, just change $pre and $post to what you’d like to appear before and after trackbacks.

Download
http://www.cre8d-design.com/code/rvc_trackback.txt

Installation
Rename the file to rvc_trackback.php
Drop the file rvc_trackback.php into /wp-content/plugins/
Activate the plugin in the Plugin Management

Changes
3 Jan 06: Version 1

Elsewhere: Skype MSN Messenger Twitter Facebook