Ming
Forum Replies Created
-
Forum: Plugins
In reply to: [Req] Visit Site Plugin in postsYou can use the custom fields feature of WP:
http://codex.wordpress.org/Using_Custom_FieldsA plugin that works well with custom fields is Coffee2code’s Get Custom Fields:
http://www.coffee2code.com/archives/2004/06/30/plugin-get-custom/Forum: Fixing WordPress
In reply to: multiple blogsIf you use a new database you won’t need to change the prefix.
WP calls the tables by database name -> table prefix. So as long as the databases are different it won’t reference the same table.
Personally, I still change the prefixs. It makes no difference to WP and when you backup your database it’ll have a more descriptive name.
Forum: Fixing WordPress
In reply to: Blogroll – Why do I need it?http://codex.wordpress.org/Template_Tags/get_links
Set the orderby string to ‘id’
Forum: Fixing WordPress
In reply to: mod_rewrite essential?Yep, absolutely. Permalink URLs make your links easier to understand and navigate. But the real advantage is that they never need to change. Even if you switch from WordPress to MovableType to Textpattern your link (and everyone’s bookmark to that article) will stay the same. Without permalinks you can’t guarantee that. But if that’s not a problem then don’t worry about it, yoursite.com/index.php?p=[post-id] will link/bookmark/etc just fine.
Forum: Themes and Templates
In reply to: Fresh Banana Theme Critique & SupportThese two links explain about WP and localization. There’s two translated default templates on the first link. Maybe they’ll give an idea how to setup a localized template.
http://codex.wordpress.org/WordPress_Localization
http://wiki.wordpress.org/WordPressLocalizationForum: Fixing WordPress
In reply to: Custom Fields helpHere’s two links that’ll help
http://codex.wordpress.org/Using_Custom_Fields
http://www.coffee2code.com/archives/2004/06/30/plugin-get-custom/
I don’t build specific lists but I do use a WP blog as a dumping ground for things I run across. I find lists are too constricting and I spend as much time thinking about what should go in each list as I do in making them. By using a WP blog I can tag things as they come in or just search for whatever I need.
Forum: Fixing WordPress
In reply to: ob_start() errorHave you installed any plugins that are using the output handler? Try disabling all your plugins. Do you still get the error?
Forum: Fixing WordPress
In reply to: Did I break it by adding .htaccess?I’m unsure what’s the problem here. I’m using Dreamhost and I can still access my stats directory. I’ve installed to example.com/wp/ but my blog address is example.com/. My .htaccess file is at example.com/
I manually installed WP. I’m not sure if the 1 click install does anything different (if that’s what you used).
Forum: Fixing WordPress
In reply to: Posts grouped by date – how to set them off with graphics?This is possible in CSS. What you have to do is think like a table 🙂 By that I mean you’re using table cells as ‘hooks’ – ie somewhere to place the appropriate background image. So you have to convert
<td>elements to css elements.
<div class="dailypost">
<div class="top">Today's date</div>
<div class="middle">Post Text</div>
<div class="bottom">...</div>
</div>
Then what you could do is add all the images together into three strips. So you’d have left corner + top bar + right corner as one image and set it as the background of top. Do the same for the middle and bottom. That’ll give you the same effect. Keep in mind the one image per row only works for fixed width layouts because the image is premade at one size. To do it in a liquid layout, like you’re currently doing, you need to add a few more hooks. I can’t remember the exact article but you should check http://ala.com (A List Apart). I know it’s had articles about this in the past.
Sorry that doesn’t directly answer your question. Just wanted to show you some CSS alternatives.
Forum: Everything else WordPress
In reply to: Browser Compability Issueshttp://msdn.microsoft.com/workshop/author/css/reference/attributes.asp
Ok, it’s actually the exact reverse of what you asked for but hey, maybe it’s useful.
Forum: Fixing WordPress
In reply to: What is the difference between Markdown, Textiles, Texturize, etc….?remove_filter('the_content', 'wpautop')will keep WP from adding<p>elements to your content field. You can put that in the post loop before you display your content. I assume ‘nl2br’ works the same.The reason filters are applied each time the post is called, instead of storing the converted text in the database, is for flexibility. For instance you could change wpautop to add
<p class="blah">and then all posts will immediately reflect the change. If you saved the<p>into the database you’d have to write a function to either remove them from old posts or convert the old posts to the new class. That’s difficult because how could the function know whether it’s a<p>that you entered or that wpautop entered? But you’re right, it does take extra processing to do each time so there’s definitely a trade off.Forum: Themes and Templates
In reply to: another arcane query about plugin hookspobody’s nerfect
Forum: Fixing WordPress
In reply to: Did I break it by adding .htaccess?Did you make a page in WP called stats? If WP has a page for something then it’s included in the rewrite rules and WP is used to fill that request. So if you have a page called stats, delete it and regenerate your permalinks.
Forum: Themes and Templates
In reply to: How to modify Post Title?CSS is applied by the most specific rule. Even though your title is surrounded by
<h2>it’s more specifically surrounded by<a>for your link.So edit
h2 a { border: 1px solid #000; }
You can also change the various states of a link like this:
h2 a:visited { border: 1px solid green; }
h2 a:hover, h2 a:active { border: 1px solid red; }That will change the border on your title text to black if it’s a normal link, green if the person has already visited it and red if they hover their mouse over the link.