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

Reply
 
Thread Tools
TFSEO Google Sitemap Generator (URL rewriting support) Details »»
TFSEO Google Sitemap Generator (URL rewriting support)
Version: 1.1, by paketeto paketeto is offline
Developer Last Online: Feb 2009 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 12-07-2008 Last Update: 12-08-2008 Installs: 25
Additional Files  
No support by the author.

Google's sitemap with the URL rewriting of TFSEO.

If you dont know TFSEO look at: https://vborg.vbsupport.ru/showthread.php?t=173738

All credit goes to Superjeff, TFSEO'S creator, and i hope he can include and improve this code to merge it seamlessly into TFSEO.

READ CAREFULLY:
ONLY WORKS WITH METHOD 2 OF TFSEO (MEDIUM), with URL STRUCTURE SET TO DIRECTORY (THE FIRST ONE)

---------------------------------------


1. Add this line to your htaccess rules:

RewriteRule (.*)\.xml(.*) $1.php$2 [nocase]


2. Open sitemap.php and fill the required data.


3. Upload sitemap.php to the root of your forum.


4. Write in browser www.yourfoum.com/sitemap.php to generate the xml google sitemap.


About the rewrite rule:
What this does is it turns on the rewrite rule (allowing you to modify how URLs are handled, essentially) and adds the logic that allows a file.php to be intepreted as file.xml.

This now means that if you put sitemap.xml into your browser you'll be viewing the output from sitemap.php and that's crucial because now when Google looks for sitemap.xml it's viewing live data from your PHP script. This means that your sitemap.xml file will never be inaccurate.

So now you only must go to

http://www.google.com/webmasters/too...um/sitemap.xml

each you time you want to tell google to index the changes of your sitemap. The xml is generated by the php code on the fly so is always correct


limitations: Writes only home, forums and threads urls (i think is enough for most uses).

-----------------------------------
v1.1: Added parameters for Home, improved defaults value for frequency and priority.

Supporters / CoAuthors

Show Your Support

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

Comments
  #12  
Old 12-13-2008, 07:42 PM
paketeto paketeto is offline
 
Join Date: Nov 2008
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Finally, SuperJeff accepted to integrate this mod in TFSEO. So soon, we will have a very powerfull and free alternative to seo our vbulletin forum, without the need of manually editing files, all from control panel.

Regards!
Reply With Quote
  #13  
Old 12-14-2008, 11:55 AM
yahsuah yahsuah is offline
 
Join Date: Jul 2005
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by paketeto View Post
Finally, SuperJeff accepted to integrate this mod in TFSEO. So soon, we will have a very powerfull and free alternative to seo our vbulletin forum, without the need of manually editing files, all from control panel.

Regards!
We are waiting this
Reply With Quote
  #14  
Old 12-15-2008, 04:08 AM
Kem Kem is offline
 
Join Date: Aug 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
Error de lectura XML: no se encuentra elemento
Ubicaci?n: http://geekside.net/foros/sitemap.php
N?mero de l?nea 7970, columna 1:
Spanish.

I get that error, it could connect successful to the mysql, but im getting that error. :/
Reply With Quote
  #15  
Old 12-15-2008, 06:09 PM
paketeto paketeto is offline
 
Join Date: Nov 2008
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think this plugin is not ready for urls different than www.xxxxxxx.xxx

I suggest you to wait for the next release of TFSEO, because his creator agreed to include and improve my code to work seemlesly with TFSEO.

He also agreed to include some code i wrote including stopwords for urls, with smart options.
With this, we wont need much more to improve the seo of our forums.


Quote:
Originally Posted by Kem View Post
Code:
Error de lectura XML: no se encuentra elemento
Ubicaci?n: http://geekside.net/foros/sitemap.php
N?mero de l?nea 7970, columna 1:
Spanish.

I get that error, it could connect successful to the mysql, but im getting that error. :/
Reply With Quote
  #16  
Old 12-16-2008, 04:02 AM
Kem Kem is offline
 
Join Date: Aug 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another error ^^

Code:
Error de lectura XML: no se encuentra elemento
Ubicaci?n: http://www.geekside.net/foros/sitemap.php
N?mero de l?nea 7998, columna 1:
Thanks for reply
Reply With Quote
  #17  
Old 01-06-2009, 05:20 PM
milon_tsf milon_tsf is offline
 
Join Date: Jul 2008
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi - I just installed, and get the following error when trying to run the script:

Quote:
The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

The following tags were not closed: urlset. Error processing resource
As far as I can see, it has mapped most of the pages and just stops half way through another. Any ideas?

Thanks
Reply With Quote
  #18  
Old 01-20-2009, 07:21 PM
joe1989 joe1989 is offline
 
Join Date: Apr 2008
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perhaps this mod is not compatible with 3.8?

Just a thought... does anyone know if this mod works in 3.8??
Reply With Quote
  #19  
Old 01-21-2009, 03:36 PM
kfiasche81 kfiasche81 is offline
 
Join Date: Sep 2004
Location: iTALY
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i receive this error..

Code:
Errore interpretazione XML: contenuto illegale dopo l'elemento
Indirizzo: http://www.iltermitano.it/forum/sitemap.php
Linea numero 2, colonna 1:<b>Warning</b>:  mysql_num_rows(): supplied argument is not a valid MySQL result resource in <b>/home/iltermitano/iltermitano.it/forum/sitemap.php</b> on line <b>47</b><br />
^
Reply With Quote
  #20  
Old 01-23-2009, 08:51 PM
JamesGunner JamesGunner is offline
 
Join Date: Sep 2008
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not working anymore
Reply With Quote
  #21  
Old 01-24-2009, 12:22 AM
desconexion desconexion is offline
 
Join Date: Dec 2008
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there.

I get this error

Code:
This page contains the following errors:

error on line 7163 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.
Any solutions?
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 05:15 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.04971 seconds
  • Memory Usage 2,308KB
  • 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
  • (5)bbcode_code
  • (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
  • (2)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_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