Forums

Custom use (2 posts)

  1. spc0000
    Member
    Posted 2 years ago #

    I'm wondering if I can use your plugin to accomplish something that I want to do, so I'll explain what it is I want to do, and I'm hoping you can reply back and let me know if this is possible. Here goes:

    I've added a text widget in my sidebar that will advise my visitors as to my current Radio Status (I'm a radio deejay). I've created several GIF images that I want to display one-at-a-time depending on what my current status is. For example: one image says "I'm deejaying right now", while another says "I will be deejaying this Friday at 4pm".

    I'm trying to figure out an easier way to change what image appears without simply going into my WP control panel and editing the img src in my text sidebar widget. Would it be possible to use your PHP call function in this manner?

    <img src="http:/my-website/directory-where-images-are-stored/<?php get_twitter_msg(); ?>.gif">

    I hope I haven't confused you too much. What I'm wanting to do here is really quite simple. Each time I wanted to change the image displayed, I would just go to the Twitter website and post a tweet that is equivalent to the file name of the image.

  2. BrianLayman
    Member
    Posted 2 years ago #

    lol - that seems a long way about it. You could certainly write your own plugin that could do it all... It wouldn't be that bad. Just use set_option and get_option to store your online status in the blog and make a quick config page that you can book mark that allows you to change the status. Just look at ANY plugin that has a configuration page. Akismet would do it for you, just strip out all the rest of it and have your widget for the image display get_option('djstatus').gif. easy peasy

    Doing it in twitter looks like it would work but if anyone has access to modify your twitter, they then will have access to hack your blog.

Topic Closed

This topic has been closed to new replies.

About this Topic