annotate Install.xml @ 2:6c9b720fa73a

Initial work on v0.2.0: * Add instructions for template changes in member profile and viewing PM no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Mon, 15 Jun 2009 14:17:38 +0000
parents d2b86ef4f74b
children a1cc13cb988d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 <?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 <!--For security purposes, please check: http://www.phpbb.com/mods/ for the
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 latest version of this MOD. Although MODs are checked before being
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 allowed in the MODs Database there is no guarantee that there are no
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 security problems within the MOD. No support will be given for MODs not
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 found within the MODs Database which can be found at
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 http://www.phpbb.com/mods/-->
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 <mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.2.1.xsd">
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 <header>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 <license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 <title lang="en-gb">User Rank Progression Bar</title>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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.</description>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 <author-notes lang="en-gb"><![CDATA[This mod behaves in the same way as Smix's Rank Progress Bar mod, but has been rewritten for efficiency, additional features and compatibility with other mods. Thanks to Smix for writing the original and to youngjediknight for first pointing me to it.
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 If you don't want the progress bar to appear in all of the locations below (e.g. you just want it in a topic but not in PMs, profile view or members list) then just ignore the changes to the relevant template (.html) file.
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 Note: If you are also installing my "Multi-Race Rank Themes" MOD then install the other mod first and then this mod. Because the additional parameter to the get_user_rank function is optional for the Multi-Race Rank Themes mod it must be the last parameter in the list.]]></author-notes>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 <author-group>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 <author>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22 <realname>IBBoard</realname>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23 <email>phpbb@ibboard.co.uk</email>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 <username>IBBoard</username>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 <homepage>http://www.ibboard.co.uk</homepage>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 </author>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 </author-group>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 <link-group>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 <link type="contrib" href="contrib/SpecialAndNormalRanksIntegration.xml" lang="en-gb">Special and Normal Ranks MOD integration</link>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 </link-group>
1
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
31 <mod-version>0.2</mod-version>
0
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32 <installation>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33 <level>intermediate</level>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 <time>600</time>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 <target-version>3.0.5</target-version>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36 </installation>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 <history>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
38 <entry>
1
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
39 <date>2009-06-15</date>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
40 <rev-version>0.2</rev-version>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
41 <changelog lang="en-gb">
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
42 <change>Add: Add templating for Memberlist, profiles and PMs</change>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
43 <change>Fix: Add missing lang value</change>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
44 <change>Fix: Add extra checks to progress calculation to handle pre-existing values and the final rank in a scheme</change>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
45 </changelog>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
46 </entry>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
47 <entry>
0
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
48 <date>2009-06-03</date>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
49 <rev-version>0.1</rev-version>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
50 <changelog lang="en-gb">
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
51 <change>Initial release - just puts progress bar on viewtopic page</change>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
52 </changelog>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
53 </entry>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
54 </history>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
55 </header>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
56 <action-group>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
57 <open src="includes/functions_display.php">
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
58 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
59 <find><![CDATA[* @param string &$rank_img_src the rank image source is stored here after execution]]></find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
60 <action type="after-add"><![CDATA[* @param int &$percent_complete the percentage of the way a user is to the next rank, where -1 means "not applicable"]]></action>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
61 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
62 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
63 <find><![CDATA[function get_user_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank_img_src)]]></find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
64 <inline-edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
65 <inline-find>, &amp;$rank_img_src</inline-find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
66 <inline-action type="after-add">, &amp;$percent_complete</inline-action>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
67 </inline-edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
68 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
69 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
70 <find><![CDATA[ if (!empty($user_rank))]]></find>
1
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
71 <action type="before-add"><![CDATA[ if (!is_int($percent_complete) || $percent_complete < 0 || $percent_complete > 100)
0
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
72 {
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
73 $percent_complete = -1;
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
74 }]]></action>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
75 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
76 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
77 <find><![CDATA[ else if ($user_posts !== false)
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
78 {]]></find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
79 <action type="after-add"><![CDATA[ $next_rank_post_count = -1;]]></action>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
80 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
81 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
82 <find><![CDATA[ if ($user_posts >= $rank['rank_min'])]]></find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
83 <action type="before-add"><![CDATA[ if ($user_posts < $rank['rank_min'])
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
84 {
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
85 $next_rank_post_count = $rank['rank_min'];
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
86 }
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
87 else
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
88 ]]>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
89 </action>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
90 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
91 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
92 <find><![CDATA[ $rank_title = $rank['rank_title'];]]></find>
1
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
93 <action type="before-add"><![CDATA[ if ($percent_complete == -1 && $next_rank_post_count > -1)
0
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
94 {
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
95 $rank_difference = $next_rank_post_count - $rank['rank_min'];
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
96 $user_progress = $user_posts - $rank['rank_min'];
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
97 $percent_complete = round(($user_progress / $rank_difference) * 100);
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
98 }
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
99 ]]>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
100 </action>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
101 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
102 </open>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
103 <open src="includes/ucp/ucp_pm_viewmessage.php">
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
104 <edit>
2
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
105 <find><![CDATA[ 'RANK_IMG' => $user_info['rank_image'],]]></find>
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
106 <action type="after-add"><![CDATA[]]></action>
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
107 </edit>
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
108 <edit>
0
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
109 <find><![CDATA[get_user_rank($user_row['user_rank'], $user_row['user_posts'], $user_row['rank_title'], $user_row['rank_image'], $user_row['rank_image_src']);]]></find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
110 <inline-edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
111 <inline-find>, $user_row['rank_image_src']</inline-find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
112 <inline-action type="after-add">, $user_row['percentage_progress']</inline-action>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
113 </inline-edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
114 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
115 </open>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
116 <open src="language/en/common.php">
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
117 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
118 <find><![CDATA[?>]]></find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
119 <action type="before-add"><![CDATA[$lang = array_merge($lang, array(
1
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
120 'PERCENTAGE_PROGRESS' => '%s%%',
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
121 'PROGRESS_TO_NEXT_RANK' => 'Progress to next rank:'
0
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
122 ));
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
123 ]]></action>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
124 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
125 </open>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
126 <open src="memberlist.php">
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
127 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
128 <find><![CDATA[ get_user_rank($row['user_rank'], $row['user_posts'], $rank_title, $rank_img, $rank_img_src);]]></find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
129 <inline-edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
130 <inline-find>$rank_img_src</inline-find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
131 <inline-action type="after-add"><![CDATA[, $percentage_progress]]></inline-action>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
132 </inline-edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
133 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
134 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
135 <find><![CDATA[ get_user_rank($data['user_rank'], (($user_id == ANONYMOUS) ? false : $data['user_posts']), $rank_title, $rank_img, $rank_img_src);]]></find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
136 <inline-edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
137 <inline-find>$rank_img_src</inline-find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
138 <inline-action type="after-add"><![CDATA[, $percentage_progress]]></inline-action>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
139 </inline-edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
140 </edit>
1
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
141 <edit>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
142 <find><![CDATA[ 'RANK_IMG_SRC' => $rank_img_src,]]></find>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
143 <action type="after-add"><![CDATA[ 'PERCENTAGE_PROGRESS_NUM' => $percentage_progress,
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
144 'PERCENTAGE_PROGRESS' => sprintf($user->lang['PERCENTAGE_PROGRESS'], $percentage_progress),]]></action>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
145 </edit>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
146 </open>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
147 <open src="styles/prosilver/template/memberlist_body.html">
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
148 <edit>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
149 <find><![CDATA[<!-- IF memberrow.RANK_IMG --><span class="rank-img">{memberrow.RANK_IMG}</span><!-- ELSE --><span class="rank-img">{memberrow.RANK_TITLE}</span><!-- ENDIF -->]]></find>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
150 <inline-action>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
151 <inline-find><![CDATA[<!-- ENDIF -->]]></inline-find>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
152 <inline-action type="after-add"><![CDATA[<!-- IF memberrow.PERCENTAGE_PROGRESS_NUM > -1 --><div class="rank_progress_bar" title="{L_PROGRESS_TO_NEXT_RANK}"><span style="width:{memberrow.PERCENTAGE_PROGRESS_NUM}%" class="bar"></span><span>{memberrow.PERCENTAGE_PROGRESS}</span></div><!-- ENDIF -->]]></action>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
153 </inline-action>
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
154 </edit>
0
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
155 </open>
2
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
156 <open src="styles/prosilver/template/memberlist_view.html">
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
157 <edit>
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
158 <find><![CDATA[<!-- IF RANK_IMG --><dd style="text-align: center;">{RANK_IMG}</dd><!-- ENDIF -->]]></find>
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
159 <action type="after-add"><![CDATA[<!-- IF PERCENTAGE_PROGRESS_NUM > -1 --><dd>{L_PROGRESS_TO_NEXT_RANK}<div class="rank_progress_bar"><span style="width:{PERCENTAGE_PROGRESS_NUM}%" class="bar"></span><span>{PERCENTAGE_PROGRESS}</span></div></dd><!-- ENDIF -->]]></action>
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
160 </edit>
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
161 <edit>
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
162 <find><![CDATA[<!-- IF RANK_IMG --><dt><!-- IF RANK_TITLE -->&nbsp;<!-- ELSE -->{L_RANK}:<!-- ENDIF --></dt> <dd>{RANK_IMG}</dd><!-- ENDIF -->]]></find>
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
163 <action type="after-add"><![CDATA[<!-- IF PERCENTAGE_PROGRESS_NUM > -1 --><dt>{L_PROGRESS_TO_NEXT_RANK}</dt><dd><div class="rank_progress_bar"><span style="width:{PERCENTAGE_PROGRESS_NUM}%" class="bar"></span><span>{PERCENTAGE_PROGRESS}</span></div></dd><!-- ENDIF -->]]></action>
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
164 </edit>
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
165 </open>
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
166 <open src="styles/prosilver/template/ucp_pm_viewmessage.html">
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
167 <edit>
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
168 <find><![CDATA[ <!-- IF RANK_IMG --><dd>{RANK_IMG}</dd><!-- ENDIF -->]]></find>
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
169 <action type="after-add"><![CDATA[ <!-- IF PERCENTAGE_PROGRESS_NUM > -1 --><dd>{L_PROGRESS_TO_NEXT_RANK}<div class="rank_progress_bar"><span style="width:{PERCENTAGE_PROGRESS_NUM}%" class="bar"></span><span>{PERCENTAGE_PROGRESS}</span></div></dd><!-- ENDIF -->]]></action>
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
170 </edit>
6c9b720fa73a Initial work on v0.2.0:
IBBoard <dev@ibboard.co.uk>
parents: 1
diff changeset
171 </open>
0
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
172 <open src="styles/prosilver/template/viewtopic_body.html">
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
173 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
174 <find><![CDATA[ <!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd>{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->]]></find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
175 <action type="after-add"><![CDATA[ <!-- IF postrow.PERCENTAGE_PROGRESS_NUM > -1 --><dd>{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></dd><!-- ENDIF -->]]>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
176 </action>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
177 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
178 </open>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
179 <open src="styles/prosilver/themes/common.css">
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
180 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
181 <find><![CDATA[.clear {]]></find>
1
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
182 <action type="before-add"><![CDATA[.rank_progress_bar {
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
183 border: 1px solid #b4bac0;
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
184 margin-right: 1em;
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
185 position: relative;
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
186 clear:right
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
187 }
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
188 .rank_progress_bar span {
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
189 z-index:2;
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
190 position:relative
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
191 }
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
192 .rank_progress_bar .bar {
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
193 background-color: #fff;
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
194 border-right: 1px solid #b4bac0;
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
195 display:block;
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
196 height: 100%;
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
197 z-index:1;
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
198 position:absolute;
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
199 top: 0;
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
200 left: 0
d2b86ef4f74b Initial work on v0.0.2:
IBBoard <dev@ibboard.co.uk>
parents: 0
diff changeset
201 }]]></action>
0
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
202 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
203 </open>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
204 <open src="viewtopic.php">
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
205 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
206 <find><![CDATA[get_user_rank($row['user_rank'], false, $user_cache[$poster_id]['rank_title'], $user_cache[$poster_id]['rank_image'], $user_cache[$poster_id]['rank_image_src']);]]></find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
207 <inline-edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
208 <inline-find>$user_cache[$poster_id]['rank_image_src']</inline-find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
209 <inline-action type="after-add"><![CDATA[, $user_cache[$poster_id]['percentage_progress']]]></inline-action>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
210 </inline-edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
211 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
212 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
213 <find><![CDATA[get_user_rank($row['user_rank'], $row['user_posts'], $user_cache[$poster_id]['rank_title'], $user_cache[$poster_id]['rank_image'], $user_cache[$poster_id]['rank_image_src']);]]></find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
214 <inline-edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
215 <inline-find>$user_cache[$poster_id]['rank_image_src']</inline-find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
216 <inline-action type="after-add"><![CDATA[, $user_cache[$poster_id]['percentage_progress']]]></inline-action>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
217 </inline-edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
218 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
219 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
220 <find><![CDATA[ 'joined' => '',]]></find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
221 <action type="before-add"><![CDATA[
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
222 'percentage_progress' => -1,]]></action>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
223 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
224 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
225 <find><![CDATA[ 'joined' => $user->format_date($row['user_regdate']),]]></find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
226 <action type="before-add"><![CDATA[
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
227 'percentage_progress' => -1,]]></action>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
228 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
229 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
230 <find><![CDATA[ 'RANK_IMG_SRC' => $user_cache[$poster_id]['rank_image_src'],]]></find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
231 <action type="after-add"><![CDATA[
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
232 'PERCENTAGE_PROGRESS_NUM' => $user_cache[$poster_id]['percentage_progress'],
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
233 'PERCENTAGE_PROGRESS' => sprintf($user->lang['PERCENTAGE_PROGRESS'], $user_cache[$poster_id]['percentage_progress']),]]></action>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
234 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
235 </open>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
236 </action-group>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
237 </mod>