1
CiberEspia
Custom block with php scritpt

My code block:
require ('/home/jak/public_html/catalogo/single_sidebox.php');

no work

require ('/catalogo/single_sidebox.php');

no work

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

no work

<{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:
<{php}>
include(
'../catalogo/single_sidebox.php');
<{/
php}>

in theme.html and obtain:
Fatal errorCall 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:

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 :

$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
$shoppath realpath(XOOPS_ROOT_PATH."/../catalogo");
$olddir getcwd();
@
chdir($shoppath);
@include (
"single_sidebox.php");
@
chdir($oldpath);


obtain:
Fatal errorCall 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

Who's Online

160 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 160


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits