1
showcase17
[solved] PHP in block problem
  • 2007/6/27 8:17

  • showcase17

  • Not too shy to talk

  • Posts: 190

  • Since: 2005/1/6 0


I've got some PHP which I want to put in a block, problem is it won't show. Yes I've been playing with the settings (HTML, PHP, Auto Format).

I got it running atm in an I-frame, but that's not what I want. Even made a custom module for it (https://xoops.org/modules/smartfaq/faq.php?faqid=280), that works, problem is it's a new page > not what I want. Tiny Content... same thing, it works but again it's a new page.

So, can anyone tell me what I'm doing wrong or how to create a block with thehttps://xoops.org/modules/smartfaq/faq.php?faqid=280?

Using X2.0.16
- To Explore and Discover -

2
versuri32
Re: PHP in block problem
  • 2007/6/27 8:43

  • versuri32

  • Just popping in

  • Posts: 4

  • Since: 2007/6/27


I'm not sure butr try withou PHP facility

3
showcase17
Re: PHP in block problem
  • 2007/6/27 9:48

  • showcase17

  • Not too shy to talk

  • Posts: 190

  • Since: 2005/1/6 0


Did that too versuri32
- To Explore and Discover -

4
skenow
Re: PHP in block problem
  • 2007/6/27 17:11

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


When you create a custom block and select php as the type, you do NOT add <?php and ?> around your code, the block template does that for you.

5
showcase17
Re: PHP in block problem
  • 2007/6/28 8:51

  • showcase17

  • Not too shy to talk

  • Posts: 190

  • Since: 2005/1/6 0


Solved the problem

I had a javascript in it to refresh the page every minute, took that out and it's working fine now. I'm no coder but should have tried that earlier.

Thx 4 the help ppl
- To Explore and Discover -

Login

Who's Online

156 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 156


more...

Donat-O-Meter

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

Latest GitHub Commits