neounix
Customer
We installed the 1.0.0.9b update today and all went smoothly. Thanks. Great job.
We have custom code in place (just a quick hack, no options, settings, yet) which changes the directory of the sitemaps based on the name of the index file.
Basically, we just read the name of the sitemap file and change directories based on the name. We do this because we like to keep certain sitemaps seperate so we can control (to a small degree) how the site is indexed.
Our "hack" is working fine; but we have to rehack your code during each release, so if you could add something like this the future, that would be great.
Also, on another note, we had a bit of a problem (in both releases we have used) in some areas of our forums when the plugin files were included with the statement:
so we globally changed the XML upload file to hardcode the exact path:
... and the PHP error problem in some areas of our forums went away...
No big deal, it's easy for us to hard code this in before updating.
We have custom code in place (just a quick hack, no options, settings, yet) which changes the directory of the sitemaps based on the name of the index file.
PHP:
$neo_sitemap_path = $vbulletin->options['dbtech_dbseo_sitemap_path'];
($hook = vBulletinHook::fetch_hook('neo_dbseo_sitemap_start')) ? eval($hook) : false;
if ($vbulletin->GPC['fn'])
{
$sitemap_filename = preg_replace('#[^a-z0-9_.]#i', '', $vbulletin->GPC['fn']);
$sitemap_filename = preg_replace('#\.{2,}#', '.', $sitemap_filename);
if (substr($sitemap_filename, -4) != '.xml' AND substr($sitemap_filename, -7) != '.xml.gz')
{
$sitemap_filename = '';
}
}
else if (file_exists($neo_sitemap_path . '/dbseo_sitemap_index.xml.gz'))
{
$sitemap_filename = 'dbseo_sitemap_index.xml.gz';
}
else if (file_exists($neo_sitemap_path . '/dbseo_sitemap_index.xml'))
{
$sitemap_filename = 'dbseo_sitemap_index.xml';
}
else
{
$sitemap_filename = '';
}
if ($sitemap_filename AND file_exists($neo_sitemap_path . "/$sitemap_filename"))
.... blah blah blah
Basically, we just read the name of the sitemap file and change directories based on the name. We do this because we like to keep certain sitemaps seperate so we can control (to a small degree) how the site is indexed.
Our "hack" is working fine; but we have to rehack your code during each release, so if you could add something like this the future, that would be great.
Also, on another note, we had a bit of a problem (in both releases we have used) in some areas of our forums when the plugin files were included with the statement:
PHP:
include(DIR. '/dbtech/dbseo/blahblah.php');
so we globally changed the XML upload file to hardcode the exact path:
PHP:
include('/var/www/dbtech/dbseo/blahblah.php');
... and the PHP error problem in some areas of our forums went away...
No big deal, it's easy for us to hard code this in before updating.
Upvote
0