Over ons...

Wij zijn Menno en Danny en we wonen sinds 1998 samen. We kochten dit domein, een webcam en toonden ons dagelijks leven. Toen het te gewoon werd om een webcam te hebben zijn we ermee gestopt. Nu plaatsen we zo nu een dan een berichtje of wat foto's op deze site voor de mensen die het leuk vinden om ons te volgen.

About us...

We are Menno and Danny and we have been living together since 1998. We bought a webcam and shared our lives on the net. Back then it was special, but we quit when it became mainstream. Now and then we post a story or some pictures here in Dutch or English for those interested.

Plugins

Today I wrote my very first plugin for WordPress :) Just in case someone else is looking for the same thing I wrote this page.

DG Random Image
Displays a random image from one of the children of a named page. Comes in handy when using theĀ [gallery] shortcode and pages for your gallery. You can see it working on the front page. The three images in the righthand sidebar are diplayed by this plugin.

Update 2010-10-26: Now also available as a widget so you no longer have to edit your theme files.

Download plugin (dg_random_image.zip)

7 Responses to “Plugins”

  1. Elena Says:

    A very helfull plugin – thanks.

  2. Chris Says:

    Hi – really great little plugin – helped me a lot – was searching for exactly the same thing. One problem with the installation – in the pluginfolder the folder “dg_random_image.php” gets inserted two times by wordpress plugin install. And the line to implement the image is missing a bracket – ` ‘Gallery’, ‘class’ =>’alignleft’, ‘x’ => 125, ‘y’ => 125); ?>` should be …=> 125)); ?>

    thx a lot for sharing :D

  3. Menno Says:

    Uploading a new version today with widget support and fixing the problems you mentioned.

  4. dan Says:

    Can’t get it to work… anyhelp?

  5. Menno Says:

    What do you expect it to do and where do you get stuck? Do you use widget or code? Please be a little more specific.

  6. Sandro Says:

    hello guys,
    I’m wondering why i can’t manage to link the random image to the page of the gallery. Your wonderful plugin manages to get the title of the page and i guess other inportant stuff i even can’t imagine!

    How could i modify $sReturn = ‘ to get the link to the page ?
    for the moment, i only get a link to the home page of the site.

    Sandro

  7. melissa Says:

    Hi,
    Using the widget – how could I edit the php code to center the image within the sidebar? I got the text center, but am having problems with the widget. Thanks so much.

Leave a Reply

Subscribe to Comments?