Mercurial > repos > phpBB-MODs > Special_And_Normal_Rank_Images
comparison contrib/Install.xml @ 1:26a2404a2f38
Initial commit of v1.0.1 instructions
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 07 Jun 2009 17:55:54 +0000 |
parents | |
children | 4d1dd45e6549 |
comparison
equal
deleted
inserted
replaced
0:3e2c3e355f94 | 1:26a2404a2f38 |
---|---|
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 - 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> | |
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. | |
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> | |
18 <author-group> | |
19 <author> | |
20 <realname>IBBoard</realname> | |
21 <email>phpbb@ibboard.co.uk</email> | |
22 <username>IBBoard</username> | |
23 <homepage>http://www.ibboard.co.uk</homepage> | |
24 </author> | |
25 </author-group> | |
26 <link-group> | |
27 <link type="parent" href="Install.xml" lang="en-gb">Main instructions</link> | |
28 </link-group> | |
29 <mod-version>0.1.3b</mod-version> | |
30 <installation> | |
31 <level>intermediate</level> | |
32 <time>300</time> | |
33 <target-version>3.0.1</target-version> | |
34 </installation> | |
35 <history> | |
36 <entry> | |
37 <date>2008-11-09</date> | |
38 <rev-version>0.1.3b</rev-version> | |
39 <changelog lang="en-gb"> | |
40 <change>No code updates - change to MODX 1.2.1 format</change> | |
41 </changelog> | |
42 </entry> | |
43 <entry> | |
44 <date>2008-05-10</date> | |
45 <rev-version>0.1.2b</rev-version> | |
46 <changelog lang="en-gb"> | |
47 <change>Update: Change instructions to match the alterations in 0.1b4 of the main "Special and Normal Rank Images" mod.</change> | |
48 </changelog> | |
49 </entry> | |
50 <entry> | |
51 <date>2008-04-13</date> | |
52 <rev-version>0.1.1a</rev-version> | |
53 <changelog lang="en-gb"> | |
54 <change>Initial release</change> | |
55 </changelog> | |
56 </entry> | |
57 </history> | |
58 </header> | |
59 <action-group> | |
60 <open src="includes/functions_display.php"> | |
61 <edit> | |
62 <find><![CDATA[* | |
63 */ | |
64 function get_user_additional_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank_img_src)]]></find> | |
65 <action type="replace-with"><![CDATA[ | |
66 * @param int $rank_theme the rank theme set to load from (defaulting to DEFAULT_RANK_THEME_ID) | |
67 * | |
68 */ | |
69 function get_user_additional_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank_img_src, $rank_theme = DEFAULT_RANK_THEME_ID)]]> | |
70 </action> | |
71 </edit> | |
72 <edit> | |
73 <find><![CDATA[ get_user_rank(0, $user_posts, $rank_title, $rank_img, $rank_img_src);]]></find> | |
74 <inline-edit> | |
75 <inline-find>, $rank_img_src</inline-find> | |
76 <inline-action type="after-add">, $rank_theme</inline-action> | |
77 </inline-edit> | |
78 </edit> | |
79 </open> | |
80 <open src="includes/ucp/ucp_profile.php"> | |
81 <edit> | |
82 <!-- Do a partial find and replace to make it forward compatible with planned changes to Multi-Race Rank Theme MOD --> | |
83 <find><![CDATA[ if ($user->data['user_rank'] == 0]]></find> | |
84 <inline-edit> | |
85 <inline-find>$user->data['user_rank'] == 0</inline-find> | |
86 <inline-action type="replace-with">true</inline-action> | |
87 </inline-edit> | |
88 </edit> | |
89 </open> | |
90 <open src="memberlist.php"> | |
91 <edit> | |
92 <find><![CDATA[ get_user_additional_rank($data['user_rank'], $data['user_posts'], $rank_title, $rank_img, $rank_img_src);]]></find> | |
93 <inline-edit> | |
94 <inline-find>, $rank_img_src</inline-find> | |
95 <inline-action type="after-add">, $data['user_rank_theme']</inline-action> | |
96 </inline-edit> | |
97 </edit> | |
98 <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> | |
100 <inline-edit> | |
101 <inline-find>, $extra_rank_img_src</inline-find> | |
102 <inline-action type="after-add">, $data['user_rank_theme']</inline-action> | |
103 </inline-edit> | |
104 </edit> | |
105 </open> | |
106 <open src="viewtopic.php"> | |
107 <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> | |
109 <inline-edit> | |
110 <inline-find>, $user_cache[$poster_id]['rank_image_src']</inline-find> | |
111 <inline-action type="after-add">, $row['user_rank_theme']</inline-action> | |
112 </inline-edit> | |
113 </edit> | |
114 <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> | |
116 <inline-edit> | |
117 <inline-find>, $user_cache[$poster_id]['extra_rank_image_src']</inline-find> | |
118 <inline-action type="after-add">, $row['user_rank_theme']</inline-action> | |
119 </inline-edit> | |
120 </edit> | |
121 </open> | |
122 </action-group> | |
123 </mod> |