Commit graph

72 commits

Author SHA1 Message Date
Zheng Zhu
b6093aad4e Added option wgDisableLangConversion to disable langauge variant conversion, mainly for debugging and testing purpose. 2004-10-19 18:02:44 +00:00
Brion Vibber
d1e1dbf891 Escape HTMl output 2004-10-14 06:21:33 +00:00
Brion Vibber
9f507a48c9 patch from tom
Bug 697: Several XHTML errors on Special:Preferences
2004-10-13 07:31:52 +00:00
Zheng Zhu
a1b958aa71 Formatting fix (tab instead of space) 2004-09-27 15:10:26 +00:00
Zheng Zhu
14052ee5e5 Second batch of files modified to replace selected wgLang with wgContLang 2004-09-24 16:24:43 +00:00
Zheng Zhu
3edf3dbfb7 fixed missing </select> 2004-09-22 13:04:06 +00:00
Zheng Zhu
cf88f642cf only list languages with corresponding language files in the UI selection part 2004-09-22 06:30:16 +00:00
Zheng Zhu
619ac6dc0c get variants from the content language object 2004-09-22 03:56:27 +00:00
Antoine Musso
ec5fffe8ed Allow user to always preview text on editing ( implement http://bugzilla.wikipedia.org/show_bug.cgi?id=530 ) 2004-09-19 17:09:12 +00:00
Zheng Zhu
b7f4c47775 removed a debug output when setting up the dropbox for language variants 2004-09-17 18:29:15 +00:00
Zheng Zhu
54f314be69 added a field called userVariant to user's options, to specify what language variant to use (e.g. Simplified or Traditional Chinese) 2004-09-17 18:23:40 +00:00
Antoine Musso
61f26ccff5 fix require_once path 2004-09-17 15:14:38 +00:00
Zheng Zhu
0c523d41ed Choose userLanguage from the list of language names from Names.php 2004-09-17 15:09:22 +00:00
Jens Frank
7be4991983 New user option. Provides a setting to limit the image size on image description pages. 2004-09-10 00:53:31 +00:00
Antoine Musso
f62712647b Registered user can set their own language for the interface. See http://bugzilla.wikipedia.org/show_bug.cgi?id=184 2004-09-08 03:39:32 +00:00
Antoine Musso
28b8d6396b * double quotes to single quotes
* phpdoc comments
2004-09-08 01:24:35 +00:00
Antoine Musso
ba2afcd9fa Split files and classes in different packages for phpdocumentor. I probably changed some double quotes to single and used function foo () { shema 2004-09-03 23:00:01 +00:00
Antoine Musso
90155b8a97 Changing comments layout preparing for generated documentation with Phpdocumentor 2004-09-02 23:28:24 +00:00
Jens Frank
85bfd4f375 ENH#169: Provide plugin interface for skins. See also module "sampleskin" in extensions. 2004-08-27 05:23:52 +00:00
Brion Vibber
41c8b7bf72 Antiglobalization!
* Remove some unused and some useless functions from GlobalSettings.php
* wfEscapeHTML() replaced with PHP built-in htmlspecialchars().
* Moved some functions into Parser.php and Image.php
2004-08-13 15:55:59 +00:00
Tim Starling
8f147fa900 committing Hendrik Brummermann's checkPassword() patch, plus some modifications to fix a UTF-8 post-conversion problem 2004-07-30 11:13:54 +00:00
Jens Frank
4c369e626e Moved wgUserToggles to wgAllMessages to enable users to translate the option labels 2004-07-23 07:03:52 +00:00
Jens Frank
0e52250df0 Make Math rendering options user settable strings in MediaWiki namespace. First batch. 2004-07-13 18:18:34 +00:00
Gabriel Wicke
f719dca05f Reworked css include/pref/tooltip/accesskey subsystem
* accesskeys and tooltips moved to js, needs to be customized/localized at MediaWiki:Monobook.js. Saves many calls to wfMsg, reduces page size, shows access key prefix depending on browser/os. Easy to customize by changing the ta array.
* skinphptal underline and justification wired up to produce generated css
* MediaWiki:Skin.css used for anons as well
* addcss call removed from header
* separate js var file included that holds things like the stylepath and the tooltip/accesskey array
* rtl css included from generated css
2004-06-09 13:04:52 +00:00
Jens Frank
24eb7fb507 changed duplicate 'Time format' entry in user preferences to use different wfMsg's. BUG 963143 2004-05-31 20:50:01 +00:00
Evan Prodromou
940f992a19 Per request, I've added code to disable setting the real name field on login
or in user preferences. The field remains in the database, however, and
classes such as User still use it. It's just hidden from the user interface.

The configuration variable is $wgAllowRealName, which defaults to TRUE.
Admins can set it to false if they need to.

It was kind of a chop-shop job, but I'm pretty sure that clever hackers
won't be able to force in a real name anywhere.

I haven't yet made display of real names in the RDF optional; I figure
that's a lower priority.
2004-05-29 17:32:49 +00:00
Jens Frank
11a29970dc hide 'guess timezone' button if javascript is not available.
(fix for bug #928031)
2004-05-20 11:26:33 +00:00
Gabriel Wicke
39e6768051 moved section help texts inside the fieldsets, added help string for user data, some css styling for the text 2004-05-20 11:02:27 +00:00
Gabriel Wicke
29a57e5d25 mainly back to simple fieldset version, cards deactivated in favour of js toc for now 2004-05-19 20:54:00 +00:00
Jens Frank
4a7596429c Add different CardSets for rendering of preferences.
Make SkinPHPTal use the JavaScript based tabbed version, while others stay with the old fieldsets.
2004-05-17 23:18:37 +00:00
Gabriel Wicke
6af7c5ce7b After a longer phone call Erik and me agreed on working on an equivalent feature most likely based on categories that interacts better with caching. More discussion on to follow.
Removed with Erik's agreement.
2004-05-13 14:17:44 +00:00
Erik Moeller
201af52713 restore section folding 2004-05-13 12:20:59 +00:00
Gabriel Wicke
df08e4792a removed section folding 2004-05-13 11:54:19 +00:00
Erik Moeller
472272dc61 New feature:
Automatic or manual collapsing and expanding of long pages.
Pages can be collapsed automatically according to a size threshold
set in the user preferences. Pages can be collapsed manually by clicking
the "Collapse" link in the TOC.

When a page is collapsed, only the intro & TOC are displayed. The
individual TOC lines link to section views, which can be individually edited
(classic section editing).

Section editing/viewing behavior has also been improved. When a section
with subsections is viewed or edited, all subsections are also loaded.

Known issues:
- After saving a section, we return to the full article view
rather than the section view, even if we previously were in section view
mode.
- Should work with Standard and Monobook, not tested with Cologne Blue yet.
- In Monobook, no backlink to the mother article is shown during section
viewing (Gabriel, can you fix that?)
2004-05-12 13:26:36 +00:00
Gabriel Wicke
c404ec2ff3 * feed links in skinphptal (appear in toolbox in monobook)
* recent changes moved to navigation (only not directly page-related link in the toolbox is special pages now)
* accesskey in SpecialPreferences
2004-04-23 16:31:38 +00:00
Brion Vibber
93b09379fb Add experimental MathML output option for math (only works with some
browsers and requires use of an XML content type; try setting
$wgMimeType = "application/xhtml+xml" and use Mozilla).
Rearranged a couple things in prefs.
Did some refactoring in Math.php to remove some duplicated code and
figure out what is going on.
2004-04-22 08:51:04 +00:00
Evan Prodromou
c1d1561b2f Added a user_real_name column to the user table, and added a patch SQL file
to add this field.

User.php stores and fetches the field, and has accessors for it.

User login allows setting the field on account creation.

The Preferences page allows changing the real name.

The labels are available for the real name, and the explanation of the email
field on login has been expanded to include an explanation of the real name
field, too.

Update script checks for the field, and adds it if it's missing.
2004-04-18 02:28:35 +00:00
Brion Vibber
8172d54c36 Skin updates:
* Add 'pagetitle' message to customize the HTML page title format (eg, "$1 - Wikipedia Encyclopedia")
* Some XHTML fixes to Nostalgia skin, prefs
* Removing the unfinished Smarty skins, renamed Standard to Classic
* Remove "gnunote" message in favor of general "copyright" msg, which is filled with the link & name in $wgRightsPage/$wgRightsURL and $wgRightsText
* Support a copyright-related icon as $wgRightsIcon (includes sample gnu-fdl.png)
* Show "Powered by MediaWiki" icon in footer (poweredby_mediawiki_88x31.png by Dan Carlson)
2004-04-11 01:25:00 +00:00
Tim Starling
191621407f Fixed notice 2004-04-09 15:22:18 +00:00
Brion Vibber
509775a7d0 XHTML clean-up. Started reformatting Preferences. Fixed some hard-coding
of 'Vikipedio' in eo.
2004-04-09 08:27:00 +00:00
Gabriel Wicke
084b03b4a0 removed debugging statements 2004-04-08 11:07:27 +00:00
Tim Starling
52a63ea7ef allowed changes in preferences, especially skin, to be immediately displayed in the "preferences saved" confirmation screen 2004-04-07 13:58:14 +00:00
Gabriel Wicke
d0bbc8e984 xhtml tweaks, non-minimized values for checked 2004-04-02 09:46:59 +00:00
Tim Starling
549d49951e Refactored (object-orientified) to make them play nice with $wgRequest 2004-04-01 13:03:05 +00:00
Gabriel Wicke
5418cdb0e1 uses Skin names from Language.php again 2004-03-28 21:01:21 +00:00
Brion Vibber
f29fd89dd8 HTTP_POST_VARS obsolete, annoying 2004-03-28 01:48:13 +00:00
Jens Frank
5e784160a4 Fixed listing of Skin names in Special:Preferences 2004-03-27 18:44:30 +00:00
Gabriel Wicke
008fc55b98 skin names as associative array 2004-03-26 22:27:43 +00:00
Brion Vibber
014093acc4 More globals and uninitialized variables fixes. Added WebRequest ($wgRequest)
object to encapsulate the handling of get/post variables:

The following grab something out of $_REQUEST. The first parameter is the
variable name and is required. The second is an optional default value:

  $wgRequest->getVal() - any type, returns NULL if no default given
  $wgRequest->getInt() - forced integer, 0 default
  $wgRequest->getText() - runs through $wgLang->recodeInput()
  $wgRequest->getBool() - return true/false
  $wgRequest->getCheck() - returns true if the var is set, even if to ""

$wgRequest strips slashes at initialization if necessary.

Also in this fine object:
  $wgRequest->wasPosted() - returns false if this wasn't a real form post,
    so we can protect against faked submissions in get urls.

There's still plenty of work to do, not everything uses the new functions
yet. To test the strict mode, do define('DEBUG_GLOBALS', 1);
2004-03-08 09:09:35 +00:00
Brion Vibber
b59ce22943 Replace the random boolean parameters on Title::getURL() with a set of
practical, clear methods:
  Title::getLocalURL() - "/wiki/index.php/Foobar" or "/wiki/index.php?title=Foobar&action=edit"
  Title::getFullUrl() - ditto with $wgServer on the front
  Title::getInternalUrl() - ditto with $wgInternalServer on the front (for some squid-related functions)
  Title::escapeLocalUrl() - local URL escaped for HTML output
  Title::escapeFullUrl() - full URL escaped for HTML output

All take an optional query parameter.

Title::getURL(), wfFullUrl() and wfFullUrlE() are now officially
deprecated and will result in instant death. wfLocalUrl() and wfLocalUrlE()
will be killed shortly; they are still used in the language files.
2004-03-07 07:26:56 +00:00