WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] random quotes (18 posts)

  1. theMezz
    Member
    Posted 8 years ago #

    I am seeking a script that will pick a random quote from a text file and display it in my wordpress blog.
    Suggestions?
    I had a PERL script that did just that and it works well with shtml files but it fails with php files.
    thanks for any ideas,

    Joe
    http://theMezz.com

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    http://wp-plugins.net/index.php?id=30
    The WP version is called Witty Text and can be grabbed at that link :)

  3. F1_error
    Member
    Posted 8 years ago #

    I have to second Witty. I use it, and love it. Plus you can easily style it with CSS and you can use xhtml in the indidvual quotes, which can be a big bonus.

  4. Lorelle
    Member
    Posted 8 years ago #

    I have it in the bottom of the sidebar on EVERY page in my site. I love it. Very customizable.

  5. Aleister
    Member
    Posted 8 years ago #

    I also recommend Witty.. I played with several a while back and it was by far the best, and very simple to use. I don't know why some scripts overcomplicate things so much when all they do is stick a random sentence somewhere ;)

  6. theMezz
    Member
    Posted 8 years ago #

    I downloaded it but it has no docs. How do I use it?
    thanks

  7. skippy
    Member
    Posted 8 years ago #

    From the witty permalink,

    The plug-in is called with witty ();, which can be placed anywhere in your template and used as many times as you want.

  8. theMezz
    Member
    Posted 8 years ago #

    Anyone know how to change the display font?

  9. theMezz
    Member
    Posted 8 years ago #

    >I have to second Witty. I use it, and love it. Plus you can easily style it >with CSS

    how? where?

  10. Mark (podz)
    Support Maven
    Posted 8 years ago #

    With css.
    Give us a link to the page you are using it on ?

  11. theMezz
    Member
    Posted 8 years ago #

    I plan on using it on http://theMezz.com above the
    "[ Photo Gallery | UticaForum.org | cnyEATS.com | Contact Me ] " line

    thx

  12. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Can you activate it ?

    The easiest way is to style..

    .witty {
    font family: helvetica, tahoma, sans-serif;
    color: #ff00ff;
    font-size:18px;
    }

    I'm sure this will be in the readme ?

  13. theMezz
    Member
    Posted 8 years ago #

    It is activated now.

    (there are no docs in the download at all)

  14. skippy
    Member
    Posted 8 years ago #

    The function witty() simply outputs a quote. If you want it styled, wrap it like so:

    <span class='witty'><?php witty(); ?></span>

    or

    <p class='witty'><?php witty(); ?></p>

    Use whatever class you want, and style it appropriately in your CSS file.

  15. theMezz
    Member
    Posted 8 years ago #

    it changed the font on the whole page

  16. Mark (podz)
    Support Maven
    Posted 8 years ago #

    You did not close the span.

  17. theMezz
    Member
    Posted 8 years ago #

    You are correct.
    It works great.
    THANK YOU

  18. Soeren
    Member
    Posted 8 years ago #

    I get the error mentioned below. I've given the two witty-files 777 in CHMOD permissions. Any ideas?

    Warning: touch() [function.touch]: Unable to create file /usr/home/web/web24580/wp-content/witty.txt because Permission denied in /usr/home/web/web24580/wp-content/plugins/witty.php on line 15

    Warning: chmod() [function.chmod]: Unable to access /usr/home/web/web24580/wp-content/witty.txt in /usr/home/web/web24580/wp-content/plugins/witty.php on line 16

    Warning: chmod() [function.chmod]: No such file or directory in /usr/home/web/web24580/wp-content/plugins/witty.php on line 16

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags