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,964
  • Latest: stylix
Stats
  • Total Posts: 195,965
  • Total Topics: 21,317
  • Online today: 2,114
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 460
  • Total: 460

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.

Ray

Quote from: Rasyr on February 09, 2006, 01:52:32 PM
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".

NO no work here also -- will look at ir more later

crip

Ray,

in the file randomquote.php make sure you have a path set similar to this:

$random = true;    
$directory = "/home/www/public_html/forum/quote/"; 
$quotefile = "randomquote.inc";
$quotecountfile = "displayquote.inc";


Leave
  • $quotefile
    and
  • $quotecountfile

    as it looks here, and it should work.

    crip~

Ray

Quote from: cripâ€Ã,¦ on February 09, 2006, 09:14:19 PM
Ray,

in the file randomquote.php make sure you have a path set similar to this:

$random = true;    
$directory = "/home/www/public_html/forum/quote/"; 
$quotefile = "randomquote.inc";
$quotecountfile = "displayquote.inc";


Leave
  • $quotefile
    and
  • $quotecountfile

    as it looks here, and it should work.

    crip~

Tried this
$random = true;
$directory = "/rranderson/arcade/quote/";    //Put the correct path//
$quotefile = "randomquote.inc";         //Add all quotes in this file in one line//
$quotecountfile = "displayquote.inc";   //This counts quotes, could be optionable if random is set false//

No work -- I always get that same error -- all files are located in the quote folder


crip

Path from your www / or public_html..
Last try:

  • $directory = "/home/rranderson/public_html/arcade/quote/";

    Hope you get it working RayR.

    crip

Ray

Quote from: cripâ€Ã,¦ on February 09, 2006, 11:12:35 PM
Path from your www / or public_html..
Last try:

  • $directory = "/home/rranderson/public_html/arcade/quote/";

    Hope you get it working RayR.

    crip
Im not on a linux computer I use windows with IIs so that may be the problem.. the paths are different. For me it is d:\rranderson\arcade\quote -- umm maybe I will try that path

crip

Your right Ray.......
now ya tell me.. ;D

Ray

For me it is d:\rranderson\arcade\quote -- umm maybe I will try that path

Still no work -- I have never got the command include to work

feline

Quote from: Ray on February 10, 2006, 05:38:34 PM
For me it is d:\rranderson\arcade\quote -- umm maybe I will try that path

Still no work -- I have never got the command include to work

to add one \ at the end Ray ...

Fel

Ray

tried that also - here is the error
$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]"; ?>

L1

I played 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  :laugh:

maybe something to do with server setting?

great little mod, I love it  8)

thanks alot

This website is proudly hosted on Crocweb Cloud Website Hosting.