You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is Mediawiki Skin based on Curve for SMF development repository.
4
3
Parts of this theme are licensed under [BSD 3-clause license](https://www.opensource.org/licenses/BSD-3-Clause), Others are [GPL](https://www.gnu.org/copyleft/gpl.html)
5
4
6
5
#### Versions
7
-
***1.x**: Compatible with SMF2.0
8
6
***2.x**: Compatible with SMF2.1
7
+
***1.x**: Compatible with SMF2.0 [No longer actively developed]
9
8
10
9
#### Branches organization:
11
-
****master*** - main branch, v2.0 (smfCurve2) compatible with **SMF2.1**, Supporting MediaWiki 1.39+
10
+
****master*** - main branch, v2.1 (smfCurve2) compatible with **SMF2.1**, Supporting MediaWiki 1.39+
12
11
****2.0*** - main branch, v2.0 (smfCurve2) compatible with **SMF2.1**, Supporting MediaWiki 1.31-1.35
13
-
****1.0*** - for old MediaWiki installs (Prior to 1.23)
****1.0*** - for old MediaWiki installs (Prior to 1.23)
20
17
21
18
#### Notes:
22
-
23
19
Feel free to fork this repository and make your desired changes.
24
20
25
21
Please see the [Developer's Certificate of Origin](https://github.com/SimpleMachines/smfcurve/blob/master/DCO.txt) in the repository:
@@ -29,7 +25,56 @@ by signing off your contributions, you acknowledge that you can and do license y
29
25
* fork the repository. If you are not used to Github, please check out [fork a repository](http://help.github.com/fork-a-repo).
30
26
* branch your repository, to commit the desired changes.
31
27
* sign-off your commits, to acknowledge your submission under the license of the project.
32
-
* 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](http://githacks.com/post/1168909216/how-to-create-git-aliases))
28
+
* 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](https://githacks.com/post/1168909216/how-to-create-git-aliases))
33
29
* send a pull request to us.
34
30
35
31
Finally, feel free to play around. That's what we're doing. ;)
32
+
33
+
## Installing
34
+
Add to your LocalSettings.php
35
+
```
36
+
wfLoadSkin( 'smfcurve2' );
37
+
```
38
+
39
+
To set as the default skin:
40
+
```
41
+
$wgDefaultSkin = "smfcurve2";
42
+
```
43
+
44
+
## Customizing
45
+
We provide a few simple and more advanced methods to customizing the skin.
46
+
47
+
### Simple
48
+
49
+
#### Adding the forum main menu
50
+
Add to your LocalSettings.php (After your wfLoadSkin line)
51
+
```
52
+
$wgsmfRoot = '/path/to/forum';
53
+
$wgshowSMFmenu = true;
54
+
```
55
+
56
+
#### Adding the Wiki logo where the SMF logo shows
57
+
```
58
+
$wguseLogoImage = true;
59
+
```
60
+
61
+
#### Adding the search to the sidebar
62
+
```
63
+
$wguseSideSearchBox = true;
64
+
```
65
+
66
+
### Advanced
67
+
To do more advance customizing, several files can be changed. However they are designed to allow extending the base skin.
68
+
69
+
First set in your LocalSettings.php
70
+
```
71
+
$wgDefaultSkin = "smfcurve2custom";
72
+
```
73
+
74
+
You can modify the following files depending on your needs:
75
+
- /inclues/smfCurve2SkinCustom.php
76
+
- /inclues/smfCurve2TemplateCustom.php
77
+
- /resources/script/custom.js
78
+
- /resources/css/custom.css
79
+
80
+
We have included some sample code to show how modifications may be made.
0 commit comments