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
  #12  
Old 12-17-2008, 02:01 AM
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You would need to edit the replaceArray

Code:
'<a href="' . $vbulletin->options['homeurl'] . 'sitemap/">' . $vbulletin->options['bbtitle'] . ' Sitemap</a>',
$vbulletin->options['homeurl'] . 'sitemap',
to
Code:
'<a href="' . $vbulletin->options['homeurl'] . '/sitemap/">' . $vbulletin->options['bbtitle'] . ' Sitemap</a>',
$vbulletin->options['homeurl'] . '/sitemap',
In the future version I would check if homeurl ends with / and then add accordingly.
Reply With Quote
  #13  
Old 12-17-2008, 12:19 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
You would need to edit the replaceArray
Without the Complete Idiot's Guide to being a VB coder, the "replaceArray" does sound very strange to me and at this moment I don't have the foggiest idea of any "replaceArray".
Any help in directing me to this "replaceArray" would be appreciated

After some time trying to find the "archive_complete plugin " I have to admit that this bugger has eluded me completely and is still at large on my forum, any idea where this fella could be hiding?

Thanks.
Reply With Quote
  #14  
Old 12-17-2008, 12:24 PM
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AdminCP > Products > plugins

Or if you want I can give you a seperate XML file or let me know your forum url and can edit it for you.
Reply With Quote
  #15  
Old 12-17-2008, 01:34 PM
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the updated product with the support of / in home url
Reply With Quote
  #16  
Old 12-24-2008, 08:14 AM
Stefanus Stefanus is offline
 
Join Date: Aug 2007
Location: RSA - Boerland
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello shabbirbhimani,

Thanks for the help but the best I could get out of this was a working sitemap with the following error:

Code:
Parse error: syntax error, unexpected ',' in /usr/www/users/wendag/forum/archive/index.php(475) : eval()'d code on line 12
Reply With Quote
  #17  
Old 12-24-2008, 10:44 AM
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I downloaded the XML and imported once again and could not get that error.

Check if your archive works without the plugin?
Reply With Quote
  #18  
Old 12-30-2008, 03:25 AM
Keesa Keesa is offline
 
Join Date: Oct 2007
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MEH! This does not work.

The requested URL /forum/forums/archive/index.php/ was not found on this server.

Why is it forcing in the subdirectory /forums/. Not all of us use that.
Reply With Quote
  #19  
Old 12-30-2008, 04:23 AM
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You would need to change the .htaccess url to match your url

Code:
RewriteRule ^sitemap(.*)$ forums/archive/index.php$1 [QSA,L]
Reply With Quote
  #20  
Old 04-10-2009, 01:31 AM
Businesss Businesss is offline
 
Join Date: Feb 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got the sitemap up at http://www.businesss-forum.com/archive/index.php but none of the links are valid.

How can I fix this so bots can read valid info?
Reply With Quote
  #21  
Old 04-10-2009, 03:19 AM
shabbirbhimani's Avatar
shabbirbhimani shabbirbhimani is offline
 
Join Date: Nov 2004
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You already have a blank sitemap folder under your home directory,

http://www.businesss-forum.com/sitemap/

Remove that first and then get the .htaccess correctly setup. Remember to remove the "forums/"
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:12 PM.


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.04522 seconds
  • Memory Usage 2,305KB
  • Queries Executed 27 (?)
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
  • (7)bbcode_code
  • (1)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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_postinfo_query
  • fetch_postinfo
  • 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