Here is an all-in-one solution for a portable WordPress. The creator packs MySQL, PHP, Apache and WordPress together and allows you to drop this folder onto a thumbdrive or network share, etc. It’s nice and small (<30MB) and works well.
Wordpress Portable: http://wordpress-portable.webnode.com/
It also gives you a system tray icon with a right click context menu.
Tag: WordPress
New Linux Server Build
ttyrec Playback using jsttyplay and WordPress
So I spent a little bit of time tonight tinkering on Linux. I got interested in tty recording/playback after seeing some nethack things. I figured if I could find something that works well for playback of tty recordings it would be helpful on my blog. Enter: jsttyplay
This is a nice little tool using Perl and JavaScript to handle playback of terminal sessions recorded using ttyrec.
Here’s a demo of how to get things setup, including making a video and editing the HTML to play it.
I plan to start work on making a WordPress plugin for this so I can embed these a bit easier.
If you don’t have ttyrec, install it with your system’s package manager; in my case, I have Debian so I will use apt-get.
apt-get install ttyrec
WordPress Top 10 Plugin: Place Counter in Byline
I was annoyed by how the Top 10 plugin didn’t give me a better control of placement of the Visits/Visited string, so I got to work figuring out where to move things around.
First, I found that the data is printed via a PHP function called echo_tptn_post_count()
I edited my child-theme’s content.php
file and modified the following (bold):
<?php if ( is_singular() ) { ?> <?php if(function_exists('echo_tptn_post_count')) { $foo=echo_tptn_post_count(); } ?> <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?> <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( 'Published by [entry-author] on [entry-published] [entry-comments-link before=" | "] '.$foo.' [entry-edit-link before=" | "]', 'live-wire' ) . '</div>'); ?>
When I viewed the post, I saw it was screwing up and echo’ing the $tptn
variable above my entry title!
I went and had a look at the echo_tp_tn_post_count()
function in top-10.php
in the wp-content/plugins/top-10
directory and changed the following (bold):
function echo_tptn_post_count() {
global $post,$tptn_url,$tptn_path;
$id = intval($post->ID);
$output = '<script type=text/javascript src='.$tptn_url.'/top-10-counter.js.php?top_ten_id='.$id.'></script>';
#echo $output; return $output;
}
Now, it prints right in the byline after the comments (and it only does this on posts…).
This probably wasn’t the RIGHT way to do it, but I figured it out.
Social Cross Posting WordPress Plugins
This is just a little tiny test.
=)
If you are here, it is because you followed a link from either Google+, Facebook, or Twitter. For some reason, the posting to Google+ doesn’t allow me to control the circle nor does it allow me to control any text input. The title of the post is the google plus post’s content plus a link. Hrm.