• Python\IDL
  • Just For Fun
  • Sikuli
  • Joomla
  • Subversion (SVN)
  • Contact Me

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

Projects
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail
← Fun software/project/coding ideas
Read IDL ‘sav’ files into Python 3 →

14 Comments

  1. Predrag Cujanović's Gravatar Predrag Cujanović
    June 27, 2011 at 9:00 am | Permalink

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

    Reply
  2. admin's Gravatar admin
    June 27, 2011 at 11:25 am | Permalink

    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.

    Reply
  3. Predrag Cujanović's Gravatar Predrag Cujanović
    June 27, 2011 at 2:09 pm | Permalink

    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…

    Reply
  4. timothyja's Gravatar timothyja
    June 28, 2011 at 3:21 am | Permalink

    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.

    Reply
  5. Predrag Cujanović's Gravatar Predrag Cujanović
    June 28, 2011 at 4:20 pm | Permalink

    Now it works! Thanks! :-)

    Reply
  6. Didi's Gravatar Didi
    March 17, 2012 at 10:14 pm | Permalink

    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?

    Reply
    • timothyja's Gravatar timothyja
      March 31, 2012 at 2:33 pm | Permalink

      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

      Reply
      • Didi's Gravatar Didi
        April 5, 2012 at 8:08 pm | Permalink

        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-

        Reply
        • Didi's Gravatar Didi
          April 5, 2012 at 8:25 pm | Permalink

          The “whole” folder. Sorry.

          Reply
      • Didi's Gravatar Didi
        April 6, 2012 at 5:33 am | Permalink

        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”.

        Reply
  7. Maltris's Gravatar Maltris
    March 18, 2012 at 4:28 pm | Permalink

    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

    Reply
    • timothyja's Gravatar timothyja
      March 31, 2012 at 2:31 pm | Permalink

      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

      Reply
  8. Mauricio riveros's Gravatar Mauricio riveros
    August 18, 2012 at 8:36 pm | Permalink

    It’s an excellent idea but I need it in spanish – please…

    Reply
    • timothyja's Gravatar timothyja
      August 23, 2012 at 8:52 am | Permalink

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

      Reply

Leave a Reply Cancel 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=""> <strike> <strong>

Beer Money

If you have found anything on this site useful or entertaining, why not chip in and buy me a beer :-)
$ 0 raised.
Choose donation amount:
Powered by Donation Can.

Copyright Timothy Arceri 2012 ITSqueeze.com
Working smarter not harder