Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Google Sitemap XML Infusion

www.php-fusion.co.uk/infusions/addondb/img/addon_logo.pngGoogle XML Sitemap Infusion
For PHP Fusion 7.x
Version: 3.00 (2010.04.12)
Author: Arda Kilicdagi (SoulSmasher)
Web: www.soulsmasher.net , www.phpfusionturkiye.com

Within this infusion, you can generate Google XML sitemaps instantly for your PHP-Fusion based website

Features:
---------------------
1-Generating a sitemap within one click
2-If the panel is activated, the sitemap.xml file is generated automatically (default: each 24 hours)
3-Force Generating option for admins
4-Because sitemap.xml will be a static content, when google pings your sitemap, it won't exhaust your sql
5-Submitting your sitemap instantly with one click to popular search engines
6-Quick navigation on sitemapxml_panel for admins
7-There's also a file called sitemap.php in root if you want the xml to generate dynamically on each request (deleting that file doesn't affect the sitemap.xml)

Current Translations:
--------------------
Danish (Thanks, Helmuth)
English
Turkish
Russian (Thanks, sbr80)
German (Thanks, slaughter)
Hungarian (Thanks, Rottenbacher Tamás ( sYska/!/ ))
Spanish (Thanks, NobNob)
Dutch (Thanks, Martijn78)
Polish
Swedish (Thanks, etxgmg!)

Installation:
--------------------
1-Upload everything under the folder "files" to your PHP-Fusion's base folder
2-After the upload, chmod the sitemap.xml file to 777
3-Go to admin panel/system administration/infusions and activate "Google Sitemap"
4-Sitemap XML Panel will be added automatically to your website at lower center panel, which'll trigger Sitemap generation. The contents of the panel won't be shown to normal members.

From the admin interface, you can see the last time that sitemap is generated, and re-generate instantly anytime you want. You can also submit your sitemap to popular search engines via one click


FAQ:
--------------------
*To some users , this error message may occur:
Error loading stylesheet: A network error occured loading an XSLT stylesheet:http://www.site.com/infusions/sitemapxml/sitemap.xsl
Actually, this isn't an issue, just a simple misconfiguation error by admins:
Because you submitted your website as http://www.yoursite.com/sitemap.xml, and the website setting at admin panel is: http://yoursite.com/ (or opposite)
To fix this: Go to admin panel/infusions/google sitemap, and change http:// part (add www, or delete it, same as your submission url)
OR please check this post for a .htaccess solution: http://www.phpfusion-mods.com/forum/viewthread.php?thread_id=7819&rowstart=140#post_45429


Tips:
--------------------
If you disabled your left or right panels on your website, for sitemap xml recreating cronjob, i suggest you to add the sitemapxml_panel as l-ctr and make it show on all pages
Update interval's value is set as 86400 (secs), which is equal to 1 day time period. You can easily increase or decrease the setting via admin panel


Update:
--------------------
Sorry, this new version has some major changes, so the cleanest way to do is reinstall from scratch:
Firstly defuse the old infusion, delete the old files, then upload new files and infuse again.

