INSERTINTOConfigurationValuesVALUES(DEFAULT,'Category_Sortfield','Name','In-Portal','in-portal:configure_categories','la_title_General','la_category_sortfield_prompt','select','','Name=la_opt_Title||Description=la_opt_Description||CreatedOn=la_opt_CreatedOn||EditorsPick=la_opt_EditorsPick||<SQL>SELECT Prompt AS OptionName, CONCAT("cust_", FieldName) AS OptionValue FROM <PREFIX>CustomField WHERE (Type = 1) AND (IsSystem = 0)</SQL>',10.01,1,1,NULL);
INSERTINTOConfigurationValuesVALUES(DEFAULT,'Category_Sortfield2','Description','In-Portal','in-portal:configure_categories','la_title_General','la_category_sortfield2_prompt','select','','Name=la_opt_Title||Description=la_opt_Description||CreatedOn=la_opt_CreatedOn||EditorsPick=la_opt_EditorsPick||<SQL>SELECT Prompt AS OptionName, CONCAT("cust_", FieldName) AS OptionValue FROM <PREFIX>CustomField WHERE (Type = 1) AND (IsSystem = 0)</SQL>',10.02,1,1,NULL);
INSERTINTOConfigurationValuesVALUES(DEFAULT,'User_NewGroup','13','In-Portal:Users','in-portal:configure_users','la_title_General','la_users_new_group','select',NULL,'0=lu_none||<SQL+>SELECT GroupId as OptionValue, Name as OptionName FROM <PREFIX>PortalGroup WHERE Enabled=1 AND Personal=0</SQL>',10.08,0,1,NULL);
INSERTINTOConfigurationValuesVALUES(DEFAULT,'User_LoggedInGroup','15','In-Portal:Users','in-portal:configure_users','la_title_General','la_users_assign_all_to','select',NULL,'0=lu_none||<SQL+>SELECT GroupId as OptionValue, Name as OptionName FROM <PREFIX>PortalGroup WHERE Enabled=1 AND Personal=0</SQL>',10.09,0,1,NULL);
INSERTINTOConfigurationValuesVALUES(DEFAULT,'User_GuestGroup','14','In-Portal:Users','in-portal:configure_users','la_title_General','la_users_guest_group','select',NULL,'0=lu_none||<SQL+>SELECT GroupId as OptionValue, Name as OptionName FROM <PREFIX>PortalGroup WHERE Enabled=1 AND Personal=0</SQL>',10.1,0,1,NULL);
INSERTINTOConfigurationValuesVALUES(DEFAULT,'User_SubscriberGroup','12','In-Portal:Users','in-portal:configure_users','la_title_General','la_users_subscriber_group','select',NULL,'0=lu_none||<SQL+>SELECT GroupId as OptionValue, Name as OptionName FROM <PREFIX>PortalGroup WHERE Enabled=1 AND Personal=0</SQL>',10.11,0,1,NULL);
INSERTINTOConfigurationValuesVALUES(DEFAULT,'User_Default_Registration_Country','','In-Portal:Users','in-portal:configure_users','la_title_General','la_config_DefaultRegistrationCountry','select',NULL,'=+||<SQL+>SELECT l%3$s_Name AS OptionName, CountryStateId AS OptionValue FROM <PREFIX>CountryStates WHERE Type = 1 ORDER BY OptionName</SQL>',10.12,0,0,NULL);
INSERTINTOEvents(EventId,Event,ReplacementTags,Enabled,FrontEndOnly,Module,Description,Type,AllowChangingSender,AllowChangingRecipient)VALUES(DEFAULT,'USER.SUGGEST',NULL,1,0,'Core','Suggest to a friend',0,1,1);
INSERTINTOEvents(EventId,Event,ReplacementTags,Enabled,FrontEndOnly,Module,Description,Type,AllowChangingSender,AllowChangingRecipient)VALUES(DEFAULT,'USER.SUGGEST',NULL,1,1,'Core','Suggest to a friend',1,1,1);
INSERTINTOEvents(EventId,Event,ReplacementTags,Enabled,FrontEndOnly,Module,Description,Type,AllowChangingSender,AllowChangingRecipient)VALUES(DEFAULT,'FORM.SUBMITTED',NULL,1,0,'Core','This e-mail is sent to a user after filling in the Contact Us form',1,1,1);
INSERTINTOEvents(EventId,Event,ReplacementTags,Enabled,FrontEndOnly,Module,Description,Type,AllowChangingSender,AllowChangingRecipient)VALUES(DEFAULT,'FORM.SUBMITTED',NULL,1,0,'Core','This e-mail is sent to a user after filling in the Contact Us form',0,1,1);
INSERTINTOEvents(EventId,Event,ReplacementTags,Enabled,FrontEndOnly,Module,Description,Type,AllowChangingSender,AllowChangingRecipient)VALUES(DEFAULT,'FORM.SUBMISSION.REPLY.TO.USER',NULL,1,0,'Core','Admin Reply to User Form Submission',1,1,1);
INSERTINTOEvents(EventId,Event,ReplacementTags,Enabled,FrontEndOnly,Module,Description,Type,AllowChangingSender,AllowChangingRecipient)VALUES(DEFAULT,'FORM.SUBMISSION.REPLY.FROM.USER',NULL,1,0,'Core','User Replied to It\'s Form Submission',1,1,1);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT count(*) FROM <%prefix%>Category WHERE Status=1 ',NULL,'la_prompt_ActiveCategories','0','1');
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT count(*) FROM <%prefix%>PortalUser WHERE Status=1 ',NULL,'la_prompt_ActiveUsers','0','1');
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT count(*) FROM <%prefix%>UserSession',NULL,'la_prompt_CurrentSessions','0','1');
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT COUNT(*) as CategoryCount FROM <%prefix%>Category',NULL,'la_prompt_TotalCategories',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT COUNT(*) AS ActiveCategories FROM <%prefix%>Category WHERE Status = 1',NULL,'la_prompt_ActiveCategories',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT COUNT(*) AS PendingCategories FROM <%prefix%>Category WHERE Status = 2',NULL,'la_prompt_PendingCategories',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT COUNT(*) AS DisabledCategories FROM <%prefix%>Category WHERE Status = 0',NULL,'la_prompt_DisabledCategories',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT COUNT(*) AS NewCategories FROM <%prefix%>Category WHERE (NewItem = 1) OR ( (UNIX_TIMESTAMP() - CreatedOn) <= <%m:config name="Category_DaysNew"%>*86400 AND (NewItem = 2) )',NULL,'la_prompt_NewCategories',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT COUNT(*) FROM <%prefix%>Category WHERE EditorsPick = 1',NULL,'la_prompt_CategoryEditorsPick',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT <%m:post_format field="MAX(CreatedOn)" type="date"%> FROM <%prefix%>Category',NULL,'la_prompt_NewestCategoryDate',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT <%m:post_format field="MAX(Modified)" type="date"%> FROM <%prefix%>Category',NULL,'la_prompt_LastCategoryUpdate',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT COUNT(*) AS TotalUsers FROM <%prefix%>PortalUser',NULL,'la_prompt_TopicsUsers',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT COUNT(*) AS ActiveUsers FROM <%prefix%>PortalUser WHERE Status = 1',NULL,'la_prompt_UsersActive',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT COUNT(*) AS PendingUsers FROM <%prefix%>PortalUser WHERE Status = 2',NULL,'la_prompt_UsersPending',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT COUNT(*) AS DisabledUsers FROM <%prefix%>PortalUser WHERE Status = 0',NULL,'la_prompt_UsersDisabled',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT <%m:post_format field="MAX(CreatedOn)" type="date"%> FROM <%prefix%>PortalUser',NULL,'la_prompt_NewestUserDate',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT COUNT( DISTINCT LOWER( Country ) ) FROM <%prefix%>PortalUser WHERE LENGTH(Country) > 0',NULL,'la_prompt_UsersUniqueCountries',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT COUNT( DISTINCT LOWER( State ) ) FROM <%prefix%>PortalUser WHERE LENGTH(State) > 0',NULL,'la_prompt_UsersUniqueStates',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT COUNT(*) AS TotalUserGroups FROM <%prefix%>PortalGroup',NULL,'la_prompt_TotalUserGroups',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT COUNT(*) AS BannedUsers FROM <%prefix%>PortalUser WHERE IsBanned = 1',NULL,'la_prompt_BannedUsers',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT COUNT(*) AS NonExipedSessions FROM <%prefix%>UserSession WHERE Status = 1',NULL,'la_prompt_NonExpiredSessions',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT COUNT(*) AS ThemeCount FROM <%prefix%>Theme',NULL,'la_prompt_ThemeCount',0,2);
INSERTINTOStatItemVALUES(DEFAULT,'In-Portal','SELECT COUNT(*) AS RegionsCount FROM <%prefix%>Language',NULL,'la_prompt_RegionsCount',0,2);
INSERTINTOCountersVALUES(DEFAULT,'members_count','SELECT COUNT(*) FROM <%PREFIX%>PortalUser WHERE Status = 1',NULL,NULL,'3600','0','|PortalUser|');
INSERTINTOCountersVALUES(DEFAULT,'members_online','SELECT COUNT(*) FROM <%PREFIX%>UserSession WHERE PortalUserId > 0',NULL,NULL,'3600','0','|UserSession|');
INSERTINTOCountersVALUES(DEFAULT,'guests_online','SELECT COUNT(*) FROM <%PREFIX%>UserSession WHERE PortalUserId <= 0',NULL,NULL,'3600','0','|UserSession|');
INSERTINTOCountersVALUES(DEFAULT,'users_online','SELECT COUNT(*) FROM <%PREFIX%>UserSession',NULL,NULL,'3600','0','|UserSession|');
#INSERT INTO PageContent VALUES (DEFAULT, 1, 1, '<span style="font-weight: bold;">In-portal</span> is a revolutionary Web Site management system that allows you to automate and facilitate management of large portal and community web sites. Regardless of whether you are running a directory site or a content news portal, a community site or an online mall, In-portal will enhance your web site management experience with innovative.</span><br><br>We are proud to present our newly developed <b>"default"</b> theme that introduces a fresh look as well totally new approach in the template system.</span><br>', NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0);