Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

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
 02/07/06 08:27PM (Read 2734 times)  
+++++
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::
 
Profile Email Website
 Quote
koalasoft
 02/07/06 10:37PM  
+++++
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::
 
Profile Email Website
 Quote
Dirk
 02/08/06 02:15PM  
AAAAA
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

 
Profile Email Website
 Quote
fakestar
 03/22/06 12:57AM  
+++--
Chatty

Status: offline


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

this don't work here...

 
Profile Email
 Quote
koalasoft
 03/22/06 09:25AM  
+++++
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::
 
Profile Email Website
 Quote
beewee
 03/22/06 02:02PM  
+++++
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
 
Profile Email Website
 Quote
koalasoft
 03/22/06 02:35PM  
+++++
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::
 
Profile Email Website
 Quote
fakestar
 03/22/06 05:21PM  
+++--
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.

 
Profile Email
 Quote
beewee
 03/22/06 05:48PM  
+++++
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
 
Profile Email Website
 Quote
koalasoft
 03/22/06 10:16PM  
+++++
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::
 
Profile Email Website
 Quote
Content generated in: 1.42 seconds
New Topic Post Reply

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