11
intel352
Re: Add a new block - php script
  • 2004/5/24 16:44

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


the code that is added via Blocks Admin is likely parsed by the XOOPS CMS before it saves it in the database (or wherever it saves the block... i ASSUME database)

so for safety, it probably doesn't allow 'include' statements. i can understand that, as most CMSes don't allow it either. everywhere i've seen you always have to include from a real php script (so far, at least)

12
Jan304
Re: Add a new block - php script
  • 2004/5/24 17:27

  • Jan304

  • Official Support Member

  • Posts: 520

  • Since: 2002/3/31


I just don't think the tag XOOPS_ROOT_PATH is available in the blocks, just use the full path (you can open mainfile.php if you don't know the root path).

Always use fullpaths for inclusions, this to prevent problems.

13
intel352
Re: Add a new block - php script
  • 2004/5/24 17:30

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


that's a good idea, it's probably taking the code as straight script, not parsing for defines

Login

Who's Online

323 user(s) are online (42 user(s) are browsing Support Forums)


Members: 0


Guests: 323


more...

Donat-O-Meter

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

Latest GitHub Commits