0
|
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">User Rank Progression Bar - Special and Normal Rank MOD Integration</title>
|
1
|
14 <description lang="en-gb">These additional instructions provide integration with the Special and Normal Rank Images MOD (v1.1.0, which will become v1.2.0) so that users with both a special and normal rank can see their progress towards the next rank.</description>
|
0
|
15 <author-group>
|
|
16 <author>
|
|
17 <realname>IBBoard</realname>
|
|
18 <email>phpbb@ibboard.co.uk</email>
|
|
19 <username>IBBoard</username>
|
|
20 <homepage>http://www.ibboard.co.uk</homepage>
|
|
21 </author>
|
|
22 </author-group>
|
|
23 <link-group>
|
|
24 <link type="parent" href="../Install.xml" lang="en-gb">Main install instructions</link>
|
|
25 </link-group>
|
1
|
26 <mod-version>0.2</mod-version>
|
0
|
27 <installation>
|
|
28 <level>intermediate</level>
|
|
29 <time>180</time>
|
|
30 <target-version>3.0.5</target-version>
|
|
31 </installation>
|
|
32 <history>
|
|
33 <entry>
|
|
34 <date>2009-06-03</date>
|
1
|
35 <rev-version>0.2</rev-version>
|
|
36 <changelog lang="en-gb">
|
|
37 <change>Update: Replace large "find and replace" with small modifications in functions_display.php</change>
|
|
38 <change>Add: Add extra instructions to bring it up to date with v1.1.0 of the Special and Normal Rank Images MOD</change>
|
|
39 </changelog>
|
|
40 </entry>
|
|
41 <entry>
|
|
42 <date>2009-06-03</date>
|
0
|
43 <rev-version>0.1</rev-version>
|
|
44 <changelog lang="en-gb">
|
|
45 <change>Initial release</change>
|
|
46 </changelog>
|
|
47 </entry>
|
|
48 </history>
|
|
49 </header>
|
|
50 <action-group>
|
|
51 <open src="includes/functions_display.php">
|
1
|
52 <edit>
|
|
53 <find><![CDATA[* @param string &$rank_img_src the rank image source is stored here after execution]]></find>
|
|
54 <action type="after-add"></action>
|
|
55 </edit>
|
0
|
56 <edit>
|
1
|
57 <find><![CDATA[function get_user_additional_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank_img_src)]]></find>
|
|
58 <inline-edit>
|
|
59 <inline-find>$rank_img_src</inline-find>
|
|
60 <inline-action type="after-add"><![CDATA[, $percentage_progress]]></inline-action>
|
|
61 </inline-edit>
|
|
62 </edit>
|
|
63 <edit>
|
|
64 <find><![CDATA[ get_user_rank(0, $user_posts, $rank_title, $rank_img, $rank_img_src);]]></find>
|
|
65 <inline-edit>
|
|
66 <inline-find>$rank_img_src</inline-find>
|
|
67 <inline-action type="after-add"><![CDATA[, $percentage_progress]]></inline-action>
|
|
68 </inline-edit>
|
0
|
69 </edit>
|
|
70 </open>
|
|
71 <open src="memberlist.php">
|
|
72 <edit>
|
1
|
73 <find><![CDATA[get_user_rank($user_rank, (($user_id == ANONYMOUS) ? false : $row['user_posts']), $memberrow['RANK_TITLE'], $memberrow['RANK_IMG'], $memberrow['RANK_IMG_SRC']);]]></find>
|
|
74 <inline-edit>
|
|
75 <inline-find>$memberrow['RANK_IMG_SRC']</inline-find>
|
|
76 <inline-action type="after-add"><![CDATA[, $memberrow['PERCENTAGE_PROGRESS_NUM']]]></inline-action>
|
|
77 </inline-edit>
|
|
78 </edit>
|
|
79 <edit>
|
|
80 <find><![CDATA[ if (isset($cp_row['row']) && sizeof($cp_row['row']))]]></find>
|
|
81 <action type="before-add"><![CDATA[]]></action>
|
|
82 </edit>
|
|
83 <edit>
|
0
|
84 <find><![CDATA[ get_user_additional_rank($data['user_rank'], $data['user_posts'], $rank_title, $rank_img, $rank_img_src);]]></find>
|
|
85 <inline-edit>
|
|
86 <inline-find>$rank_img_src</inline-find>
|
|
87 <inline-action type="after-add"><![CDATA[, $percentage_progress]]></inline-action>
|
|
88 </inline-edit>
|
|
89 </edit>
|
|
90 <edit>
|
|
91 <find><![CDATA[get_user_additional_rank($data['user_rank'], $data['user_posts'], $extra_rank_title, $extra_rank_img, $extra_rank_img_src);]]></find>
|
|
92 <inline-edit>
|
|
93 <inline-find>$extra_rank_img_src</inline-find>
|
|
94 <inline-action type="after-add"><![CDATA[, $percentage_progress]]></inline-action>
|
|
95 </inline-edit>
|
|
96 </edit>
|
|
97 </open>
|
|
98 <open src="viewtopic.php">
|
|
99 <edit>
|
|
100 <find><![CDATA[get_user_additional_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>
|
|
101 <inline-edit>
|
|
102 <inline-find>$user_cache[$poster_id]['rank_image_src']</inline-find>
|
|
103 <inline-action type="after-add"><![CDATA[, $user_cache[$poster_id]['percentage_progress']]]></inline-action>
|
|
104 </inline-edit>
|
|
105 </edit>
|
|
106 <edit>
|
|
107 <find><![CDATA[get_user_additional_rank($row['user_rank'], $row['user_posts'], $user_cache[$poster_id]['extra_rank_title'], $user_cache[$poster_id]['extra_rank_image'], $user_cache[$poster_id]['extra_rank_image_src']);]]></find>
|
|
108 <inline-edit>
|
|
109 <inline-find>$user_cache[$poster_id]['extra_rank_image_src']</inline-find>
|
|
110 <inline-action type="after-add"><![CDATA[, $user_cache[$poster_id]['percentage_progress']]]></inline-action>
|
|
111 </inline-edit>
|
|
112 </edit>
|
|
113 </open>
|
|
114 </action-group>
|
|
115 </mod>
|