changeset 15:a3694cc11d69

* Add first two update changes to 1.2.4 upgrade instructions no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Mon, 15 Jun 2009 19:58:35 +0000
parents 7f85fc163738
children f78621bde952
files contrib/Upgrade-1.2.4.xml
diffstat 1 files changed, 18 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/Upgrade-1.2.4.xml	Mon Jun 15 19:51:29 2009 +0000
+++ b/contrib/Upgrade-1.2.4.xml	Mon Jun 15 19:58:35 2009 +0000
@@ -12,8 +12,10 @@
 		<title lang="en-gb">Multi-Race Rank Themes - Upgrade Instructions</title>
 		<description lang="en-gb">This MOD will allow you to add, modify and remove rank themes.
 
-Rank themes are selectable collections of ranks that users can choose to use, allowing RPG forums to have different 'races' or allowing 'normal' forums to provide an set of alternative icon images for their users.</description>
-		<author-notes lang="en-gb">These changes should upgrade a working v1.2.4 install of the Multi-Race Rank Themes MOD to v1.3.0, however re-installing the MOD from scratch on a clean forum is encouraged where possible to reduce the potential for problems.</author-notes>
+Rank themes are selectable collections of ranks that normal users can choose to use, allowing RPG forums to have different 'races' or allowing 'normal' forums to provide an set of alternative icon images for their users.
+
+Note that users with "special ranks" (normally Administrators etc.) will not get a theme selection in the UCP as the special rank is their rank theme. If users with special ranks want a themed rank image then you need to also install my "Special and Normal Rank Images" MOD.</description>
+		<author-notes lang="en-gb">These changes should upgrade a working v1.2.4 install of the Multi-Race Rank Themes MOD to v1.3.2, however re-installing the MOD from scratch on a clean forum is encouraged where possible to reduce the potential for problems.</author-notes>
 		<author-group>
 			<author>
 				<realname>IBBoard</realname>
@@ -68,6 +70,20 @@
 				</action>
 			</edit>
 		</open>
+		<open src="includes/acp/acp_ranks.php">
+			<edit>
+				<find><![CDATA[				if ($rank_theme < DEFAULT_RANK_THEME_ID)
+				{
+					$special_rank = 1;]]></find>
+				<action type="replace-with"><![CDATA[				if ($rank_theme < 0)
+				{
+					$special_rank = 1; //Stick with the phpBB convention and use magic numbers for the "special rank" value]]></action>
+			</edit>
+			<edit>
+				<find><![CDATA[				$theme_public = request_var('theme_public', 1);]]></find>
+				<action type="replace-with"><![CDATA[				$theme_public = request_var('theme_public', RANK_THEME_PUBLIC);]]></action>
+			</edit>
+		</open>
 		<open src="includes/acp/acp_users.php">
 			<edit>
 				<find><![CDATA[					$rank_id = request_var('user_rank', 0);]]></find>