Version History:
--------------------
3.00 - Shiny new interface for sitemaps for easier administration (suggestion by kneekoo, thanks!)
Firma Rehberi (Company guide system) included
All language files and the infusion is now lighter.
Now all contents have limiter value.
Some queries are optimized.
Dutch Locale Updated by Martijn78
Swedish Locale Included (Thanks, etxgmg!)
2.60 - Sitemap Submission page is now internal
A tiny bug is fixed for pro_download_panel
A tiny locale error is fixed in admin panel
2.51 - A tiny bug fixed in infusion.php and a typo fixed in locales(Thanks Sharky!)
Custom website url now gets / at the end of value
Sitemap xml generator function make_sitemapxml() improved a bit for fclose() function.
2.50 - Custom URL Inclusion to XML file is now available
Now admins can set website's url from the sitemap administration (advanced setting for domain redirections etc.)
Dutch Locale Included (Thanks, Martijn78)
2.14 - Ti Blog System URL Structure Fixed
Spanish Locale Included (Thanks, NobNob!)
Articles now go to articles.php instead of readarticle.php
2.13 - Member profiles are now supported
Hungarian Locales Included (Thanks, Rottenbacher Tamás ( sYska/!/ ))
A Tiny bug on articles priority is fixed
2.12 - A tiny bug is fixed in admin panel that prevented to save settings in some browsers
Ti Blog System and Kroax Categories enabled
Some minor code cleanup and fix in sitemap_functions.php
2.11 - A tiny locale fix on admin page (thanks sbr80 for reporting)
Tiny code cleanups in sitemap_functions.php
Added Russian Locale (Thanks sbr80 :))
Added German Locale (Thanks slaughter :))
2.10 - Sitemap update interval can now be selected via admin area
Photogallery System is now supported
Pro Download Panel, Kroax and Varcade systems are now supported
Admin can enable/disable each section in sitemap now
a tiny bug on weblink categories is fixed
Access controls of weblinks added in queries
Articles query improved
2.01 - Threads limiter fixed
Downloads xml parsing fixed
2.00 - Fixed Date Issue on old PHP versions
Dropped Weblinks And Forum Cats (i think weblinks are bad for seo, also forum cats are not required when they're forums)
Added News Cats
All Priorpty and Frequency Values Can Be Set Via Admin Panel
Added Dynamic Version Of Sitemap (sitemap.php at root folder)
1.05 - Output handling issue fixed at admin panel for adding text to title
XML sitemap now has a better interface
1.04 - File generation date showing fixed
1.03 - Weblink cat bug fixed
1.02 - Threads bug fixed
1.01 - Weblink bug fixed

Enjoy ;)



-- View this Addon --
Nice Infusion. Worked 'straight out of the box' - but I did disable Profiles.

According to sitemaps.org/protocol.php#submit_robots we should also be putting this in our robots.txt file:

CodeDownload  
Sitemap: http://www.example.com/sitemap.xml

Hello Arda,

Some errors with your Sitemap in 7.02 to report for you...

Quote

sitemapxml/sitemap_functions.php
Undefined index: firmarehbericats_enabled Line: 457


Quote

sitemapxml/sitemap_functions.php
Undefined index: forums_limit Line: 287


Quote

sitemapxml/sitemap_functions.php
Undefined index: firmarehberi_enabled Line: 440


Quote

sitemapxml/sitemap_functions.php
Undefined index: weblinkcats_limit Line: 262


Quote

sitemapxml/sitemap_functions.php
Undefined index: faqcats_limit Line: 213


Quote

sitemapxml/sitemap_functions.php
Undefined index: custompages_limit Line: 197


Quote

sitemapxml/sitemap_functions.php
Undefined index: photoalbums_limit Line: 161


Quote

sitemapxml/sitemap_functions.php
Undefined index: photos_limit Line: 178


Quote

sitemapxml/sitemap_functions.php
Undefined index: profiles_limit Line: 144


Quote

sitemapxml/sitemap_functions.php
Undefined index: articles_limit Line: 124


Quote

sitemapxml/sitemap_functions.php
Undefined index: articlecats_limit Line: 108


Quote

sitemapxml/sitemap_functions.php
Undefined index: news_limit Line: 75


Quote

sitemapxml/sitemap_functions.php
Undefined index: newscats_limit Line: 92


Sorry about all this mate. :)

Regards
Craig

Quote

Fangree_Craig wrote:

Hello Arda,

Some errors with your Sitemap in 7.02 to report for you...

Quote

sitemapxml/sitemap_functions.php
Undefined index: firmarehbericats_enabled Line: 457


Quote

sitemapxml/sitemap_functions.php
Undefined index: forums_limit Line: 287


Quote

sitemapxml/sitemap_functions.php
Undefined index: firmarehberi_enabled Line: 440


Quote

