Archive

Archive for December, 2008

Wordpress themes compatibility with php

December 17th, 2008

As preparing blog for one of clients I have found problems with get it running, after some web research I have found that Hemingway theme uses old syntax … instead of downgrading my server or allowing old syntax I have wrote script that converts old syntax to current working one.

This is the script:

grep -rl "<?" . | grep "\.php$" | xargs sed -i "s/<?\([^=^p]\)/<?php\1/g;s/<?\($\)/<?php\1/g;s/<?=/<?php echo /g"

Navigate to Your theme dir and call it there, it will repair all php files:

  • replace <? markers to <?php
  • replace <= markers to <?php echo

For me this solved problems with Hemingway theme.

Hosting , , , ,

NICZ SOFT Blog hosting started

December 16th, 2008

Welcome at new blog hosting service from NICZ SOFT, You can get here very nice blog for very small price, we offer best level of services, allow many customization, plugins and themes.

If Shared blog is not what You want You can always get private blog only for You, bound with your domain name.

Hosting, News ,

Get Adobe Flash playerPlugin by wpburn.com wordpress themes