1
theblackpig
PHP in blocks
  • 2006/8/31 9:49

  • theblackpig

  • Just popping in

  • Posts: 3

  • Since: 2006/8/31


At present use CleverCopy for my site.
I'm now experimenting with XOOPS and so far very impressed.
I have created a subdomain for it at xoops.a1classjokes.com
One problem I have I wish to use a php page that is on my server root (public_html) in a center block but I cant get it to show.
The php page is a1classjokes.com/blog.php
If I set the block to HTML I get a blank box, if I set it to PHP I get nothing !!

Can anybody help please

2
jensclas
Re: PHP in blocks

A few questions and ideas to consider:

Have you turned on phpdebuging and seen what messages you get? The FAQ on blank pages is here
Did you search on creating blocks or problems with created blocks?

What XOOPS version did you install?

There is a module about somewhere to 'wrap' HTML that might to the trick.

3
theblackpig
Re: PHP in blocks
  • 2006/8/31 13:40

  • theblackpig

  • Just popping in

  • Posts: 3

  • Since: 2006/8/31


Version 2. No errors in debug mode, I have inserted html pages into blocks no problem .
Bit of a geek as far as programming goes, please explain "wrap html"

4
banned
Re: PHP in blocks
  • 2006/8/31 16:48

  • banned

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/5/16


Don't open and close php tags (<?php and ?>) ;=)

banned,

5
Will_H
Re: PHP in blocks
  • 2006/8/31 17:49

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


To elaborate a bit on this.

Your script is already assumed to be php when you choose that content type.

XOOPS automagically adds the start and end tags around your script.

6
banned
Re: PHP in blocks
  • 2006/8/31 23:06

  • banned

  • Not too shy to talk

  • Posts: 159

  • Since: 2004/5/16


>XOOPS automagically adds the start and end tags around your script.

Not true, XOOPS use eval for php blocks; when using eval you have to pass a valid PHP code as a string, this is NOT an include/require

banned,

7
theblackpig
Re: PHP in blocks
  • 2006/9/4 17:16

  • theblackpig

  • Just popping in

  • Posts: 3

  • Since: 2006/8/31


Thought I'd come back to you .
Problem solved !!
Reading through the forums I camme across a reference to "I frames"
Downloaded the module ,installed it and it is ideal for my needs.

8
Khepri
Re: PHP in blocks
  • 2006/9/4 21:30

  • Khepri

  • Just popping in

  • Posts: 35

  • Since: 2005/8/25


I'd still look into some of the wrappers....

Such as the one in Content 0.5 module or SmartSection, just to name a few....

The content Module wrapping is basic and straight-foward...SmartSections is more versatile...(although I hear a new Content module is due out shortly...

I tried I-framing one of my php scripts and if the content of it overran I got scroll-bars all over the place!

The page wrap solved that...two cents...

I'd still like to know which it is for the block though....tags or no?

Or does eval add tags if it doesn't find them?
Moo.

Login

Who's Online

171 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 171


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