vba Dynamic and vbSEO sitemap Generator

dc97458

New Member
Hi,
I have installed vBulletin in the directory www.site.com/forum
I have installed vba Dynamic in the directory www.site.com
I have installed vbSEO sitemap generator + addon sitemap for vbDynami

this is the vbseo_sm_dynamics.php that i have into the vbseo sitemap addon

<?php
/******************************/
//Dynamics vBSEO Sitemap Addon v1.0
// Copyright aproape/Maribal Inc. 15 Sep 2008
// Replace the URL below with your vBa Dynamics main folder URL

require_once('includes/vba_dyna_functions.php');

if(VBSEO_ON)
{
$vba_options['dyna_spiderurls'] = true;
}

$vba_dyna_url = 'http://www.site.com/';


//adding the categories to the sitemap
$cats = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "adv_dyna_categories");
while ($cat = $db->fetch_array($cats))
{
$url = fetch_cat_url($cat['catid']);
/*if(VBSEO_ON)
$url = vbseo_any_url($url);*/

$url = $vba_dyna_url . $url;

vbseo_add_url($url, 1.0, $cat['lastupdated'], 'daily');
}


//adding the articles/entries to the sitemap
$entries = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "adv_dyna_entries WHERE open > 0");
while ($entry = $db->fetch_array($entries))
{
$url = fetch_entry_url($entry);

/*if(VBSEO_ON)
$url = vbseo_any_url($url);*/

$url = $vba_dyna_url . $url;

vbseo_add_url($url, 0.5, $entry['lastupdated'] ? $entry['lastupdated'] : $entry['dateline'], 'weekly');
}

and this is the errore on sitemap

[homepage] [7,254.9Kb mem used] [0s (+0s)]
[SECTION START] forumdisplay [7,255.1Kb mem used] [0s (+0s)]
[forumdisplay] forum_id: 1, total threads: 0, pages: 1 [7,255.8Kb mem used] [0s (+0s)]
[forumdisplay] forum_id: 2, total threads: 0, pages: 1 [7,256.5Kb mem used] [0s (+0s)]
[SECTION START] showthread [7,256.7Kb mem used] [0s (+0s)]
[archive homepage] [7,258.8Kb mem used] [0s (+0s)]
[SECTION START] forumdisplay archived [7,258.8Kb mem used] [0s (+0s)]
[SECTION START] member [7,259.5Kb mem used] [0s (+0s)]
[SECTION START] polls [7,267.1Kb mem used] [0s (+0s)]
[SECTION START] blogs [7,267.3Kb mem used] [0s (+0s)]
[SECTION START] albums [7,268.2Kb mem used] [0s (+0s)]
[SECTION START] groups [7,268.4Kb mem used] [0s (+0s)]
[SECTION START] tags [7,268.7Kb mem used] [0s (+0s)]
[SECTION START] blog tags [7,268.9Kb mem used] [0s (+0s)]
[addon module] vbseo_sm_dynamics.php [7,268.9Kb mem used] [0s (+0s)]

Fatal error: Call to undefined function fetch_cat_url() in /home/poreddun/public_html/forum/vbseo_sitemap/addons/vbseo_sm_dynamics.php on line 21

why..??
thanks
 

bluescorpion

New Member
This might be the problem. First check to see if

PHP:
$url = fetch_cat_url($cat['catid']);

exists, If it does, this explanation is suppose to fix it:

in the latest release of dynamics, the dynamics-function fetch_cat_url has been renamed to dyna_fetch_cat_url. So you need to change the file vbseo_sm_dynamics.php like that:

Find
PHP:
$url = fetch_cat_url($cat['catid']);

and replace it with

PHP:
$url = dyna_fetch_cat_url($cat['catid']);
 
Top