sitemapxml/sitemap_functions.php
Undefined index: weblinkcats_limit Line: 262


Quote

sitemapxml/sitemap_functions.php
Undefined index: faqcats_limit Line: 213


Quote

sitemapxml/sitemap_functions.php
Undefined index: custompages_limit Line: 197


Quote

sitemapxml/sitemap_functions.php
Undefined index: photoalbums_limit Line: 161


Quote

sitemapxml/sitemap_functions.php
Undefined index: photos_limit Line: 178


Quote

sitemapxml/sitemap_functions.php
Undefined index: profiles_limit Line: 144


Quote

sitemapxml/sitemap_functions.php
Undefined index: articles_limit Line: 124


Quote

sitemapxml/sitemap_functions.php
Undefined index: articlecats_limit Line: 108


Quote

sitemapxml/sitemap_functions.php
Undefined index: news_limit Line: 75


Quote

sitemapxml/sitemap_functions.php
Undefined index: newscats_limit Line: 92


Sorry about all this mate. :)

Regards
Craig


Hey craig, can you please defuse and reinfuse and recheck that ? I tried on 7.02 and am not getting those errors. Those errors happen because $sitemapsettings variable could not be found, which is generated at this line:
CodeDownload  
$sitemapsettings=dbarray(dbquery("SELECT * FROM ".DB_SITEMAPXML));



Plus it is made available in the function as:
CodeDownload  
global $sitemapsettings;



So normally that shouldn't happen.

When you defuse and reinfuse, if something occurs please let me know.
OK I done that re infused it no errors so far, we will wait.

Thanks man.
Cheers Craig,


Also if any of you need any features or have found any bugs, please let me know.
Hi,
Great infusion, worked a treat :)
Just a quick question, could the xml file have news_subject as links instead of website/news.php?readmore=**** same with articles

Question #2, could the tags infusion be added too to the checkbox list?

Many thanks
Pete
Hello, I installed version 7.02.04 this infusion, does not work.

Errore:

Quote

Table 'Sql*********.fusiond7v44_sitemapxml' doesn't existTable 'Sql510438_1.fusiond7v44_sitemapxml_customlinks' doesn't exist


I await your thoughts

Thanks
Crystal: Open /files/infusions/sitemapxml/infusion.php and rewrite all
CodeDownload  
) TYPE=MyISAM;";


to
CodeDownload  
) ENGINE=MyISAM;";


Then reinstall this infusion.
Thank you! It works perfectly! :D
I am puzzled about this infusion. I'm using this for years now but I recently start digging in its working.

Question. I have 3085 thread_id's. When I limit in the admin panel of google sitemaps the forum thread items to 100 instead of unlimited (0). I see in the sitemap.xml output old threads from 2008. That is impossible if only the latest 100 are shown. Is this a bug / error?

Question. Why is there no setting for forum posts? I think it is the most important thing to tell to google! The update frequency should be hourly as this is supported by http://www.sitemaps.org/protocol.html
Hey wanabo, sorry I'm at military service and currently I have no internet access. I'll check all my infusions after I complete my time.
Understandable! I'll hope you look in to this after your military service.
Guys I uploaded these files on V7.02.04 and I got some problems: I infused it and it's not even in my infusions list
installed and works fine.

Thanks
php 9.03.50 Version does it work ??
V9 version https://github.com/RobiNN1/PHP-Fusion-Infusions/tree/master/infusions/sitemap_panel

Quote

V9 version https://github.com/RobiNN1/PHP-Fusion-Infusions/tree/master/infusions/sitemap_panel


That's great I can see the individual files but where is a d/l'able version? Sure would like to have it.
Thread Information
Author
Replies
21 posts
Views
18469 times
Last Post
Last updated on 4 months ago
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
Users who participated in discussion: BombJe, Craig, Wanabo, steemar, Arda, Structor, Grimloch, HaYaLeT, Pete_Hes, Crystal, miskith, ikorolis, RobiNN, egecanince