dzr
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: I’m confused about “Add video”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!)
This is now in Trac: #4106.
Forum: Requests and Feedback
In reply to: Blog from cellphoneHave you seen ShoZu? According to that webpage they support WordPress. Presumably by it’s XML-RPC interface.
Forum: Requests and Feedback
In reply to: 2.0.x bug: category containing only future postsI’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.
Forum: Themes and Templates
In reply to: Customise Category pagesThat’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 PageThis 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
Forum: Themes and Templates
In reply to: <!–more–> working in archive.php but not in index.phpAh, 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
Forum: Fixing WordPress
In reply to: Files | Manage broken after upgradeAh, 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.
Forum: Fixing WordPress
In reply to: Files | Manage broken after upgradeHi, 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 TechnologiesI’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”
Forum: Fixing WordPress
In reply to: 403 error on comment postYes, 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.
Forum: Plugins
In reply to: Plugin for previewing comments before posting?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.
Forum: Plugins
In reply to: How do I show an excerpt of a post?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
Forum: Fixing WordPress
In reply to: Kittens Spaminator for WP 1.2.2 — where to find?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
Forum: Fixing WordPress
In reply to: texturize problem: quotation mark followed by punctuation characterNevermind—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
Forum: Fixing WordPress
In reply to: What is wp-comments-reply.php?Thanks podz, I was guessing that it must be a redundant remnant from something.
Best, D