Ming
Forum Replies Created
-
Forum: Requests and Feedback
In reply to: moderate comments suggestionIf you’d like you can request a feature at mosquito.wordpress.org. That’s the site to report bugs but under ‘severity’ you’ll see ‘feature’. No guarantee that anything will be added but at least it won’t be lost in the forum shuffle.
Forum: Requests and Feedback
In reply to: header of posts in categories/archive viewIt’s a little confusing for sure. It can easily be configured as a link, however, just by making a quick change in the style sheet (style.css).
You’d be looking for something like
h2 a { … } That’s the style for your title links.
If you changed it to something like
h2 a { color: red; text-decoration: underline } then all your title links would be red and underlined. Have fun playing around!
Forum: Fixing WordPress
In reply to: comments directly behind postsThis might be the easiest way for you to do this:
Where you display
<?php the_content(); ?>replace it with this:<p><?php remove_filter('the_content', 'wpautop'); ?><?php the_content(); ?><?php comments_popup_link('comments (0)', 'comments (1)', 'comments (%)', 'comments-link', ''); ?></p>wpautop() is the function that adds paragraph tags in your posts. The line
remove_filter('the_content', 'wpautop')removes paragraph formating from ‘the_content’. We’ve wrapped the whole thing in our own<p>tags so look of the page should be the same (mostly, hopefully! 😉Forum: Fixing WordPress
In reply to: Make a Private Blog.htaccess is a good way to do this. Try a search engine with “.htaccess tutorial” or “.htaccess password protect”. You’ll find lots of information to get you going.
Forum: Themes and Templates
In reply to: How to change the format of my date?In the admin section under options>general you’ll see it has two fields for time and date. That’s where you can change the format. You can find out what all the letters mean by going to http://www.php.net/date.
Forum: Themes and Templates
In reply to: New Sunset Themethumbs.db is generated by Windows when you view the contents of a folder as thumbnails. It’s a cache file so Windows doesn’t have to generate the thumbs each time. It can be deleted without problem.
i’m not sure about the background. i certainly thought of mini blinds when i first saw it but it definitely looks better than a plain background. yup, i think it’s cool. good job!
Forum: Plugins
In reply to: wp-downloadThese pages give you lots of plugin building info. I haven’t looked at yours yet but it sounds like a great idea.
http://codex.wordpress.org/Plugin_API
http://codex.wordpress.org/Writing_a_Plugin
http://codex.wordpress.org/Adding_Administration_MenusForum: Themes and Templates
In reply to: How to switch Kubrick sidebarGive this a whirl:
switch
.narrowcolumn { float: left }tofloat: right#sidebar { margin-left: 545px }tomargin-right: 545pxForum: Fixing WordPress
In reply to: How to display current month on index pageSorry, I should clarify myself. Put the lines anywhere above the post loop in the index.php file. That’s important because if you put the lines in the header.php then every page that calls the header will get that query – not what you want. If you restrict those lines to index.php then only that page will use the special query.
But you make a good point that I didn’t address. Besides being the home page, index.php can also be used as a fallback for missing pages and as a default template in some themes. So we really need to make sure the query is only called if it’s on the home page. We use the is_home() function like this:
<?php if (is_home()) { ?>
<?php $current_month = date(‘m’); ?>
<?php $current_year = date(‘Y’); ?>
<?php query_posts(“monthnum=$current_month&year=$current_year”) ?>
<?php } ?>3rd times a charm! Did I finally get this right?
Forum: Fixing WordPress
In reply to: Stranger accessing wp-login.php? action=lostpasswordI don’t have a tv. WP support forum drama is all I’ve got, don’t deny me that.
Forum: Fixing WordPress
In reply to: Firefox borkage and some things i can’t understandNope, sounds like you’re right, if posts are being rewritten then your permalinks are working.
Most ftp clients won’t see .htaccess by default because it’s hidden. There should be some option to show hidden files in your ftp client.
As for the ‘code’. On the options>permalinks page if you ‘Update Permalinks’ one of two things happen. If WP can write to the file you’ll get a blue box at the top of the page saying ‘Permalink structure updated’. That’s good, WP has taken care of everything. If your .htaccess is not writable, then WP says something like ‘You have to update your .htaccess file now’ (err, something like that). WP will also print the rewrite rules at the bottom of the page so you can copy and paste them into .htaccess. Since you’re not seeing that code I’m assuming WP is able to write to your .htaccess file.
One time all my post permalinks were working fine but WP wasn’t rewriting a new page I made. Rather than muck around with it. I deleted my .htaccess file, made a new blank, writable file and then went into options>update permalinks and clicked ‘update permalinks’. That sorted it out. Other than that, I’m not sure what to tell you.
Hopes this all makes sense (and works!)
Forum: Fixing WordPress
In reply to: site down after .htaccess being createdYeah that Boren is a smart guy. Definitely good work fixing it for your situation.
Rather than editing WP, if you don’t want your .htaccess overwritten may I suggest making the file unwritable? hehe… 😉
Forum: Fixing WordPress
In reply to: How to display current month on index pageSorry for the lengthy delay. I didn’t like the last hack (we’re better than hacks!) so I was checking out the new 1.5 query vars.
Check out this hotness:
This goes anywhere before your loop starts
<?php $current_month = date(‘m’); ?>
<?php $current_year = date(‘Y’); ?>
<?php query_posts(“monthnum=$current_month&year=$current_year”) ?>The old way used your regular query and then hid everything that didn’t match the current month. This new way rewrites the query so it only finds posts in the current month of the current year. If no posts are found you get your message saying ‘No posts found’ (or whatever it says in your index.php)
Forum: Fixing WordPress
In reply to: Where to start…Nope, not really. It was just if you didn’t have a host we could give some suggestions on finding a good one. But if your host is WP compatible then looks like you’re ready to go. Have fun, let us know how it turns out!
Forum: Fixing WordPress
In reply to: How to display current month on index pageHere’s a quick PHP script to do what you want.
Put this at the top of your index.php
<?php $current_month = date('m'); ?>Put this just after your loop starts (while (have posts))…
<?php
$post_month = get_the_time('m');
if($post_month == $current_month) {
-- insert regular post loop here --
}
?>
Not fancy but it will work.– It gets the current month once (it’s outside of the loop)
– In the loop it gets the month the post was created
– if the current month and the post created month are the same it displays the post
– if they’re not it displays nothingThis code is unforgiving. If it’s March 12th and you haven’t posted anything in March the front page content section will be blank.