Ming
Forum Replies Created
-
Forum: Plugins
In reply to: Display Yesterday’s Post TitlesCheck Semiologic’s Fuzzy Recent Post plugin.
[http://www.semiologic.com/software/recent-posts/]Forum: Installing WordPress
In reply to: Excluding all browsers but FireFox 1.5The techpattern code above is only half the script. It’ll return two variables for you – the browser name and browser version. You still have to write code that determines what happens when certain conditions are met. That means you need to know PHP to use this script.
There is an example script at the bottom of the text file that delivers different code for non-IE browsers and IE 5+ browsers. It’s a helpful starting point but if you don’t know PHP you’d be better off searching Google for a different script.
Maybe somebody should make a WordPress browser check plugin. It’d be pretty easy with this code.
Forum: Installing WordPress
In reply to: Excluding all browsers but FireFox 1.5Here’s a PHP browser checker. Include the file, run the function and it’ll pull the browser name and version number. Then you’ll have to check that it matches or exceeds your requirements.
http://techpatterns.com/downloads/scripts/browser_detection_php_ar2.txt
Personally I’m not one to exclude any visitors but I sure wish I could. Columns would be tasty!
Forum: Fixing WordPress
In reply to: How Many Pages Is Too Many?Patches can be filed at trac.wordpress.org. You’ll need to login with your support forum username.
Forum: Fixing WordPress
In reply to: Clickable ExcerptHere’s the two code snippets merged together:
<?php
if(!$post->post_excerpt) {
the_content();
} else {
?>
<strong>
<a rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_excerpt(); ?></a>
</strong>
<?php
}
?>Forum: Fixing WordPress
In reply to: Header too close to page and sidebarTry
#wrapper { margin-top: 36px; }Forum: Plugins
In reply to: Password Protect ENTIRE WordPress SiteNah, it was directed towards Viper007Bond’s type=”hidden”. I’ve been using CSS to solve problems for so long I’m forgetting the basics!
Forum: Fixing WordPress
In reply to: Write an online-book with WordPressYou could also have a stronger book thanks to reader’s comments (watch the copyrights!) and build word of mouth marketing towards its eventual release.
Forum: Fixing WordPress
In reply to: Multiple blogs if I already installed as a single?This should get you started
Installing Multiple Blogs on the Codex.
Forum: Plugins
In reply to: Password Protect ENTIRE WordPress Sitelol, dang, there ain’t no school like old school.
Forum: Plugins
In reply to: Password Protect ENTIRE WordPress SiteYou can do alphaoide’s solution by altering the username input box to this:
<input type="text" name="username" value="insert_username_here" style="display: none;">Well, it’ll be similar to that. The important parts are the
value="insert_username_here"which makes that username the default value and `style=”display: none;” which hides the input box. Of course you could put that rule into you CSS file too.Forum: Themes and Templates
In reply to: Most Common Fixed Width Design?770 is the max width of a design that wouldn’t get cut off by the scroll bar in firefox. 750/760 would give you a little whitespace on the sides which I personally like because it doesn’t appear so claustrophobic.
I assume the horizontal chrome on other browsers is similar?
Forum: Fixing WordPress
In reply to: Uncategorized and ArchivesCheck under Options -> Writing and you’ll see there’s a ‘default post category’. That’s where you can change the ‘uncategorized’ category. Does that solve your problem or is there more?
Forum: Fixing WordPress
In reply to: index page to display custom postsMethod 2: Use multiple loops in your page. This is sometimes easier if your posts don’t directly follow each other in the source code.
The codex has a page about using multiple loops and you’ll also want to look at the Query Posts page for information on how to limit each query to just the specific posts you want.
Forum: Fixing WordPress
In reply to: index page to display custom postsMethod 1: This uses just 1 loop and allows you to style your first, second and then all other posts separately.
<?php if (have_posts()) : ?><?php // Initialize the counter
$counter = 0;
?><?php while (have_posts()) : the_post(); ?>
<?php if ($counter == 0) { ?>
// Display post #1 this way
<?php } elseif $counter == 1 { ?>
// Display second post this way
<?php } else { ?>
// All other posts are displayed like this
<?php } ?>
<?php // Add 1 to the counter
$counter++;
?><?php endwhile; ?>
// What you want displayed after the loop has run
<?php else : ?>
// What you want displayed if no posts are found
<?php endif; ?>