Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 12:22 pm EST

Geeklog Forums

PHP (include) and block geeklog 1.4.0


Status: offline

koalasoft

Forum User
Full Member
Registered: 03/09/05
Posts: 242
Location:Mexico
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:

Text 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:

Text 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 !!
Mr. Green
**Cuando el Alumno esta listo, el Maestro Aparece **
::Geeklog support in Spanish::
 Quote

Status: offline

koalasoft

Forum User
Full Member
Registered: 03/09/05
Posts: 242
Location:Mexico
Ready !!

although not if habra another form to do it but facil. so that "lib-custom.php"
Text 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!!
Mr. Green
**Cuando el Alumno esta listo, el Maestro Aparece **
::Geeklog support in Spanish::
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

Status: offline

fakestar

Forum User
Chatty
Registered: 03/15/06
Posts: 37
function phpblock_miweb()
{
$retval .= " ";
return $retval;
}

this don't work here... Sad
 Quote

Status: offline

koalasoft

Forum User
Full Member
Registered: 03/09/05
Posts: 242
Location:Mexico
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 ..

Text Formatted Code

function phpblock_miweb()
{
$retval .= "<?php echo"Hola Mundo" ?> ";
return $retval;
}

 


Saludos !! Mr. Green
**Cuando el Alumno esta listo, el Maestro Aparece **
::Geeklog support in Spanish::
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
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
 Quote

Status: offline

koalasoft

Forum User
Full Member
Registered: 03/09/05
Posts: 242
Location:Mexico
Sorry , sorry Banging your head

is lib-custom.php NOT lib-common.php

Sorry . Leaves me speechless

Saludos !!! Mr. Green
**Cuando el Alumno esta listo, el Maestro Aparece **
::Geeklog support in Spanish::
 Quote

Status: offline

fakestar

Forum User
Chatty
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.
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
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
 Quote

Status: offline

koalasoft

Forum User
Full Member
Registered: 03/09/05
Posts: 242
Location:Mexico
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 !! Mr. Green
**Cuando el Alumno esta listo, el Maestro Aparece **
::Geeklog support in Spanish::
 Quote

All times are EST. The time is now 12:22 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content