
07-14-2008, 04:11 PM
|
 |
|
|
Join Date: Aug 2006
Location: Planet Earth
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by iojam
Ok, please try this:
PHP Code:
<?php
/******************************************************************************************
* vBSEO Google/Yahoo Sitemap Generator for vBulletin v3.x.x by Crawlability, Inc. *
*-----------------------------------------------------------------------------------------*
* *
* Copyright c 2005-2007, Crawlability, Inc. All rights reserved. *
* You may not redistribute this file or its derivatives without written permission. *
* *
* Sales Email: sales@crawlability.com *
* *
*-------------------------------------LICENSE AGREEMENT-----------------------------------*
* 1. You are free to download and install this plugin on any vBulletin forum for which *
* you hold a valid vB license. *
* 2. You ARE NOT allowed to REMOVE or MODIFY the copyright text within the .php files *
* themselves. *
* 3. You ARE NOT allowed to DISTRIBUTE the contents of any of the included files. *
* 4. You ARE NOT allowed to COPY ANY PARTS of the code and/or use it for distribution. *
******************************************************************************************/
$dl_seourls = false;
$mods = $db->query("SELECT id,name FROM " . TABLE_PREFIX . "dl_cats ORDER BY `id`");
while ($mod = $db->fetch_array($mods))
{
$url = $vbseo_vars['bburl'].'/downloads.php?do=cat'.
($dl_seourls?'&title='.vbseo_filter_text($mod['name']):'').
'&id='.$mod['id'];
if(VBSEO_ON)
$url = vbseo_any_url($url);
vbseo_add_url($url, 1.0, '', 'daily');
}
$mods = $db->query("SELECT f.id as fid,f.name as fname,c.id as cid,c.name as cname".
" FROM " . TABLE_PREFIX . "dl_files f".
" LEFT JOIN " . TABLE_PREFIX . "dl_cats c on c.id=f.category");
while ($mod = $db->fetch_array($mods))
{
$url = $vbseo_vars['bburl'].'/downloads.php?do=file'.
($dl_seourls?'&title='.vbseo_filter_text($mod['fname']).'&cid='.$mod['cid'].'&ctitle='.vbseo_filter_text($mod['cname']):'').
'&id='.$mod['fid'];
if(VBSEO_ON)
$url = vbseo_any_url($url);
vbseo_add_url($url, 1.0, '', 'daily');
}
?>
|
Where do I install that?
|