1
milanov
Block help
  • 2003/11/24 21:25

  • milanov

  • Just popping in

  • Posts: 10

  • Since: 2003/11/24


Hi friends!

I have a little question:
i have a small PHP script, that displays "Quote of the day". It works when i point to it (http://www.host.com/quotes.php) but i can't let it work in a block! I create custom PHP block, and . But the block is blank. I try to create a block with the whole script, but the result is the same.

Any ideas?

2
CBlue
Re: Block help

There is already a module for quotes in the download section of this site if you wish to use something that will work.

BTW take out the tags and just have the include part and choose save as php when you create the block. You don't use php tags when saving as php for the blocks.

3
tjnemez
Re: Block help
  • 2003/11/24 21:37

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


there is a random quote module for xoops. go to modules/themes under communities or do a search.

4
tom
Re: Block help
  • 2003/11/24 21:50

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


To be more specific here are DL's for these modules:

Random Quotes 1.0.1 - Modified version.

Random Quotes Module

Both are the same modules I believe except one was modified.

~Theres also wfquotes by Catz, his site is closed at the mo, however should you really need a copy then pm me, I've not tested any of these but seen them in action and all look good.

Hope this is of help.

5
milanov
Re: Block help
  • 2003/11/25 2:29

  • milanov

  • Just popping in

  • Posts: 10

  • Since: 2003/11/24


:) I know about those modules, but i want to use exactly this, because my site is on bugarian language :)
Thank you guys and girls, i'll try to use include without the <>

EDIT: I placed the whole PHP script in the block, it works without the :)

6
CBlue
Re: Block help

That's great milanov! I had to learn to do that too by reading another thread on this board that told how to create a block with php. I kept trying over and over again to get php scripts to work with the whole script in it.

7
milanov
Re: Block help
  • 2003/11/25 22:55

  • milanov

  • Just popping in

  • Posts: 10

  • Since: 2003/11/24



The life is to learn

Login

Who's Online

328 user(s) are online (271 user(s) are browsing Support Forums)


Members: 0


Guests: 328


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits