Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter dzr

    (@dzr)

    Thanks, Otto42. That’s cleared that up!

    Still, it’s interesting that they’re there: I am assuming that they are placeholders for future functionality that will try and do something a little fancier. (I mean, if they aren’t placeholders for something yet to come then I would suggest that they be removed as they are bound to confuse people — at the moment “Add Video”, “Add Audio” and “Add Media” just all do exactly the same thing!)

    Thread Starter dzr

    (@dzr)

    This is now in Trac: #4106.

    Have you seen ShoZu? According to that webpage they support WordPress. Presumably by it’s XML-RPC interface.

    Thread Starter dzr

    (@dzr)

    I’ve since searched in Trac (I didn’t realise I could just use the same login as I do here) and see that the fix for this problem in 2.1 can’t be back-ported to 2.0. Oh well.

    That’s exactly what you could do, and no it isn’t complicated, but it might be overkill. In the default theme (Kubrick) that comes with WordPress look at wp-content/themes/default/sidebar.php which uses conditional tags (is_foo()) to print things like “You are browsing the archives for the bar category”. Look at the codex for conditional_tags. If you just want some custom stuff in your sidebar, or before the loop on your archives I think conditional tags might be even easier.

    Best, Darren

    Forum: Themes and Templates
    In reply to: Category Page

    This is how I have done something similar for a client. They post job vacancies as news posts, but they also wanted a page in the top-level page menu called Jobs. So the job listings, while really posts and so available via the category link, also show up on a page. What you need to do is create a template for the page, then create a blank page in WordPress and tell it to use your template. In the template you then override the query_posts argument.

    <?php
    /*
    Template Name: Movie Reviews
    */
    ?>
    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts("paged=$paged&category_name=Movie Reviews");
    load_template( TEMPLATEPATH . '/index.php'); //loads index
    ?>

    Note that I’ve used the index.php file for displaying all the posts in a Movie Reviews category, but you can load any template you like. If you had created a special category-#.php file you could load that instead, and then your Movie Reviews page would look the same whether someone followed the category link or the link in your main menu.

    Does that help?

    Best, Darren

    Thread Starter dzr

    (@dzr)

    Ah, thank you moshu. That’s a tad disappointing (for me) but makes perfect sense. It isn’t really a big deal and I can live with it as it is, however, if someone has an idea for a workaround which wouldn’t be too time consuming then I’d be interested in hearing it.

    Thanks for the help as always.

    Best, Darren

    Ah, I think I see the problem. My PHP installation is configured to not use short tags (because it messes up various XML things I use). That is, all PHP instructions must be included between “<?php ” and “?>”. In lines 89 and 91 of templates.php, there are two lines which use the short-form “<? ” and “?>”.

    Change these two lines:

    <? else: ?>

    and

    <?endif; ?>

    to:

    <?php else: ?>

    and

    <?php endif; ?>

    and see if that helps. It solves the problem for me.

    Hi, I just wanted to add that I too am seeing this problem.

    $ uname -a
    Linux boson 2.6.10-1-k7-smp #1 SMP Fri Mar 11 04:38:08 EST 2005 i686 GNU/Linux

    $ php –version
    PHP 4.3.10-16 (cli) (built: Aug 24 2005 20:25:01)
    Copyright (c) 1997-2004 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

    I’ve just taken a look at templates.php and I can’t see what the problem is. There is indeed a “}” on line 164 which closes “switch($action) {” on line 16. I can’t see any errors in between those two lines.

    Nevertheless I too am getting “Parse error: parse error, unexpected ‘}’ in /path/to/blog/wp-admin/templates.php on line 164”

    Thread Starter dzr

    (@dzr)

    Yes, that does seem to be it. I first tried replacing all occurrences of “python” with “Python”, but that didn’t work. I then replaced all occurrences of “Python” with “[P]” and that did work.

    I doubt my hosting service would disable mod_security even if I wanted them to, which I don’t. But given that I do blog about python sometimes, there must be a better workaround.

    Thread Starter dzr

    (@dzr)

    Thanks, Kafkaesqui. For some reason my search didn’t pick up on that thread.

    Live Preview wasn’t exactly what I had in mind, but I think it might well do. The trouble is that although there are reports of it working fine in WP 1.5 all the instructions linked to are for WP 1.2, and I am not at all clear how I would enable this for WP 1.5.

    dzr

    (@dzr)

    Experiment with <!–more–> and <!–nextpage–> comments that can be inserted into a post by clicking the “more” and “nextpage” buttons on the “Write” page. I believe they offer the kind of thing you are looking for …

    Best, D

    Thread Starter dzr

    (@dzr)

    Thanks moxie! That was really kind of you. Just before you posted that I managed to work out how to use the web interface to subversion repository. For anyone else looking for this, the most recent version of Kitten’s Spaminator which works with WP 1.2.2 is 1.0rc3, and it can be found here:

    https://dev.wp-plugins.org/file/spaminator/trunk/kittens-spaminator.php?rev=157

    Best, Darren

    Thread Starter dzr

    (@dzr)

    Nevermind—I found the new version of texturize at https://texturize.automattic.com/ and pasted it into wp-includes/functions-formatting.php and that seems to have done the trick.

    Best, Darren

    Thread Starter dzr

    (@dzr)

    Thanks podz, I was guessing that it must be a redundant remnant from something.

    Best, D

Viewing 15 replies - 1 through 15 (of 15 total)