Mercurial > repos > phpBB-MODs > Special_And_Normal_Rank_Images
comparison contrib/Install.xml @ 2:4d1dd45e6549
Update to v1.1.0:
* Fix problems with ranks not showing with certain configs on memberlist
* Update documentation to be easier to find
* Update instructions for combining MODs
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 15 Jun 2009 12:41:04 +0000 |
parents | 26a2404a2f38 |
children |
comparison
equal
deleted
inserted
replaced
1:26a2404a2f38 | 2:4d1dd45e6549 |
---|---|
10 | 10 |
11 <header> | 11 <header> |
12 <license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license> | 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 - Multi-Race Rank Theme changes</title> | 13 <title lang="en-gb">Special and Normal Rank Images - Multi-Race Rank Theme changes</title> |
14 <description lang="en-gb">This MOD will allow users with special ranks (e.g. Administrators) to have a normal rank theme in addition to their special rank image in topics.</description> | 14 <description lang="en-gb">This MOD will allow users with special ranks (e.g. Administrators) to have a normal rank theme in addition to their special rank image in topics.</description> |
15 <author-notes lang="en-gb"><![CDATA[These changes are dependant on both the "Special and Normal Rank Images" and "Multi-Race Rank Themes" MODs. The following instructions should be performed after installing both MODs. The changes make the Special and Normal Rank Images MOD more compatible with the Multi-Race Rank Theme MOD so that even members with special ranks can select a rank theme. | 15 <author-notes lang="en-gb"><![CDATA[These changes are dependant on both the "Special and Normal Rank Images" MOD and v1.2.x of the "Multi-Race Rank Themes" MOD. The following instructions should be performed after installing both MODs. The changes make the Special and Normal Rank Images MOD more compatible with the Multi-Race Rank Theme MOD so that even members with special ranks can select a rank theme. |
16 | 16 |
17 Note: These extra instructions do not allow users with special ranks to change the theme of their special rank, just the theme of their normal rank. A MOD may follow that allows this functionality, but the Multi-Race Rank Theme MOD and the Special and Normal Rank Images MOD are designed to extend the method used by phpBB, not replace and majorly change it.]]></author-notes> | 17 Note: These extra instructions do not allow users with special ranks to change the theme of their special rank, just the theme of their normal rank. A MOD may follow that allows this functionality, but the Multi-Race Rank Theme MOD and the Special and Normal Rank Images MOD are designed to extend the method used by phpBB, not replace and majorly change it.]]></author-notes> |
18 <author-group> | 18 <author-group> |
19 <author> | 19 <author> |
20 <realname>IBBoard</realname> | 20 <realname>IBBoard</realname> |
21 <email>phpbb@ibboard.co.uk</email> | 21 <email>phpbb@ibboard.co.uk</email> |
24 </author> | 24 </author> |
25 </author-group> | 25 </author-group> |
26 <link-group> | 26 <link-group> |
27 <link type="parent" href="Install.xml" lang="en-gb">Main instructions</link> | 27 <link type="parent" href="Install.xml" lang="en-gb">Main instructions</link> |
28 </link-group> | 28 </link-group> |
29 <mod-version>0.1.3b</mod-version> | 29 <mod-version>1.1.0</mod-version> |
30 <installation> | 30 <installation> |
31 <level>intermediate</level> | 31 <level>intermediate</level> |
32 <time>300</time> | 32 <time>300</time> |
33 <target-version>3.0.1</target-version> | 33 <target-version>3.0.5</target-version> |
34 </installation> | 34 </installation> |
35 <history> | 35 <history> |
36 <entry> | |
37 <date>2009-06-15</date> | |
38 <rev-version>1.1.0</rev-version> | |
39 <changelog lang="en-gb"> | |
40 <change>Update: Change instructions to match the alterations in v1.1.0 of the main MOD</change> | |
41 <change>Update: Try to make sure all instructions add the parameter at the end, even if other MODs are applied before or after</change> | |
42 </changelog> | |
43 </entry> | |
36 <entry> | 44 <entry> |
37 <date>2008-11-09</date> | 45 <date>2008-11-09</date> |
38 <rev-version>0.1.3b</rev-version> | 46 <rev-version>0.1.3b</rev-version> |
39 <changelog lang="en-gb"> | 47 <changelog lang="en-gb"> |
40 <change>No code updates - change to MODX 1.2.1 format</change> | 48 <change>No code updates - change to MODX 1.2.1 format</change> |
57 </history> | 65 </history> |
58 </header> | 66 </header> |
59 <action-group> | 67 <action-group> |
60 <open src="includes/functions_display.php"> | 68 <open src="includes/functions_display.php"> |
61 <edit> | 69 <edit> |
62 <find><![CDATA[* | 70 <find><![CDATA[* @param string &$rank_img_src the additional rank image source is stored here after execution, if the user has an additional rank]]></find> |
63 */ | 71 <action type="after-add"><![CDATA[ |
64 function get_user_additional_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank_img_src)]]></find> | 72 * @param int $rank_theme the rank theme set to load the extra rank from (defaulting to DEFAULT_RANK_THEME_ID)]]></action> |
65 <action type="replace-with"><![CDATA[ | 73 </edit> |
66 * @param int $rank_theme the rank theme set to load from (defaulting to DEFAULT_RANK_THEME_ID) | 74 <edit> |
67 * | 75 <find><![CDATA[function get_user_additional_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank_img_src)]]></find> |
68 */ | 76 <inline-edit> |
69 function get_user_additional_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank_img_src, $rank_theme = DEFAULT_RANK_THEME_ID)]]> | 77 <inline-find>)</inline-find> |
70 </action> | 78 <inline-action type="before-add">, $rank_theme = DEFAULT_RANK_THEME_ID</inline-action> |
79 </inline-edit> | |
71 </edit> | 80 </edit> |
72 <edit> | 81 <edit> |
73 <find><![CDATA[ get_user_rank(0, $user_posts, $rank_title, $rank_img, $rank_img_src);]]></find> | 82 <find><![CDATA[ get_user_rank(0, $user_posts, $rank_title, $rank_img, $rank_img_src);]]></find> |
74 <inline-edit> | 83 <inline-edit> |
75 <inline-find>, $rank_img_src</inline-find> | 84 <inline-find>);</inline-find> |
76 <inline-action type="after-add">, $rank_theme</inline-action> | 85 <inline-action type="before-add">, $rank_theme</inline-action> |
77 </inline-edit> | 86 </inline-edit> |
78 </edit> | 87 </edit> |
79 </open> | 88 </open> |
80 <open src="includes/ucp/ucp_profile.php"> | 89 <open src="includes/ucp/ucp_profile.php"> |
81 <edit> | 90 <edit> |
84 <inline-edit> | 93 <inline-edit> |
85 <inline-find>$user->data['user_rank'] == 0</inline-find> | 94 <inline-find>$user->data['user_rank'] == 0</inline-find> |
86 <inline-action type="replace-with">true</inline-action> | 95 <inline-action type="replace-with">true</inline-action> |
87 </inline-edit> | 96 </inline-edit> |
88 </edit> | 97 </edit> |
89 </open> | 98 </open> |
90 <open src="memberlist.php"> | 99 <open src="memberlist.php"> |
100 <edit> | |
101 <find><![CDATA[ //Reset our ranks, since show_profile() gets the values for the profile page | |
102 get_user_rank($user_rank, (($user_id == ANONYMOUS) ? false : $row['user_posts']), $memberrow['RANK_TITLE'], $memberrow['RANK_IMG'], $memberrow['RANK_IMG_SRC']);]]></find> | |
103 <inline-edit> | |
104 <inline-find>);</inline-find> | |
105 <inline-action type="before-add">, $row['user_rank_theme']</inline-action> | |
106 </inline-edit> | |
107 </edit> | |
91 <edit> | 108 <edit> |
92 <find><![CDATA[ get_user_additional_rank($data['user_rank'], $data['user_posts'], $rank_title, $rank_img, $rank_img_src);]]></find> | 109 <find><![CDATA[ get_user_additional_rank($data['user_rank'], $data['user_posts'], $rank_title, $rank_img, $rank_img_src);]]></find> |
93 <inline-edit> | 110 <inline-edit> |
94 <inline-find>, $rank_img_src</inline-find> | 111 <inline-find>);</inline-find> |
95 <inline-action type="after-add">, $data['user_rank_theme']</inline-action> | 112 <inline-action type="before-add">, $data['user_rank_theme']</inline-action> |
96 </inline-edit> | 113 </inline-edit> |
97 </edit> | 114 </edit> |
98 <edit> | 115 <edit> |
99 <find><![CDATA[ get_user_additional_rank($data['user_rank'], $data['user_posts'], $extra_rank_title, $extra_rank_img, $extra_rank_img_src);]]></find> | 116 <find><![CDATA[ get_user_additional_rank($data['user_rank'], $data['user_posts'], $extra_rank_title, $extra_rank_img, $extra_rank_img_src);]]></find> |
100 <inline-edit> | 117 <inline-edit> |
101 <inline-find>, $extra_rank_img_src</inline-find> | 118 <inline-find>);</inline-find> |
102 <inline-action type="after-add">, $data['user_rank_theme']</inline-action> | 119 <inline-action type="before-add">, $data['user_rank_theme']</inline-action> |
103 </inline-edit> | 120 </inline-edit> |
104 </edit> | 121 </edit> |
105 </open> | 122 </open> |
106 <open src="viewtopic.php"> | 123 <open src="viewtopic.php"> |
107 <edit> | 124 <edit> |
108 <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> | 125 <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> |
109 <inline-edit> | 126 <inline-edit> |
110 <inline-find>, $user_cache[$poster_id]['rank_image_src']</inline-find> | 127 <inline-find>);</inline-find> |
111 <inline-action type="after-add">, $row['user_rank_theme']</inline-action> | 128 <inline-action type="before-add">, $row['user_rank_theme']</inline-action> |
112 </inline-edit> | 129 </inline-edit> |
113 </edit> | 130 </edit> |
114 <edit> | 131 <edit> |
115 <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> | 132 <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> |
116 <inline-edit> | 133 <inline-edit> |
117 <inline-find>, $user_cache[$poster_id]['extra_rank_image_src']</inline-find> | 134 <inline-find>);</inline-find> |
118 <inline-action type="after-add">, $row['user_rank_theme']</inline-action> | 135 <inline-action type="before-add">, $row['user_rank_theme']</inline-action> |
119 </inline-edit> | 136 </inline-edit> |
120 </edit> | 137 </edit> |
121 </open> | 138 </open> |
122 </action-group> | 139 </action-group> |
123 </mod> | 140 </mod> |