Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
0 + 6 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: php custom block in xoops 2.4.4
by dvpicella on 2010/3/17 17:36:18

I'm having the same problem.

php scripts don't execute in custom blocks in 2.4.4 .

For example:

le="color: #000000"><?php echo "this is a test";


Produces the code in a block.

I am not using protector. I don't think ... unless this is a new feature in 2.4.4 ...

Is there a security feature that prevents me from using php?
Re: php custom block in xoops 2.4.4
by Lupin on 2010/3/3 18:14:00

FOUND !

as you told I don't need (\) character before Character (") or (').

And block works with this structure :

le="color: #000000"><?php global $xoopsUser; if( $xoopsUser ) { $mynick=$xoopsUser->getVar('uname'); } else { echo "registrati per fare Login";} echo "<div align='left'> <table border='0'> <tr> <td><iframe src='http://win.vsksailing.it/visubox/box.asp?nick=$mynick' name='visubox' width='152' marginwidth='0' height='290' marginheight='0' scrolling='No' frameborder='0' id='visubox' allowtransparency='true' ></iframe> </td> </tr> </table> </div>";


with external (") in echo command , and (') in internal data definition ...

Thanks to everybody for support ...

Attention 2.0.xxx users ...

THIS is the preview in custom block of 2.0.18 version ....

And THIS is the preview in custom block of 2.4.4 version ...

But if you turn to see mainpage by browser , it works well...

( don't ask me why )

Pino
Re: php custom block in xoops 2.4.4
by andrey3761 on 2010/3/3 15:54:09

The given code works in the block php? (Without slashes)

le="color: #000000"><?php echo '<img src="myimage.jpg" />';
Re: php custom block in xoops 2.4.4
by Lupin on 2010/3/3 13:35:44

Idon't think this is the problem ...

the problem is the php script is not executed ...

a further strange thing : online with this script has no effects ... no blocks are shown , nor right nor wrong ...

In the "preview" mode of block building , the php script is print as text and the "iframe" works ...

Ciao

Pino
Re: php custom block in xoops 2.4.4
by sailjapan on 2010/3/3 12:47:40

silly question, perhaps, but have you tried a forward slash instead of a back slash?

Who's Online

295 user(s) are online (198 user(s) are browsing Support Forums)


Members: 0


Guests: 295


more...

Donat-O-Meter

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

Latest GitHub Commits