eric
Forum Replies Created
-
Forum: Your WordPress
In reply to: My stuff: Zooiblog (Dutch)Nice, I like the gesellige hovering effects you’ve done on the headlines and stuff.
Forum: Fixing WordPress
In reply to: Mod Rewrite: What actually is this?Mtdew, thanks for putting up instructions but i get a 404 following that link. I’d love to see some info on this too, I have actually RTFM from apache on the whole mod_rewrite thing but it kinda makes my brain melt… cheers
Forum: Fixing WordPress
In reply to: Problem with textProbably something to do with your encoding, are you using utf-8 or iso-8859, and which version of WP? A URI would be useful.
Forum: Fixing WordPress
In reply to: Upgrade problem – french to chinese characters inI believe this is how she fixed it:
<meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1″ />
in index.php
changes character encoding back to 8859-1 which is what WP1.0.2 used, I think.Forum: Fixing WordPress
In reply to: Time/Date Format CharactersForum: Plugins
In reply to: Changing class on different categoryWhere it says \ that should be backslash n for newline. What you probably want to do is apply the conditional statement around the whole “post” div so you end up with either div class=”post” or div class=”post-specialstyle”, depending on the category. HTH:
Forum: Plugins
In reply to: Changing class on different categoryPerhaps zou can adapt this code for what zou want to do. I use it here to give categories with static content a different heading style (with no date) than the categories where stuff gets posted regularly. Should be easy to change so it changes the whole post rather than just the heading. I use it with WP1.2 but see no reason it wouldn’t work with 1.0.2. BAsically I just replace the whole “content” div with this: (warning, ugly coding style ahead)
<div id="content">
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<?php
/* horrible hack to make the date display in dynamic categories only, these need to be specified explicitly below */
$dynamic_cat=(in_category(1) or in_category(2) or in_category(3) or in_category(4) or in_category(5) or in_category(6) or in_category(14) or in_category(15));
?>
<div class="post">
<?php
if ($dynamic_cat)
{
echo sprintf("<div class='meta'><h2>");
the_time('j.n.Y'); // when 2 posts have same date, the_time shows it twice, the_date just once
echo("</h2>");
_e("Filed under:");
the_category();
edit_post_link(" - [edit]");
echo ("</div>");
}
echo sprintf("\n<h1");
if (!$dynamic_cat)
echo sprintf (' class="static"');
echo sprintf (">
the_permalink();
echo ("'>");
the_title();
echo ("");
if (!$dynamic_cat)
edit_post_link(" - [edit]");
echo ("</h1>");
/* end of horrible hack */
?>
<div class="storycontent">
<?php the_content(); ?>
</div>
</div> <!--end of "post" div -->
/* deleted the php code to display comments; I don't use them */
<?php endforeach; else: ?>
<?php _e('Sorry, no posts matched your criteria.'); ?>
<?php endif; ?>
</div><!-- end of content div -->
then I add something to my style sheet to display the h2 class=”static” stuff differentlyForum: Themes and Templates
In reply to: Different style for the latest postWayhey, you got it working! It still highlights the first post on any page even if that’s not the last one posted, but looks good anyway. I also like your JavaScript expanding submenus!
Forum: Fixing WordPress
In reply to: Quotations instead of apostrophe’s…Hm. Only other thing I can think of is if you’re cutting & pasting text from some editor, rather than writing it in WP, some charset conversion problem might occur. Is that what you’re doing? If not I’m as clueless ay you 🙁
Forum: Fixing WordPress
In reply to: Quotations instead of apostrophe’s…In your html head, you have:
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
Have you tried changing the charset to utf-8 ?Forum: Your WordPress
In reply to: New weblog for web agencyyeah those submenus look good! eccept if you disable javascript of course..
Forum: Themes and Templates
In reply to: Different style for the latest postIf you get it to work, I’d love to see the code 🙂
Forum: Fixing WordPress
In reply to: How do you change the script to read from a differThanks for posting your solution! For what I’m doing, I think I still need mod_rewrite, but I’m sure someone else will find this useful.
Forum: Themes and Templates
In reply to: format date like news pages?@efrog: is your emphasis on “in” or on “each”?
If you want to display the date for each post even if several posts have the same date, then you probably want to use the_time() instead of the_date().
By passing arguments to the_time(), you can make it display month/day/year in whatever format you prefer, rather than the default hours/minutes.
The difference is, the_date will only display the date if it has not already displayed the same date before, whereas the_time always does its thing no matter what. I’ve got this working here
http://www.bdue-berlin.de/mingus/
the_date documentation:
http://wiki.wordpress.org/the_time
HTH.Forum: Fixing WordPress
In reply to: blank page after editingOK, so the exact same version of WP (1.2 Mingus), powering another site on a different host, does not have this problem. Something host-dependent?