Changeset 290


Ignore:
Timestamp:
Nov 30, 2003, 4:24:24 AM (18 years ago)
Author:
Earle Martin
Message:

Added example wiki.css; Build.PL now installs this in the same dir as wiki.cgi. Modified preferences.cgi to have option to hide help links in navbar, not just formatting link.

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Build.PL

    r289 r290  
    1515my @questions = (
    1616{ question =>
    17         "what's the name of the database that this site runs on?",
     17        "What's the name of the database that this site runs on?",
    1818  variable => "dbname"
    1919},
    20 { question => "and the database user that can access that database?",
     20{ question => "...the database user that can access that database?",
    2121  variable => "dbuser"
    2222  },
    23 { question => "and the password that they use to access the database?",
     23{ question => "...the password that they use to access the database?",
    2424  variable => "dbpass"
    2525  },
    26 { question => "and the machine that the database is hosted on? (blank if local)",
     26{ question => "...the machine that the database is hosted on? (blank if local)",
    2727  variable => "dbhost"
    2828  },
    29 { question => "what do you want the script to be called?",
     29{ question => "What do you want the script to be called?",
    3030  variable => "script_name",
    3131  default  => "wiki.cgi"
    3232  },
    33 { question => "what directory should I install it in?",
     33{ question => "What directory should I install it in?",
    3434  variable => "install_directory",
    3535  default  => "/usr/lib/cgi-bin/openguides/"
    3636  },
    37 { question => "what URL does the install directory map to?",
     37{ question => "What URL does the install directory map to?",
    3838  variable => "script_url",
    3939  },
    40 { question => "what directory can I use to store indexes in for searching? "
    41             . "***NOTE*** this directory must exist and be writeable by the "
    42             . "user that your script will run as.  See README for more ",
     40{ question => "What directory can I use to store indexes in for searching? "
     41            . "***NOTE*** This directory must exist and be writeable by the "
     42            . "user that your script will run as.  See README for more on this.",
    4343  variable => "indexing_directory",
    4444  default  => "/usr/lib/cgi-bin/openguides/indexes/"
    4545  },
    46 { question => "what's the URL of the wiki's stylesheet?",
     46{ question => "What's the URL of the wiki's stylesheet?",
    4747  variable => "stylesheet_url"
    4848},
    49 { question => "what's the wiki called? (should be unique)",
     49{ question => "What's the wiki called? (should be unique)",
    5050  variable => "site_name",
    5151  default  => "OpenGuides Wiki"
    5252  },
    53 { question => "do you want the navigation bar included on the home page?",
     53{ question => "Do you want the navigation bar included on the home page?",
    5454  variable => "navbar_on_home_page",
    5555  default  => "y",
    5656  type     => "y_n"
    5757  },
    58 { question => "what should the home page of the wiki be called?",
     58{ question => "What should the home page of the wiki be called?",
    5959  variable => "home_name",
    6060  default  => "Home"
    6161  },
    62 { question => "how would you describe the wiki?",
     62{ question => "How would you describe the wiki?",
    6363  variable => "site_desc",
    6464  default  => "Development site for openguides.org's software"
    6565  },
    66 { question => "what city is the wiki based in?",
     66{ question => "What city is the wiki based in?",
    6767  variable => "default_city",
    6868  default  => "London"
    6969  },
    70 { question => "what country is the wiki based in?",
     70{ question => "What country is the wiki based in?",
    7171  variable => "default_country",
    7272  default  => "United Kingdom"
    7373  },
    74 { question => "contact email address for the wiki admin?",
     74{ question => "Contact email address for the wiki admin?",
    7575  variable => "contact_email"
    7676  },
    77 { question => "what's the name of the node to use for the text formatting rules link?",
     77{ question => "What's the name of the node to use for the text formatting rules link?",
    7878  variable => "formatting_rules_node",
    7979  default  => "Text Formatting Examples"
     
    238238$build->{config}{__extra_scripts}     =
    239239                      [ "wiki.conf", "preferences.cgi", "supersearch.cgi",
    240                         "newpage.cgi", "pubcrawl.cgi" ];
     240                        "newpage.cgi", "pubcrawl.cgi", "wiki.css" ];
    241241$build->{config}{__templates}         = [
    242242                      "backlink_results.tt",
  • trunk/preferences.cgi

    r289 r290  
    33use strict;
    44use CGI;
     5
    56use Config::Tiny;
    67use OpenGuides::CGI;
     
    2627    my $pre_above    = $cgi->param("preview_above_edit_box") || 0;
    2728    my $latlong_trad = $cgi->param("latlong_traditional")    || 0;
    28     my $omit_fmt_lnk = $cgi->param("omit_formatting_link")   || 0;
     29    my $omit_hlplnks = $cgi->param("omit_help_links")        || 0;
    2930    my $rc_minor_eds = $cgi->param("show_minor_edits_in_rc") || 0;
    3031    my $cookie = OpenGuides::CGI->make_prefs_cookie(
     
    3435        preview_above_edit_box => $pre_above,
    3536        latlong_traditional    => $latlong_trad,
    36         omit_formatting_link   => $omit_fmt_lnk,
     37        omit_help_links        => $omit_hlplnks,
    3738        show_minor_edits_in_rc => $rc_minor_eds,
    3839    );
     
    4748                      preview_above_edit_box => $pre_above,
    4849                      latlong_traditional    => $latlong_trad,
    49                       omit_formatting_link   => $omit_fmt_lnk,
     50                      omit_help_links        => $omit_hlplnks,
    5051                      show_minor_edits_in_rc => $rc_minor_eds,
    5152                    }
Note: See TracChangeset for help on using the changeset viewer.