Show Changes Show Changes
Edit Edit
Print Print
Recent Changes Recent Changes
Subscriptions Subscriptions
Lost and Found Lost and Found
Find References Find References
Rename Rename
Administration Page Administration Page
Search

History

2/28/2008 5:41:31 PM
-66.78.119.225
2/28/2008 5:38:50 PM
-66.78.119.225
2/28/2008 3:07:44 PM
-66.161.197.130
2/28/2008 3:01:18 PM
-66.161.197.130
2/28/2008 2:59:16 PM
-66.161.197.130
List all versions List all versions

RSS feed for the FlexWiki namespace

Bill Wheeler
.

About Me

Why I am here

Current help desk software not good for capturing, retaining and updating lessons learned. Plus needed way to document procedures, policies and such for staff. Since I have a .NET background and a legal copy of VS2003, flexwiki became my Wiki Of Choice. The beauty of open source is the source is open!

Update

My Occupation

Computer related stuff

My Goal

Retire quietly, spend rest of life far away from machines and computers. Preferrably near a beach with a view of mountains.

To Contact me

email: wixxiam.wheexer@cdotech.com (substitute els for exs) Don't spam me

FlexWiki Ramblings

Installation

V2 Comments

WikiTalk

V1 Comments

V2 Comments

I'm currently running v2.0.0.193 (binary distro) on a Win2003 server.

Wiki Language

Why can't we have an escape sequence to permit raw HTML? I'm not asking to be lectured; but it's frustrating to have the knowledge at hand, but denied the use of it. It's like telling a mechanic he can't use his favorite wrench to fix a problem!

Wouldn't it be interesting to have FlexWiki spit out SVG. Now there's a challenge! Imagine the possibilities!

FlexWiki Hacks

These are all based on the source code version 1.8.0.1696

Drop the domain name from the user identity

In Request.cs modify the following method to read as follows:

        public string AuthenticatedUserName
        {
                get
                {
                        if (User == null)
                                return null;
                        if (!User.Identity.IsAuthenticated)
                                return null;
                        return User.Identity.Name.Substring(User.Identity.Name.IndexOf("\\")+1);  
                }
        }

Allow https image links

In Formatter.cs make the following changes around line 1681:

                        // image links
                        str = Regex.Replace (str, @"([^""']|^)https(://\S*(?i:\.jpg|\.gif|\.png|\.jpeg))",
                                "$1<img src=\"HTTPSIMAGESOURCE:$2\"/>") ;  // WFW Hack
                        str = Regex.Replace (str, @"([^""']|^)http(://\S*(?i:\.jpg|\.gif|\.png|\.jpeg))",
                                "$1<img src=\"HTTPIMAGESOURCE:$2\"/>") ;
                        str = Regex.Replace (str, @"([^""'])file(://\S*(?i:\.jpg|\.gif|\.png|\.jpeg|\.doc|\.xls|\.ppt|\.txt))",
                                "$1<img src=\"FILEIMAGESOURCE:$2\"/>") ;

and around line 1911:

                private string FinalizeImageLinks(string input)
                {
                        // finalise image links
                        string str = input;
                        str = Regex.Replace (str, "HTTPIMAGESOURCE::(//\\S*)", "http:$1") ;
                        str = Regex.Replace (str, "HTTPSIMAGESOURCE::(//\\S*)", "https:$1") ; // WFW Hack
                        str = Regex.Replace (str, "FILEIMAGESOURCE::(//\\S*)", "file:$1") ;
                        return str;
                }

Forced list numbering

In Formatter.cs make the following changes around line 1006:

                else if (each.StartsWith("1."))
                {
                        each = each.Substring(2);
                        Ensure(typeof(OrderedListState));
                        ((OrderedListState)(CurrentState)).SetNesting(thisNest);
                        _Output.WriteListItem(each);
                }
                // This hack allows user to change number of list item
                // Syntax 1#xx.<content> where xx is new value WFW


                else if (each.StartsWith("1#"))


                {
                        each = each.Substring(1);
                        Ensure(typeof(OrderedListState));
                        ((OrderedListState)(CurrentState)).SetNesting(thisNest);
                        _Output.WriteListItem(each);
                }
                else
                {
                        // False alarm (just some tabs)

In HTMLWikiOutput.cs make the following changes around line 433:

                override public void WriteListItem(string each)
                {
                        if (each.StartsWith("#") && each.IndexOf(".") > 1)
                        { 
                                int index = each.IndexOf(".");
                                WriteLine("<li value='" + each.Substring(1,index-1) + "' " + css() + ">" + each.Substring(index+1) + "</li>");        
                        } else {
                                WriteLine("<li" + css() + ">" + each + "</li>");
                        }
                }
Comment
Comment

Not logged in. Log in

Welcome to the home of FlexWiki, a collaboration tool, based on WikiWiki, implemented using Microsoft .NET technologies

This is FlexWiki, an open source wiki engine.

This site supports the new NoFollow anti-spam initiative.
Change Style

Recent Topics