MOD Sitemap
Enviado: 03 Mar 2011, 11:42
Existe algum bom mod para gerar automaticamente o sitemap do phpBB? Achei um, mas é de 2005.
Alguem recomenda algum?
Att.
Alguem recomenda algum?
Att.
Código: Selecionar todos
preg_match('`action-(rss|google),type-(xsl),lang-([a-z]+),theme_id-([0-9]+)`', $qs, $matches );
Código: Selecionar todos
preg_match('`action-(rss|google),type-(xsl),lang-([a-z]+[_]?[a-z]?[a-z]?),theme_id-([0-9]+)`', $qs, $matches );
http://www.contextojuridico.com.br/foru ... pindex.xml_Vinny_ escreveu:Posta aqui o URL do sitemap.
RobsonArsB escreveu:Veja se isso da certo:
Abra : gymsitemaps/gym_sitemaps/gym_style.php
Procure por:
Subistitua por:Código: Selecionar todos
preg_match('`action-(rss|google),type-(xsl),lang-([a-z]+),theme_id-([0-9]+)`', $qs, $matches );
Código: Selecionar todos
preg_match('`action-(rss|google),type-(xsl),lang-([a-z]+[_]?[a-z]?[a-z]?),theme_id-([0-9]+)`', $qs, $matches );
Código: Selecionar todos
// grabb vars like this because browser are not aggreeing on how to handle & in xml. FF only accpet & where IE and opera only accept &
$qs = isset($_SERVER['QUERY_STRING']) ? trim($_SERVER['QUERY_STRING']) : '';
if ($qs && preg_match('`action-(rss|google),type-(xsl),lang-([a-z_]+),theme_id-([0-9]+)`i', $qs, $matches )) {
$language = $matches[3];
$action = in_array($matches[1], $action_expected) ? $matches[1] : '';
$gym_style_type = in_array($matches[2], $type_expected) ? $matches[2] : '';
$theme_id = intval($matches[4]);
}
}
Código: Selecionar todos
preg_match('`action-(rss|google),type-(xsl),lang-([a-z_]+),theme_id-([0-9]+)`i', $qs, $matches )) {
$language = $matches[3];
Código: Selecionar todos
preg_match('`action-(rss|google),type-(xsl),lang-([a-z_]+),theme_id-([0-9]+)`i', $qs, $matches
Código: Selecionar todos
preg_match('`action-(rss|google),type-(xsl),lang-([a-z]+[_]?[a-z]?[a-z]?),theme_id-([0-9]+)`', $qs, $matches