TinyPortal

Development => Resources => Topic started by: zrako02 on July 22, 2007, 12:57:02 PM

Title: How can i get Random Quotes to work in a php-box?
Post by: zrako02 on July 22, 2007, 12:57:02 PM
Hello i want to use the Random Quotes ->QuoteMe v4.0 (PHP) by Scott Clark / Clark Consulting
http://www.clarksco.com in php-box block on the main screen of Tinyportals.

the adress of the Portal is http://www.meinedomain.de/portal i copied QuoteMe into the folder quote

http://www.meinedomain.de/portal/quote

Now i created a php-box block an inserted:
include('../quote/display.php');

but nothing is showing

if i call 

http://www.meinedomain.de/portal/quote/display.php directly from the Browser i see the quotes
Wat is wrong?

I tried this
global $boarddir;
require_once($boardir.'/quote/display.php');
but
then i get errros:
Fatal error: require_once() [function.require]: Failed opening required '/quote/display.php' (include_path='.')
Title: Re: How can i get Random Quotes to work in a php-box?
Post by: Zetan on July 22, 2007, 01:00:06 PM
Most of the links you posted give me 404 errors.

Did you upload the quote3_hour.php to your server? Or all the files needed to make it work?
Title: Re: How can i get Random Quotes to work in a php-box?
Post by: zrako02 on July 22, 2007, 02:15:01 PM
No didn't upload quote3_hour.php to my server because i using

QuoteMe v4.0  and not QutoeMe v3.0 and so i have no quote3_hour.php

the links are only to understand in which directorys i uploaded the files and

meinedomain is often used as a placesholder for the real domain if you don't want to show your real domain.