Prabir's Blog

where the tech matters...

ScrewTurn Wiki Google Sitemap Generator [Update-2]

October 05
by prabir 5. October 2009 22:55

On September 30th, 2009 version 3.0 (RTW) of ScrewTurn Wiki was released to the web. It caused my previous ScrewTurn Wiki Google Sitemap generator to break down due to breaking changes in the API for ScrewTurn Wiki Engine.

One of the users commented that it was not working with version 3.0. He also gave the bug fix (thanks to Гносис, for the info as well as fix). I have also modified the Гносис fix it to show only the discussion pages in the sitemap if it contains at least one discussion or more as suggested and implemented by one of the users (Rurisoft) in the previous version as described in http://blog.prabir.me/post/Screwturn-Google-Sitemap-GeneratorUpdate.aspx .

So I have uploaded the version that contains the fix and works smoothly with ScrewTurn Wiki Version 3.0.0.333 (RTW). Following is the instruction on how to install the plugin if you are new.

Usage:

  1. First download my screwturn wiki google sitemap generator (at the end of this post).

  2. Copy the sitemap.aspx to you wiki’s root folder.

  3. Navigate to /sitemap.aspx, to check whether it works.

For the original post please look at http://blog.prabir.me/post/Screwturn-Wiki-Google-Sitemap-Generator.aspx

A live example can be seen at http://projects.prabir.me/compiler/wiki/sitemap.xml

ScrewTurn Wiki Google Sitemap Generator For v3 (RTW).zip (1.54 kb) [Downloads: 175]

In case you guys still haven’t upgraded to the newer version here is the Sitemap Generator for older versions.

ScrewTurn Wiki Google Sitemap Generator For v3 (RC1).zip (1.51 kb) [Downloads: 254]
ScrewTurn Wiki Google Sitemap Generator For v2.zip (1.06 kb) [Downloads: 203]

If you enjoyed this post, make sure you subscribe to my RSS feed!

Tags: , ,

Screwturn Google Sitemap Generator[Update]

July 19
by prabir 19. July 2009 16:01

In my previous post on Screwturn Wiki Google Sitemap Generator I had some features lacking on it.

It didn’t support the following features

  1. It's not include some static page, like: homepage (default.aspx), Page Categories (Category.aspx), All Pages (AllPages.aspx), Navigation Paths (NavPath.aspx).
  2. not support lastmod tag.
  3. Always have discussion page link even no any discuss in wiki.

Thanks to RuriSoft, he updated my Google Sitemap Generator to add these features.

screwturnWiki3-googleSitemapGenerator.zip [Update] (1.51 kb) [Downloads: 254]

A newer version is avaible which support Screwturn Wiki Version 3.0 RTW. To learn more please visit http://blog.prabir.me/post/ScrewTurn-Wiki-Google-Sitemap-Generator-Update-2.aspx or download directly from ScrewTurn Wiki Google Sitemap Generator For v3 (RTW).zip (1.54 kb) [Downloads: 175]

If you enjoyed this post, make sure you subscribe to my RSS feed!

Tags: , ,

Screwturn Wiki 3 Syntax Highlighter 2

June 22
by prabir 22. June 2009 20:18

Lately I have been very busy with my senior project. I needed to work on with my senior project website first which is using Screwturn Wiki 3.0RC. Unfortunately I didn’t find any good addins for syntax highlighting as the one I’m using on this blog. So, I decided to write it all from scratch. It took me quite a while to understand the lifecycle of formatter plugin in screwturn wiki. But soon I was all set.

You can see the live example at http://projects.prabir.me/compiler/wiki/LLVMHelloworldInC.ashx

