skeltoac
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Textile1 IssuesHeck, 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><li></code></li>
<li>string between the post title and post date, default: <code></code></li>
<li>string after each draft item, default: <code></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><?php am_coming_soon(5, '
<li class="comingsoon">&#8216;, &#8216; &#8216;, &#8216;</li>
&#8216;, &#8216;I Have No Draft&#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 IssuesAnd since you use so many ampersands, you’ll need to escape those, too! Use
&
for that.Forum: Fixing WordPress
In reply to: Textile1 IssuesYou’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 IssuesOkay, 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 IssuesI 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 IssuesI 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 IssuesTry again, but enclose the whole thing in backticks.
Forum: Requests and Feedback
In reply to: Video PageYou 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
*/
?>Forum: Fixing WordPress
In reply to: Count of links in a specific link categorySorry, 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()
, fromwp-includes/links.php
and give the new function a unique name. You’ll need to rewrite the MySQL query to accommodate something likeORDER BY count(link_id)
. This might require the use ofGROUP BY
instead ofDISTINCT
, 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 IssuesAre 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.Forum: Requests and Feedback
In reply to: [1.5 REQ] Theme Editor Create .php File FunctionYou 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.Forum: Plugins
In reply to: Geek Switch … or turn off some categoriesThat 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 IssuesThat’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 PanelI 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.