ottofilm
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Moving the WordPress install?Since there aren’t many wordpress files and a new upload would be fast, I would upload an exact set of the files to where you want them, then delete the old set after you made the change. This way, you can get to admin files from the old location to make the change, and can check it at the new location. I’ve been shuffling files around and I’ve found that two sets for a minute or two saves headaches.
Forum: Fixing WordPress
In reply to: Editing A ThemeRead = 4, Write = 2, Execute = 1, and you add them up. The first number is Owner, the second Group, the third Other. So 666 would equal Read and Write for Owner, Group, and Other.
Forum: Requests and Feedback
In reply to: Link category definition issueHi Ville –
Six months later, I have an answer to your question. 🙂 I was looking for a solution to this myself, and a search of the forums didn’t come up with anything except this post, so I went into the code. In /wp-includes/links.php, at the bottom in the get_links_list function, the before, after, and between fields are not called from the database on lines 486-488, and then on about line 507, those items are hardcoded when the call is sent to get_links, and what is hardcoded for between is just a newline (\n). There are two ways to fix this:
1. a) Add the three fields to the SELECT so they’re picked up for the fuction. Lines 486-488 would probably become:
SELECT DISTINCT link_category, cat_name, show_images,
show_description, show_rating, show_updated, sort_order,
sort_desc, text_before_link, text_after_link, text_after_all, list_limit
"b) then, list those three database items in the call to get_links, so line 507 changes from:
'
<li>',"</li>
","n",<br />
to:
"get_links($cat['text_before_link'],","get_links($cat['text_after_all'],","get_links($cat['text_after_link'],",<br />
Then the call to get_links should properly pull those settings from link categories.
The other, fast cheap and wrong (but the way I did it) way to do it, is to just hardcode that BR tag into line 507:
'
<li>',"</li>
","n<br>",<br />
or of course br \ if you’re doing that xhtml thing.
Dougal wrote this function originally so I might send this to him to see if I did it right.
Forum: Fixing WordPress
In reply to: Spammers of the World, I salute you.and now my right index finger is exhausted from clicking the “delete” button.
DSS – I’m waiting for 1.5 before deciding what sort of “better” commentspam blocking I need if anything, but for now, I did this… right around line 161 of moderation.php (in wp-admin/) you’ll find:
<input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-nothing" value="later" checked="checked" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-nothing"><?php _e('Do nothing') ?></label>Just moved that checked=”checked” part to the line before, so it looked like this:
<input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-delete" value="delete" checked="checked" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-delete"><?php _e('Delete') ?></label>This way, when you go into the comment moderation panel, everything is already checked to delete; on the off chance something real is caught in there, just check it to approve or do nothing instead.
This won’t work well, of course, if you have piles of real comments also waiting moderation, but I don’t think I’ve ever had a real comment get held for approval. And now I can delete dozens and dozens of comment spams with one click. I think something like this will be on by default in 1.5.
Forum: Plugins
In reply to: Word CountThanks podz and chuckg both!
you seem to have some problems with your site getting nuked now and then… is there a setting for that you could check? 🙂Forum: Plugins
In reply to: Word CountI’d like to get ChuckG’s version of this – just count the words in a single post – but it appears blindmuse.com has been down for a week or more. Any idea what’s up with it, if it’s coming back, and is there anywhere else to get it?
Forum: Your WordPress
In reply to: yet another site(Several weeks later…)
Thanks, goodsnake and Max. Max, interesting article. I’m currently actually using bits of the same photograph but in several different files – I was after a cohesive look more than bandwidth preservation; this site gets like four readers or something and on the same server I have a photo site with 1,000 visitors a day – so this isn’t even a blip on the radar. But now that I have a design I like I may revisit the blurred version of the photo for the headers and see if I can use just one copy of it everywhere, and use CSS to just display different bits of it. Thanks!Forum: Your WordPress
In reply to: yet another siteThanks. Awesome domain name you have there.
The next trick it to remove the 3,342 tables and font tags from my older sites. Yikes!Forum: Fixing WordPress
In reply to: Backing up with phpMyAdmin questionStructure and data are both needed to recreate the database if it’s gone. SQL would most easily allow an import back in to recreate everything; with both structure and data in SQL format it will rebuild everything for you before you can even blink. I think extended inserts are overkill but someone else might know better; I think it’s just it labels every insert but the data will already be orderly and I don’t think that’s needed. Zip would be fine; it can read it back I believe on re-install.
If you post a lot, do it more often than once a month; remember there are no physical files to try and salvage as backup if the database is gone.Forum: Fixing WordPress
In reply to: Post Slug: ignored?I’ve noticed it too; it doesn’t seem to check if there’s a slug the first time around, or if it does, it doesn’t retain it when it creates the dirified one. But yes, it sticks on editing. 5/14 nightly i think i’m on…
Forum: Fixing WordPress
In reply to: 1.2-RC1 user delete button missing / remembering ugreat, thank you!
Forum: Fixing WordPress
In reply to: 1.2-RC1 user delete button missing / remembering uThanks mark. So if it’s not remembering her then she might have cookies turned off or somehow otherwise disabled, I should assume?
Forum: Fixing WordPress
In reply to: 1.2-RC1 user delete button missing / remembering uDoh! I was still logged in as the test user so no wonder. Ignore that part; the Red X was back when I logged back in as the admin. I blame the lack of sleep.
But I’m still curious about remembering commenters – is that cookie based, and does it depend on being a registered user or not?
thanksForum: Fixing WordPress
In reply to: emails notifying of commentsthere’s an extra new line getting put into the headers; email headers cannot have blank lines. Thus, your Eudora (and mine) don’t see the From: line as being a From: line. I reported this earlier, but I’ve not been able to figure out what in the email function is doing this.
Forum: Fixing WordPress
In reply to: comment notification has a return in headersIt’s not real obvious with this css but there is a blank line between subj and from.