|
From: <Yau...@us...> - 2007-08-29 02:48:05
|
Revision: 18
http://thevr.svn.sourceforge.net/thevr/?rev=18&view=rev
Author: Yautja_cetanu
Date: 2007-08-28 19:47:59 -0700 (Tue, 28 Aug 2007)
Log Message:
-----------
Updated throughout and checked. (Similar issues with the last commit. However I also found lots of extra spaces at the beginning of <find> which caused find to not work automatically. Again, the modx file being browsed should look better then a neat xml)
Really good though apart from a couple of issues! (very good Cdata usage!) Well done Dom for your first modx.
Modified Paths:
--------------
modx/pms/trunk/TheVR_0.1.1c.xml
Modified: modx/pms/trunk/TheVR_0.1.1c.xml
===================================================================
--- modx/pms/trunk/TheVR_0.1.1c.xml 2007-08-27 17:36:33 UTC (rev 17)
+++ modx/pms/trunk/TheVR_0.1.1c.xml 2007-08-29 02:47:59 UTC (rev 18)
@@ -154,11 +154,9 @@
require($phpbb_root_path . 'includes/functions_thevr.' . $phpEx);</action>
</edit>
<edit>
- <find>
- // Grab global variables, re-cache if necessary
- $config = $cache->obtain_config();
- </find>
+ <find>$config = $cache->obtain_config();</find>
<action type="after-add">
+
/***** START
ADDED by andrewbelcher for thevr.co.uk
This processes the URL so the correct site settings can be used.
@@ -250,12 +248,11 @@
<open src="/adm/style/acp_forums.html">
<edit>
<find>
- <![CDATA[<dt><label for="forum_perm_from">{L_COPY_PERMISSIONS}:</label><br /><span>{L_COPY_PERMISSIONS_EXPLAIN}</span></dt>
- <dd><select id="forum_perm_from" name="forum_perm_from"><option value="0">{L_NO_PERMISSIONS}</option>{S_FORUM_OPTIONS}</select></dd>
+ <![CDATA[ <dd><select id="forum_perm_from" name="forum_perm_from"><option value="0">{L_NO_PERMISSIONS}</option>{S_FORUM_OPTIONS}</select></dd>
</dl>]]>
</find>
<action type="after-add">
- <![CDATA[<dl>
+ <![CDATA[ <dl>
<dt><label for="forum_site_id">{L_SITE_ID}:</label><br /><span>{L_SITE_ID_EXPLAIN}</span></dt>
<dd><select id="forum_site_id" name="forum_site_id"><option value="0">{L_SITE_GLOBAL}</option>{S_SITE_OPTIONS}</select></dd>
</dl>]]>
@@ -281,8 +278,7 @@
<open src="/includes/constants.php">
<edit>
<find>
- // Additional tables
- </find>
+// Additional tables</find>
<action type="after-add">
//TheVR
define('SITES_TABLE', $table_prefix . 'sites');
@@ -293,8 +289,7 @@
</open>
<open src="/includes/functions_user.php">
<edit>
- <find>
- // Now make it the users default group...
+ <find> // Now make it the users default group...
group_set_user_default($user_row['group_id'], array($user_id), false);
</find>
<action type="after-add">
@@ -317,27 +312,15 @@
</open>
<open src="/includes/acp/acp_forums.php">
<edit>
- <find>
- 'prune_sticky' => request_var('prune_sticky', false),
- 'forum_password' => request_var('forum_password', '', true),
- 'forum_password_confirm'=> request_var('forum_password_confirm', '', true),
- </find>
- <action type="after-add">
- 'forum_site_id' => request_var('forum_site_id', 0),
- </action>
+ <find> 'forum_password_confirm'=> request_var('forum_password_confirm', '', true),</find>
+ <action type="after-add"> 'forum_site_id' => request_var('forum_site_id', 0),</action>
</edit>
<edit>
- <find>
- 'forum_flags' => FORUM_FLAG_POST_REVIEW,
- 'forum_password' => '',
- 'forum_password_confirm'=> '',
- </find>
- <action type="after-add">
- 'forum_site_id' => 0,
- </action>
+ <find> 'forum_password_confirm'=> '',</find>
+ <action type="after-add"> 'forum_site_id' => 0,</action>
</edit>
<edit>
- <find>
+ <find> 'S_MOVE_FORUM_OPTIONS' => make_forum_select($forum_data['parent_id'], $forum_id, false, true, false))
);
}
$db->sql_freeresult($result);
@@ -359,53 +342,41 @@
</action>
</edit>
<edit>
- <find>
- 'S_STATUS_OPTIONS' => $statuslist,
- 'S_PARENT_OPTIONS' => $parents_list,
- 'S_STYLES_OPTIONS' => $styles_list,
- </find>
+ <find> 'S_STYLES_OPTIONS' => $styles_list,</find>
<action type="after-add">
- 'S_SITE_OPTIONS' => $site_list,
- </action>
+ 'S_SITE_OPTIONS' => $site_list,</action>
</edit>
</open>
<open src="/language/en/acp/board.php">
<edit>
<find>
- // Board Features
- $lang = array_merge($lang, array(
- </find>
+// Board Features
+$lang = array_merge($lang, array(</find>
<action type="after-add">
- 'ACP_BOARD_FEATURES_EXPLAIN' => 'Here you can enable/disable several board features. PLEASE NOTE: It is reccomended that you use this page to edit board settings with thevr mod installed.',
- </action>
+ 'ACP_BOARD_FEATURES_EXPLAIN' => 'Here you can enable/disable several board features. PLEASE NOTE: It is reccomended that you use this page to edit board settings with thevr mod installed.',</action>
</edit>
</open>
<open src="/language/en/acp/common.php">
<edit>
<find>
- // Common
- $lang = array_merge($lang, array(
- </find>
+// Common
+$lang = array_merge($lang, array(</find>
<action type="after-add">
/** Added for thevr **/
'ACP_SITES_MANAGEMENT' => 'Site Management',
'ACP_MANAGE_SITES' => 'Manage Sites',
'ACP_SITE_SETTINGS' => 'Edit Site Configuration',
'ACP_SITE_SETTINGS_EXPLAIN' => '',
-/** End added **/
- </action>
+/** End added **/</action>
</edit>
</open>
<open src="/language/en/acp/forums.php">
<edit>
- <find>
- 'REDIRECT_ACL' => 'Now you are able to %sset permissions%s for this forum.',
- </find>
+ <find> 'REDIRECT_ACL' => 'Now you are able to %sset permissions%s for this forum.',</find>
<action type="after-add">
'SITE_ID' => 'Site',
'SITE_ID_EXPLAIN' => 'Select which site this is part of.',
- 'SITE_GLOBAL' => 'Global Forum',
- </action>
+ 'SITE_GLOBAL' => 'Global Forum',</action>
</edit>
</open>
</action-group>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|