5
|
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
|
2 <?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?>
|
|
3 <!--For security purposes, please check: http://www.phpbb.com/mods/ for the
|
|
4 latest version of this MOD. Although MODs are checked before being
|
|
5 allowed in the MODs Database there is no guarantee that there are no
|
|
6 security problems within the MOD. No support will be given for MODs not
|
|
7 found within the MODs Database which can be found at
|
|
8 http://www.phpbb.com/mods/-->
|
|
9 <mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.2.1.xsd">
|
|
10
|
|
11 <header>
|
|
12 <license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
|
|
13 <title lang="en-gb">Special and Normal Rank Images - Subsilver2 style</title>
|
|
14 <description lang="en-gb">This MOD will show a progress bar for each user, showing how far they have progressed towards the next rank in a rank set. These instructions modify subsilver2-based templates.</description>
|
|
15 <author-notes lang="en-gb"><![CDATA[The styling used by this mod is entirely arbitrary and was included as an example. You may wish to use different HTML and CSS for your template.]]></author-notes>
|
|
16 <author-group>
|
|
17 <author>
|
|
18 <realname>IBBoard</realname>
|
|
19 <email>phpbb@ibboard.co.uk</email>
|
|
20 <username>IBBoard</username>
|
|
21 <homepage>http://www.ibboard.co.uk</homepage>
|
|
22 </author>
|
|
23 </author-group>
|
|
24 <link-group>
|
|
25 <link type="parent" href="Install.xml" lang="en-gb">Main instructions</link>
|
|
26 </link-group>
|
|
27 <mod-version>0.2</mod-version>
|
|
28 <installation>
|
|
29 <level>intermediate</level>
|
|
30 <time>180</time>
|
|
31 <target-version>3.0.5</target-version>
|
|
32 </installation>
|
|
33 <history>
|
|
34 <entry>
|
|
35 <date>2009-06-15</date>
|
|
36 <rev-version>0.2</rev-version>
|
|
37 <changelog lang="en-gb">
|
|
38 <change>Add initial instructions for subsilver2</change>
|
|
39 </changelog>
|
|
40 </entry>
|
|
41 </history>
|
|
42 </header>
|
|
43 <action-group>
|
|
44 <open src="styles/subsilver2/template/memberlist_view.html">
|
|
45 <edit>
|
|
46 <find><![CDATA[
|
|
47 <!-- IF RANK_IMG -->
|
|
48 <tr>
|
|
49 <td align="center">{RANK_IMG}</td>
|
|
50 </tr>
|
|
51 <!-- ENDIF -->]]></find>
|
|
52 <action type="after-add"><![CDATA[
|
|
53 <!-- IF PERCENTAGE_PROGRESS_NUM > -1 -->
|
|
54 <tr>
|
|
55 <td>{L_PROGRESS_TO_NEXT_RANK}<div class="rank_progress_bar"><span style="width:{PERCENTAGE_PROGRESS_NUM}%" class="bar"></span><span>{PERCENTAGE_PROGRESS}</span></div></td>
|
|
56 </tr>
|
|
57 <!-- ENDIF -->]]>
|
|
58 </action>
|
|
59 </edit>
|
|
60 </open>
|
|
61 <open src="styles/subsilver2/template/viewtopic_body.html">
|
|
62 <edit>
|
|
63 <find><![CDATA[ <!-- IF postrow.RANK_IMG -->
|
|
64 <tr>
|
|
65 <td>{postrow.RANK_IMG}</td>
|
|
66 </tr>
|
|
67 <!-- ENDIF -->]]></find>
|
|
68 <action type="after-add"><![CDATA[
|
|
69 <!-- IF postrow.PERCENTAGE_PROGRESS_NUM > -1 -->
|
|
70 <tr>
|
|
71 <td>{L_PROGRESS_TO_NEXT_RANK}<div class="rank_progress_bar"><span style="width:{postrow.PERCENTAGE_PROGRESS_NUM}%" class="bar"></span><span>{postrow.PERCENTAGE_PROGRESS}</span></div></td>
|
|
72 </tr>
|
|
73 <!-- ENDIF -->]]>
|
|
74 </action>
|
|
75 </edit>
|
|
76 </open>
|
|
77 <open src="styles/subsilver2/themes/stylesheet.css">
|
|
78 <edit>
|
|
79 <find><![CDATA[/* Misc
|
|
80 ------------ */]]></find>
|
|
81 <action type="after-add"><![CDATA[.rank_progress_bar {
|
|
82 border: 1px solid #A9B8C2;
|
|
83 margin-right: 1em;
|
|
84 position: relative;
|
|
85 clear:right
|
|
86 }
|
|
87 .rank_progress_bar span {
|
|
88 z-index:2;
|
|
89 position:relative
|
|
90 }
|
|
91 .rank_progress_bar .bar {
|
|
92 background-color: #fff;
|
|
93 border-right: 1px solid #A9B8C2;
|
|
94 display:block;
|
|
95 height: 100%;
|
|
96 z-index:1;
|
|
97 position:absolute;
|
|
98 top: 0;
|
|
99 left: 0
|
|
100 }]]></action>
|
|
101 </edit>
|
|
102 </open>
|
|
103 </action-group>
|
|
104 </mod>
|