Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

August 19, 2022, 06:10:01 AM

Login with username, password and session length
Members
  • Total Members: 3843
  • Latest: Tricky
Stats
  • Total Posts: 193479
  • Total Topics: 21088
  • Online today: 58
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 2
Guests: 54
Total: 56

Author Topic: Random Quotes  (Read 29957 times)

0 Members and 1 Guest are viewing this topic.

crip

  • Guest
Random Quotes
« on: February 06, 2006, 09:35:58 AM »
Little php script that show a Random Quote in a phpbox / block.

  • DEMO

    I placed a readme file in the .zip to assit you, but just ask for any help..TIP* the main thing is to have correct paths.

    Add all your own Random Quotes.

    Enjoy, crip! ;D

    Download here.

« Last Edit: February 06, 2006, 09:39:45 AM by crip… »

rapture

  • Guest
Re: Random Quotes
« Reply #1 on: February 07, 2006, 08:16:12 PM »
Funny stuff.  I might install.  Looks as easy as uploading 3 files and calling some PHP in a side block.

Thanks for sharing.

Offline Ray

  • Sr. Member
  • ****
  • Posts: 446
Re: Random Quotes
« Reply #2 on: February 07, 2006, 09:37:12 PM »
I can never get that command to work  include "./quote/randomquote.php";

ok my quote folder is rranderson\arcade\quote or http://www.rranderson.com/arcade/quote

would that path work because I keep getting a
Code: [Select]
$number-1){ // If ran out of quotes, start again! $num=0; } if (file_exists($directory.$quotecountfile)) { $nu = fopen ($directory.$quotecountfile, "w"); fputs($nu,$num); } else { die("Cant Find $quotecountfile"); } } // display the quote on the page echo "$quotes[$num]"; ?>error

in randomquote.pnp i have $directory = "./quote/";
in the PHP block I have  include "./quote/randomquote.php";
What am I doing wrong - time for me to learn this

Thanks

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: Random Quotes
« Reply #3 on: February 08, 2006, 12:40:17 PM »
try the path without the "."

include "/quote/randomquote.php";

crip

  • Guest
Re: Random Quotes
« Reply #4 on: February 08, 2006, 01:20:19 PM »
After you upload your "quote" folder in your forum root, just go to a phpbox and add what Incbin put..

this:
****************************
include "/quote/randomquote.php";
****************************
nothing more, nothing less.

It's EZ now guys, once Bloc and crew told me how to add it..Lol..

Later, crip~ ;D

Offline Ray

  • Sr. Member
  • ****
  • Posts: 446
Re: Random Quotes
« Reply #5 on: February 08, 2006, 04:54:32 PM »
try the path without the "."

include "/quote/randomquote.php";
Get the same error errr I know it can not be this hard

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: Random Quotes
« Reply #6 on: February 08, 2006, 07:07:10 PM »
Did you try this?

Code: [Select]
include "/rranderson/arcade/quote/randomquote.php";

crip

  • Guest
Re: Random Quotes
« Reply #7 on: February 09, 2006, 03:32:38 AM »
I just checked my phpbox .. this is all thats in it.
include "./quote/randomquote.php";

Ray, be sure you have the path from your randomquote.php correct .. the "quotes" folder Must be in the root of your Forum / Arcade / Where ever, Or the call for Randomquote.php will send errors until your get the path right.. 

I have my "quote" Folder inside of my "Forum" Folder where / Smileys / Themes / Packages / Sources / et-ceteras..are.

Later, Crip~ ;D

Rasyr

  • Guest
Re: Random Quotes
« Reply #8 on: February 09, 2006, 06:52:32 AM »
Try using:

include "quote/randomquote.php";

see if that works.

or perhaps try

require("quote/randomquote.php");

with and without the leading slash before the word "quote".

Offline Ray

  • Sr. Member
  • ****
  • Posts: 446
Re: Random Quotes
« Reply #9 on: February 09, 2006, 11:08:23 AM »
Did you try this?

Code: [Select]
include "/rranderson/arcade/quote/randomquote.php";
no work