Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

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
  #12  
Old 01-16-2009, 06:52 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screenshots or demo link please?
I assume it's this
http://www.backpackers.com.tw/forum/sitemap.php
looks like the archive to me, so that might not be it
Reply With Quote
  #13  
Old 01-16-2009, 07:21 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Permissions work fine. This only shows threads that are visible to guests.
Reply With Quote
  #14  
Old 01-16-2009, 07:58 PM
nrms?'s Avatar
nrms? nrms? is offline
 
Join Date: Dec 2008
Location: Portugal
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not open any valid page with .../sitemap.php.

And i have a hyperlink like this ''http://www.XXX-XXX.net/www.XXX-XXX.net/sitemap.php''

Can explain more about this Add-on...?

Reply With Quote
  #15  
Old 01-16-2009, 10:03 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 01-16-2009, 10:19 PM
bjhuang bjhuang is offline
 
Join Date: Jul 2006
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by YLP1 View Post
The first page works but none of the subsequent linked pages do.

I am seeing private admin forum topics on the list ---- are forum permissions used in this mod?

Thanks in advance.
yes, forum permissions are checked. i guess you read the sitemap when you logged in with an admin account.
Reply With Quote
  #17  
Old 01-16-2009, 11:20 PM
tansu's Avatar
tansu tansu is offline
 
Join Date: Apr 2006
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont have this code in my footer.
I am using a custom template, where can I put this?

<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
Reply With Quote
  #18  
Old 01-16-2009, 11:32 PM
bjhuang bjhuang is offline
 
Join Date: Jul 2006
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tansu View Post
I dont have this code in my footer.
I am using a custom template, where can I put this?

<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
you could put it anywhere you like.
Reply With Quote
  #19  
Old 01-17-2009, 06:52 AM
munnakv munnakv is offline
 
Join Date: Jun 2008
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

The sitemap.php page works correctly.
When i try to navigate to the second page, it gives 404 error.
http://www.yoursite.com/forum/sitemap?offset=100

Also, please tell me how i can point the "View Full Version" link at the top to http://www.yoursite.com/forum/index.php instead of http://www.yoursite.com/forum
Reply With Quote
  #20  
Old 01-17-2009, 09:17 AM
bjhuang bjhuang is offline
 
Join Date: Jul 2006
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by munnakv View Post
Hi,

The sitemap.php page works correctly.
When i try to navigate to the second page, it gives 404 error.
http://www.yoursite.com/forum/sitemap?offset=100

Also, please tell me how i can point the "View Full Version" link at the top to http://www.yoursite.com/forum/index.php instead of http://www.yoursite.com/forum
did you modified sitemap.php? i guess you've changed the value of $script variable at line2 to "sitemap". it should be "sitemap.php".

for the "View Full Version" link:

Find:
PHP Code:
$output .= "\r\n<br/><h1>".$vbphrase['view_full_version'].": <a href='".$vbulletin->options['bburl']."'>".$vbulletin->options['bbtitle']."</a></h1>"
Replace
PHP Code:
$output .= "\r\n<br/><h1>".$vbphrase['view_full_version'].": <a href='http://www.yoursite.com/forum/index.php'>".$vbulletin->options['bbtitle']."</a></h1>"
Reply With Quote
  #21  
Old 01-17-2009, 03:45 PM
metrika metrika is offline
 
Join Date: Nov 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it work on 3.6.x and 3.7.x ?
Reply With Quote
Reply

Thread Tools

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 05:57 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04813 seconds
  • Memory Usage 2,344KB
  • 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
  • (3)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
  • (3)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