Below I have attached the addin that I’m using currently in my wiki which I hope you guys will find it useful. Here are the step required to install the plugin. You will need to download the necessasry files from the end of this post.

  1. First of all upload the syntax highlighter files using FTP or any other mechanism to your wiki. In my case I uploaded to /compiler/wiki folder inside my sub-domain.
  2. Then go to the administration page.
  3. Click the Content Editing tab.
  4. Then click HTML Head
  5. In the wiki markup type the following code
    <link type="text/css" rel="stylesheet" href="/compiler/wiki/styles/shCore.css" />
    <link type="text/css" rel="stylesheet" href="/compiler/wiki/styles/shThemeDefault.css" />
    <script type="text/javascript" src="/compiler/wiki/scripts/shCore.js">
    </script>
    <script type="text/javascript" src="/compiler/wiki/scripts/shBrushXml.js">
    </script>
    <script type="text/javascript" src="/compiler/wiki/scripts/shBrushPlain.js">
    </script>
    <script type="text/javascript" src="/compiler/wiki/scripts/shBrushCSharp.js">
    </script>
    <script type="text/javascript"> 
            SyntaxHighlighter.config.clipboardSwf
    = '/compiler/wiki/scripts/clipboard.swf';
            SyntaxHighlighter.all();
    </script>
  6. Include necessary Javascript files to support your language of choice. shCore.js is compulsory.
  7. Then click the Save button.
  8. Now click the Providers tab.
  9. And in Provider’s DLL Management, select Browse  and point to Prabir.ScrewTurn.Wiki.SyntaxHighlighter.dll and click Upload.

That is it. You wiki now supports syntax highlighting.

Writing code in wiki:

The syntax for writing code in wiki is

{@code-language:
write code here
@}

Replace language by necessary language such as text, cpp, c and so on. You can find them in the .js files. Search for aliases.

If you deal with arrays like [x], it may give you a different formatting – not as expected (It tends to use the wiki formatting style). So I recommend you to use the following syntax rather to obtain the best output:

{@code-language:<nowiki>
type your code here
</nowiki>@}

Prabir.ScrewTurn.Wiki.SyntaxHighlighter.zip (3.09 kb) [Downloads: 373]
Syntaxhighlighterversion 2.0.320May 03 2009.zip (59.23 kb) [Downloads: 342]

Unfortunatley it doesn't support Screwturn wiki version 2.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Tags: , , ,

ASP.NET

Screwturn Wiki Google Sitemap Generator

June 19
by prabir 19. June 2009 08:45

Sitemap are one of the most vital information for SEO. Unfortunately Screwturn wiki doesn’t support it out of the box. I have using Screwturn Wiki for on of my projects (LLVM# Compiler’s Wiki), and needed to use sitemap.

After searching in the net, I stumbled up this site http://www.hookedonlinq.com/ScrewturnSitemap.ashx, which contains the source code for Google Sitemap generator. Unfortunately it seems to work only with Screwturn wiki 2.0. After examining the code, I modified it work with Screwturn Wiki 3.0.

Usage:

  1. First download my screwturn wiki google sitemap generator (at the end of this post).
  2. Copy the sitemap.aspx to you wiki’s root folder.
  3. Navigate to /sitemap.aspx, to check whether it works.

If you would like to use sitemap.xml instead of sitemap.aspx you can have a rewrite url in you web.config (included in download).

A sample Screwturn Wiki 3.0 sitemap can be found at http://projects.prabir.me/compiler/wiki/sitemap.xml. For Screwturn Wiki 2.0 sitemap example please have a look at http://www.hookedonlinq.com/Sitemap.aspx

It has been updated to support additional features. For more info please visit http://blog.prabir.me/post/Screwturn-Google-Sitemap-GeneratorUpdate.aspx . [Thanks to Rurisoft].

screwturnWiki3-googleSitemapGenerator.zip [Update] (1.51 kb) [Downloads: 254]

screwturnwiki3-googleSitemapGenerator.zip (1.75 kb) [Downloads: 155]
screwturnwiki2-googleSitemapGenerator.zip (1.06 kb) [Downloads: 203]

A newer version is avaible which support Screwturn Wiki Version 3.0 RTW. To learn more please visit http://blog.prabir.me/post/ScrewTurn-Wiki-Google-Sitemap-Generator-Update-2.aspx or download directly from ScrewTurn Wiki Google Sitemap Generator For v3 (RTW).zip (1.54 kb) [Downloads: 175]

If you enjoyed this post, make sure you subscribe to my RSS feed!

Tags: , ,

ASP.NET