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! ;)
thanks :D
Added it the code snippet index under "Q"
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?
try to only have this Include url
Include â€Ã...“RandomQuote.phpâ€Ã,Â;
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
php/block > Include ("RandomQuote.php"); < add like that <-------
Quote files in the Forum directory, should work..
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
("RandomQuote.php");
- (" ---- ")
got to use these.
This wrong way to add > Include â€Ã...“./Blocks/Registrate/RandomQuote.phpâ€Ã,Â;
This correct way to add > Include ("RandomQuote.php");
No need to specify the subfolders?
add the files in your forum /Smiles/Themes/Sources/Avatars/
in that place the Forum root..
Sorry i donÂÃ,´t understand you.
I donÂÃ,´t have this folders
Quote from: than on June 09, 2006, 02:05:09 PM
Sorry i donÂÃ,´t understand you.
I donÂÃ,´t have this folders
Yes you do have these folders; or you would not have a Forum/Portal
Your files go here:
Quote
/home/thanco/public_html/comunidad/
yes yes i have this folders but not in this structure. ufff sorry my English is :2funny:
Now woks perfect. Really thanks. ;D
I use this block to show reasons for registry, only visible for guests.
Thanks thanks, i unknown other thanks expresions jajajaj. :buck2:
Glad I could help. :)
FYI Guyz,
Crip i tried both your snippets for random quotes using every method that was suggested to no avail.
I then noticed my include looked like this:
Include ("randomquote.php")
The randomquote.php file in my root dir is:
RandomQuote.php
So FYI for those novice PHPers out there, it could be case sensitive.
I changed the case to this:
Include ("RandomQuote.php")
And OMG it worked! Yes!
Yeah i know im a noob, but just wanted to throw that in here in case it would help someone..
Great snippet Crip..
Thnx
Zip found and re-attached.