! Added /team_mods/ back to the repo
nas

nas commited on 2010-11-30 09:50:56
Showing 2 changed files, with 51 additions and 0 deletions.

... ...
@@ -0,0 +1,34 @@
1
+<?xml version="1.0"?>
2
+<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
3
+
4
+<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
5
+	<id>SimpleDeskTeam:OnlineOnlyGroup</id>
6
+	<version>1.0</version>
7
+
8
+	<file name="$sourcedir/BoardIndex.php">
9
+		<operation>
10
+			<search position="replace"><![CDATA[	if (!empty($settings['show_group_key']))
11
+		$context['membergroups'] = cache_quick_get('membergroup_list', 'Subs-Membergroups.php', 'cache_getMembergroupList', array());]]></search>
12
+			<add><![CDATA[	if (!empty($settings['show_group_key']))
13
+		{
14
+			$context['membergroups'] = array();
15
+			foreach ($context['online_groups'] as $group)
16
+			{
17
+				if ($group['color'] != '' && $group['hidden'] == 0 && $group['id'] != 3) // so, has a colour, is visible and isn't Moderator
18
+					$context['membergroups'][] = '<a href="' . $scripturl . '?action=groups;sa=members;group=' . $group['id'] . '" style="color: ' . $group['color'] . '">' . $group['name'] . '</a>';
19
+			}
20
+		}]]></add>
21
+		</operation>
22
+	</file>
23
+	<file name="$sourcedir/Subs-MembersOnline.php">
24
+		<operation><!-- get extra info we didn't have before into the query -->
25
+			<search position="before"><![CDATA[mg.id_group, mg.group_name]]></search>
26
+			<add><![CDATA[, mg.hidden]]></add>
27
+		</operation>
28
+		<operation><!-- and provide it to our array later -->
29
+			<search position="before"><![CDATA['color' => $row['online_color']]]></search>
30
+			<add><![CDATA[,
31
+				'hidden' => $row['hidden']]]></add><!-- not adding a comma because the other one didn't -->
32
+		</operation>
33
+	</file>
34
+</modification>
0 35
\ No newline at end of file
... ...
@@ -0,0 +1,17 @@
1
+<?xml version="1.0"?>
2
+<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
3
+<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
4
+	<id>SimpleDeskTeam:OnlineOnlyGroup</id>
5
+	<name>Online Only Groups in the Group Key</name>
6
+	<version>1.0</version>
7
+	<type>modification</type>
8
+
9
+	<install for="2.0 RC2, 2.0 RC3">
10
+		<modification type="file">install20.xml</modification>
11
+	</install>
12
+	
13
+	<uninstall for="2.0 RC2, 2.0 RC3">
14
+		<modification type="file" reverse="true">install20.xml</modification>
15
+	</uninstall>
16
+
17
+</package-info>
0 18
\ No newline at end of file
1 19