Seleccionar idioma:
Realizar Donación - Mods Premium - Portfolio



Este sitio utiliza cookies propias y de terceros. Si continúa navegando consideramos que acepta el uso de cookies. OK Más Información.
* PHP Code inside Blocks - include();
  Leído 1711 veces
* Viendo el foro
 0 Usuarios y 1 Visitante están viendo este foro.


Tema Solucionado
*
Dic 05 2010


Hello, Im using the adk portal 2.0 rc6 since the smf update to rc4 and I had the tinyportal before that.

I wanted to make a PHP block to be seen to only admins and it used to call another php file included in the forum root folder but now I can't use that same file because it says my other php file can't be found.

With tinyportal I only had to call the file with

Código: [Seleccionar]
$function = new FuncFile(arg1,arg2,..);
Now that doesnt work and I tried using

Código: [Seleccionar]
include("myfile.php");
include("../myfile.php");

And it still doesnt work.

I left my project with

include("myfile.php");
$func = funcfile(arg,arg,arg,...);


Edit - This is probably in the wrong section.. Move if necessary.

Adkportal 2.0 RC6
rc4

Mensajes: 2

Ver Perfil  Email 

« Última Modificación: Diciembre 05, 2010, 10:34:27 am por h2so4 »
En línea

*
Dic 05 2010


First.... You need change the permissions of that block in Adk Portal -> Blocks -> BLocks -> That block -> Permissions

and in you block you can try with this:

global $boarddir;

include($boarddir.'/myfile.php');

and add myfile.php to the root forum.


Regards.

ADK Portal 3.0.2
2.0.11
www.smfpersonal.net
#1

Mensajes: 8631

Ver Perfil  SMFPersonal 

En línea

*
Dic 05 2010


Thank you :) It works now.

Adkportal 2.0 RC6
rc4
#2

Mensajes: 2

Ver Perfil  Email 

En línea




Otros temas de su interes

Code in Custom Blocks not visible... kepipro Noviembre 03, 2012, 10:06:17 pm
How to return shoutbox back to block list Punkies Marzo 24, 2013, 06:24:33 pm *
Changing the colors of the text in ADK Portal wolf3825 Enero 20, 2013, 04:40:37 pm *
Strange problem after reinstall Skyflash Marzo 24, 2012, 06:12:24 pm
Auto News in adk portal, Question about picture size thecoo1est Diciembre 04, 2011, 11:02:12 pm
ADK Portal and Mystic riddleflix Julio 09, 2013, 07:51:20 pm



Usuario:
Contraseña:
Sesión:
hermes bracelet replica, christian louboutin replica, van cleef and arpels replica, red bottoms replica, cartier love bracelet replica christian louboutin replica, christian louboutin replica, hermes bracelet replica,