Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter spucktier

    (@spucktier)

    It’s located in the same directory as the pluginfile and I was stupid 🙂
    Running with the full path to the file works great, however that’s just for testing. I also had allow_url_include=Off which led to the initial errors. This is how it looks now:

    function wp_compressor_header() {
    require_once('http://www.bastelbude.com/wp-content/plugins/wp_compressor/class.compressor.php');
    $compressor = new compressor('css,javascript,page');
    }

    however, I get an error that tells me the class “compressor” can’t be found. This is what the head of the class in the second php file looks like:

    class compressor {

    /**
    * Constructor
    * Sets the options and defines the gzip headers
    **/
    function compressor($options=null) {
    [...]

    and I get:
    Fatal error: Class 'compressor' not found in [...]/wp_compressor.php on line 56
    which is:
    $compressor = new compressor('css,javascript,page');

    The clean umlaut plugin from otaku42 converts the special german characters (ä,ö,ü etc.) into the “internationally usable” form (ä = ae, ö = oe, ü = ue)
    http://otaku42.de/2005/06/30/plugin-o42-clean-umlauts/

    hey there,

    there are many different plugins to mimic such a behaviour but i found this neat plugin:
    Front Page Categories”

    put the php file in your plugin directory and modify it upon your needs:

    // Change this to the categories you want to show on the front page.
    // Example: $cats_to_show = '1 2 3 4';
    $cats_to_show = '1 3 5 6 7 8 9 10';

    it’s really great and a shame it’s not included in wp 🙂

    p.s.: if you like the plugin, voice your opinion: http://wordpress.org/extend/ideas/topic.php?id=214 🙂

Viewing 3 replies - 1 through 3 (of 3 total)