Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 11

GumCloudZvonkoericgillettelucperegrinesandino +5 guests

Sitemaps: Not sure if it works

This discussion is related to the Sitemaps addon.
Hi all,

I'm using Sitemaps but i'm not sure that it works. I installed and enabled the plugin, but no sitemap.index.xml file gets created in my Vanilla root.

Maybe i have some wrong folder rights or something, can anybody tell me what else is to do to make it work?

Thanx
p*
«1

Comments

  • TimTim
    Posts: 1,573
    Have you created a discussion since installing the addon? Additionally, the sitemap.index.xml gets created in the /cache/Sitemaps/ folder, not the vanilla root.

    You can still access the file via http://www.yourdomain/path/to/vanilla/sitemap.index.xml though, because I hooked into the request chain, and when a sitemap.*.xml file is requested and exists, I pipe the file's contents from its cache folder into the output.

    If the file is being generated in /cache/Sitemaps/, you're all set.

    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

  • Posts: 149
    Hi Tim,

    Nothing in my case. Sitemaps enabled, Cache CHMOD 777 but ~/cache/Sitemaps doesn't exist nor is the sitemap.index.xml possible to call. Vanilla 2.0.3

    $Configuration['EnabledPlugins']['Sitemaps'] = 'Sitemaps';
    ... in the config.php. So it is definitly working somehow

    What could it be?
  • TimTim
    Posts: 1,573
    what about $Configuration['Plugins']['Sitemaps']['Enabled'] ?

    This is a button on the dashboard menu called "Sitemaps" with a single toggle button inside. Have you pressed it?

    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

  • Posts: 149
    Hi Tim,

    Yes, Sitemaps is enabled in the dashboard. I sometimes just check the config.php and i thought > $Configuration['Plugins']['Sitemaps']['Enabled'] is the line to ensure that "enabling" has been written to the config-file.

    So Sitemaps is enabled but no xml on my server under 2.0.3, any idea. Anyone else who made it working?
  • TimTim
    Posts: 1,573
    Is DOMXML enabled on your system? It should be, would be weird if it wasn't.
    Are there any error messages in your Apache log?

    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

  • It's not working for me either.
  • I am on 2.0.6 and have a similar problem. I've installed and enabled this plugin and I have started a new discussion but no sitemap is created nor is there a cache/sitemaps/ folder.
  • Yeah, latest Vanilla version, and still isn't working.
  • TimTim
    Posts: 1,573
    I'm going to release a new version of Sitemaps soon.

    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

  • any update to this coming ? bit disappointing that vanilla 2.0 doesnt have an inbuilt sitemap feature .... this is really a critical feature of modern sites ?

    @Tim - thx for the great work on this. any ideas of ETA ?
  • TimTim
    Posts: 1,573
    When I get a chance. Hopefully this week. Working on SSO right now.

    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

  • anything happening yet ? :P
  • Hey @Tim - any news regarding this ..... really hanging to add a sitemap for SEO etc etc ?
  • Hello people, Sitemaps plugin work, you have to go http://www.yourforumvanilla.com/plugin/sitemaps/build

    Now, after this, you can find a sitemaps.index.xml in cache/Sitemaps

    Note:
    Add this in Cron schedule

    Bye!
  • Posts: 149
    @thekeeper: Thanx for your input, but for my forum under 2.0.10 this doesn't seem to work.
  • TimTim
    Posts: 1,573
    thekeeper said:

    Hello people, Sitemaps plugin work, you have to go http://www.yourforumvanilla.com/plugin/sitemaps/build

    Now, after this, you can find a sitemaps.index.xml in cache/Sitemaps

    Note:
    Add this in Cron schedule

    Bye!

    It shouldn't be necessary to cron this. The plugin is designed to update the sitemaps as necessary.

    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

  • Seems sitemaps is still not working, followed this thread, downloaded it and getting 404 at http://www.yourdomain/path/to/vanilla/sitemap.index.xml. Any solution?
  • Posts: 18
    yeah - really can't see why this isn't higher up on the importance list. no sitemap, no SEO and very hard to get content into google,bing etc ?

    can you PLEASE fix this :-|
  • using this for now http://www.xml-sitemaps.com/, but I have a small forum. Not recommended if you have tons of threads.
  • It seems that this line is not working:

    if (!C('Plugins.Sitemaps.Enabled')) return;

    If I remove all those lines from the class.sitemaps.plugin.php file it works!
  • Okay, after further research I found that the right form to ask if a plugin is enabled (Vanilla Forums Version 2.0.11) is this:

    if (!C('EnabledPlugins.Sitemaps')) return;

    After I changed all the lines it works.
  • Hmmm... still not working for me...
  • TimTim
    Posts: 1,573
    Sitemaps 0.9 Released

    - should fix the issues reported above.

    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

  • fyi @Tim sitemaps generated include private posting (i.e. threads in forums that only administrators have access to )
  • Posts: 106
    Does not seem to be working for me
    would the fact that I have vanilla in a subdirectory of the domain make a difference?
  • Posts: 11
    If the plugin does not update the sitemap,

    search:
    public function PostController_AfterDiscussionSave_Handler(&$Sender) {
    $Discussion = $Sender->EventArguments['Discussion'];
    $DiscussionPostDate = strtotime($Discussion->DateInserted);
    $DiscussionPostIndex = (int)date('Y',$DiscussionPostDate) + (int)date('d',$DiscussionPostDate);

    $LastDiscussionIndex = C('Plugin.Sitemaps.LastDiscussionIndex',0);

    if ($DiscussionPostIndex > $LastDiscussionIndex) {
    SaveToConfig('Plugin.Sitemaps.LastDiscussionIndex', $DiscussionPostIndex);
    SaveToConfig('Plugin.Sitemaps.Regenerate', TRUE);
    }
    }

    public function DiscussionController_BeforeDiscussionRender_Handler(&$Sender) {
    if (!C('Plugin.Sitemaps.Regenerate')) return;
    RemoveFromConfig('Plugin.Sitemaps.Regenerate');
    $Sender->AddJsFile($this->GetResource('js/sitemaps.js',FALSE,FALSE));
    }


    and replace with:
    public function PostController_AfterDiscussionSave_Handler(&$Sender) {
    $this->Build();
    }


    Now you can set chmod 444 on file config.php to improve safety.
  • If the ones here don't work, there are some free ones available at http://www.freesitemapsubmit.com/ . Hopefully they will work well for you.
  • Posts: 32
    Shaman's advice helped my sitemap start rebuilding after a new discussion topic is posted. It only seemed to include things from the past two days though, not all the topics that weren't put on the map during the two weeks it wasn't working properly.
  • Posts: 149
    Ieek, isn't this an approved plugin from t? Doesn't seem to work for a lot of people. Maybe it would be helpful to set its state back to "unaproved" so that people are warned.
  • Posts: 20
    phreak said:

    Ieek, isn't this an approved plugin from t? Doesn't seem to work for a lot of people. Maybe it would be helpful to set its state back to "unaproved" so that people are warned.

    Was just about to say..

Sign In or Register to comment.