annotate contrib/SpecialAndNormalRanksIntegration.xml @ 0:609491027bb4 0.1

Initial commit of v0.1 code no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Fri, 05 Jun 2009 20:32:20 +0000
parents
children d2b86ef4f74b
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 - Special and Normal Rank MOD Integration</title>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 <description lang="en-gb">These additional instructions provide integration with the Special and Normal Rank Images MOD so that users with both a special and normal rank can see their progress towards the next rank.</description>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 <author-group>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 <author>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 <realname>IBBoard</realname>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 <email>phpbb@ibboard.co.uk</email>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 <username>IBBoard</username>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 <homepage>http://www.ibboard.co.uk</homepage>
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 </author-group>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23 <link-group>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 <link type="parent" href="../Install.xml" lang="en-gb">Main install instructions</link>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 </link-group>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 <mod-version>0.1</mod-version>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 <installation>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 <level>intermediate</level>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 <time>180</time>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 <target-version>3.0.5</target-version>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 </installation>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32 <history>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33 <entry>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 <date>2009-06-03</date>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 <rev-version>0.1</rev-version>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36 <changelog lang="en-gb">
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 <change>Initial release</change>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
38 </changelog>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
39 </entry>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
40 </history>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41 </header>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
42 <action-group>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43 <open src="includes/functions_display.php">
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 <!-- The documentation for this method currently duplicates the standard method, so as this is my MOD we'll just do the easy method and replace the lot -->
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
45 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
46 <find><![CDATA[/**
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
47 * Get user's additional (normal) rank title and image if they have a special rank
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
48 *
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
49 * @param int $user_rank the current stored users rank id
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
50 * @param int $user_posts the users number of posts
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
51 * @param string &$rank_title the rank title will be stored here after execution
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
52 * @param string &$rank_img the rank image as full img tag is stored here after execution
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
53 * @param string &$rank_img_src the rank image source is stored here after execution
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
54 *
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
55 */
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
56 function get_user_additional_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank_img_src)
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
57 {
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
58 if (!empty($user_rank))
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
59 {
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
60 //Always pass 0 to save duplicating get_user_rank
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
61 get_user_rank(0, $user_posts, $rank_title, $rank_img, $rank_img_src);
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
62 }
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
63 //else the user doesn't have a special rank and so they don't have a special rank
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
64 }]]></find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
65 <action type="replace-with"><![CDATA[/**
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
66 * Get user's additional (normal) rank title and image if they have a special rank
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
67 *
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
68 * @param int $user_rank the current stored users rank id
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
69 * @param int $user_posts the users number of posts
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
70 * @param string &$rank_title the rank title will be stored here after execution
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
71 * @param string &$rank_img the rank image as full img tag is stored here after execution
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
72 * @param string &$rank_img_src the rank image source is stored here after execution
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
73 * @param int &$percent_complete the percentage of the way a user is to the next rank will be stored here after execution, where -1 meaning "not applicable"
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
74 *
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
75 */
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
76 function get_user_additional_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank_img_src, &$percent_complete)
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
77 {
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
78 if (!empty($user_rank))
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
79 {
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
80 //Always pass 0 to save duplicating get_user_rank
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
81 get_user_rank(0, $user_posts, $rank_title, $rank_img, $rank_img_src, $percent_complete);
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
82 }
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
83 //else the user doesn't have a special rank and so they don't have a special rank
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
84 }]]></action>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
85 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
86 </open>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
87 <open src="memberlist.php">
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
88 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
89 <find><![CDATA[ get_user_additional_rank($data['user_rank'], $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
90 <inline-edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
91 <inline-find>$rank_img_src</inline-find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
92 <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
93 </inline-edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
94 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
95 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
96 <find><![CDATA[get_user_additional_rank($data['user_rank'], $data['user_posts'], $extra_rank_title, $extra_rank_img, $extra_rank_img_src);]]></find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
97 <inline-edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
98 <inline-find>$extra_rank_img_src</inline-find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
99 <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
100 </inline-edit>
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="viewtopic.php">
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
104 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
105 <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>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
106 <inline-edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
107 <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
108 <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
109 </inline-edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
110 </edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
111 <edit>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
112 <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>
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 <inline-find>$user_cache[$poster_id]['extra_rank_image_src']</inline-find>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
115 <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
116 </inline-edit>
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 </open>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
119 </action-group>
609491027bb4 Initial commit of v0.1 code
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
120 </mod>