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,
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,
http://wp-plugins.net/index.php?id=30
The WP version is called Witty Text and can be grabbed at that link :)
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.
I have it in the bottom of the sidebar on EVERY page in my site. I love it. Very customizable.
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 ;)
I downloaded it but it has no docs. How do I use it?
thanks
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.
Anyone know how to change the display font?
>I have to second Witty. I use it, and love it. Plus you can easily style it >with CSS
how? where?
With css.
Give us a link to the page you are using it on ?
I plan on using it on http://theMezz.com above the
"[ Photo Gallery | UticaForum.org | cnyEATS.com | Contact Me ] " line
thx
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 ?
It is activated now.
(there are no docs in the download at all)
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.
it changed the font on the whole page
You did not close the span.
You are correct.
It works great.
THANK YOU
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
This topic has been closed to new replies.