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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 490
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 268
  • Total: 268

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.

L1

I just remembered I also did this:

I put "php" after <? at the beginning of randomquote.php

so the config part looks like this:

<?php
/* Config Part --------------------------------------------------------------------------------------------------------------*/
$random = true;      
$directory = "./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//
/* End of Config Part -------------------------------------------------------------------------------------------------------*/

and now I notice that when I take out the "php" it doesn't work anymore so that might be the only change that needs to be made, so try that first.

good luck

:)

crip

Sure,
anything that "(works)" .. suppose it's a bit different on different servers..

Ray

Quote from: L1 on February 16, 2006, 08:15:31 AM
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
That fixed it for me and also the adding the php.

Now to figure how to make it center when displayed? -- thanks all for the tips

Ray

OK now that it is working -- How to center the qoute text in a block??

crip

<p align="center"><? php quotes  ?></p>
or
<center>
<? php quotes
?>
</center>


Ray

Quote from: ÂÃ,»cripÂÃ,« on February 22, 2006, 12:20:04 AM
<p align="center"><? php quotes  ?></p>
or
<center>
<? php quotes
?>
</center>



I fixed it and had to do it in the randomquote.php file

and all the trouble I had and it was just becaue the php after the <? was not their

crip

Man learns something new everyday .. ya know Rayzer..  ;)

Mitch

Soo I tried to install this and will try again.
I think the reason I couldnt get it to work was cause I started on page one with all the helpful editing where as I should have looked back to see where the actual solution was. :)

crip


Mitch

Eh not right now I have to get back to school and stuff.
So if you want to pm me directions that would be cool.

This website is proudly hosted on Crocweb Cloud Website Hosting.