Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Use vBulletin Archive as Sitemap for the Forum Details »»
Use vBulletin Archive as Sitemap for the Forum
Version: 1.00, by shabbirbhimani shabbirbhimani is offline
Developer Last Online: Aug 2021 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 12-14-2008 Last Update: 12-16-2008 Installs: 15
Template Edits
Re-useable Code Is in Beta Stage  
No support by the author.

What does this product do?

It uses the existing vBulletin Archive feature to be used for Sitemap for the forum like in vbSEO / TfSEO product.

How to install?
  1. Enable the Archive Feature in
    AdminCP > vBulletin Options > Search Engine Friendly Archive

    Forum Archive Enabled <Yes>
    Display Simple View of Threads <No> ( Optional but its not good to have different page for the content )
  2. Add the following line to your .htacces file

    Code:
    RewriteRule ^sitemap(.*)$ forums/archive/index.php$1 [QSA,L]
  3. Import the product XML
  4. Change the Footer Template to point the Archive to Sitemap Location.

    Find :

    Code:
    <if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
    Replace with :
    Code:
    <if condition="$vboptions['archiveenabled']"><a href="$vboptions[homeurl]sitemap/">$vbphrase[archive]</a> -</if>
    You may need to add a trailing slash after $vboptions[homeurl] if it does not already end with /
  5. Optionally change the Phrase Archive to Sitemap

How to uninstall?
  • Remove the content of .htaccess
  • Revert the template / phrases
  • Just un-install product.

Samples

See the working example on my forum http://www.go4expert.com/

Note: I changed some bburl to homeurls and if you find something wrong in it do let me know and I would be more than happy to help.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-15-2008, 10:35 AM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Something is wrong: It redirects to http://www.mysite.com/index.phpsitemap/
Note that I do have vbSEO sitemap installed. i.e. htaccess does already have these rewrites:
PHP Code:
RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ forum/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$[L
Reply With Quote
  #3  
Old 12-15-2008, 10:42 AM
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you have vbSEO it already have this feature for you and so you don't need to use this Hack.
Reply With Quote
  #4  
Old 12-15-2008, 10:47 AM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont have the vbSEO product. I only have the vbSEO Google sitemap mod(submits an xml sitemap to sitemaps.org), that is available here on vb.org.

$vboptions[homeurl] gives mysite.com/index.php
When I hardcode this so that my footer shows mysite.com/sitemap/ or to mysite.com/sitemap/index.php then I still get a blank page.
Reply With Quote
  #5  
Old 12-15-2008, 11:01 AM
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in this bburl's are replaced by homeurls and so do let me know your bburls/homeurls.

if you would like that to be changed

Edit the

archive_complete plugin

With the following
Code:
$searchArray=array(
'<a href="' . $vbulletin->options['homeurl'] . '/archive/index.php">' . $vbulletin->options['bbtitle'] . '</a>',
$vbulletin->options['homeurl'] . '/archive/index.php',
"<a href=\"" . $vbulletin->options['home'] . '/' . $vbulletin->options['forumhome'] . '.php">' . $vbulletin->options['bbtitle'] . "</a>"
);

$replaceArray=array(
'<a href="' . $vbulletin->options['bburl'] . 'sitemap/">' . $vbulletin->options['bbtitle'] . ' Sitemap</a>',
$vbulletin->options['bburl'] . 'sitemap',
"<a href=\"" . $vbulletin->options['bburl'] . '">' . $vbulletin->options['hometitle'] . "</a>"
);
$output = str_replace($searchArray, $replaceArray,$output);
Reply With Quote
  #6  
Old 12-15-2008, 11:21 AM
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
Posts: 541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this better or vbseo sitemap generator?
Reply With Quote
  #7  
Old 12-15-2008, 11:43 AM
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by abdobasha2004 View Post
is this better or vbseo sitemap generator?
vbseo sitemap generator generates only xml file for robots to be submitted but this one has the sitemap on your forum for users / bots to browse it.
Reply With Quote
  #8  
Old 12-15-2008, 02:21 PM
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
Posts: 541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Server not found


Firefox can't find the server at 100fm6.comsitemap.
Reply With Quote
  #9  
Old 12-16-2008, 01:48 AM
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by abdobasha2004 View Post
Server not found


Firefox can't find the server at 100fm6.comsitemap.
How do you get to that? If you can tell me more about it I can help you in this.
Reply With Quote
  #10  
Old 12-16-2008, 08:42 PM
Stefanus Stefanus is offline
 
Join Date: Aug 2007
Location: RSA - Boerland
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by shabbirbhimani View Post
How do you get to that? If you can tell me more about it I can help you in this.
Had to do the following edits to get this to link to the sitemap:

Place a "/" between: $vboptions[homeurl] and sitemap/
Code:
<if condition="$vboptions['archiveenabled']"><a href="$vboptions[homeurl]/sitemap/">$vbphrase[archive]</a> -</if>
Changed the following in the .htacces file:
Code:
RewriteRule ^sitemap(.*)$ "My Forum"/archive/index.php$1 [QSA,L]
On the Sitemap the links stil point to www.mysite.comsitemap and the threads to:
http://www.mysite.comsitemap/f-21.html
http://www.mysite.comsitemap/f-23.html

Any help on this?
Thanks
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 01:19 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.04890 seconds
  • Memory Usage 2,303KB
  • Queries Executed 23 (?)
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_code
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete