Mercurial > repos > phpBB-MODs > Special_And_Normal_Rank_Images
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/Install.xml Sun Jun 07 17:55:54 2009 +0000 @@ -0,0 +1,123 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?> +<!--For security purposes, please check: http://www.phpbb.com/mods/ for the + latest version of this MOD. Although MODs are checked before being + allowed in the MODs Database there is no guarantee that there are no + security problems within the MOD. No support will be given for MODs not + found within the MODs Database which can be found at + http://www.phpbb.com/mods/--> +<mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.phpbb.com/mods/xml/modx-1.2.1.xsd"> + + <header> + <license>http://opensource.org/licenses/gpl-license.php GNU General Public License v2</license> + <title lang="en-gb">Special and Normal Rank Images - Multi-Race Rank Theme changes</title> + <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> + <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. + +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> + <author-group> + <author> + <realname>IBBoard</realname> + <email>phpbb@ibboard.co.uk</email> + <username>IBBoard</username> + <homepage>http://www.ibboard.co.uk</homepage> + </author> + </author-group> + <link-group> + <link type="parent" href="Install.xml" lang="en-gb">Main instructions</link> + </link-group> + <mod-version>0.1.3b</mod-version> + <installation> + <level>intermediate</level> + <time>300</time> + <target-version>3.0.1</target-version> + </installation> + <history> + <entry> + <date>2008-11-09</date> + <rev-version>0.1.3b</rev-version> + <changelog lang="en-gb"> + <change>No code updates - change to MODX 1.2.1 format</change> + </changelog> + </entry> + <entry> + <date>2008-05-10</date> + <rev-version>0.1.2b</rev-version> + <changelog lang="en-gb"> + <change>Update: Change instructions to match the alterations in 0.1b4 of the main "Special and Normal Rank Images" mod.</change> + </changelog> + </entry> + <entry> + <date>2008-04-13</date> + <rev-version>0.1.1a</rev-version> + <changelog lang="en-gb"> + <change>Initial release</change> + </changelog> + </entry> + </history> + </header> + <action-group> + <open src="includes/functions_display.php"> + <edit> + <find><![CDATA[* +*/ +function get_user_additional_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank_img_src)]]></find> + <action type="replace-with"><![CDATA[ +* @param int $rank_theme the rank theme set to load from (defaulting to DEFAULT_RANK_THEME_ID) +* +*/ +function get_user_additional_rank($user_rank, $user_posts, &$rank_title, &$rank_img, &$rank_img_src, $rank_theme = DEFAULT_RANK_THEME_ID)]]> + </action> + </edit> + <edit> + <find><![CDATA[ get_user_rank(0, $user_posts, $rank_title, $rank_img, $rank_img_src);]]></find> + <inline-edit> + <inline-find>, $rank_img_src</inline-find> + <inline-action type="after-add">, $rank_theme</inline-action> + </inline-edit> + </edit> + </open> + <open src="includes/ucp/ucp_profile.php"> + <edit> + <!-- Do a partial find and replace to make it forward compatible with planned changes to Multi-Race Rank Theme MOD --> + <find><![CDATA[ if ($user->data['user_rank'] == 0]]></find> + <inline-edit> + <inline-find>$user->data['user_rank'] == 0</inline-find> + <inline-action type="replace-with">true</inline-action> + </inline-edit> + </edit> + </open> + <open src="memberlist.php"> + <edit> + <find><![CDATA[ get_user_additional_rank($data['user_rank'], $data['user_posts'], $rank_title, $rank_img, $rank_img_src);]]></find> + <inline-edit> + <inline-find>, $rank_img_src</inline-find> + <inline-action type="after-add">, $data['user_rank_theme']</inline-action> + </inline-edit> + </edit> + <edit> + <find><![CDATA[ get_user_additional_rank($data['user_rank'], $data['user_posts'], $extra_rank_title, $extra_rank_img, $extra_rank_img_src);]]></find> + <inline-edit> + <inline-find>, $extra_rank_img_src</inline-find> + <inline-action type="after-add">, $data['user_rank_theme']</inline-action> + </inline-edit> + </edit> + </open> + <open src="viewtopic.php"> + <edit> + <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> + <inline-edit> + <inline-find>, $user_cache[$poster_id]['rank_image_src']</inline-find> + <inline-action type="after-add">, $row['user_rank_theme']</inline-action> + </inline-edit> + </edit> + <edit> + <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> + <inline-edit> + <inline-find>, $user_cache[$poster_id]['extra_rank_image_src']</inline-find> + <inline-action type="after-add">, $row['user_rank_theme']</inline-action> + </inline-edit> + </edit> + </open> + </action-group> +</mod>