Forum Replies Created

Viewing 15 replies - 16 through 30 (of 36 total)
  • Thread Starter flammable

    (@flammable)

    To be fair, the excellent AsideShop plugin allows some great styling on a per-category basis – it meant I wouldn’t have to strip out the post titles from my template. ??

    On the other hand, I’m still making tons of posts that call themselves “(no title)”, which is why I started this thread. I’d rather have the titles auto-generate themselves, based on the content of the post (like Twitter does, since it doesn’t support post titles).

    No worries – I think the comma that separates the categories might be the default, anyway (it is for tags, at least).

    If a user had something like ExecPHP or runPHP installed, inserting straight PHP into AsideShop would be nice, as it’s quite open-ended. ??

    Not sure if anyone’s asked this before, but I’d really like to be able to insert PHP into the AsideShop template box, please. ??

    For example, I wanted to display the category, as well as an “edit” link on each post.

    The code I’d like to add is:

    <?php the_category(', ') ?>
    and
    <?php edit_post_link('(Edit)', '', ''); ?>

    Also, nice solution, greenshady. Definitely worth consideration. ??

    Okay, I managed to figure out how to enable or disable comments per images. Here’s what you need to do.

    Warning: This is not for the faint of heart! Back up your database first, and make sure you understand what you’re doing before trying this.

    Open up your database in PHPMyAdmin, and navigate to the wp_posts table. Click the ‘Browse’ tab at the top.

    Then, look for the entries that contain your images. I didn’t leave captions on any of mine, so “post_content” was left empty. Another way of telling is that the “post_title” will be the name of your image file, such as untitled-28 or cimg1141.

    Click the pencil icon at the left of your post. Then, where it says “comment_status”, change it from “open” to “closed” (or “closed” to “open” if you’d like to enable comments). Don’t use the quotes, just input the word itself.

    Note: You can also adjust the “ping_status” if you want to enable/disable pings here, too.

    Scroll to the bottom of the page, and make sure it says ‘Save’ and then ‘Go back to previous page’. Click the ‘Go’ button.

    Go back, find the image on your site, and the comment status should now be changed.

    I wish there was something to toggle this within the WordPress admin – or even a plugin to handle this. It’s going to be time-consuming to edit every image I upload by hand.

    Heck, I’d even accept a MySQL query, I just don’t know how to construct them.

    I’ve got the exact opposite problem. By default, I’ve got comments and pingbacks disabled (blog-wide), so every post and image has commenting turned off.

    I’d like to turn on commenting, but only for image galleries and images. However, I’d still like WordPress to have commenting off by default for everything else. Being able to toggle it per-item would be best.

    Wish I could help you guys, I’d trade places if I could. ??

    This sounds like it might need to be tweaked directly in the database, which doesn’t thrill me. Mucking around in the database is just asking for trouble.

    Thread Starter flammable

    (@flammable)

    It’s more or less that I’m too lazy to add a title…I’d like to have WordPress create the title automatically, like from the first few words of the post.

    With no title, it makes it more difficult to go through posts in Manage –> Posts (since every post shows as (no title)). Also, the slug of the post is the post ID, from the database. I think that’s kind of ugly.

    Plus, I’m usually terrible with titling things – I think, by automating the title creation, I’ll post more.

    I’m aiming to use Asides like Twitter, if that helps explain things better.

    I really like the AsideShop plugin, don’t get me wrong…and I’m definitely going to use it. Thank you for that.

    I guess this isn’t a tremendous deal, but as it didn’t sound like a hard thing to do…I figured it probably existed, but I just couldn’t find it.

    Thread Starter flammable

    (@flammable)

    Hmm, one thing, though – it doesn’t seem to generate post titles from the post’s content (like, the first few words of the post).

    Am I missing something?

    Thread Starter flammable

    (@flammable)

    Wow, this is perfect. Really, more than I could have hoped for. Thank you, moshu!!

    I just searched for “Aside Shop” in Google, and this thread came up in the results. That freaked me out a bit, as I only made this thread an hour or so ago.

    Anywho, here is the plugin link, for anyone else that stumbles on this thread.

    sky7998, I think you might have replied to the wrong topic. ??

    If you add your choice of sidebar widgets, and don’t include the Meta widget, it will go away.

    Okay, I don’t know if this will do it for everyone…but it seems that my theme has some extra features that I don’t use, and one of them was causing these issues. I’m using the 3-column Relaxation theme.

    It required me to alter the loop a bit from the theme’s version…here’s the before:

    <?php if (have_posts()) : ?>
    
    <?php while (have_posts()) : the_post(); ?>
    <?php if ( !(in_category(get_settings('3cr_v1_asides_cats_to_exclude_from_blog'))) ) { ?>
    
    <div class="post">
    <h1 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
    <p class="date"><?php the_time('F jS, Y') ?> by <?php the_author('namefl'); ?>
    
    <div class="entry">
    <?php the_content('[more...]'); ?>
    </div>
    
    <!--
    <?php trackback_rdf(); ?>
    -->
    <?php if(!is_single() && ($post==$posts[get_settings('3cr_v1_google_contentarea_adsense_code_pos1')] OR $post==$posts[get_settings('three_column_relax_v1_google_contentarea_adsense_code_pos2')])) { ?>
    <?php echo stripslashes(get_settings('3cr_v1_v1_google_contentarea_adsense_code')); ?>
    
    <?php } ?>
    </div>
    <?php }; ?>
    <?php endwhile; ?>

    to:

    <?php if (have_posts()) : ?>
    
    <?php while (have_posts()) : the_post(); ?>
    
    <div class="post">
    <h1 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
    <p class="date"><?php the_time('F jS, Y') ?> by <?php the_author('namefl'); ?>
    
    <div class="entry">
    <?php the_content('[more...]'); ?>
    </div>
    </div>
    <?php endwhile; ?>

    I know it probably won’t fix it for everyone (if anyone else), but hopefully it’ll help some people track down the problem for themselves.

    Having the same issue (upgraded a test install). Switched back to Kubrick, the default theme, which didn’t show the same problems – and turned off all of my plugins, so it can’t be them.

    As I’ve narrowed it down to my theme, is there a place I should be looking to figure out how to fix this? I don’t want to modify WP core code, but that’s where the error leads to.

    Yes, or PHP 5.2.1. But PHP 5 should be the way to go, if possible.

    I did it like this:

    <?php

    define('XMLRPC_REQUEST', true);

    // Some browser-embedded clients send cookies. We don't want them.
    $_COOKIE = array();

    $HTTP_RAW_POST_DATA = file_get_contents("php://input");

    # fix for mozBlog and other cases where '<?xml' isn't on the very first line
    if ( isset($HTTP_RAW_POST_DATA) )
    $HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA);

    include('./wp-config.php');

    and things seem to work again! Thank you, Kelson.

    Bunzie, be sure to put it in the correct place…he mentioned inserting the code before the first reference to $HTTP_RAW_POST_DATA. ??

Viewing 15 replies - 16 through 30 (of 36 total)