Welcome to Geeklog Thursday, May 23 2013 @ 08:29 PM EDT
|
||||||||
![]() |
Forum Index > Extensions > PHP Blocks |
New Topic
|
Post Reply
|
PHP (include) and block geeklog 1.4.0 |
|||
| koalasoft |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 03/09/05 Posts: 236 |
in english ..
within my site geeklog 1.3.1sr2, in bloke podia to show to the content of a Web php with the commando include, for example: PHP Formatted Code <?php include "http://migeeklog.com/public_html/pagina.php"; ?>Now with version 1.4.0 I cannot see this Web php and single it appears the line of I cosay to me. That podria being who cannot do this? In Spanish .. dentro de mi sitio geeklog 1.3.1sr2, en un bloke podia mostrar el contenido de una web php con el comando include, por ejemplo: PHP Formatted Code <?php include "http://migeeklog.com/public_html/pagina.php"; ?>Ahora con la versión 1.4.0 no puedo ver esta web php y solo me aparece la linea de codigo. Que podria ser que no pueda hacer esto? Grettings !! **Cuando el Alumno esta listo, el Maestro Aparece ** ::Geeklog support in Spanish:: |
||||||
|
|||||||
| koalasoft |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 03/09/05 Posts: 236 |
Ready !!
although not if habra another form to do it but facil. so that "lib-custom.php" PHP Formatted Code function phpblock_miweb(){ $retval .= "<?php include 'http://migeeklog.com/public_html/pagina.php'; ?> "; return $retval; } worked to me in the file places the following thing. and of this form in my blocke with the option type block_php I could make work what queria. if there is some other form because to let know it. Greetings!! **Cuando el Alumno esta listo, el Maestro Aparece ** ::Geeklog support in Spanish:: |
||||||
|
|||||||
| Dirk |
|
||||||
![]() ![]() ![]() ![]() ![]() Admin ![]() Status: offline ![]() Registered: 01/12/02 Posts: 13027 |
PHP code was never supposed to work in "normal" blocks - that's what the PHP blocks are for. This has been fixed in 1.4.0.
bye, Dirk |
||||||
|
|||||||
| fakestar |
|
||||||
![]() ![]() ![]() ![]() ![]() Chatty Status: offline ![]() Registered: 03/15/06 Posts: 37 |
function phpblock_miweb()
{ $retval .= " "; return $retval; } this don't work here... |
||||||
|
|||||||
| koalasoft |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 03/09/05 Posts: 236 |
In the administration of block you must choose "block PHP" and in name of option of block to write "phpblock_miweb"
and in your lib-common.php you place the code .. PHP Formatted Code function phpblock_miweb() { $retval .= "<?php echo"Hola Mundo" ?> "; return $retval; } Saludos !! **Cuando el Alumno esta listo, el Maestro Aparece ** ::Geeklog support in Spanish:: |
||||||
|
|||||||
| beewee |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member Status: offline ![]() Registered: 08/05/03 Posts: 969 |
Quote by koalasoft: and in your lib-common.php you place the code .. Are you sure, didn't you mean lib-custom.php ?? Dutch Geeklog sites about camping/hiking: www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net |
||||||
|
|||||||
| koalasoft |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 03/09/05 Posts: 236 |
Sorry , sorry
is lib-custom.php NOT lib-common.php Sorry . Saludos !!! **Cuando el Alumno esta listo, el Maestro Aparece ** ::Geeklog support in Spanish:: |
||||||
|
|||||||
| fakestar |
|
||||||
![]() ![]() ![]() ![]() ![]() Chatty Status: offline ![]() Registered: 03/15/06 Posts: 37 |
ahaha
i made same mistake, i place the code in lib-commom.php But...i need to create, lib-custom, right? I didn't find it. thank you guys. |
||||||
|
|||||||
| beewee |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member Status: offline ![]() Registered: 08/05/03 Posts: 969 |
Look in the system directory, it's already there. Or have a look in the docs first....
Dutch Geeklog sites about camping/hiking: www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net |
||||||
|
|||||||
| koalasoft |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() Registered: 03/09/05 Posts: 236 |
Quote by fakestar: ahaha i made same mistake, i place the code in lib-commom.php But...i need to create, lib-custom, right? I didn't find it. No, this file you find in directory him geeklog within system. Saludos !! **Cuando el Alumno esta listo, el Maestro Aparece ** ::Geeklog support in Spanish:: |
||||||
|
|||||||
| Content generated in: 1.42 seconds |
|
|
|