marky
Forum Replies Created
-
Forum: Plugins
In reply to: Disemvoweler?I made a small modification to the plugin for those that are interested. It replaces the author’s name with “troll” and removes any URL he/she may have posted. ??
function disemvowel($content) {
global $comment, $disemvowelIPs;
if (in_array($comment->comment_author_IP, $disemvowelIPs)) {
echo "disemvowel";
$content = preg_replace("/[aeiou]/i", '', $content);
$comment->comment_author = "troll";
$comment->comment_author_url = "";
}
return $content;
}Forum: Requests and Feedback
In reply to: dereferencing urls in comments – an ideaI’d like to send my vote for this feature, too. My old MT blog became swamped with spam comments because the spammers wanted the extra page rank. I’m leery of simply allowing links without redirection.
Forum: Requests and Feedback
In reply to: Link Category Output CustomizationThanks for the tip, junesix!
Question: If I, or anyone else, were to modifyget_links_list
to take optional parameters to customize the output, would there be any chance of it being put in an official WP release? I don’t plan to dabble much in the source, but this is one of those things that I’d like in there without having to update manually after every upgrade. ??Forum: Requests and Feedback
In reply to: Link Category Output CustomizationOK, I’ll rephrase my first post to clarify what I’m looking for. ??
Right now the get_links_list() function returns a nested unordered list of categories and their links. The categories are simply represented as list items with a presumed class ID. That is:
-
<li id="Category 1">Category 1
- Link 1
- Link2
<li id="Category 2"> Category 2
- Link 3
Unfortunately, while you’re able to customize the tags that surround the links (replacing the LI tags with DD tags for example), you cannot customize the tags that surround the category names. What’s worse, the assumed class ID for the list items may conflict with existing styles (at worst) or be unused (at best). I would like to be able to choose what tags I want to surround both the category items and the list items. This would allow me to do the following, for example:
<dl>
<dt>Category 1</dt>
<dd>Link 1</dd>
<dd>Link 2</dd>
<dt>Category 2</dt>
<dd>Link 3</dd>
</dl>
Forum: Requests and Feedback
In reply to: Link Category Output CustomizationI should clarify, no category names were output, the links were–but again, that’s not what I had in mind. Specifically, I want to output all the categories as headers and have an unordered list of links under each header.
Forum: Requests and Feedback
In reply to: Link Category Output CustomizationJunesix, I tried that and nothing was output. I’m using WP 1.2.
Forum: Requests and Feedback
In reply to: Link Category Output CustomizationSadly, that’s not what I had in mind. Specifically, using get_linksbyname() means I have to manually specify which category I want output. What I’m looking for is something that will output all categories and links, like get_links_list(), but with custom tags before and after each category.
Also, I just tried get_linksbyname(), and it seems that the two additional parameters have no effect on the output. ??Forum: Fixing WordPress
In reply to: SmartyPants Type PluginIt’s the “and more” part that I, personally, don’t like about Textile. However, WP has a built-in feature that does everything SmartyPants does, Chris. You don’t have to download any extra plugins, either. (The only difference that bothered me is that you need to type “—” to get an em-dash). ??
Forum: Plugins
In reply to: Disemvoweler?Marvellous! Thank you. ??
Forum: Requests and Feedback
In reply to: em-dash replacementThe problem is Textile adds other strange markup and features I don’t really want. For example, in the following sentence, “This is–and I can’t emphasise this enough–a sentence,” Textile assumes I want to wrap del tags around the inner phrase rather than simply replace them with em-dashes. (Yes, I’m from the puncutation school that doesn’t surround em-dashes with spaces ??
Incidentally, I did find a way to alter the default filter to do what I want. There’s a very simple mapping at the beginning of the functions-fomatting.php file that can be altered. ??No, it’s definitely Markdown (either that or I’m imaginging things ;-). It’s been converted to PHP, made into a WP plugin, and is included with WP 1.2. But it’s not working; not for me, anyway. Has anyone got it to perform as expected?
Forum: Fixing WordPress
In reply to: Link CategoriesSorry, it wasn’t A List Apart, but this page.
Forum: Fixing WordPress
In reply to: Link CategoriesI don’t need XHTML advice, thank-you-very-much. ??
A definition list is absolutely appropriate for a list of links, it’s even suggested inside one of the W3C’s documents as an example, and there’s an A List Apart article explaining why this is appropriate. That aside, I don’t think I should have to delve into the PHP code and modify the function to alter the output of this function. If I can replace the list tags, why not the category ones?Forum: Plugins
In reply to: Disemvoweler?Thanks for the link. Sadly, blacklisting isn’t what I had in mind; I’ve found it to be no where near as effective as a publically embarrasing disemvowelment. ??
If anyone would like to create such a plugin, I’m sure a few users (including myself) would greatly appreciate it! Thanks.