seraph
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Styling the More TextAlright, I came up with a pretty easy solution in the end (quite a non-intensive one too). Instead of using
the_content()
I use this:<?php
$more = strpos($post->post_content, "<!--more-->")+11;
if($more != "") {
echo apply_filters('the_content', '<div class="excerpt">'.substr($post->post_content, 0, $more).'</div>');
echo apply_filters('the_content', substr($post->post_content, $more));
}
else
the_content();
?>This has the benefit of allowing flexibility, and allows it to hook into the wordpress plugin hooks as well.
Forum: Themes and Templates
In reply to: Styling the More TextTrue, but that would be a little less than optimal really wouldn’t it?
I was pondering doing a preg_match for something that did a match for
*<!--more-->
, removed it from the post text itself and then created a new var with the contents of the matched text.A little involved, but it’d be quite a lot more portable if I decide to not restyle in the future — I’d like to keep extraneous markup to a minimum.
Forum: Fixing WordPress
In reply to: Excerpt for posts used to make an IntroductionActually that example is exactly the device I came up with, but using the $post object instead … and a ton of filters of course.
Forum: Themes and Templates
In reply to: The best designed WordPress powered sitesbinarybonsai.com is definitely one of them
Forum: Fixing WordPress
In reply to: Search not working all of a suddenProblem solved. Thanks.
Forum: Fixing WordPress
In reply to: All my feeds can’t be parsed in FeedParserI’ve narrowed it down to older versions of FeedParser and newer versions of Python. The latest feedparser + Python 2.3.4 works fine.
Forum: Fixing WordPress
In reply to: Display Links With Updated TimesStill a no go. I’ve done all that ??
Forum: Everything else WordPress
In reply to: WordPress Owns Allallusion: When I think about it, MovableType is the OS X of blogging solutions. GNOME has a definite advantage over OS X, and it will start to show in few iterations.
Guvner: GNOME.Forum: Requests and Feedback
In reply to: Timezone Correction: Nightmare in the makingI am starting to look into this, and quite likely will attempt to fix it in a backwards compatible manner
oohhhh! the pain!Forum: Plugins
In reply to: GD Image thumbnailer for uploadshmmm don’t know about that last. as for the window suggesting what to put in the post, I’ll fix that and post it.
Forum: Fixing WordPress
In reply to: Does Atom work?yep. LONG LIVE THE MOOSE!
Forum: Fixing WordPress
In reply to: Matt’s Acronym ScriptHow come I’m the only celeb endorsing it by the way?
Forum: Fixing WordPress
In reply to: Matt’s Acronym Scriptthanks Matt.
Forum: Fixing WordPress
In reply to: 1.0: problems with archives. they’ve disppeared.didn’t work here :/
Forum: Fixing WordPress
In reply to: 1.0: problems with archives. they’ve disppeared.here is the rewrite rule generated:
RewriteEngine On
RewriteBase /
RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([0-9a-z-]+)?/?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]
RewriteRule ^archives/category/(.*) /index.php?category_name=$1 [QSA]