Forum Replies Created

Viewing 15 replies - 46 through 60 (of 91 total)
  • Forum: Fixing WordPress
    In reply to: Textile1 Issues

    Heck, here’s the whole thing, fixed up real nice:
    There are five variables used in this plug-in:
    <ol>
    <li>number of post you want to list, default: 5</li>
    <li>string before each draft item, default: <code>&lt;li></code></li>
    <li>string between the post title and post date, default: <code></code></li>
    <li>string after each draft item, default: <code>&lt;/li></code></li>
    <li>message if no draft found, default: <em>No Draft Found</em></li>
    </ol>

    So for instance, I use it in my sidebar with a call like this:
    <code>&lt;?php am_coming_soon(5, '
    &lt;li class="comingsoon">&amp;#8216;, &amp;#8216; &amp;#8216;, &amp;#8216;&lt;/li>
    &amp;#8216;, &amp;#8216;I Have No Draft&amp;#8217;); ?></code>

    <h3>Download:</h3>
    Gosh, I hope that works. If you plug it into a blank HTML file, it displays just like you would hope. That is, if the board didn’t devour it…
    EDIT: ARRRG! It did. Check back in a minute…

    Forum: Fixing WordPress
    In reply to: Textile1 Issues

    And since you use so many ampersands, you’ll need to escape those, too! Use &amp; for that.

    Forum: Fixing WordPress
    In reply to: Textile1 Issues

    You’ll want to do the same thing with the <?php that appears later in your post. Make it look like this without the space after the ampersand:
    <code>& lt;?php

    Forum: Fixing WordPress
    In reply to: Textile1 Issues

    Okay, I see what’s going on. When you want to display a “<” you sometimes have to use its HTML entity. I can’t seem to get it to display as plain text here, so take what’s between these quotes and remove the whitespace:
    “& lt;”

    Forum: Fixing WordPress
    In reply to: Textile1 Issues

    I also noticed the block of
    <code><?php (function example) ?><code>
    when I viewed the source. To get that to display, you have to get the < past the browser. Do this:
    (wait, that didn’t work…)

    Forum: Fixing WordPress
    In reply to: Textile1 Issues

    I meant that you need to post the code within backticks on this board so it doesn’t parse the tags; I need to see the post complete with tags.

    Forum: Fixing WordPress
    In reply to: Textile1 Issues

    Try again, but enclose the whole thing in backticks.

    Forum: Requests and Feedback
    In reply to: Video Page

    You can create a Page with no content and force it to use a special “template” that is actually just a PHP file with your HTML inside. To make WP recognize it as a template, put this at the top:
    <?php
    /*
    Template Name: Video
    */
    ?>

    Sorry, it’s not native. You can make a plugin or a hack to do this. Make a copy of the last function, get_links_list(), from wp-includes/links.php and give the new function a unique name. You’ll need to rewrite the MySQL query to accommodate something like ORDER BY count(link_id). This might require the use of GROUP BY instead of DISTINCT, which would break the test for empty categories.
    I’d work out the query for you but I don’t have access to my databases from behind the proxy at work. I should cut out of here…

    Forum: Fixing WordPress
    In reply to: Textile1 Issues

    Are you closing your own <li> tags? I need to see what you’re posting. Copy the <ul> block from the textbox where you edit your post and paste it here.

    You may be able to use WP’s upload feature to accomplish that. It depends on your server’s permissions. I did it all the time when I had a plain hosting account.

    Now, with a virtual server, my permissions have been set up with greater security: a file uploaded via WordPress does not run with all of the permissions of a file uploaded via FTP. The result is that I can have two files containing identical code, in the same directory, and one won’t be allowed to do things like opendir() while the other works fine.

    That error could mean that $dnl_geek is undefined. Test for that.

    As an aside, you might benefit from putting your variables after the == when doing logical comparisons. See the Coding Style Guidelines, in the last paragraph.

    Forum: Fixing WordPress
    In reply to: Textile1 Issues

    That’s odd… I just use <code> normally and it works fine, sans Textile1. Do you have any other related plugins activated?

    Forum: Plugins
    In reply to: Plugin idea for Admin Panel

    I thought about limiting my comment lengths, too. I decided against it. The next day, I was blessed with this gem!

    Forum: Plugins
    In reply to: Spam Plugin

    (laughing at own stupidity)
    Podz, your first reply on this thread said it all. I didn’t catch the wink. Duh.

Viewing 15 replies - 46 through 60 (of 91 total)