vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Google sitemap for the vB Archives. Redirect human and robots. (https://vborg.vbsupport.ru/showthread.php?t=93980)

Suiko Jin 10-16-2005 09:33 PM

Quote:

Originally Posted by Suiko Jin
Alright, I did everything and installed it. Then I submitted this link to the google sitemap.

http://guardiansanctuary.net/forums/g_sitemap.xml

So I wait a day and then it says that it is ok but when I check on the stats, it says that it has generated some HTTP Error.

Still can't figure this out...

exceem 10-17-2005 02:28 PM

all 3 steps installed :)

and all working fine (hopefully!!!)

Thanks for the hack :)

exceem 10-17-2005 07:13 PM

been getting a few php errors in my error log:

error is
PHP Fatal error: Class 'vBulletinHook' not found in /home/trevor/public_html/forums/includes/functions.php on line 4322

I think its reffering to this bit of code
Code:

function exec_header_redirect($url)
{
        global $vbulletin;

        $url = create_full_url($url);

        if (class_exists('vBulletinHook'))
        {
                // this can be called when we don't have the hook class
                ($hook = vBulletinHook::fetch_hook('header_redirect')) ? eval($hook) : false;
        }

        $url = str_replace('&', '&', $url); // prevent possible oddity

        if (SAPI_NAME == 'cgi' OR SAPI_NAME == 'cgi-fcgi')
        {
                header('Status: 301 Moved Permanently');
        }
        else
        {
                header('HTTP/1.1 301 Moved Permanently');
        }

        header("Location: $url");
        define('NOPMPOPUP', 1);
        if (defined('NOSHUTDOWNFUNC'))
        {
                exec_shut_down();
        }
        exit;
}

the redirects for me visiting a archieved link works taking me to a "proper" thread

im checking my logs now to see if its not working the other way around, any ideas as to whats causing this error?

007 10-18-2005 02:20 PM

I got this error now:

A Sitemap Index may not directly or indirectly reference itself. Please fix your Sitemap Index before resubmitting.

How does this Google Sitemap hack compare to the other one on vB?

eoc_Jason 10-18-2005 02:53 PM

What is the other one? (URL?)

buro9 10-18-2005 03:16 PM

I got something similar but couldn't see anything wrong with the sitemap... so I posted on the Google Groups with it:
http://groups.google.com/group/googl...7e0aca343fb8ec

Similar error:
Code:

Recursive Index

A Sitemap Index may not directly or indirectly reference itself.
Please fix your Sitemap Index before resubmitting.


eoc_Jason 10-18-2005 03:44 PM

Just checked today and got the same error as you! Hmm...

xtreme-mobile 10-18-2005 05:44 PM

when running sitemap.php i get this

Script can only be run by vB Scheduled Tasks. Set $run_by_vb_Scheduled_Task_only to 0 to call this script directly.

i dont understand this bit how do i change it to what its asking :)

dutchbb 10-18-2005 06:33 PM

Quote:

Originally Posted by xtreme-mobile
when running sitemap.php i get this

Script can only be run by vB Scheduled Tasks. Set $run_by_vb_Scheduled_Task_only to 0 to call this script directly.

i dont understand this bit how do i change it to what its asking :)

Open /archive/forums_sitemap.php file

change: $run_by_vb_Scheduled_Task_only = 0;

to: $run_by_vb_Scheduled_Task_only = 1;

Now you (and everyone else) can run the script directly.
You can also leave it to 0 and run this script in your scheduled tasks manager, that way, you are the only person who can run it.

dutchbb 10-18-2005 06:38 PM

BTW the beta script is working fine AFAICS

Quote:

Originally Posted by lierduh
New beta script.

Threads containing newer posts will have higher sitemap priority with this new script.



All times are GMT. The time now is 04:46 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.01231 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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