rogwei
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Post via e-mail – Images are broken/missingYour quote is from wordpress.com which is different than www.remarpro.com. The .com might be hosting a solution that includes functionality similar to ‘posterous’. The .org version, assuming you are hosting wp on your own server, does not necessarily include this functionality out of the box.
I don’t know that for a fact. I am having the same issue. I am hosting wp on my own server and cannot get this to work with anything other than plain text (no attachments) e-mail.
I am in the process of installing wp on localhost, so I can debug the wp-mail script perhaps.
Forum: Fixing WordPress
In reply to: Posting via Email – attachments not showingHi Raj,
I am having the exact same issue with WordPress 2.9.2 on a dreamhost server. How did you resolve this?
Anyone?
Regards,
RogerForum: Fixing WordPress
In reply to: Upgrade issue with linksThe following code snippet fixes this issue. It replaces everything between the Archives li and the Meta li in sidebar.php. The problem was twofold.
- The SQL select statement referenced the old schema. The old schema had a separate linkcategories table. The new schema has one categories table and a couple of association tables to join posts and links to a category. The new select statement performs the join between the categories and link2cat tables.
- The call to wp_get_links needed another argument in order to render an HTML li element for each link. Without this argument, the css renders the links as #sidebar ul li instead of #sidebar li ul li. Try saying that three times really fast.
<?php $link_cats = $wpdb->get_results("select distinct cat_id , cat_name from $wpdb->categories c, wp_link2cat l where c.cat_id = l.category_id"); foreach ($link_cats as $link_cat) { ?> <li id="linkcat-<?php echo $link_cat->cat_id; ?>"><?php echo $link_cat->cat_name; ?> <ul> <?php wp_get_links($link_cat->cat_id .'&before=<li>'); ?> </ul> </li> <?php } ?>
Happy blogging. Roger Weinheimer (72hills)