SimplePortal

Support => International Support => Portuguese => Topic started by: [T]uGa [M]aSter on August 01, 2009, 09:42:12 AM

Title: Portal Independente
Post by: [T]uGa [M]aSter on August 01, 2009, 09:42:12 AM
Boa tarde,

Gostava de saber como fazer um Portal Independente...  :)

Aqui eles falam sobre isso: http://simpleportal.net/index.php?topic=2683.0 mas não estou a perceber..  :'(


Desde já muito obrigado.
Title: Re: Portal Independente
Post by: Costa on August 01, 2009, 10:25:05 AM
exemplo...

manda o SPStandalone.php para http://meusite.com/SPStandalone.php

Renomeia o SPStandalone.php para index.php

Edita o ficheiro assim:
Code: (encontra) [Select]
// Should be the full path!
$forum_dir = 'full/path/to/forum';
Code: (substitui para) [Select]
// Should be the full path!
$forum_dir = '/home/****/public_html/meusite/forum';

deixa isto intacto:
Code: [Select]
// Yeah, I'm amazing! :P
$forum_version = 'SMF';

// Call the SSI magic.
require_once($forum_dir . '/SSI.php');

// Re-initialize SP.
sportal_init(true);

// Get the page ready.
sportal();

// Here we go!
obExit(true);

Agora, na admin do sp, coloca o SP como Standalone.
define tbm a url para o SPStandalone.php (index.php) que será http://meusite.com/index.php

assim deve funcionar
Title: Re: Portal Independente
Post by: [T]uGa [M]aSter on August 01, 2009, 11:06:39 AM
Erro:

Code: [Select]
Warning: require_once(/home/seriesde/public_html/portalSSI.php) [function.require-once]: failed to open stream: No such file or directory in /home/seriesde/public_html/portal/index.php on line 85

Fatal error: require_once() [function.require]: Failed opening required '/home/seriesde/public_html/portalSSI.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/seriesde/public_html/portal/index.php on line 85

O index.php vai em anexo para ver se tem alguma coisa errada...

Obrigado.
Title: Re: Portal Independente
Post by: [T]uGa [M]aSter on August 02, 2009, 06:16:31 PM
Alguém?
Title: Re: Portal Independente
Post by: Costa on August 02, 2009, 08:46:22 PM
onde metes-te esse index.php?
o caminho completo
Title: Re: Portal Independente
Post by: [T]uGa [M]aSter on August 03, 2009, 10:34:57 AM
onde metes-te esse index.php?
o caminho completo

O index.php encontra-se no sub-domínio..
Title: Re: Portal Independente
Post by: Costa on August 03, 2009, 12:32:38 PM
de novo...
o caminho completo?
Title: Re: Portal Independente
Post by: [T]uGa [M]aSter on August 04, 2009, 08:05:39 AM
O caminho está completo.

./home/username/public_html/forum
Title: Re: Portal Independente
Post by: [T]uGa [M]aSter on August 06, 2009, 05:25:07 PM
Tenho umas dúvidas:

O SPStandalone.php é para enviar ou para fazer uma copia e enviar para a pasta que quero?

E o caminho direccionado é para o fórum, certo?
Title: Re: Portal Independente
Post by: Costa on August 07, 2009, 06:04:23 AM
é para enviar e para renomear, sim, é o caminho para o forum
SimplePortal 2.3.8 © 2008-2024, SimplePortal