vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Administrative and Maintenance Tools - vBSEO Google/Yahoo Sitemap Generator (https://vborg.vbsupport.ru/showthread.php?t=184573)

phunksta 07-12-2008 01:37 PM

Nice mod *INSTALLED*
Had a little problem setting this up, but found the solution.

Got the 404 error when trying to access the sitemap, so found the problem was the .htaccess file.
This was being ignored by apache because in the httpd.conf the AllowOverrides None option was set.
A bit of googling shows that apache doesn't seem to like .htaccess files much, unless you REALLY want to use them. So, I moves the .htaccess file to /etc/httpd/conf.d/vbseo_sitemap.conf
Apache likes it now and just includes it with all the other configs.

Not much use if you're on some sort of limited access webserver, but having full control over my server this seemed the better option.

iojam 07-12-2008 06:26 PM

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?'&amp;title='.vbseo_filter_text($mod['name']):'').
            
'&amp;id='.$mod['id'];

        if(
VBSEO_ON)
            
$url vbseo_any_url($url);

          
vbseo_add_url($url1.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?'&amp;title='.vbseo_filter_text($mod['fname']).'&amp;cid='.$mod['cid'].'&amp;ctitle='.vbseo_filter_text($mod['cname']):'').
            
'&amp;id='.$mod['fid'];

        if(
VBSEO_ON)
            
$url vbseo_any_url($url);
          
vbseo_add_url($url1.0'''daily');
    }  
?>


Turbe 07-12-2008 06:53 PM

Are there any issues running this on Apache on XP (PHP 5)?

Thanks in advance...

hugh_ 07-12-2008 06:57 PM

Quote:

Originally Posted by iojam (Post 1573697)
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?'&amp;title='.vbseo_filter_text($mod['name']):'').
            
'&amp;id='.$mod['id'];

        if(
VBSEO_ON)
            
$url vbseo_any_url($url);

          
vbseo_add_url($url1.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?'&amp;title='.vbseo_filter_text($mod['fname']).'&amp;cid='.$mod['cid'].'&amp;ctitle='.vbseo_filter_text($mod['cname']):'').
            
'&amp;id='.$mod['fid'];

        if(
VBSEO_ON)
            
$url vbseo_any_url($url);
          
vbseo_add_url($url1.0'''daily');
    }  
?>


That worked, great thanks!

Hugh

TsirhCitna 07-13-2008 05:32 AM

After installing vBSEO and running the generator I resubmitted my sitemaps to Google and it tells me this warning:

Unsupported file format
Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.

len backus 07-14-2008 02:50 PM

I still get nervous about uploading files and folders to the right place. Do I just select all the 6 folders and 3 individual files and then drag them up to the "Forums" folder?

https://vborg.vbsupport.ru/external/2008/07/52.jpg

PoetJA-1975 07-14-2008 03:45 PM

Thanx ;)

Jacquii.

Jonaid 07-14-2008 03:51 PM

I'm having trouble getting this to work. I've put everything where it should be but it doesn't seem to generate a sitemap :(

When I run the generator no errors come up:

Code:

[homepage] [776.6Kb mem used] [0s (+0s)]
[SECTION START] forumdisplay [776.6Kb mem used] [0s (+0s)]
[forumdisplay] forum_id: 1, total threads: 0, pages: 1 [776.7Kb mem used] [0s (+0s)]
[forumdisplay] forum_id: 2, total threads: 0, pages: 1 [777.0Kb mem used] [0s (+0s)]
[SECTION START] showthread [777.1Kb mem used] [0s (+0s)]
[archive homepage] [777.8Kb mem used] [0s (+0s)]
[SECTION START] forumdisplay archived [777.8Kb mem used] [0s (+0s)]
[SECTION START] showthread archived [778.2Kb mem used] [0s (+0s)]
[SECTION START] member [778.9Kb mem used] [0s (+0s)]
[SECTION START] polls [779.4Kb mem used] [0s (+0s)]
[SECTION START] blogs [779.4Kb mem used] [0s (+0s)]
[SECTION START] albums [779.5Kb mem used] [0s (+0s)]
[SECTION START] groups [779.6Kb mem used] [0s (+0s)]
[SECTION START] tags [779.6Kb mem used] [0s (+0s)]
[create sitemap file] filename: sitemap_1.xml.gz, number of urls: 8 [780.7Kb mem used] [0s (+0s)]
[create sitemap in text format] part #1 [780.7Kb mem used] [0s (+0s)]
[create sitemap index] filename: sitemap_index.xml.gz, number of sitemaps: 1 [782.2Kb mem used] [0s (+0s)]
Sitemap has been created. Click here to return [782.0Kb mem used] [106s (+106s)]

But there isn't one actually created. Anyone know how to fix this?

Greek76 07-14-2008 04:11 PM

Quote:

Originally Posted by iojam (Post 1573697)
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?'&amp;title='.vbseo_filter_text($mod['name']):'').
            
'&amp;id='.$mod['id'];

        if(
VBSEO_ON)
            
$url vbseo_any_url($url);

          
vbseo_add_url($url1.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?'&amp;title='.vbseo_filter_text($mod['fname']).'&amp;cid='.$mod['cid'].'&amp;ctitle='.vbseo_filter_text($mod['cname']):'').
            
'&amp;id='.$mod['fid'];

        if(
VBSEO_ON)
            
$url vbseo_any_url($url);
          
vbseo_add_url($url1.0'''daily');
    }  
?>


Where do I install that?

iojam 07-15-2008 01:25 PM

TsirhCitna,

your sitemap looks ok for me: http://www.tenstones.net/forums/sitemap_index.xml.gz


len backus,

those are vBSEO files on your screenshot, not vBSEO Sitemap Generator.


Jonaid,

don't you have sitemap files in data/ folder?



Greek76,

you only need that if you have DownloadsII (vBulleting mod) installed.


All times are GMT. The time now is 11:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01721 seconds
  • Memory Usage 1,846KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete