1
CiberEspia
Custom block with php scritpt

My code block:
le="color: #000000"><?php require ('/home/jak/public_html/catalogo/single_sidebox.php');

no work

le="color: #000000"><?php require ('/catalogo/single_sidebox.php');

no work

<?php require ('/catalogo/single_sidebox.php'); ?>

no work

le="color: #000000"><?php <{php}> require ('/catalogo/single_sidebox.php'); <{/php}>

no work


I cannot make that it works, as would be the correct code in custom php block
Mario Burga
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>Adictoshp.org|Web Blog<<
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2
CiberEspia
Re: Custom block with php scritpt

I test with:
le="color: #000000"><?php <{php}> include('../catalogo/single_sidebox.php'); <{/php}>

in theme.html and obtain:
le="color: #000000"><?php Fatal error: Call to a member function on a non-object in /home/jak/public_html/catalogo/includes/classes/db/mysql/query_factory.php on line 105


helppppppppppp
Mario Burga
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>Adictoshp.org|Web Blog<<
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

3
alfred
Re: Custom block with php scritpt
  • 2007/10/7 14:40

  • alfred

  • Quite a regular

  • Posts: 249

  • Since: 2005/10/29


in the Custom-Block:

le="color: #000000"><?php include (XOOPS_ROOT_PATH."/catalogo/single_sidebox.php");


wenn your /catalogo in the XOOPS_ROOT

Alfred

4
CiberEspia
Re: Custom block with php scritpt

the file single_sidebox.php not this in the route of xoops

My Xoops: http://www.myweb.com/online
MY shop : http://www.myweb.com/catalogo


suggestions so that “include” works??
el file:
http://www.creacionesjak.com/catalogo/single_sidebox1.php
en mi xoops
http://www.creacionesjak.com/online/
Mario Burga
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>Adictoshp.org|Web Blog<<
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

5
alfred
Re: Custom block with php scritpt
  • 2007/10/7 15:38

  • alfred

  • Quite a regular

  • Posts: 249

  • Since: 2005/10/29


mh, no

testing the follow :

le="color: #000000"><?php $shoppath = realpath(XOOPS_ROOT_PATH."/../catalogo"); $olddir = getcwd(); @chdir($shoppath); @include ("single_sidebox.php"); @chdir($oldpath);


Alfred

6
CiberEspia
Re: Custom block with php scritpt

My custom block
le="color: #000000"><?php $shoppath = realpath(XOOPS_ROOT_PATH."/../catalogo"); $olddir = getcwd(); @chdir($shoppath); @include ("single_sidebox.php"); @chdir($oldpath);


obtain:
le="color: #000000"><?php Fatal error: Call to a member function on a non-object in /home/jak/public_html/catalogo/includes/classes/db/mysql/query_factory.php on line 105


But I execute the following code
<?php require ('catalogo/single_sidebox.php'); ?>
and save nuevos.php and upload a root if it works
example:
http://www.creacionesjak.com/nuevos.php
Mario Burga
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>Adictoshp.org|Web Blog<<
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Login

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