WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Random Image Script (Matt Mullenweg) applied to Sidebar in Tarski not working (3 posts)

  1. rarerborealis
    Member
    Posted 4 years ago #

    Hello there. I recently implemented the Matt Mullenweg random image script on my website, rarerborealis.com. I placed the file, named 'rotate.php' in a folder called 'random-image' located in my 'plugins' folder.

    I then put a 'text' widget in my sidebar with the code:

    <img src="http://rarerborealis.com/wordpressblog/wp-content/plugins/random-image/rotate.php" alt="ooh la la">.

    If I replace 'rotate.php' with any of the images in the folder it shows up just fine. I can't figure out why the php code won't work, particularly as it says if you place it in the same folder as the images it requires no editing at all (I placed it in as-is with no changes). Any thoughts?

  2. rarerborealis
    Member
    Posted 4 years ago #

    Just to add more information, this is the specific 'error log' generated when I placed the rotate.php in my folder on my site:

    [03-May-2010 22:12:49] PHP Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/rarerbor/public_html/wordpressblog/wp-content/plugins/random-image/rotate.php on line 10

  3. rarerborealis
    Member
    Posted 4 years ago #

    Well, I searched around trying other rotator scripts and found dropping this one in worked just fine:

    http://www.marcofolio.net/webdesign/php_random_image_rotation.html

    I'm not sure why the other script kept having errors, but if anyone else is having problems with it, I hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Topic