Working smarter not harder

WordPress - Linux Promotional Plugin

Previously I post an idea for a WordPress promotional plugin that displays a notice to Windows and Mac users about the benefits of Linux, and encourages them to follow a link to a Linux Distro website for more information.

Well I have spent the last couple of days working on the plugin and I'm releasing version 1.0 into the wild to see what you think. Its easy to use, just install it to WordPress and by default your users will get a message at the top of your website if they are viewing your website from a Windows or Mac OS.

The settings should be straight forward and allow you to turn off the messages for either Windows or Mac, and also allow you to display a more imposing message in the centre of the page that disappears once clicked.

Let me know what you think.

WordPress url: linux-promotioal-plugin

14 Comments

  1. June 27, 2011    

    For some reason it doesn't work on my site. Btw I love the idea!

  2. admin's Gravatar admin
    June 27, 2011    

    Hi, Can you tell me what doesn't work? Does nothing display at all? Are you testing from Windows or a Mac? Did you try enabling Test to force it to display? What version of WordPress are you running? Do you have JavaScript enabled in your browser? Does it show any JavaScript errors in the Firefox JavaScript console?
    I'm keen to get this working in as many cases as possible, so would appreciate any futher details.

    I'm glad you like the idea I had been thinking about doing it for a while but had not written a WordPress plugin before, it turned out to be quite easy.

  3. June 27, 2011    

    A first it did display any message, now it works, but test mod is off and it is showing all the time. Tried from Ubuntu, Windows 7. And it displays an IE6W:Begin and IE6W:End javascript alert before page loading... It just won't work for me...

  4. timothyja's Gravatar timothyja
    June 28, 2011    

    Ok, I have found a javascript bug thats affecting all ie versions less than version 9. Can you upgrade when I release the fix later today, then reset the settings and tell me if that fixed the issues.

  5. June 28, 2011    

    Now it works! Thanks! :-)

  6. March 17, 2012    

    I translated the sentence "ALERT!: You are using a proprietary Operating System such as Windows or Macs. Due to their ongoing support costs, upgrade costs and lack of support for Open Standards it is highly recommended that you look into the advantages of a modern Linux Operating System with free upgrades for life and support for Open Standards." into German and safed it. Afterwards I cleared the cache of Firefox 10.0.1. Nevertheless the plugin still shows the english text. Any idea to solve that?

    • timothyja's Gravatar timothyja
      March 31, 2012    

      Hi Didi,
      My suggestion would be to download the plugin unzip it somewhere edit the php file. Zip the file up with something like 7zip and then try reinstalling it. I would be interested in getting a copy of your translation. Is it possible for you to email it to me? As I would be interesting in building translations into the plugin.

      Hope this helps.
      Tim

      • April 5, 2012    

        Hi Tim,
        I unziped the plugin, wrote the german translation into the php-file and ziped the hole folder again. Afterwards I unziped it and loaded it up to my webspace. But this didn't help. My blog still shows the english version. I'd like to send you the ziped file including the german translation. So please send me your e-mail adress to my adress which I put into the blank.

        -Didi-

        • April 5, 2012    

          The "whole" folder. Sorry.

      • April 6, 2012    

        I talked to Maltris who also commented your posting. The problem is that your plugin writes into MySQL. Solution:
        1. Deactivate the plugin in WordPress
        2. Delete the plugin
        3. Go to "wp_options" by using phpMyAdmin
        4. Delete "linProPlg_options"
        5. Load up the plugin including the translation to your webspace
        6. Activate it
        That's it!
        As I told you before I'd like to send you the plugin with the german translation:
        "Achtung! Sie nutzen ein proprietäres Betriebssystem wie Windows oder Mac mit laufenden Support- und Upgradekosten sowie mangelnder Unterstützung für offene Standards. Daher ist es sehr empfehlenswert, sich mit den Vorteilen eines modernen Linux-Betriebssystems, welches kostenlose Aktualisierungen, Unterstützung offener Standards und mehr Sicherheit bietet, vertraut zu machen."

        I expanded your sentence by "Mehr Sicherheit" which means "more security".

  7. March 18, 2012    

    Hello,

    i got a little question about the plugin.

    How can i change the message (language)?

    I tried to cange the text in the .php File from the root-Dir but it shows me the english text again. I cleared my cache and it shows me only the english version.

    Whats wrong? :O

    • timothyja's Gravatar timothyja
      March 31, 2012    

      Hi Maltris,
      My suggestion would be to download the plugin unzip it somewhere edit the php file. Zip the file up with something like 7zip and then try reinstalling it. Also what language did you convert it to? I would be interested in building different translations into the plugin if you could email me a copy.

      Hope this helps.
      Tim

  8. August 18, 2012    

    It's an excellent idea but I need it in spanish - please...

    • timothyja's Gravatar timothyja
      August 23, 2012    

      Can you please send me a spanish translation so I can add it to the plugin?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Support Linux OpenGL Development

You can use Flattr to help support my Mesa development work. I'm currently hoping to buy a laptop with Nvidia graphics so I have a good reference driver to test against.
Support my development efforts on the Linux OpenGL Drivers (Mesa)
Choose donation amount: