Code Monkey home page Code Monkey logo

smf-mediawiki-themes's Introduction

smfCurve - Curve Skin for MediaWiki

This is Mediawiki Skin based on Curve for SMF development repository. Parts of this theme are licensed under BSD 3-clause license, Others are GPL

Versions

  • 2.x: Compatible with SMF2.1
  • 1.x: Compatible with SMF2.0 [No longer actively developed]

Branches organization:

  • master - main branch, v2.1 (smfCurve2) compatible with SMF2.1, Supporting MediaWiki 1.39+
  • 2.0 - main branch, v2.0 (smfCurve2) compatible with SMF2.1, Supporting MediaWiki 1.31-1.35
  • 1.4 - for MediaWiki 1.31-1.35 (LTS)
  • 1.3 - for MediaWiki 1.27 (LTS)
  • 1.2 - for MediaWiki 1.25+
  • 1.1 - for MediaWiki 1.23 (LTS)
  • 1.0 - for old MediaWiki installs (Prior to 1.23)

Notes:

Feel free to fork this repository and make your desired changes.

Please see the Developer's Certificate of Origin in the repository: by signing off your contributions, you acknowledge that you can and do license your submissions under the license of the project.

How to contribute:

  • fork the repository. If you are not used to Github, please check out fork a repository.
  • branch your repository, to commit the desired changes.
  • sign-off your commits, to acknowledge your submission under the license of the project.
  • an easy way to do so, is to define an alias for the git commit command, which includes -s switch (reference: How to create Git aliases)
  • send a pull request to us.

Finally, feel free to play around. That's what we're doing. ;)

Installing

Add to your LocalSettings.php

wfLoadSkin( 'smfcurve2' );

To set as the default skin:

$wgDefaultSkin = "smfcurve2";

Customizing

We provide a few simple and more advanced methods to customizing the skin.

Simple

Adding the forum main menu

Add to your LocalSettings.php (After your wfLoadSkin line)

$wgsmfRoot = '/path/to/forum';
$wgshowSMFmenu = true;

Adding the Wiki logo where the SMF logo shows

$wguseLogoImage = true;

Adding the search to the sidebar

$wguseSideSearchBox = true;

Advanced

To do more advance customizing, several files can be changed. However they are designed to allow extending the base skin.

First set in your LocalSettings.php

$wgDefaultSkin = "smfcurve2custom";

You can modify the following files depending on your needs:

  • /inclues/smfCurve2SkinCustom.php
  • /inclues/smfCurve2TemplateCustom.php
  • /resources/script/custom.js
  • /resources/css/custom.css

We have included some sample code to show how modifications may be made.

smf-mediawiki-themes's People

Contributors

antes avatar illori avatar jdarwood007 avatar oldiesmann avatar sycho9 avatar xinyenfon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

smf-mediawiki-themes's Issues

Reorganazing the branches

With this system going... we may end up having tons of branches which is like 90% of them being useless... I suggest team to consider branching into;

  • curve2_latest (rename the master)
  • curve2_lts^
  • curve_latest (rename v1.4)
  • curve_lts^
  • development**

^ use this when latest version has difference compared to lts version -make sure to warn users about it-
**hopefully at certain point we mark curve as final and leave it to its grave.

right float images not work correct after installing this style

Hello,
after installing this wiki style, the wiki code for Images with text float not work correctly.

Example:
[[Image:abc.gif|left|100px]] => correct
[[Image:abc.gif|right|100px]] => Image is in the middle of the screen and text not float around it.

I created an example site on the SMF wiki for this:
http://wiki.simplemachines.org/smf/User:Lastwebpage

more about mediawiki and Images, maybe it's useful
http://www.mediawiki.org/wiki/Help:Images

Tested with IE 11 and Chrome 37 (both on Win 8.1 / 64 but both are 32 bit browsers)
Version: mediawiki 1.23.2,smfcurve 1.1.

Feature Request: toolbar

I use both this wiki skin and the SSO to link our wiki with our forum.

On the forum there is a toolbar at the top of the screen for account info (including log out etc) messages, alerts, and forum search.

This is a feature request to add that toolbar to the top of the smfcurve skin (with the search feature including and defaulting to a wiki search)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.