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

Recent

Welcome to TinyPortal. Please login or sign up.

September 27, 2023, 09:25:53 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 194,549
  • Total Topics: 21,181
  • Online today: 75
  • Online ever: 3,540
  • (September 03, 2022, 01:38:54 AM)
Users Online
Users: 0
Guests: 66
Total: 66

phpMy Quotes

Started by jp, May 08, 2006, 12:22:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Crip

This is not the same "Random Quotes" zip I posted a while back,  it's a bit easier to add in a php block..

- zip comes with a .PDF file with simple insructions, with 2 other files you upload in to your Forum root Directory.

- some folks can add it within a phpblock with the <? _ ?> tags and some cannot, I have it working with the included quotes - also works in a php Articel aswell..add as many Quotes as you like..

- be sure to read the PDF file, it explains everything..

Enjoy! ;)

I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



akulion

thanks :D

Added it the code snippet index under "Q"

than

Hi, i have problems with this block.

If i go to: http://www.comunidad.than.org.es/Blocks/Registrate/RandomQuote.php

Works good but my block apears empty

code for block: Include â€Ã...“./Blocks/Registrate/RandomQuote.phpâ€Ã,;

Any sugestion?

G6Cad

try to only have this Include url
Include â€Ã...“RandomQuote.phpâ€Ã,;

than

Results in empty block

http://www.comunidad.than.org.es/index.php 
2: (null)(): Failed opening 'â€Ã...“RandomQuotephpâ€Ã,' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php')
Archivo: /home/thanco/public_html/comunidad/Themes/default/TPortal.template.php (eval?)
LÃÆ'Ã,­nea: 1

Crip

php/block > Include ("RandomQuote.php"); < add like that <-------

Quote files in the Forum directory, should work..
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



G6Cad

When you have the first url posted, (not the one from me) Do you have the right Block for the include?
It should be in a PHP Block

Crip

 ("RandomQuote.php");

  • (" ---- ")

    got to use these.
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Crip

This wrong way to add > Include â€Ã...“./Blocks/Registrate/RandomQuote.phpâ€Ã,;

This correct way to add > Include ("RandomQuote.php");
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



than

No need to specify the subfolders?