sam_a
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: RSS Feed for a page in wordpress?Yes, this was a 1.5 hack, now deprecated. 🙂
It looks like 2.1’s
get_lastpostmodifiedfunction will now include Pages so this won’t be necessary.Forum: Fixing WordPress
In reply to: RSS Feed for a page in wordpress?I eventually got this working but I think I had to add
OR post_status = 'static'to the query infunction get_lastpostmodified(in/wp-includes/functions.php)… I don’t quite remember.Forum: Fixing WordPress
In reply to: RSS Feed for a page in wordpress?This fixes part of it.
In wp-rss2.php, after
$more = 1, add:$date_format = 'D, d M Y H:i:s +0000'; // RSS
if ( is_page() || is_single() ):
foreach ($posts as $post);
$updated = mysql2date($date_format, $post->post_modified_gmt, false);
$last_modified = mysql2date('D, d M Y H:i:s', $post->post_modified_gmt).' GMT';
$etag = md5($last_modified);
// replace headers already sent in wp-blog-header.php
header("Last-Modified: $last_modified", true);
header("ETag: $etag", true);
else:
// WP original code
$updated = mysql2date($date_format, get_lastpostmodified('GMT'), false);
endif;and then inside RSS
channel:<lastBuildDate><?php echo $updated; ?></lastBuildDate>Forum: Fixing WordPress
In reply to: RSS Feed for a page in wordpress?I’m working on the very same thing.
There’s a big problem with the date — WordPress sends
Last-ModifiedandETagheaders (inwp-blog-header.php) for the feed using the date of last post modified, not the modified date of the Page represented in the feed. Same thing for the feedpubDateandmodifiedelements.In my case, I have all Pages, no posts, so my
/page/feedis sent withLast-Modified: 1970every time… so it never appears to be updated! 🙁Kind of a bug.
Forum: Fixing WordPress
In reply to: Supressing WordPress Error Page> Is there any way to suppress this?
In
/wp-includes/wp-db.phpon line 18, changevar $show_errors = true;to
var $show_errors = false;It looks like that change will make WordPress die with an empty page instead of the error message (haven’t tried it).
Forum: Plugins
In reply to: Anyone have the “WImage Browser” plugin?Thanks, vkaryl.
I noticed also IImage Browser v1.5 may work in WP 2.0:
http://fredfred.net/skriker/index.php/iimage-browser/
http://fredfred.net/skriker/download/wordpress/iimage-browser1.5.zipForum: Plugins
In reply to: Anyone have the “WImage Browser” plugin?AAImage Browser is partly based on WImage Browser, apparently:
http://wp-plugins.net/plugin/aaimagebrowser/
I can’t find a good one that works in WordPress 2, though.
Forum: Themes and Templates
In reply to: stylesheet switchingForum: Themes and Templates
In reply to: montly skin based on css?Probably… try posting in the “Themes & Templates” section of the support forum, they know more than I do. 🙂
Forum: Themes and Templates
In reply to: Unordered list item indent problemI don’t think it’s possible to align these perfectly, but you can fiddle with them a bit… here’s what I tried:
/* Begin Lists
Special stylized non-IE bullets
Do not work in Internet Explorer, which merely default to normal bullets. */html>body .entry ul {
margin-left: 0;
list-style: none;
padding: 0 0 0 2em;
text-indent: -1em;
}html>body .entry li {
margin: 0.5em 0;
}.entry ul li:before, #sidebar ul ul li:before {
content: "0BB"; /* >> */
margin-right: 0.4em;
}Forum: Installing WordPress
In reply to: Aligning Problem in CSSI don’t think there’s a way to put ordered list markers on the right until CSS3. 🙂
But you could use
#commentlist { text-align: right;}to align all of it to the right.
And you could add faux markers (not numbers, though) on the right using background images.
Forum: Fixing WordPress
In reply to: Adding a border to selected imagesI’ve actually ended up adding the following to my stylesheet:
img.border {...}img.margin-r {...}img.margin-l {...}You can actually do it all with those three selectors, if you use multiple classes:
<!-- image with border -->
<img class="border" .../>
<!-- image with right-margin -->
<img class="margin-r" .../>
<!-- image with border and right-margin -->
<img class="border margin-r" .../>Forum: Fixing WordPress
In reply to: Getting Sidebar background to go all the way to the footerForum: Fixing WordPress
In reply to: Adding a border to selected imagesOut of interest, why would you use
img.borderas opposed to.border?I depends — but in this case I was trying to be more specific, and also point out the problem with the previous selector:
.border p img {}means “an image in a paragraph in any element marked withclass=border.” In your case, you wanted to refer to an image that was itself marked withclass=border(img.border)./* no borders on images... */
img { border: none; }
/* ...except ones marked as [img class="border"] */
img.border { border: 1px solid black;}Forum: Themes and Templates
In reply to: Overlapping sidebar and footer elementsActually this may be a better solution: