Pero en caso de que tengamos un portal instalado el portal no se reescribe a html, sino que continua siendo portal.php, bueno pues ahora veremos como con unos sencillos cambios podemos hacer que pase a ser portal.html
Abrir: phpbb_seo/phpbb_seo_class.php
Buscar:
Código: Seleccionar todo
var $seo_ext = array( 'forum' => '.html', 'topic' => '.html', 'post' => '.html', 'user' => '.html', 'group' => '.html', 'index' => '', 'global_announce' => '/', 'leaders' => '.html', 'atopic' => '.html', 'utopic' => '.html', 'npost' => '.html', 'urpost' => '.html', 'pagination' => '.html', 'gz_ext' => ''
Código: Seleccionar todo
, 'portal' => '.html'
Código: Seleccionar todo
var $seo_static = array( 'forum' => 'forum', 'topic' => 'topic', 'post' => 'post', 'user' => 'member', 'group' => 'group', 'index' => '', 'global_announce' => 'announces', 'leaders' => 'the-team', 'atopic' => 'active-topics', 'utopic' => 'unanswered', 'npost' => 'newposts', 'urpost' => 'unreadposts', 'pagination' => 'page', 'gz_ext' => '.gz'
Código: Seleccionar todo
, 'portal' => 'portal'
Código: Seleccionar todo
// Allow to add options without slowing down the URL rewriting process
$this->rewrite_method[$phpbb_root_path] = array_merge(
array(
'viewtopic' => 'viewtopic',
'viewforum' => 'viewforum',
'index' => 'index',
'memberlist' => 'memberlist',
Código: Seleccionar todo
'portal' => 'portal',
Código: Seleccionar todo
// virtual root option
if ($this->seo_opt['virtual_root']) {
$this->seo_path['phpbb_urlR'] = $this->seo_path['root_url'];
$this->file_hbase['index'] = $this->seo_path['phpbb_url'];
$this->seo_static['index'] = empty($this->seo_static['index']) ? 'forum' : $this->seo_static['index'];
}
$this->seo_ext['index'] = empty($this->seo_static['index']) ? '' : ( empty($this->seo_ext['index']) ? '.html' : $this->seo_ext['index']);
Código: Seleccionar todo
$this->seo_ext['portal'] = empty($this->seo_static['portal']) ? '' : ( empty($this->seo_ext['portal']) ? '.html' : $this->seo_ext['portal']);
Código: Seleccionar todo
/**
* URL rewritting for index.php
* @access private
*/
function index() {
Código: Seleccionar todo
/**
* URL rewritting for portal
* @access private
*/
function portal() {
$this->path = $this->seo_path['phpbb_urlR'];
if ($this->filter_url($this->seo_stop_vars)) {
$this->url = $this->seo_static['portal'] . $this->seo_ext['portal'];
return;
}
$this->path = $this->seo_path['phpbb_url'];
return;
}
Lo he probado en mi foro y funciona perfectamente (en board3 portal), creo que funcionará con cualquier portal para phpBB3