Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Simple Sitemap Details »»
Simple Sitemap
Version: 1.00, by bjhuang bjhuang is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.8.x Rating:
Released: 01-15-2009 Last Update: Never Installs: 123
Template Edits
Re-useable Code Additional Files  
No support by the author.

What is it

a really simple sitemap for spiders.

Why

vbseo sitemap is good. but i need another sitemap for spiders to crawl my site more NATURALLY and a sitemap to feed spiders other than google and yahoo.

this sitemap script list all of your threads, newest first. the page updates so fast that spiders will check it more often. hopefully it helps your new threads get indexed quickly.

Install

Step 1: upload sitemap.php to your forum root.
Step 2: modify template "footer"

Find
PHP Code:
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a
Add Above
PHP Code:
<a href="$vboptions[bburl]/sitemap.php">Sitemap</a> - 
Demo

http://www.bbkz.com/forum/sitemap.php

The most famous travel forum in chinese world - www.bbkz.com

Download Now

File Type: php sitemap.php (3.9 KB, 844 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
davidg, Perrier Sophie

Comments
  #22  
Old 01-17-2009, 04:52 PM
crkgb crkgb is offline
 
Join Date: Oct 2007
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://www.google.com/webmasters/tools" target="_blank">https://www.google.com/webmasters/tools</a>

Unsupported file format
Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.
Reply With Quote
  #23  
Old 01-18-2009, 02:51 AM
bjhuang bjhuang is offline
 
Join Date: Jul 2006
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes, it works on 3.6 and 3.7

and you don't have to submit it to anywhere. it's not in any standard format. it's just a simple page to help spiders crawl your threads.
Reply With Quote
  #24  
Old 01-18-2009, 05:26 AM
Wheemer Wheemer is offline
 
Join Date: Oct 2005
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod would be a lot better if you could submit it to google
Reply With Quote
  #25  
Old 01-18-2009, 07:02 AM
C138 Kaysone C138 Kaysone is offline
 
Join Date: Jun 2008
Location: NC
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my offset is not working... like it wont update the pages or something like that
Reply With Quote
  #26  
Old 01-18-2009, 07:33 AM
munnakv munnakv is offline
 
Join Date: Jun 2008
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the reply bjhuang.

Quote:
did you modified sitemap.php? i guess you've changed the value of $script variable at line2 to "sitemap". it should be "sitemap.php".
I did not modify the second line. It stays as $script = 'sitemap.php';
I changed only the third line to : $count = 2000;

The problem still remains unsolved.
I even replaced the sitemap.php with the downloaded one, but does not have any effect.
You can have a look at here: http://www.mysite.com/forum/sitemap.php

(Just to remind, the offset link http://www.mysite.com/forum/sitemap.php?offset=2000 leads to a pagenot found error.)

The "View Full Version" link works now. Thanks.
Reply With Quote
  #27  
Old 01-18-2009, 07:36 AM
C138 Kaysone C138 Kaysone is offline
 
Join Date: Jun 2008
Location: NC
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by munnakv View Post
Thanks for the reply bjhuang.



I did not modify the second line. It stays as $script = 'sitemap.php';
I changed only the third line to : $count = 2000;

The problem still remains unsolved.
I even replaced the sitemap.php with the downloaded one, but does not have any effect.
You can have a look at here: http://www.indianjobtalks.com/forum/sitemap.php

(Just to remind, the offset link http://www.indianjobtalks.com/forum/sitemap?offset=2000 leads to a pagenot found error.)

The "View Full Version" link works now. Thanks.
Does your page loads or it still gives you a 404 error? im trying to figure out what i can do to fix mine as well

http://mytalkcarolina.com/community/sitemap.php

I dont know what is causing the problem for it not to allow going through the pages, only gives me a 404 error
Reply With Quote
  #28  
Old 01-18-2009, 07:49 AM
C138 Kaysone C138 Kaysone is offline
 
Join Date: Jun 2008
Location: NC
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok now i found the problem & the correction to it, the author only needs to update the php attachment.

when clicking on the page number, it leads you to a 404 error page but as it goes

Before - http://mytalkcarolina.com/community/sitemap?offset=1800 (404 error)

After - http://mytalkcarolina.com/community/...hp?offset=1800 (Will allow to go to next page)

On line 14, just add .php to the variable.

Before
Quote:
define('SKIP_SESSIONCREATE', 1);
define('DIE_QUIETLY', 1);
define('THIS_SCRIPT', 'sitemap');
After
Quote:
define('SKIP_SESSIONCREATE', 1);
define('DIE_QUIETLY', 1);
define('THIS_SCRIPT', 'sitemap.php');
That way you will no longer see the 404 error page hope that helps anyone that uses my correction "which is only small, and author you may want to update your sitemap.php attachment with my correction so everyone will have it when they install it into their forum root.
Reply With Quote
  #29  
Old 01-18-2009, 02:01 PM
munnakv munnakv is offline
 
Join Date: Jun 2008
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
That way you will no longer see the 404 error page hope that helps anyone that uses my correction "which is only small, and author you may want to update your sitemap.php attachment with my correction so everyone will have it when they install it into their forum root.
C138 Kaysone, Thanks. It did the trick. It helps to learn the coding at times.

Another suggestion / request to bjhuang the thread owner:
Can we eliminate the page "/forum/sitemap.php?offset=0" appearing in the top navigation list, as it is a duplicate of "/forum/sitemap.php?"
Reply With Quote
  #30  
Old 01-18-2009, 11:36 PM
bjhuang bjhuang is offline
 
Join Date: Jul 2006
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by munnakv View Post
C138 Kaysone, Thanks. It did the trick. It helps to learn the coding at times.

Another suggestion / request to bjhuang the thread owner:
Can we eliminate the page "/forum/sitemap.php?offset=0" appearing in the top navigation list, as it is a duplicate of "/forum/sitemap.php?"
open sitemap.php and find
PHP Code:
$output .= "<a href='".$sitemap_script."?offset=".(($i-1)*$count)."'>".$i."</a> "
replace with
PHP Code:
if($i==1$output .= "<a href='".$sitemap_script."'>".$i."</a> ";
else 
$output .= "<a href='".$sitemap_script."?offset=".(($i-1)*$count)."'>".$i."</a> "
Reply With Quote
  #31  
Old 01-19-2009, 03:56 PM
nrms?'s Avatar
nrms? nrms? is offline
 
Join Date: Dec 2008
Location: Portugal
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alfa1 View Post
Just hardcode the link, by replacing
PHP Code:
<a href="$vboptions[bburl]/sitemap.php">Sitemap</a> - 
with
PHP Code:
<a href="http://www.example.com/forum/sitemap.php">Sitemap</a> - 
Put your forum location instead of example.com/forum
@Alfa1, thanks in advance, but after this... continue not open a valid page, simple open a blank page...

Have you other solution...?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:25 PM.


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.07509 seconds
  • Memory Usage 2,357KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_php
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete