|
Thursday, July 26
Privacy please
I've helped a couple of friends host blogs, and one of them needed to convert to a private, members only blog. It was pretty clear the right way to do this was to have each user have their own account and password, and ideally, the users could simply register and get approved, minimizing administration time. Unfortunately, this was a Blogger blog being hosted on my own server, and there's just no way to do that without doing a lot of work.After looking around, it seemed like WordPress would be the best platform to use for a private blog. Even though WordPress doesn't support a private blog model natively, it can be done with just two additional, easy to install plug-ins, without making any template modifications. Here's how I did it.
This also seems to keep the feeds private too, requiring authentication to get the full feed set, which is what you would want for a private blog. There was one other thing I discovered in the process if you are trying to migrate from a "new" Google Blogger weblog. I learned that the magic import from WordPress can sometimes spaz out depending on your publishing options. So if your import stops after a certain number of posts, screw around with your archive settings, date header format and template a bit. I can't be more specific, because I did all three (monthly archives, different date header format, and simple blog template) and suddenly the import worked. I can't really help with other migration issues, since in this case, because the site is going private, we didn't care about maintaining permalinks and such. But I did find some good tips about what to do in that case. I may just finally get my ass over to WordPress myself one of these days. Labels: Blogger, blogging, how-to, WordPress '; } else { if(stristr($filename,"archive")) { $dir=$_SERVER['DOCUMENT_ROOT']; $template='_01_archive.html'; $tail=strlen($template); $thisArchive=$filename; //$files=scandir($dir); $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { $files[] = $filename; } sort($files); $earlyarch=""; $laterarch=""; $prevarch=""; $next=0; foreach($files as $file) { if (substr($file,-$tail)==$template) { if ($next==1) { $laterarch=$file; $earlyarch=$prevarch; $next=0; } if ($file==$thisArchive) { $next=1; } else { $prevarch=$file; $earlyarch=$prevarch; } } } $link=''; $divider=''; if(file_exists($earlyarch)) { $link='< Earlier Archive'; $divider=" | "; } if(file_exists($laterarch)) { $link=$link.$divider.'Later Archive >'; } $link=$link.' '; } } echo($link); ?> |