deko
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Private posts in a specific category?a separate blog is probably the best way… guess WP is just not designed for this kind of thing.
Forum: Fixing WordPress
In reply to: Can WP manage/share documents?WordPress is a blog?? well, I’m glad you’ve set me straight on that issue.
If you read the documentation at
http://codex.wordpress.org/Using_Image_and_File_Attachments
it appears that WordPress ALSO does file/attachment uploads.
Not exactly document management, but it might work with a little code customization.
Forum: Fixing WordPress
In reply to: How to optimize query with wpdb?Forum: Fixing WordPress
In reply to: Can anyone recommend a theme for a code library?I’ve decided to write my own “code-library” theme.
If anyone’s interested let me know and I’ll polish it up and make it available for download…
Forum: Fixing WordPress
In reply to: Correct file permissions for core files?10-4
thanks for the tip.
Forum: Fixing WordPress
In reply to: Correct file permissions for core files?I found this thread:
http://wordpress.org/support/topic/50863?replies=9
which might be summarized as:
755 – all directories
644 – all scriptsdoes this sound about right?
Forum: Fixing WordPress
In reply to: How to display current month’s posts only?I had looked at that thread, but it was not very clear…
The code I posted seems to be working, however…
Forum: Fixing WordPress
In reply to: How to display current month’s posts only?current week might be tricky… not sure if query_posts takes such an argument. But with a little research and some PHP code, you could do it. I’ve got enough on my hands at the moment… sorry I cannot offer an example.
Forum: Fixing WordPress
In reply to: How to prevent automatic conversion of quotes?I’m sure it’s dirt easy, but I haven’t looked yet. I’m using Alex King’s plug-in for now as a quick fix.
As an aside, I think the backward single quote in situations like ‘sample’ is a bug. Apparently they coded it so anytime a single quote is followed by an ‘s’ it’s converted to a right-handed single quote.
This whole quote mess is like original sin. I didn’t eat the apple, but I’m the one sweating for it. Whoever introduced those funky quotes should be made to fix every information system in the world that gets screwed up by them.
You’re right about upgrades – I maintain an annotated list of all my core mods and re-implement them after an upgrade. It’s a pain, but the safest approach, I think. Perhaps this site has a database of WP core hacks that users have submitted? It would be interesting to see what folks are doing…
Forum: Fixing WordPress
In reply to: How to prevent automatic conversion of quotes?From the notes on wpuntexturize:
Basically, wptexturize() (located in /wp-includes/functions-formatting.php), performs certain character and text replacements that I’m not too groovy with, namely this ( ‘ ) being replaced with (
‘) or (’), and ( ” ) being replaced with (“) or (”). I appreciate the other character and text replacements that were happening, just not those.I figure I’ll just modify the code in functions-formatting.php. I’m not at all hesitant to modify WP core files – I do it all the time and effectively have created my own version. I call it 2.deko 🙂
By the way, Alex King has a plug-in – WP Unformatted – that will turn off “texturization” on a per-post basis:
http://www.alexking.org/index.php?content=software/wordpress/content.php
Forum: Fixing WordPress
In reply to: How to prevent automatic conversion of quotes?In Word 2003, go to Tools > AutoCorrect Options… and you will see the AutoCorrect dialog with 5 different tabs – it’s on the AutoFormat tab, I think. I turn off just about everything in this dialog.
Forum: Fixing WordPress
In reply to: How to prevent automatic conversion of quotes?Thanks for the tip. I’ll check it out (and also find out how to disable wptexturize at the source). You would think the WP folks would include a simple checkbox option to use or not use this feature. Even MS allows users to disable this feature in Word…
Forum: Fixing WordPress
In reply to: Can <!–more–> tag be modified?got it working!
Here is the complete code:
var pid = location.search.split("post=");
edButtons[edButtons.length] =
new edButton('ed_more'
,'more'
,'<!--more--><small>You may find this page easier to read with a different background color.<br />Select your preference from the drop-down list.</small></p><form name="bgcolor" action="http :// www . example . com/?p=' + pid[1] + '#more-' + pid[1] + '" method="post"><select style="width: 180px" name="color" onchange="bgcolor.submit()"><option selected="selected" value="default">select background color</option><option value="white">default</option><option value="yellow">yellow</option><option value="grey">grey</option></select></form>'
,''
,'t'
,-1
);notes:
1.</p>before <form> element
2. no line breaks in the string following<!--more-->Forum: Fixing WordPress
In reply to: Can <!–more–> tag be modified?The one thing that would make it really nice is if I could use some kind of template tag in place of the unknown PostID.
For example:
<form name="bgcolor" action="http://www.myblog.com/?p=[POSTID]#more-[POSTID]" method="post">Do you know of any template tag that will work like this in the post editor?
Forum: Fixing WordPress
In reply to: Can <!–more–> tag be modified?Looks like you can add just about anything you want, including a form, to be inserted with that
<!--more-->tag.You’ll break it if you have a line break in your code, however.