mirror of https://github.com/acanas/swad-core.git
Version 15.81.1
This commit is contained in:
parent
e2a97bf3f6
commit
72aaf2934a
|
@ -1002,6 +1002,7 @@ Social:
|
|||
699. ActReqPubPrf Request @nickname to show a public user's profile
|
||||
845. ActSeeChtRms Show the chat rooms
|
||||
|
||||
xxx. ActRcvSocPst Receive a public social post to be displayed in the timeline
|
||||
835. ActSeePubPrf Show a public user's profile
|
||||
836. ActCal1stClkTim Calculate first click time from log and store into user's figures
|
||||
837. ActCalNumClk Calculate number of clicks from log and store into user's figures
|
||||
|
@ -2309,6 +2310,8 @@ struct Act_Actions Act_Actions[Act_NUM_ACTIONS] =
|
|||
/* ActReqPubPrf */{1401, 2,TabSoc,ActReqPubPrf ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Prf_RequestUserProfile ,"prf64x64.gif" },
|
||||
/* ActSeeChtRms */{ 51, 3,TabSoc,ActSeeChtRms ,0x1FC,0x1FC,0x1FC,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Cht_ShowChatRooms ,"chat64x64.gif" },
|
||||
|
||||
/* ActRcvSocPst */{1492,-1,TabSoc,ActReqSocPst ,0x1FE,0x1FE,0x1FE,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Soc_ReceiveSocialPost ,NULL},
|
||||
|
||||
/* ActSeePubPrf */{1402,-1,TabSoc,ActReqPubPrf ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Prf_GetUsrCodAndShowUserProfile,NULL},
|
||||
/* ActCal1stClkTim */{1405,-1,TabSoc,ActReqPubPrf ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Prf_CalculateFirstClickTime ,NULL},
|
||||
/* ActCalNumClk */{1406,-1,TabSoc,ActReqPubPrf ,0x1FF,0x1FF,0x1FF,Act_CONTENT_NORM,Act_MAIN_WINDOW,NULL ,Prf_CalculateNumClicks ,NULL},
|
||||
|
@ -4148,6 +4151,7 @@ Act_Action_t Act_FromActCodToAction[1+Act_MAX_ACTION_COD] = // Do not reuse uniq
|
|||
ActRemOldBrf, // #1489
|
||||
ActSeeSocAct, // #1490
|
||||
ActReqSocPst, // #1491
|
||||
ActRcvSocPst, // #1492
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -71,9 +71,9 @@ typedef enum
|
|||
|
||||
typedef int Act_Action_t; // Must be a signed type, because -1 is used to indicate obsolete action
|
||||
|
||||
#define Act_NUM_ACTIONS (7+52+15+90+72+67+205+183+143+15+169+27+82)
|
||||
#define Act_NUM_ACTIONS (7+52+15+90+72+67+205+183+143+16+169+27+82)
|
||||
|
||||
#define Act_MAX_ACTION_COD 1491
|
||||
#define Act_MAX_ACTION_COD 1492
|
||||
|
||||
#define Act_MAX_OPTIONS_IN_MENU_PER_TAB 20
|
||||
|
||||
|
@ -1041,19 +1041,21 @@ typedef int Act_Action_t; // Must be a signed type, because -1 is used to indica
|
|||
#define ActReqPubPrf (ActLstClk+ 3)
|
||||
#define ActSeeChtRms (ActLstClk+ 4)
|
||||
// Secondary actions
|
||||
#define ActSeePubPrf (ActLstClk+ 5)
|
||||
#define ActCal1stClkTim (ActLstClk+ 6)
|
||||
#define ActCalNumClk (ActLstClk+ 7)
|
||||
#define ActCalNumFilVie (ActLstClk+ 8)
|
||||
#define ActCalNumForPst (ActLstClk+ 9)
|
||||
#define ActCalNumMsgSnt (ActLstClk+ 10)
|
||||
#define ActRcvSocPst (ActLstClk+ 5)
|
||||
|
||||
#define ActFolUsr (ActLstClk+ 11)
|
||||
#define ActUnfUsr (ActLstClk+ 12)
|
||||
#define ActSeeFlg (ActLstClk+ 13)
|
||||
#define ActSeeFlr (ActLstClk+ 14)
|
||||
#define ActSeePubPrf (ActLstClk+ 6)
|
||||
#define ActCal1stClkTim (ActLstClk+ 7)
|
||||
#define ActCalNumClk (ActLstClk+ 8)
|
||||
#define ActCalNumFilVie (ActLstClk+ 9)
|
||||
#define ActCalNumForPst (ActLstClk+ 10)
|
||||
#define ActCalNumMsgSnt (ActLstClk+ 11)
|
||||
|
||||
#define ActCht (ActLstClk+ 15)
|
||||
#define ActFolUsr (ActLstClk+ 12)
|
||||
#define ActUnfUsr (ActLstClk+ 13)
|
||||
#define ActSeeFlg (ActLstClk+ 14)
|
||||
#define ActSeeFlr (ActLstClk+ 15)
|
||||
|
||||
#define ActCht (ActLstClk+ 16)
|
||||
|
||||
/*****************************************************************************/
|
||||
/******************************* Messages tab ********************************/
|
||||
|
|
|
@ -116,13 +116,14 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.81 (2015-12-29)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.81.1 (2015-12-29)"
|
||||
#define CSS_FILE "swad15.80.css"
|
||||
#define JS_FILE "swad15.77.7.js"
|
||||
|
||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
||||
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
||||
/*
|
||||
Version 15.81.1: Dec 29, 2015 Form to write a public social post. Not finished. (189094 lines)
|
||||
Version 15.81: Dec 29, 2015 New option to write a public social post. Not finished. (189030 lines)
|
||||
1 change necessary in database:
|
||||
INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1491','es','N','Redactar comentario social');
|
||||
|
|
|
@ -60,7 +60,7 @@ extern struct Act_Actions Act_Actions[Act_NUM_ACTIONS];
|
|||
#define Rec_INSTITUTION_LOGO_SIZE 64
|
||||
#define Rec_DEGREE_LOGO_SIZE 64
|
||||
|
||||
#define Rec_USR_MIN_AGE 12 // years old
|
||||
#define Rec_USR_MIN_AGE 16 // years old
|
||||
#define Rec_USR_MAX_AGE 120 // years old
|
||||
|
||||
#define Rec_SHOW_OFFICE_HOURS_DEFAULT true
|
||||
|
|
|
@ -118,6 +118,31 @@ static void Soc_GetEventSummary (Soc_SocialEvent_t SocialEvent,long Cod,
|
|||
/*****************************************************************************/
|
||||
|
||||
void Soc_FormSocialPost (void)
|
||||
{
|
||||
extern const char *Txt_New_comment;
|
||||
extern const char *Txt_Send_comment;
|
||||
|
||||
/***** Start frame *****/
|
||||
Lay_StartRoundFrame ("560px",Txt_New_comment);
|
||||
|
||||
/***** Start form to write the comment *****/
|
||||
Act_FormStart (ActRcvSocPst);
|
||||
|
||||
/***** Send button *****/
|
||||
Lay_PutCreateButton (Txt_Send_comment);
|
||||
|
||||
/***** End form *****/
|
||||
Act_FormEnd ();
|
||||
|
||||
/***** End frame *****/
|
||||
Lay_EndRoundFrame ();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/****************** Receive and store a new public comment *******************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void Soc_ReceiveSocialPost (void)
|
||||
{
|
||||
Lay_ShowAlert (Lay_INFO,"Not implemented...");
|
||||
}
|
||||
|
|
|
@ -82,6 +82,7 @@ typedef enum
|
|||
/*****************************************************************************/
|
||||
|
||||
void Soc_FormSocialPost (void);
|
||||
void Soc_ReceiveSocialPost (void);
|
||||
|
||||
void Soc_ShowUsrTimeline (long UsrCod);
|
||||
void Soc_ShowFollowingTimeline (void);
|
||||
|
|
66
swad_text.c
66
swad_text.c
|
@ -22366,6 +22366,27 @@ const char *Txt_New_centre_of_INSTITUTION_X = // Warning: it is very important t
|
|||
"Novo centro de %s";
|
||||
#endif
|
||||
|
||||
const char *Txt_New_comment =
|
||||
#if L==1
|
||||
"Nou comentari";
|
||||
#elif L==2
|
||||
"Neue Kommentar";
|
||||
#elif L==3
|
||||
"New comment";
|
||||
#elif L==4
|
||||
"Nuevo comentario";
|
||||
#elif L==5
|
||||
"Nouvelle commentaire";
|
||||
#elif L==6
|
||||
"Nuevo comentario"; // Okoteve traducción
|
||||
#elif L==7
|
||||
"Nuovo commento";
|
||||
#elif L==8
|
||||
"Nowy komentarz";
|
||||
#elif L==9
|
||||
"Novo comentário";
|
||||
#endif
|
||||
|
||||
const char *Txt_New_country =
|
||||
#if L==1
|
||||
"Nuevo país"; // Necessita traduccio
|
||||
|
@ -27803,6 +27824,27 @@ const char *Txt_Public_views =
|
|||
"Acessos públicos";
|
||||
#endif
|
||||
|
||||
const char *Txt_Publish_announcement_OF_EXAM =
|
||||
#if L==1
|
||||
"Publicar convocatòria";
|
||||
#elif L==2
|
||||
"Veröffentlichen Aufruf";
|
||||
#elif L==3
|
||||
"Publish announcement";
|
||||
#elif L==4
|
||||
"Publicar convocatoria";
|
||||
#elif L==5
|
||||
"Publier convocation";
|
||||
#elif L==6
|
||||
"Publicar convocatoria"; // Okoteve traducción
|
||||
#elif L==7
|
||||
"Pubblicare sessione";
|
||||
#elif L==8
|
||||
"Publikuje zaproszenie";
|
||||
#elif L==9
|
||||
"Publicar chamada";
|
||||
#endif
|
||||
|
||||
const char *Txt_QR_code =
|
||||
#if L==1
|
||||
"Codi QR";
|
||||
|
@ -34134,30 +34176,30 @@ const char *Txt_Set_password =
|
|||
"Definir senha";
|
||||
#endif
|
||||
|
||||
const char *Txt_Publish_announcement_OF_EXAM =
|
||||
const char *Txt_Send_comment =
|
||||
#if L==1
|
||||
"Publicar convocatòria";
|
||||
"Enviar comentari";
|
||||
#elif L==2
|
||||
"Veröffentlichen Aufruf";
|
||||
"Senden Kommentar";
|
||||
#elif L==3
|
||||
"Publish announcement";
|
||||
"Send comment";
|
||||
#elif L==4
|
||||
"Publicar convocatoria";
|
||||
"Enviar comentario";
|
||||
#elif L==5
|
||||
"Publier convocation";
|
||||
"Envoyer commentaire";
|
||||
#elif L==6
|
||||
"Publicar convocatoria"; // Okoteve traducción
|
||||
"Enviar comentario"; // Okoteve traducción
|
||||
#elif L==7
|
||||
"Pubblicare sessione";
|
||||
"Invia commento";
|
||||
#elif L==8
|
||||
"Publikuje zaproszenie";
|
||||
"Wyślij komentarz";
|
||||
#elif L==9
|
||||
"Publicar chamada";
|
||||
"Enviar comentário";
|
||||
#endif
|
||||
|
||||
const char *Txt_Send_message =
|
||||
#if L==1
|
||||
"Enviar mensaje"; // Necessita traduccio
|
||||
"Enviar missatge";
|
||||
#elif L==2
|
||||
"Senden Nachricht";
|
||||
#elif L==3
|
||||
|
@ -34171,7 +34213,7 @@ const char *Txt_Send_message =
|
|||
#elif L==7
|
||||
"Invia messaggio";
|
||||
#elif L==8
|
||||
"Send message"; // Potrzebujesz tlumaczenie
|
||||
"Wyślij wiadomość";
|
||||
#elif L==9
|
||||
"Enviar mensagem";
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue