TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,976
  • Latest: aicrazy
Stats
  • Total Posts: 196,164
  • Total Topics: 21,352
  • Online today: 816
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 377
  • Total: 377

Random Quotes

Started by crip, February 06, 2006, 04:35:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

crip

You can use your own quotes mitch, one line at a time..the more you have the more random they become.





Mitch

Oh that works I was just going to ask members to start donating me some!

Gargoyle

LOL!!! Now I can't get it to work...

Went through all the posts and nothing... Probably path related. I will go check some more.. ;D

elpvn

See here
Quote from: L1played with this a long time and I know nothing about code but was getting the same error that ray has here, basically showing the code from randomquote.php instead of a quote.  I got it to work by doing this:

$directory = "./quote/";    //Put the correct path// 

and this

include "./quote/randomquote.php";

why that works I have no idea 

maybe something to do with server setting?

great little mod, I love it 

thanks alot

Ray

Make aure the PHP in in the file randomquote.php <?php

Crip

The Random Quote can be added many different ways actually. ;)
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



dkaye315

Why is it that something which should be relatively simple isn't?  Had a dickens of a time trying to get this to work.  Finally, created a 2nd phpblock, inserted the exact same code I had been inserting all along and it worked (and then deleted the 1st block).  ??  I was almost at the point of this particular quote:

"If at first you don't succeed, destroy all evidence that you tried."

deadpoeticstar

#48
Parse error: parse error, unexpected $ in /home/georgeli/public_html/smf/Sources/Load.php(1609) : eval()'d code(34) : eval()'d code on line 1
thats AFTER i place in this code

ok fixed that....now its not showing

http://georgelittle.2plans.com/smf (its a center block)

could it be because some of my quotes dont fit on one line?

URPG

All demos i found on this pages do not work  :'(

Is it because you all removed it and gave up on it???

I'd like a block like this... can't be that difficult? Just need a piece of code that pics a random line from a txt file and spits it out?

This website is proudly hosted on Crocweb Cloud Website Hosting.