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?

October 04, 2022, 10:40:39 PM

Login with username, password and session length
Members
  • Total Members: 3848
  • Latest: rrolle
Stats
  • Total Posts: 193513
  • Total Topics: 21092
  • Online today: 72
  • Online ever: 3540
  • (September 02, 2022, 06:38:54 PM)
Users Online
Users: 0
Guests: 52
Total: 52

Author Topic: phpMy Quotes  (Read 11862 times)

0 Members and 1 Guest are viewing this topic.

Offline Crip

  • Jesus Inside.
  • Themes
  • *
  • Posts: 4168
  • Theme Support
    • Cripzone
phpMy Quotes
« on: May 07, 2006, 05:22:12 PM »
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! ;)

« Last Edit: January 09, 2007, 05:10:39 PM by crip »
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes


akulion

  • Guest
Re: phpMy Quotes
« Reply #1 on: May 07, 2006, 05:43:30 PM »
thanks :D

Added it the code snippet index under "Q"

than

  • Guest
Re: phpMy Quotes
« Reply #2 on: June 09, 2006, 06:36:24 AM »
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?

Offline G6Cad

  • Friends
  • *
  • Posts: 12643
    • FamiljeGodis
Re: phpMy Quotes
« Reply #3 on: June 09, 2006, 06:42:35 AM »
try to only have this Include url
Include “RandomQuote.php”;

than

  • Guest
Re: phpMy Quotes
« Reply #4 on: June 09, 2006, 06:46:33 AM »
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

Offline Crip

  • Jesus Inside.
  • Themes
  • *
  • Posts: 4168
  • Theme Support
    • Cripzone
Re: phpMy Quotes
« Reply #5 on: June 09, 2006, 06:48:01 AM »
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


Offline G6Cad

  • Friends
  • *
  • Posts: 12643
    • FamiljeGodis
Re: phpMy Quotes
« Reply #6 on: June 09, 2006, 06:48:12 AM »
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

Offline Crip

  • Jesus Inside.
  • Themes
  • *
  • Posts: 4168
  • Theme Support
    • Cripzone
Re: phpMy Quotes
« Reply #7 on: June 09, 2006, 06:50:23 AM »
 ("RandomQuote.php");

  • (" ---- ")


got to use these.
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes


Offline Crip

  • Jesus Inside.
  • Themes
  • *
  • Posts: 4168
  • Theme Support
    • Cripzone
Re: phpMy Quotes
« Reply #8 on: June 09, 2006, 06:54:37 AM »
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

  • Guest
Re: phpMy Quotes
« Reply #9 on: June 09, 2006, 06:56:49 AM »
No need to specify the subfolders?