mirror of https://github.com/acanas/swad-core.git
Version18.91
This commit is contained in:
parent
9f8f44bc5b
commit
217bb7b19d
|
@ -464,10 +464,11 @@ En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 18.90.4 (2019-03-29)"
|
#define Log_PLATFORM_VERSION "SWAD 18.91 (2019-03-29)"
|
||||||
#define CSS_FILE "swad18.89.5.css"
|
#define CSS_FILE "swad18.91.css"
|
||||||
#define JS_FILE "swad18.89.5.js"
|
#define JS_FILE "swad18.91.js"
|
||||||
/*
|
/*
|
||||||
|
Version 18.91: Mar 29, 2019 Code refactoring in timeline. (241341 lines)
|
||||||
Version 18.90.4: Mar 29, 2019 Changes in layout of shared/faved social notes and comments. (241394 lines)
|
Version 18.90.4: Mar 29, 2019 Changes in layout of shared/faved social notes and comments. (241394 lines)
|
||||||
Version 18.90.3: Mar 28, 2019 Show all users who have shared/faved social notes and comments. (241307 lines)
|
Version 18.90.3: Mar 28, 2019 Show all users who have shared/faved social notes and comments. (241307 lines)
|
||||||
Version 18.90.2: Mar 28, 2019 Show all users who have shared/faved social notes and comments. Not finished. (241337 lines)
|
Version 18.90.2: Mar 28, 2019 Show all users who have shared/faved social notes and comments. Not finished. (241337 lines)
|
||||||
|
|
339
swad_timeline.c
339
swad_timeline.c
|
@ -1647,13 +1647,13 @@ static void TL_WriteNote (const struct TL_Note *SocNot,
|
||||||
/* Put form to mark/unmark this note as favourite */
|
/* Put form to mark/unmark this note as favourite */
|
||||||
fprintf (Gbl.F.Out,"<div id=\"fav_not_%s_%u\" class=\"TL_FAV_NOT\">",
|
fprintf (Gbl.F.Out,"<div id=\"fav_not_%s_%u\" class=\"TL_FAV_NOT\">",
|
||||||
Gbl.UniqueNameEncrypted,NumDiv);
|
Gbl.UniqueNameEncrypted,NumDiv);
|
||||||
TL_PutFormToFavUnfNote (SocNot,false); // Show only a few
|
TL_PutFormToFavUnfNote (SocNot,TL_SHOW_A_FEW_USRS);
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/* Put form to share/unshare */
|
/* Put form to share/unshare */
|
||||||
fprintf (Gbl.F.Out,"<div id=\"sha_not_%s_%u\" class=\"TL_SHA_NOT\">",
|
fprintf (Gbl.F.Out,"<div id=\"sha_not_%s_%u\" class=\"TL_SHA_NOT\">",
|
||||||
Gbl.UniqueNameEncrypted,NumDiv);
|
Gbl.UniqueNameEncrypted,NumDiv);
|
||||||
TL_PutFormToShaUnsNote (SocNot,false); // Show only a few
|
TL_PutFormToShaUnsNote (SocNot,TL_SHOW_A_FEW_USRS);
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/* Put icon to remove this note */
|
/* Put icon to remove this note */
|
||||||
|
@ -2409,21 +2409,8 @@ static void TL_PutTextarea (const char *Placeholder,const char *ClassTextArea)
|
||||||
/******************* Receive and store a new public post *********************/
|
/******************* Receive and store a new public post *********************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
void TL_ReceivePostGbl (void)
|
|
||||||
{
|
|
||||||
long NotCod;
|
|
||||||
|
|
||||||
/***** Receive and store post *****/
|
|
||||||
NotCod = TL_ReceivePost ();
|
|
||||||
|
|
||||||
/***** Write updated timeline after publication (global) *****/
|
|
||||||
TL_ShowTimelineGblHighlightingNot (NotCod);
|
|
||||||
}
|
|
||||||
|
|
||||||
void TL_ReceivePostUsr (void)
|
void TL_ReceivePostUsr (void)
|
||||||
{
|
{
|
||||||
long NotCod;
|
|
||||||
|
|
||||||
/***** Get user whom profile is displayed *****/
|
/***** Get user whom profile is displayed *****/
|
||||||
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
||||||
|
|
||||||
|
@ -2433,16 +2420,25 @@ void TL_ReceivePostUsr (void)
|
||||||
/***** Start section *****/
|
/***** Start section *****/
|
||||||
Lay_StartSection (TL_TIMELINE_SECTION_ID);
|
Lay_StartSection (TL_TIMELINE_SECTION_ID);
|
||||||
|
|
||||||
/***** Receive and store post *****/
|
/***** Receive and store post, and
|
||||||
NotCod = TL_ReceivePost ();
|
write updated timeline after publication (user) *****/
|
||||||
|
TL_ReceivePostGbl ();
|
||||||
/***** Write updated timeline after publication (user) *****/
|
|
||||||
TL_ShowTimelineUsrHighlightingNot (NotCod);
|
|
||||||
|
|
||||||
/***** End section *****/
|
/***** End section *****/
|
||||||
Lay_EndSection ();
|
Lay_EndSection ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TL_ReceivePostGbl (void)
|
||||||
|
{
|
||||||
|
long NotCod;
|
||||||
|
|
||||||
|
/***** Receive and store post *****/
|
||||||
|
NotCod = TL_ReceivePost ();
|
||||||
|
|
||||||
|
/***** Write updated timeline after publication (global) *****/
|
||||||
|
TL_ShowTimelineGblHighlightingNot (NotCod);
|
||||||
|
}
|
||||||
|
|
||||||
// Returns the code of the note just created
|
// Returns the code of the note just created
|
||||||
static long TL_ReceivePost (void)
|
static long TL_ReceivePost (void)
|
||||||
{
|
{
|
||||||
|
@ -2810,7 +2806,7 @@ static void TL_WriteComment (struct TL_Comment *SocCom,
|
||||||
Gbl.UniqueNameEncrypted,NumDiv);
|
Gbl.UniqueNameEncrypted,NumDiv);
|
||||||
|
|
||||||
/* Write HTML inside DIV with form to fav/unfav */
|
/* Write HTML inside DIV with form to fav/unfav */
|
||||||
TL_PutFormToFavUnfComment (SocCom,false); // Show only a few
|
TL_PutFormToFavUnfComment (SocCom,TL_SHOW_A_FEW_USRS);
|
||||||
|
|
||||||
/* End favs container */
|
/* End favs container */
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
@ -3136,21 +3132,8 @@ static long TL_GetParamPubCod (void)
|
||||||
/******************************* Comment a note ******************************/
|
/******************************* Comment a note ******************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
void TL_ReceiveCommentGbl (void)
|
|
||||||
{
|
|
||||||
long NotCod;
|
|
||||||
|
|
||||||
/***** Receive comment in a note *****/
|
|
||||||
NotCod = TL_ReceiveComment ();
|
|
||||||
|
|
||||||
/***** Write updated timeline after commenting (global) *****/
|
|
||||||
TL_ShowTimelineGblHighlightingNot (NotCod);
|
|
||||||
}
|
|
||||||
|
|
||||||
void TL_ReceiveCommentUsr (void)
|
void TL_ReceiveCommentUsr (void)
|
||||||
{
|
{
|
||||||
long NotCod;
|
|
||||||
|
|
||||||
/***** Get user whom profile is displayed *****/
|
/***** Get user whom profile is displayed *****/
|
||||||
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
||||||
|
|
||||||
|
@ -3160,16 +3143,25 @@ void TL_ReceiveCommentUsr (void)
|
||||||
/***** Start section *****/
|
/***** Start section *****/
|
||||||
Lay_StartSection (TL_TIMELINE_SECTION_ID);
|
Lay_StartSection (TL_TIMELINE_SECTION_ID);
|
||||||
|
|
||||||
/***** Receive comment in a note *****/
|
/***** Receive comment in a note
|
||||||
NotCod = TL_ReceiveComment ();
|
and write updated timeline after commenting (user) *****/
|
||||||
|
TL_ReceiveCommentGbl ();
|
||||||
/***** Write updated timeline after commenting (user) *****/
|
|
||||||
TL_ShowTimelineUsrHighlightingNot (NotCod);
|
|
||||||
|
|
||||||
/***** End section *****/
|
/***** End section *****/
|
||||||
Lay_EndSection ();
|
Lay_EndSection ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TL_ReceiveCommentGbl (void)
|
||||||
|
{
|
||||||
|
long NotCod;
|
||||||
|
|
||||||
|
/***** Receive comment in a note *****/
|
||||||
|
NotCod = TL_ReceiveComment ();
|
||||||
|
|
||||||
|
/***** Write updated timeline after commenting (global) *****/
|
||||||
|
TL_ShowTimelineGblHighlightingNot (NotCod);
|
||||||
|
}
|
||||||
|
|
||||||
static long TL_ReceiveComment (void)
|
static long TL_ReceiveComment (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_The_original_post_no_longer_exists;
|
extern const char *Txt_The_original_post_no_longer_exists;
|
||||||
|
@ -3241,6 +3233,15 @@ static long TL_ReceiveComment (void)
|
||||||
/******************************** Share a note *******************************/
|
/******************************** Share a note *******************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
void TL_ShowAllSharersNoteUsr (void)
|
||||||
|
{
|
||||||
|
/***** Get user whom profile is displayed *****/
|
||||||
|
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
||||||
|
|
||||||
|
/***** Show all sharers *****/
|
||||||
|
TL_ShowAllSharersNoteGbl ();
|
||||||
|
}
|
||||||
|
|
||||||
void TL_ShowAllSharersNoteGbl (void)
|
void TL_ShowAllSharersNoteGbl (void)
|
||||||
{
|
{
|
||||||
struct TL_Note SocNot;
|
struct TL_Note SocNot;
|
||||||
|
@ -3250,28 +3251,19 @@ void TL_ShowAllSharersNoteGbl (void)
|
||||||
TL_GetDataOfNoteByCod (&SocNot);
|
TL_GetDataOfNoteByCod (&SocNot);
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to share/unshare *****/
|
/***** Write HTML inside DIV with form to share/unshare *****/
|
||||||
TL_PutFormToShaUnsNote (&SocNot,true); // Show all
|
TL_PutFormToShaUnsNote (&SocNot,TL_SHOW_ALL_USRS);
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
/***** All the output is made, so don't write anymore *****/
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TL_ShowAllSharersNoteUsr (void)
|
void TL_ShaNoteUsr (void)
|
||||||
{
|
{
|
||||||
struct TL_Note SocNot;
|
|
||||||
|
|
||||||
/***** Get user whom profile is displayed *****/
|
/***** Get user whom profile is displayed *****/
|
||||||
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
||||||
|
|
||||||
/***** Get data of note *****/
|
/***** Share note *****/
|
||||||
SocNot.NotCod = TL_GetParamNotCod ();
|
TL_ShaNoteGbl ();
|
||||||
TL_GetDataOfNoteByCod (&SocNot);
|
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to share/unshare *****/
|
|
||||||
TL_PutFormToShaUnsNote (&SocNot,true); // Show all
|
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TL_ShaNoteGbl (void)
|
void TL_ShaNoteGbl (void)
|
||||||
|
@ -3282,24 +3274,7 @@ void TL_ShaNoteGbl (void)
|
||||||
TL_ShaNote (&SocNot);
|
TL_ShaNote (&SocNot);
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to unshare *****/
|
/***** Write HTML inside DIV with form to unshare *****/
|
||||||
TL_PutFormToShaUnsNote (&SocNot,false); // Show only a few
|
TL_PutFormToShaUnsNote (&SocNot,TL_SHOW_A_FEW_USRS);
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void TL_ShaNoteUsr (void)
|
|
||||||
{
|
|
||||||
struct TL_Note SocNot;
|
|
||||||
|
|
||||||
/***** Get user whom profile is displayed *****/
|
|
||||||
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
|
||||||
|
|
||||||
/***** Share note *****/
|
|
||||||
TL_ShaNote (&SocNot);
|
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to unshare *****/
|
|
||||||
TL_PutFormToShaUnsNote (&SocNot,false); // Show only a few
|
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
/***** All the output is made, so don't write anymore *****/
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
||||||
|
@ -3374,6 +3349,15 @@ static void TL_ShaNote (struct TL_Note *SocNot)
|
||||||
/********************** Mark/unmark a note as favourite **********************/
|
/********************** Mark/unmark a note as favourite **********************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
void TL_ShowAllFaversNoteUsr (void)
|
||||||
|
{
|
||||||
|
/***** Get user whom profile is displayed *****/
|
||||||
|
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
||||||
|
|
||||||
|
/***** Show all favers *****/
|
||||||
|
TL_ShowAllFaversNoteGbl ();
|
||||||
|
}
|
||||||
|
|
||||||
void TL_ShowAllFaversNoteGbl (void)
|
void TL_ShowAllFaversNoteGbl (void)
|
||||||
{
|
{
|
||||||
struct TL_Note SocNot;
|
struct TL_Note SocNot;
|
||||||
|
@ -3383,28 +3367,19 @@ void TL_ShowAllFaversNoteGbl (void)
|
||||||
TL_GetDataOfNoteByCod (&SocNot);
|
TL_GetDataOfNoteByCod (&SocNot);
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to fav/unfav *****/
|
/***** Write HTML inside DIV with form to fav/unfav *****/
|
||||||
TL_PutFormToFavUnfNote (&SocNot,true); // Show all
|
TL_PutFormToFavUnfNote (&SocNot,TL_SHOW_ALL_USRS);
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
/***** All the output is made, so don't write anymore *****/
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TL_ShowAllFaversNoteUsr (void)
|
void TL_FavNoteUsr (void)
|
||||||
{
|
{
|
||||||
struct TL_Note SocNot;
|
|
||||||
|
|
||||||
/***** Get user whom profile is displayed *****/
|
/***** Get user whom profile is displayed *****/
|
||||||
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
||||||
|
|
||||||
/***** Get data of note *****/
|
/***** Mark note as favourite *****/
|
||||||
SocNot.NotCod = TL_GetParamNotCod ();
|
TL_FavNoteGbl ();
|
||||||
TL_GetDataOfNoteByCod (&SocNot);
|
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to fav/unfav *****/
|
|
||||||
TL_PutFormToFavUnfNote (&SocNot,true); // Show all
|
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TL_FavNoteGbl (void)
|
void TL_FavNoteGbl (void)
|
||||||
|
@ -3415,27 +3390,19 @@ void TL_FavNoteGbl (void)
|
||||||
TL_FavNote (&SocNot);
|
TL_FavNote (&SocNot);
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to unfav *****/
|
/***** Write HTML inside DIV with form to unfav *****/
|
||||||
TL_PutFormToFavUnfNote (&SocNot,false); // Show only a few
|
TL_PutFormToFavUnfNote (&SocNot,TL_SHOW_A_FEW_USRS);
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
/***** All the output is made, so don't write anymore *****/
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TL_FavNoteUsr (void)
|
void TL_UnfNoteUsr (void)
|
||||||
{
|
{
|
||||||
struct TL_Note SocNot;
|
|
||||||
|
|
||||||
/***** Get user whom profile is displayed *****/
|
/***** Get user whom profile is displayed *****/
|
||||||
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
||||||
|
|
||||||
/***** Mark note as favourite *****/
|
/***** Unfav a note previously marked as favourite *****/
|
||||||
TL_FavNote (&SocNot);
|
TL_UnfNoteGbl ();
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to unfav *****/
|
|
||||||
TL_PutFormToFavUnfNote (&SocNot,false); // Show only a few
|
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TL_UnfNoteGbl (void)
|
void TL_UnfNoteGbl (void)
|
||||||
|
@ -3446,24 +3413,7 @@ void TL_UnfNoteGbl (void)
|
||||||
TL_UnfNote (&SocNot);
|
TL_UnfNote (&SocNot);
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to fav *****/
|
/***** Write HTML inside DIV with form to fav *****/
|
||||||
TL_PutFormToFavUnfNote (&SocNot,false); // Show only a few
|
TL_PutFormToFavUnfNote (&SocNot,TL_SHOW_A_FEW_USRS);
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void TL_UnfNoteUsr (void)
|
|
||||||
{
|
|
||||||
struct TL_Note SocNot;
|
|
||||||
|
|
||||||
/***** Get user whom profile is displayed *****/
|
|
||||||
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
|
||||||
|
|
||||||
/***** Unfav a note previously marked as favourite *****/
|
|
||||||
TL_UnfNote (&SocNot);
|
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to fav *****/
|
|
||||||
TL_PutFormToFavUnfNote (&SocNot,false); // Show only a few
|
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
/***** All the output is made, so don't write anymore *****/
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
||||||
|
@ -3574,6 +3524,15 @@ static void TL_UnfNote (struct TL_Note *SocNot)
|
||||||
/********************* Mark/unmark a comment as favourite ************************/
|
/********************* Mark/unmark a comment as favourite ************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
void TL_ShowAllFaversComUsr (void)
|
||||||
|
{
|
||||||
|
/***** Get user whom profile is displayed *****/
|
||||||
|
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
||||||
|
|
||||||
|
/***** Show all favers *****/
|
||||||
|
TL_ShowAllFaversComGbl ();
|
||||||
|
}
|
||||||
|
|
||||||
void TL_ShowAllFaversComGbl (void)
|
void TL_ShowAllFaversComGbl (void)
|
||||||
{
|
{
|
||||||
struct TL_Comment SocCom;
|
struct TL_Comment SocCom;
|
||||||
|
@ -3585,30 +3544,19 @@ void TL_ShowAllFaversComGbl (void)
|
||||||
Med_MediaDestructor (&SocCom.Media);
|
Med_MediaDestructor (&SocCom.Media);
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to fav/unfav *****/
|
/***** Write HTML inside DIV with form to fav/unfav *****/
|
||||||
TL_PutFormToFavUnfComment (&SocCom,true); // Show all
|
TL_PutFormToFavUnfComment (&SocCom,TL_SHOW_ALL_USRS);
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
/***** All the output is made, so don't write anymore *****/
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TL_ShowAllFaversComUsr (void)
|
void TL_FavCommentUsr (void)
|
||||||
{
|
{
|
||||||
struct TL_Comment SocCom;
|
|
||||||
|
|
||||||
/***** Get user whom profile is displayed *****/
|
/***** Get user whom profile is displayed *****/
|
||||||
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
||||||
|
|
||||||
/***** Get data of comment *****/
|
/***** Mark comment as favourite *****/
|
||||||
Med_MediaConstructor (&SocCom.Media);
|
TL_FavCommentGbl ();
|
||||||
SocCom.PubCod = TL_GetParamPubCod ();
|
|
||||||
TL_GetDataOfCommByCod (&SocCom);
|
|
||||||
Med_MediaDestructor (&SocCom.Media);
|
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to fav/unfav *****/
|
|
||||||
TL_PutFormToFavUnfComment (&SocCom,true); // Show all
|
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TL_FavCommentGbl (void)
|
void TL_FavCommentGbl (void)
|
||||||
|
@ -3619,27 +3567,19 @@ void TL_FavCommentGbl (void)
|
||||||
TL_FavComment (&SocCom);
|
TL_FavComment (&SocCom);
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to unfav *****/
|
/***** Write HTML inside DIV with form to unfav *****/
|
||||||
TL_PutFormToFavUnfComment (&SocCom,false); // Show only a few
|
TL_PutFormToFavUnfComment (&SocCom,TL_SHOW_A_FEW_USRS);
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
/***** All the output is made, so don't write anymore *****/
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TL_FavCommentUsr (void)
|
void TL_UnfCommentUsr (void)
|
||||||
{
|
{
|
||||||
struct TL_Comment SocCom;
|
|
||||||
|
|
||||||
/***** Get user whom profile is displayed *****/
|
/***** Get user whom profile is displayed *****/
|
||||||
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
||||||
|
|
||||||
/***** Mark comment as favourite *****/
|
/***** Unfav a comment previously marked as favourite *****/
|
||||||
TL_FavComment (&SocCom);
|
TL_UnfCommentGbl ();
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to unfav *****/
|
|
||||||
TL_PutFormToFavUnfComment (&SocCom,false); // Show only a few
|
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TL_UnfCommentGbl (void)
|
void TL_UnfCommentGbl (void)
|
||||||
|
@ -3650,24 +3590,7 @@ void TL_UnfCommentGbl (void)
|
||||||
TL_UnfComment (&SocCom);
|
TL_UnfComment (&SocCom);
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to fav *****/
|
/***** Write HTML inside DIV with form to fav *****/
|
||||||
TL_PutFormToFavUnfComment (&SocCom,false); // Show only a few
|
TL_PutFormToFavUnfComment (&SocCom,TL_SHOW_A_FEW_USRS);
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void TL_UnfCommentUsr (void)
|
|
||||||
{
|
|
||||||
struct TL_Comment SocCom;
|
|
||||||
|
|
||||||
/***** Get user whom profile is displayed *****/
|
|
||||||
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
|
||||||
|
|
||||||
/***** Unfav a comment previously marked as favourite *****/
|
|
||||||
TL_UnfComment (&SocCom);
|
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to fav *****/
|
|
||||||
TL_PutFormToFavUnfComment (&SocCom,false); // Show only a few
|
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
/***** All the output is made, so don't write anymore *****/
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
||||||
|
@ -3820,6 +3743,15 @@ static void TL_CreateNotifToAuthor (long AuthorCod,long PubCod,
|
||||||
/******************** Unshare a previously shared note ***********************/
|
/******************** Unshare a previously shared note ***********************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
void TL_UnsNoteUsr (void)
|
||||||
|
{
|
||||||
|
/***** Get user whom profile is displayed *****/
|
||||||
|
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
||||||
|
|
||||||
|
/***** Unshare note *****/
|
||||||
|
TL_UnsNoteGbl ();
|
||||||
|
}
|
||||||
|
|
||||||
void TL_UnsNoteGbl (void)
|
void TL_UnsNoteGbl (void)
|
||||||
{
|
{
|
||||||
struct TL_Note SocNot;
|
struct TL_Note SocNot;
|
||||||
|
@ -3828,24 +3760,7 @@ void TL_UnsNoteGbl (void)
|
||||||
TL_UnsNote (&SocNot);
|
TL_UnsNote (&SocNot);
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to share *****/
|
/***** Write HTML inside DIV with form to share *****/
|
||||||
TL_PutFormToShaUnsNote (&SocNot,false); // Show only a few
|
TL_PutFormToShaUnsNote (&SocNot,TL_SHOW_A_FEW_USRS);
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void TL_UnsNoteUsr (void)
|
|
||||||
{
|
|
||||||
struct TL_Note SocNot;
|
|
||||||
|
|
||||||
/***** Get user whom profile is displayed *****/
|
|
||||||
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
|
||||||
|
|
||||||
/***** Share note *****/
|
|
||||||
TL_UnsNote (&SocNot);
|
|
||||||
|
|
||||||
/***** Write HTML inside DIV with form to share *****/
|
|
||||||
TL_PutFormToShaUnsNote (&SocNot,false); // Show only a few
|
|
||||||
|
|
||||||
/***** All the output is made, so don't write anymore *****/
|
/***** All the output is made, so don't write anymore *****/
|
||||||
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
Gbl.Layout.DivsEndWritten = Gbl.Layout.HTMLEndWritten = true;
|
||||||
|
@ -3894,15 +3809,6 @@ static void TL_UnsNote (struct TL_Note *SocNot)
|
||||||
/*********************** Request the removal of a note ***********************/
|
/*********************** Request the removal of a note ***********************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
void TL_RequestRemNoteGbl (void)
|
|
||||||
{
|
|
||||||
/***** Request the removal of note *****/
|
|
||||||
TL_RequestRemovalNote ();
|
|
||||||
|
|
||||||
/***** Write timeline again (global) *****/
|
|
||||||
TL_ShowTimelineGbl2 ();
|
|
||||||
}
|
|
||||||
|
|
||||||
void TL_RequestRemNoteUsr (void)
|
void TL_RequestRemNoteUsr (void)
|
||||||
{
|
{
|
||||||
/***** Get user whom profile is displayed *****/
|
/***** Get user whom profile is displayed *****/
|
||||||
|
@ -3924,6 +3830,15 @@ void TL_RequestRemNoteUsr (void)
|
||||||
Lay_EndSection ();
|
Lay_EndSection ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TL_RequestRemNoteGbl (void)
|
||||||
|
{
|
||||||
|
/***** Request the removal of note *****/
|
||||||
|
TL_RequestRemovalNote ();
|
||||||
|
|
||||||
|
/***** Write timeline again (global) *****/
|
||||||
|
TL_ShowTimelineGbl2 ();
|
||||||
|
}
|
||||||
|
|
||||||
static void TL_RequestRemovalNote (void)
|
static void TL_RequestRemovalNote (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_The_original_post_no_longer_exists;
|
extern const char *Txt_The_original_post_no_longer_exists;
|
||||||
|
@ -3983,15 +3898,6 @@ static void TL_PutParamsRemoveNote (void)
|
||||||
/******************************* Remove a note *******************************/
|
/******************************* Remove a note *******************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
void TL_RemoveNoteGbl (void)
|
|
||||||
{
|
|
||||||
/***** Remove a note *****/
|
|
||||||
TL_RemoveNote ();
|
|
||||||
|
|
||||||
/***** Write updated timeline after removing (global) *****/
|
|
||||||
TL_ShowTimelineGbl2 ();
|
|
||||||
}
|
|
||||||
|
|
||||||
void TL_RemoveNoteUsr (void)
|
void TL_RemoveNoteUsr (void)
|
||||||
{
|
{
|
||||||
/***** Get user whom profile is displayed *****/
|
/***** Get user whom profile is displayed *****/
|
||||||
|
@ -4013,6 +3919,15 @@ void TL_RemoveNoteUsr (void)
|
||||||
Lay_EndSection ();
|
Lay_EndSection ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TL_RemoveNoteGbl (void)
|
||||||
|
{
|
||||||
|
/***** Remove a note *****/
|
||||||
|
TL_RemoveNote ();
|
||||||
|
|
||||||
|
/***** Write updated timeline after removing (global) *****/
|
||||||
|
TL_ShowTimelineGbl2 ();
|
||||||
|
}
|
||||||
|
|
||||||
static void TL_RemoveNote (void)
|
static void TL_RemoveNote (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_The_original_post_no_longer_exists;
|
extern const char *Txt_The_original_post_no_longer_exists;
|
||||||
|
@ -4201,15 +4116,6 @@ static long TL_GetPubCodOfOriginalNote (long NotCod)
|
||||||
/**************** Request the removal of a comment in a note *****************/
|
/**************** Request the removal of a comment in a note *****************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
void TL_RequestRemComGbl (void)
|
|
||||||
{
|
|
||||||
/***** Request the removal of comment in note *****/
|
|
||||||
TL_RequestRemovalComment ();
|
|
||||||
|
|
||||||
/***** Write timeline again (global) *****/
|
|
||||||
TL_ShowTimelineGbl2 ();
|
|
||||||
}
|
|
||||||
|
|
||||||
void TL_RequestRemComUsr (void)
|
void TL_RequestRemComUsr (void)
|
||||||
{
|
{
|
||||||
/***** Get user whom profile is displayed *****/
|
/***** Get user whom profile is displayed *****/
|
||||||
|
@ -4231,6 +4137,15 @@ void TL_RequestRemComUsr (void)
|
||||||
Lay_EndSection ();
|
Lay_EndSection ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TL_RequestRemComGbl (void)
|
||||||
|
{
|
||||||
|
/***** Request the removal of comment in note *****/
|
||||||
|
TL_RequestRemovalComment ();
|
||||||
|
|
||||||
|
/***** Write timeline again (global) *****/
|
||||||
|
TL_ShowTimelineGbl2 ();
|
||||||
|
}
|
||||||
|
|
||||||
static void TL_RequestRemovalComment (void)
|
static void TL_RequestRemovalComment (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_The_comment_no_longer_exists;
|
extern const char *Txt_The_comment_no_longer_exists;
|
||||||
|
@ -4296,15 +4211,6 @@ static void TL_PutParamsRemoveCommment (void)
|
||||||
/***************************** Remove a comment ******************************/
|
/***************************** Remove a comment ******************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
void TL_RemoveComGbl (void)
|
|
||||||
{
|
|
||||||
/***** Remove a comment *****/
|
|
||||||
TL_RemoveComment ();
|
|
||||||
|
|
||||||
/***** Write updated timeline after removing (global) *****/
|
|
||||||
TL_ShowTimelineGbl2 ();
|
|
||||||
}
|
|
||||||
|
|
||||||
void TL_RemoveComUsr (void)
|
void TL_RemoveComUsr (void)
|
||||||
{
|
{
|
||||||
/***** Get user whom profile is displayed *****/
|
/***** Get user whom profile is displayed *****/
|
||||||
|
@ -4326,6 +4232,15 @@ void TL_RemoveComUsr (void)
|
||||||
Lay_EndSection ();
|
Lay_EndSection ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TL_RemoveComGbl (void)
|
||||||
|
{
|
||||||
|
/***** Remove a comment *****/
|
||||||
|
TL_RemoveComment ();
|
||||||
|
|
||||||
|
/***** Write updated timeline after removing (global) *****/
|
||||||
|
TL_ShowTimelineGbl2 ();
|
||||||
|
}
|
||||||
|
|
||||||
static void TL_RemoveComment (void)
|
static void TL_RemoveComment (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_The_comment_no_longer_exists;
|
extern const char *Txt_The_comment_no_longer_exists;
|
||||||
|
|
|
@ -146,44 +146,44 @@ void TL_MarkNoteAsUnavailableUsingNoteTypeAndCod (TL_NoteType_t NoteType,long Co
|
||||||
void TL_MarkNoteOneFileAsUnavailable (const char *Path);
|
void TL_MarkNoteOneFileAsUnavailable (const char *Path);
|
||||||
void TL_MarkNotesChildrenOfFolderAsUnavailable (const char *Path);
|
void TL_MarkNotesChildrenOfFolderAsUnavailable (const char *Path);
|
||||||
|
|
||||||
void TL_ReceivePostGbl (void);
|
|
||||||
void TL_ReceivePostUsr (void);
|
void TL_ReceivePostUsr (void);
|
||||||
|
void TL_ReceivePostGbl (void);
|
||||||
|
|
||||||
void TL_PutHiddenParamPubCod (long PubCod);
|
void TL_PutHiddenParamPubCod (long PubCod);
|
||||||
|
|
||||||
void TL_ReceiveCommentGbl (void);
|
|
||||||
void TL_ReceiveCommentUsr (void);
|
void TL_ReceiveCommentUsr (void);
|
||||||
|
void TL_ReceiveCommentGbl (void);
|
||||||
|
|
||||||
void TL_ShowAllSharersNoteGbl (void);
|
|
||||||
void TL_ShowAllSharersNoteUsr (void);
|
void TL_ShowAllSharersNoteUsr (void);
|
||||||
void TL_ShaNoteGbl (void);
|
void TL_ShowAllSharersNoteGbl (void);
|
||||||
void TL_ShaNoteUsr (void);
|
void TL_ShaNoteUsr (void);
|
||||||
void TL_UnsNoteGbl (void);
|
void TL_ShaNoteGbl (void);
|
||||||
void TL_UnsNoteUsr (void);
|
void TL_UnsNoteUsr (void);
|
||||||
|
void TL_UnsNoteGbl (void);
|
||||||
|
|
||||||
void TL_ShowAllFaversNoteGbl (void);
|
|
||||||
void TL_ShowAllFaversNoteUsr (void);
|
void TL_ShowAllFaversNoteUsr (void);
|
||||||
void TL_FavNoteGbl (void);
|
void TL_ShowAllFaversNoteGbl (void);
|
||||||
void TL_FavNoteUsr (void);
|
void TL_FavNoteUsr (void);
|
||||||
void TL_UnfNoteGbl (void);
|
void TL_FavNoteGbl (void);
|
||||||
void TL_UnfNoteUsr (void);
|
void TL_UnfNoteUsr (void);
|
||||||
|
void TL_UnfNoteGbl (void);
|
||||||
|
|
||||||
void TL_ShowAllFaversComGbl (void);
|
|
||||||
void TL_ShowAllFaversComUsr (void);
|
void TL_ShowAllFaversComUsr (void);
|
||||||
void TL_FavCommentGbl (void);
|
void TL_ShowAllFaversComGbl (void);
|
||||||
void TL_FavCommentUsr (void);
|
void TL_FavCommentUsr (void);
|
||||||
void TL_UnfCommentGbl (void);
|
void TL_FavCommentGbl (void);
|
||||||
void TL_UnfCommentUsr (void);
|
void TL_UnfCommentUsr (void);
|
||||||
|
void TL_UnfCommentGbl (void);
|
||||||
|
|
||||||
void TL_RequestRemNoteGbl (void);
|
|
||||||
void TL_RequestRemNoteUsr (void);
|
void TL_RequestRemNoteUsr (void);
|
||||||
void TL_RemoveNoteGbl (void);
|
void TL_RequestRemNoteGbl (void);
|
||||||
void TL_RemoveNoteUsr (void);
|
void TL_RemoveNoteUsr (void);
|
||||||
|
void TL_RemoveNoteGbl (void);
|
||||||
|
|
||||||
void TL_RequestRemComGbl (void);
|
|
||||||
void TL_RequestRemComUsr (void);
|
void TL_RequestRemComUsr (void);
|
||||||
void TL_RemoveComGbl (void);
|
void TL_RequestRemComGbl (void);
|
||||||
void TL_RemoveComUsr (void);
|
void TL_RemoveComUsr (void);
|
||||||
|
void TL_RemoveComGbl (void);
|
||||||
|
|
||||||
void TL_RemoveUsrContent (long UsrCod);
|
void TL_RemoveUsrContent (long UsrCod);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue