rustindy
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Upgrade 1.5 > 1.5.1The latest version of Ryan’s WP-ContactForm places the options include in the
/wp-content/plugins/folder now and not in the/wp-admin/folder, so if you’ve been keeping up-to-date with it, you won’t need to worry about accidentally deleting the file from/wp-admin/🙂Forum: Everything else WordPress
In reply to: PDA ClientsYup, I can login to my page directly through the net connection on my phone by using the Palm’s web browser – but with bandwidth being so expensive on cell phones, it would really be much, much better (and cheaper) to find a client that only connects long enough to upload a post or download one for editing.
Forum: Themes and Templates
In reply to: New Theme: Rin Tin TinEver since I got my little Zire72 I’ve been working towards more accessible sites. Even if it’s as little as source-ordering the content above the sidebars, it’s still good. Ideally, of course, there’s a seperate stylesheet for non-desktop browsers, but I can’t expect everyone to do that. Hell, I haven’t done that yet either (my current project will, however, be fully PDA accessible – both site and blog).
I still haven’t managed to get a copy of Zeldman’s book 🙁
Forum: Fixing WordPress
In reply to: How To Stream Music (?)If you want to use a playlist file (like
m3uorpls) to do that, the music either needs to exist on the user’s hard drive or be streamed from a streaming server (such as ShoutCast or Helix). Another option might be to use a Flash-based player.Unless of course your host will let you setup a streaming server 😉
Forum: Themes and Templates
In reply to: Beware of Fluid Templates?My res is 1280 as well, but I keep my browser at 1024×768 most of the time. I rarely full-screen it unless I’m looking at pictures that don’t fit a 1024 window.
Personally though, if a fluid layout is designed well (meaning plenty of whitespace and percentage-based margins and em-based line-heights, etc.), I have no problem reading it. It annoys me more when someone forgets that the scroll bar takes up a few pixels and I end up with a horizontal scroll bar on a site that is only 3 pixels too wide for 800×600 or 1024×768.
So FWIW, a fluid layout can be done if it is done well. If the text becomes hard to read beyond a certain width, then use the CSS
max-widthselector and a little Javascript for browsers that don’t support it.A 1000-pixel wide table will create a horizontal scrollbar at 800×600 resolution, even if it is empty.
Forum: Fixing WordPress
In reply to: 1 post on index followed by 10 recent title: Possible?Technically that works, but it causes the Loop to be run twice and an extra page to be created – not always desirable.
When I needed to do this, I just modified the
index.phpto setbIsFirstPost = trueat the top, then changed the Loop to showthe_contentif that value is true, andthe_excerptif the value is false. Of course, you have to setbIsFirstPost = falseat the end of the Loop 😉Doing it this way means
home.phpis available for something else and the Loop is only run once.Forum: Themes and Templates
In reply to: New Theme: Rin Tin TinIt’s not a WP specific thing – 3 column layouts with semantic source ordering (as it’s called) is a bugger-hard thing to do. Fortunately, there are a few places I’ve seen that show exactly how to do it – all the hacks needed for different browsers, all the caveats related to it’s use, etc.
The benefit is, natch, backwards compatibility – or “graceful degradation”. Old browsers should see the content before the sidebar menus 🙂
Forum: Themes and Templates
In reply to: New Theme: Rin Tin TinI have to admit I like Rin, except for one little thing. If you look at the source (or make the mistake of trying to view the site without styles – it’s true, some people do, especially us PDA users), the content is last. To be a truly useful theme, the main content should be first in the source, followed by the sidebars.
Forum: Plugins
In reply to: Displaying Resent Blog Posts on a Diffrent Sitedenis: i wasn’t caching originally, nope. now there’s a cron job on my server that runs every 5 minutes and pulls the info directly from the WP databases to store the necessities in another database. Realistically, I could just read all the databases whenever the page is read (it only takes about a second to get the info from 20 blogs), but this way seriously reduces the load on the server 🙂 And it’s a hell of a lot easier to work with the database data than the XML data 🙂
Forum: Plugins
In reply to: Displaying Resent Blog Posts on a Diffrent SiteWell the code I wrote doesn’t do what you want it to – all mine does is find out what the date of the most recent update to a blog was. Hell, I just realized it doesn’t even respect the
publishedflag 🙁 I should fix that….Plus it’s written in ASP, not PHP. Dunno if you’re on a Windows server or not, but it’ll only work under IIS, not Apache.
All I really did was create a new user in the database with only the
SELECTright (read-only, essentially) on the WP databases. Then the ASP code just queries each database for the first record of thewp_poststable after sorting by post date. When it gets all the dates from 16 blogs into an array, it sorts the array and displays the info on my page.A similar setup should work for you 🙂 You’ll probably want to dig into the WP code though to find out exactly how to structure the query so it respects the
publishflag and whatnot though.Forum: Installing WordPress
In reply to: Can i create different blogs on one server?Yup. Either use a different database or change the “prefix” option in the new blog’s
wp-config.phpfile to something other than “wp_”.Forum: Plugins
In reply to: Displaying Resent Blog Posts on a Diffrent SiteIf you can access the database directly from the other site, I recommend that method over pulling the RSS feed.
On one of my sites, I was originally grabbing the RSS for a bunch of blogs and processing them to find out when their most recent posts were. The problem is that it was really slow – with 13 blogs, the page was taking 10 seconds to load. When I rewrote it to just query the databases directly, it only takes about 1 second. And there’s a lot less load on the server.
Well according to the Apache documentation, a server-side include is not going to work for you – an included file must exist in the same website as the file that called it.
And I *did* say that the example I gave should work on IIS – it wasn’t meant to work on Apache.
Your friends will need to find some other method of including your RSS feed on their pages.
iframeis probably the best way overall, but if you want search engines to be able to see your links, you’re limited to having them use a CGI script. Sorry.Forum: Fixing WordPress
In reply to: images disappear in archivesK, ignoring the horrendous display in Firefox, lawtai is right on the money. Your template has an
archives.phpfile, and it callsthe_excerptinstead ofthe_post(your main page callsthe_postand so does thesingle.phpfile if it exists).Basically, your Archives page is only display the excerpt text from the post. If there is none, it’ll display the first couple hundred characters of the post itself – with some exceptions. Images are one of those exceptions.
Forum: Fixing WordPress
In reply to: WordPress and ASPAhhh kay, gotcha. http://www.innereyes.com/ is an ASP page that just pulls blog information straight from the MySQL databases. You’ll need to go to the MySQL site and download MyODBC 3.51 and install it if you want to access the MySQL database(s) directly from ASP.
Your other option would be to grab the RSS feed from the blog using ASP and parse it into useful variables or arrays for display on your ASP page. The problem with that is speed, however. It’s a lot slower than simply
selecting data from the databases directly.