Преглед изворни кода

Ticket #4652 - 'Last Seen' status/field in profile info block: Organizations module.

AntonLV пре 2 година
родитељ
комит
99463d00ec

+ 2 - 0
modules/boonex/organizations/install/langs/en.xml

@@ -80,6 +80,8 @@
     <string name="_bx_orgs_form_profile_input_profile_status"><![CDATA[Status]]></string>
     <string name="_bx_orgs_form_profile_input_sys_profile_ip"><![CDATA[IP]]></string>
     <string name="_bx_orgs_form_profile_input_profile_ip"><![CDATA[IP]]></string>
+    <string name="_bx_orgs_form_profile_input_sys_profile_logged"><![CDATA[Last Seen]]></string>
+    <string name="_bx_orgs_form_profile_input_profile_logged"><![CDATA[Last Seen]]></string>
     <string name="_bx_orgs_form_profile_input_sys_date_added"><![CDATA[Added]]></string>
     <string name="_bx_orgs_form_profile_input_date_added"><![CDATA[Added]]></string>
     <string name="_bx_orgs_form_profile_input_sys_date_changed"><![CDATA[Updated]]></string>

+ 8 - 5
modules/boonex/organizations/install/sql/install.sql

@@ -348,6 +348,7 @@ INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `ch
 ('bx_organization', 'bx_organizations', 'profile_email', '', '', 0, 'text', '_bx_orgs_form_profile_input_sys_profile_email', '_bx_orgs_form_profile_input_profile_email', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
 ('bx_organization', 'bx_organizations', 'profile_status', '', '', 0, 'custom', '_bx_orgs_form_profile_input_sys_profile_status', '_bx_orgs_form_profile_input_profile_status', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
 ('bx_organization', 'bx_organizations', 'profile_ip', '', '', 0, 'text', '_bx_orgs_form_profile_input_sys_profile_ip', '_bx_orgs_form_profile_input_profile_ip', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
+('bx_organization', 'bx_organizations', 'profile_logged', '', '', 0, 'text', '_bx_orgs_form_profile_input_sys_profile_logged', '_bx_orgs_form_profile_input_profile_logged', '', 0, 0, 0, '', '', '', '', '', '', 'Xss', '', 0, 0),
 ('bx_organization', 'bx_organizations', 'labels', '', '', 0, 'custom', '_sys_form_input_sys_labels', '_sys_form_input_labels', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
 ('bx_organization', 'bx_organizations', 'added', '', '', 0, 'datetime', '_bx_orgs_form_profile_input_sys_date_added', '_bx_orgs_form_profile_input_date_added', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
 ('bx_organization', 'bx_organizations', 'changed', '', '', 0, 'datetime', '_bx_orgs_form_profile_input_sys_date_changed', '_bx_orgs_form_profile_input_date_changed', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
@@ -392,16 +393,18 @@ INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for
 ('bx_organization_view', 'profile_email', 192, 1, 3),
 ('bx_organization_view', 'profile_status', 192, 1, 4),
 ('bx_organization_view', 'profile_ip', 192, 1, 5),
-('bx_organization_view', 'added', 192, 1, 6),
-('bx_organization_view', 'changed', 192, 1, 7),
-('bx_organization_view', 'friends_count', 2147483647, 1, 8),
-('bx_organization_view', 'followers_count', 2147483647, 1, 9),
+('bx_organization_view', 'profile_logged', 192, 1, 6),
+('bx_organization_view', 'added', 192, 1, 7),
+('bx_organization_view', 'changed', 192, 1, 8),
+('bx_organization_view', 'friends_count', 2147483647, 1, 9),
+('bx_organization_view', 'followers_count', 2147483647, 1, 10),
 
 ('bx_organization_view_full', 'org_name', 2147483647, 1, 1),
 ('bx_organization_view_full', 'org_cat', 2147483647, 1, 2),
 ('bx_organization_view_full', 'org_desc', 2147483647, 0, 3),
 ('bx_organization_view_full', 'profile_email', 192, 1, 4),
-('bx_organization_view_full', 'profile_status', 192, 1, 5);
+('bx_organization_view_full', 'profile_status', 192, 1, 5),
+('bx_organization_view_full', 'profile_logged', 192, 1, 6);
 
 -- FORMS: Price
 INSERT INTO `sys_objects_form` (`object`, `module`, `title`, `action`, `form_attrs`, `submit_name`, `table`, `key`, `uri`, `uri_title`, `params`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES

+ 2 - 0
modules/boonex/russian/data/langs/bx_organizations/ru.xml

@@ -76,6 +76,8 @@
     <string name="_bx_orgs_form_profile_input_profile_status"><![CDATA[Статус]]></string>
     <string name="_bx_orgs_form_profile_input_sys_profile_ip"><![CDATA[IP]]></string>
     <string name="_bx_orgs_form_profile_input_profile_ip"><![CDATA[IP]]></string>
+    <string name="_bx_orgs_form_profile_input_sys_profile_logged"><![CDATA[Последний визит]]></string>
+    <string name="_bx_orgs_form_profile_input_profile_logged"><![CDATA[Последний визит]]></string>
     <string name="_bx_orgs_form_profile_input_sys_date_added"><![CDATA[Дата создания]]></string>
     <string name="_bx_orgs_form_profile_input_date_added"><![CDATA[Дата создания]]></string>
     <string name="_bx_orgs_form_profile_input_sys_date_changed"><![CDATA[Дата обновления]]></string>