From: <dj...@us...> - 2012-01-16 10:22:20
|
Revision: 8738 http://xoops.svn.sourceforge.net/xoops/?rev=8738&view=rev Author: djculex Date: 2012-01-16 10:22:09 +0000 (Mon, 16 Jan 2012) Log Message: ----------- Select multi fields for configs Modified Paths: -------------- XoopsModules/smallworld/trunk/language/english/modinfo.php XoopsModules/smallworld/trunk/xoops_version.php Modified: XoopsModules/smallworld/trunk/language/english/modinfo.php =================================================================== --- XoopsModules/smallworld/trunk/language/english/modinfo.php 2012-01-16 08:27:54 UTC (rev 8737) +++ XoopsModules/smallworld/trunk/language/english/modinfo.php 2012-01-16 10:22:09 UTC (rev 8738) @@ -51,4 +51,36 @@ define ("_MI_SMALLWORLD_BOOKMARSAVATARS","Use Smallworld Logo when bookmarking ? "); define ("_MI_SMALLWORLD_BOOKMARKSAVATARS_DESC","When posts are public and you want to share on social networks. You can here descide weather to use<br>smallworld logo as shared image or 'no' = the posting users avatar.<br><br>Default is 'yes' = smallworld logo."); + +// Select fields & Mandetory fields +define ('_MI_SMALLWORLD_VIEWFIELDS','Use fields in registration and profile'); +define ('_MI_SMALLWORLD_VIEWFIELDS_DESC','Select fields to use in registration form and in profile viewing<br>Use control + mouse to multiselect'); +define ('_MI_SMALLWORLD_VERIFYFIELDS','Use verification on fields in registration'); +define ('_MI_SMALLWORLD_VERIFYFIELDS_DESC','Select (*) mandatory fields in registration form<br>Use control + mouse to multiselect'); + +define ('_MI_SMALLWORLD_REALNAME','Real name'); +define ('_MI_SMALLWORLD_INTERESTEDIN','Interested in'); +define ('_MI_SMALLWORLD_PARTNER','Partner'); +define ('_MI_SMALLWORLD_LOOKINGFOR','Looking for'); +define ('_MI_SMALLWORLD_BIRTHDAY','Birthday'); +define ('_MI_SMALLWORLD_BIRTHPLACE','Birth place'); +define ('_MI_SMALLWORLD_POLITICALVIEWS','Political views'); +define ('_MI_SMALLWORLD_RELIGIOUSVIEWS','Religious view'); +define ('_MI_SMALLWORLD_EMAILS','Emails'); +define ('_MI_SMALLWORLD_SCREENNAMES','screennames'); +define ('_MI_SMALLWORLD_MOBILE','mobile'); +define ('_MI_SMALLWORLD_LANDPHONE','landphone'); +define ('_MI_SMALLWORLD_STREETADRESS','street adress'); +define ('_MI_SMALLWORLD_PRESENTCITY','present city'); +define ('_MI_SMALLWORLD_COUNTRY','country'); +define ('_MI_SMALLWORLD_WEBSITE','website'); +define ('_MI_SMALLWORLD_INTERESTS','Interests'); +define ('_MI_SMALLWORLD_FAVOURITEMUSIC','Favourite music'); +define ('_MI_SMALLWORLD_FAVOURITETVSHOWS','Favourite tvshows'); +define ('_MI_SMALLWORLD_FAVOURITEMOVIES','Favourite movie'); +define ('_MI_SMALLWORLD_FAVOURITEBOOKS','Favourite books'); +define ('_MI_SMALLWORLD_ABOUTME','About me'); +define ('_MI_SMALLWORLD_EDUCATION','Education'); +define ('_MI_SMALLWORLD_EMPLOYMENT','Employment'); + ?> \ No newline at end of file Modified: XoopsModules/smallworld/trunk/xoops_version.php =================================================================== --- XoopsModules/smallworld/trunk/xoops_version.php 2012-01-16 08:27:54 UTC (rev 8737) +++ XoopsModules/smallworld/trunk/xoops_version.php 2012-01-16 10:22:09 UTC (rev 8738) @@ -64,83 +64,214 @@ $modversion['tables'][8] = "smallworld_complaints"; // Templates -$modversion['templates'][1]['file'] = 'smallworld_index.html'; -$modversion['templates'][1]['description'] = ''; -$modversion['templates'][2]['file'] = 'smallworld_userprofile_template.html'; -$modversion['templates'][2]['description'] = ''; -$modversion['templates'][3]['file'] = 'smallworld_userprofile_regtemplate.html'; -$modversion['templates'][3]['description'] = ''; -$modversion['templates'][4]['file'] = 'smallworld_userprofile_edittemplate.html'; -$modversion['templates'][4]['description'] = ''; -$modversion['templates'][5]['file'] = 'smallworld_userprofile_imgupload.html'; -$modversion['templates'][5]['description'] = ''; -$modversion['templates'][6]['file'] = 'smallworld_galleryshow.html'; -$modversion['templates'][6]['description'] = ''; -$modversion['templates'][7]['file'] = 'smallworld_images_edittemplate.html'; -$modversion['templates'][7]['description'] = ''; -$modversion['templates'][8]['file'] = 'smallworld_friends_template.html'; -$modversion['templates'][8]['description'] = ''; -$modversion['templates'][9]['file'] = 'smallworld_permalink.html'; -$modversion['templates'][9]['description'] = ''; -$modversion['templates'][10]['file'] = 'smallworld_admin.html'; -$modversion['templates'][10]['description'] = ''; -$modversion['templates'][11]['file'] = 'smallworld_share.html'; -$modversion['templates'][11]['description'] = ''; +$i = 1; +$modversion['templates'][$i]['file'] = 'smallworld_index.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_userprofile_template.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_userprofile_regtemplate.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_userprofile_edittemplate.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_userprofile_imgupload.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_galleryshow.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_images_edittemplate.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_friends_template.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_permalink.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_admin.html'; +$modversion['templates'][$i]['description'] = ''; +$i++; +$modversion['templates'][$i]['file'] = 'smallworld_share.html'; +$modversion['templates'][$i]['description'] = ''; + // Blocks -$modversion['blocks'][1]['file'] = "smallworld_block.php"; -$modversion['blocks'][1]['name'] = 'Block for empty module'; -$modversion['blocks'][1]['description'] = 'This is a Block for the empty module'; -$modversion['blocks'][1]['show_func'] = "smallworld_block"; -$modversion['blocks'][1]['template'] = 'smallworld_block.html'; +$i = 1; +$modversion['blocks'][$i]['file'] = "smallworld_block.php"; +$modversion['blocks'][$i]['name'] = 'Block for empty module'; +$modversion['blocks'][$i]['description'] = 'This is a Block for the empty module'; +$modversion['blocks'][$i]['show_func'] = "smallworld_block"; +$modversion['blocks'][$i]['template'] = 'smallworld_block.html'; //Module Configs +$i = 0; +$modversion['config'][$i]['name'] = 'geolocate'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_USEGOOGLE'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_USEGOOGLE_DESC'; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 1; -$modversion['config'][0]['name'] = 'geolocate'; -$modversion['config'][0]['title'] = '_MI_SMALLWORLD_USEGOOGLE'; -$modversion['config'][0]['description'] = '_MI_SMALLWORLD_USEGOOGLE_DESC'; -$modversion['config'][0]['formtype'] = 'yesno'; -$modversion['config'][0]['valuetype'] = 'int'; -$modversion['config'][0]['default'] = 1; +$i++; +$modversion['config'][$i]['name'] = 'msgtoshow'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_MSGTOSHOW'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_MSGTOSHOW_DESC'; +$modversion['config'][$i]['formtype'] = 'textbox'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 5; -$modversion['config'][1]['name'] = 'msgtoshow'; -$modversion['config'][1]['title'] = '_MI_SMALLWORLD_MSGTOSHOW'; -$modversion['config'][1]['description'] = '_MI_SMALLWORLD_MSGTOSHOW_DESC'; -$modversion['config'][1]['formtype'] = 'textbox'; -$modversion['config'][1]['valuetype'] = 'int'; -$modversion['config'][1]['default'] = 5; +$i++; +$modversion['config'][$i]['name'] = 'msgtoshow'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_MSGTOSHOW'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_MSGTOSHOW_DESC'; +$modversion['config'][$i]['formtype'] = 'textbox'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 5; -$modversion['config'][1]['name'] = 'msgtoshow'; -$modversion['config'][1]['title'] = '_MI_SMALLWORLD_MSGTOSHOW'; -$modversion['config'][1]['description'] = '_MI_SMALLWORLD_MSGTOSHOW_DESC'; -$modversion['config'][1]['formtype'] = 'textbox'; -$modversion['config'][1]['valuetype'] = 'int'; -$modversion['config'][1]['default'] = 5; +$i++; +$modversion['config'][$i]['name'] = 'validationstrenght'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_VALIDATIONSTRENGHT'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_VALIDATIONSTRENGHT_DESC'; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 1; -$modversion['config'][2]['name'] = 'validationstrenght'; -$modversion['config'][2]['title'] = '_MI_SMALLWORLD_VALIDATIONSTRENGHT'; -$modversion['config'][2]['description'] = '_MI_SMALLWORLD_VALIDATIONSTRENGHT_DESC'; -$modversion['config'][2]['formtype'] = 'yesno'; -$modversion['config'][2]['valuetype'] = 'int'; -$modversion['config'][2]['default'] = 1; +$i++; +$modversion['config'][$i]['name'] = 'takeoveruserlinks'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_TAKEOVERLINKS'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_TAKEOVERLINKS_DESC'; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 0; -$modversion['config'][3]['name'] = 'takeoveruserlinks'; -$modversion['config'][3]['title'] = '_MI_SMALLWORLD_TAKEOVERLINKS'; -$modversion['config'][3]['description'] = '_MI_SMALLWORLD_TAKEOVERLINKS_DESC'; -$modversion['config'][3]['formtype'] = 'yesno'; -$modversion['config'][3]['valuetype'] = 'int'; -$modversion['config'][3]['default'] = 0; +$i++; +$modversion['config'][$i]['name'] = 'usersownpostscount'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_USERSOWNMSGCOUNTS'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_USERSOWNMSGCOUNTS_DESC'; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 0; -$modversion['config'][4]['name'] = 'usersownpostscount'; -$modversion['config'][4]['title'] = '_MI_SMALLWORLD_USERSOWNMSGCOUNTS'; -$modversion['config'][4]['description'] = '_MI_SMALLWORLD_USERSOWNMSGCOUNTS_DESC'; -$modversion['config'][4]['formtype'] = 'yesno'; -$modversion['config'][4]['valuetype'] = 'int'; -$modversion['config'][4]['default'] = 0; +$i++; +$modversion['config'][$i]['name'] = 'smallworldbookmarkavatar'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_BOOKMARSAVATARS'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_BOOKMARKSAVATARS_DESC'; +$modversion['config'][$i]['formtype'] = 'yesno'; +$modversion['config'][$i]['valuetype'] = 'int'; +$modversion['config'][$i]['default'] = 0; -$modversion['config'][5]['name'] = 'smallworldbookmarkavatar'; -$modversion['config'][5]['title'] = '_MI_SMALLWORLD_BOOKMARSAVATARS'; -$modversion['config'][5]['description'] = '_MI_SMALLWORLD_BOOKMARKSAVATARS_DESC'; -$modversion['config'][5]['formtype'] = 'yesno'; -$modversion['config'][5]['valuetype'] = 'int'; -$modversion['config'][5]['default'] = 0; +$i++; +$modversion['config'][$i]['name'] = 'smallworldusethesefields'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_VIEWFIELDS'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_VIEWFIELDS_DESC'; +$modversion['config'][$i]['formtype'] = 'select_multi'; +$modversion['config'][$i]['valuetype'] = 'array'; +$modversion['config'][$i]['options'] = array( '_MI_SMALLWORLD_REALNAME' => 'realname', + '_MI_SMALLWORLD_INTERESTEDIN' => 'interestedin', + '_MI_SMALLWORLD_PARTNER' => 'partner', + '_MI_SMALLWORLD_LOOKINGFOR' => 'lookingfor', + '_MI_SMALLWORLD_BIRTHDAY' => 'birthday', + '_MI_SMALLWORLD_BIRTHPLACE' => 'birthplace', + '_MI_SMALLWORLD_POLITICALVIEWS' => 'politicalview', + '_MI_SMALLWORLD_RELIGIOUSVIEWS' => 'religiousview', + '_MI_SMALLWORLD_EMAILS' => 'emails', + '_MI_SMALLWORLD_SCREENNAMES' => 'screennames', + '_MI_SMALLWORLD_MOBILE' => 'mobile', + '_MI_SMALLWORLD_LANDPHONE' => 'landphone', + '_MI_SMALLWORLD_STREETADRESS' => 'streetadress', + '_MI_SMALLWORLD_PRESENTCITY' => 'presentcity', + '_MI_SMALLWORLD_COUNTRY' => 'country', + '_MI_SMALLWORLD_WEBSITE' => 'website', + '_MI_SMALLWORLD_INTERESTS' => 'interests', + '_MI_SMALLWORLD_FAVOURITEMUSIC' => 'favouritemusic', + '_MI_SMALLWORLD_FAVOURITETVSHOWS' => 'favouritetvshows', + '_MI_SMALLWORLD_FAVOURITEMOVIES' => 'favouritemovies', + '_MI_SMALLWORLD_FAVOURITEBOOKS' => 'favouritebooks', + '_MI_SMALLWORLD_ABOUTME' => 'aboutme', + '_MI_SMALLWORLD_EDUCATION' => 'education', + '_MI_SMALLWORLD_EMPLOYMENT' => 'employment',); +$modversion['config'][$i]['default'] = array( 'realname', + 'interestedin', + 'partner', + 'lookingfor', + 'birthday', + 'birthplace', + 'politicalview', + 'religiousview', + 'emails', + 'screennames', + 'mobile', + 'landphone', + 'streetadress', + 'presentcity', + 'country', + 'website', + 'interests', + 'favouritemusic', + 'favouritetvshows', + 'favouritemovies', + 'favouritebooks', + 'aboutme', + 'education', + 'employment'); + +// Mandatory fields +$i++; +$modversion['config'][$i]['name'] = 'smallworldmandatoryfields'; +$modversion['config'][$i]['title'] = '_MI_SMALLWORLD_VERIFYFIELDS'; +$modversion['config'][$i]['description'] = '_MI_SMALLWORLD_VERIFYFIELDS_DESC'; +$modversion['config'][$i]['formtype'] = 'select_multi'; +$modversion['config'][$i]['valuetype'] = 'array'; +$modversion['config'][$i]['options'] = array( '_MI_SMALLWORLD_REALNAME' => 'realname', + '_MI_SMALLWORLD_INTERESTEDIN' => 'interestedin', + '_MI_SMALLWORLD_PARTNER' => 'partner', + '_MI_SMALLWORLD_LOOKINGFOR' => 'lookingfor', + '_MI_SMALLWORLD_BIRTHDAY' => 'birthday', + '_MI_SMALLWORLD_BIRTHPLACE' => 'birthplace', + '_MI_SMALLWORLD_POLITICALVIEWS' => 'politicalview', + '_MI_SMALLWORLD_RELIGIOUSVIEWS' => 'religiousview', + '_MI_SMALLWORLD_EMAILS' => 'emails', + '_MI_SMALLWORLD_SCREENNAMES' => 'screennames', + '_MI_SMALLWORLD_MOBILE' => 'mobile', + '_MI_SMALLWORLD_LANDPHONE' => 'landphone', + '_MI_SMALLWORLD_STREETADRESS' => 'streetadress', + '_MI_SMALLWORLD_PRESENTCITY' => 'presentcity', + '_MI_SMALLWORLD_COUNTRY' => 'country', + '_MI_SMALLWORLD_WEBSITE' => 'website', + '_MI_SMALLWORLD_INTERESTS' => 'interests', + '_MI_SMALLWORLD_FAVOURITEMUSIC' => 'favouritemusic', + '_MI_SMALLWORLD_FAVOURITETVSHOWS' => 'favouritetvshows', + '_MI_SMALLWORLD_FAVOURITEMOVIES' => 'favouritemovies', + '_MI_SMALLWORLD_FAVOURITEBOOKS' => 'favouritebooks', + '_MI_SMALLWORLD_ABOUTME' => 'aboutme', + '_MI_SMALLWORLD_EDUCATION' => 'education', + '_MI_SMALLWORLD_EMPLOYMENT' => 'employment',); +$modversion['config'][$i]['default'] = array( 'realname', + 'interestedin', + 'partner', + 'lookingfor', + 'birthday', + 'birthplace', + 'politicalview', + 'religiousview', + 'emails', + 'screennames', + 'mobile', + 'landphone', + 'streetadress', + 'presentcity', + 'country', + 'website', + 'interests', + 'favouritemusic', + 'favouritetvshows', + 'favouritemovies', + 'favouritebooks', + 'aboutme', + 'education', + 'employment'); + ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |