mirror of
https://github.com/acanas/swad-core.git
synced 2024-09-22 00:00:40 +02:00
Version 16.140.3
This commit is contained in:
parent
14337bf5cc
commit
9fd7a2948e
|
@ -204,13 +204,15 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.140.2 (2017-02-24)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.140.3 (2017-02-24)"
|
||||
#define CSS_FILE "swad16.139.6.css"
|
||||
#define JS_FILE "swad16.140.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 16.140.3: Feb 24, 2017 Changed refreshing of timeline from 30 to 10 seconds.
|
||||
Code refactoring in timeline when I do not follow any user. (213006 lines)
|
||||
Version 16.140.2: Feb 24, 2017 Changed text of users to view in global timeline. (212994 lines)
|
||||
Version 16.140.1: Feb 24, 2017 Hidden parameter with users to view in all actions related to global timeline.
|
||||
Code refactoring of forms in social timeline. (212993 lines)
|
||||
|
|
|
@ -458,7 +458,7 @@
|
|||
|
||||
#define Cfg_TIME_TO_REFRESH_LAST_CLICKS ((time_t)( 1UL * 1000UL)) // Refresh period of last clicks in miliseconds
|
||||
|
||||
#define Cfg_TIME_TO_REFRESH_SOCIAL_TIMELINE ((time_t)( 30UL * 1000UL)) // Refresh period of social timeline in miliseconds
|
||||
#define Cfg_TIME_TO_REFRESH_SOCIAL_TIMELINE ((time_t)( 10UL * 1000UL)) // Refresh period of social timeline in miliseconds
|
||||
|
||||
#define Cfg_TIME_TO_CHANGE_BANNER ((time_t)( 2UL * 60UL)) // After these seconds, change banner
|
||||
#define Cfg_NUMBER_OF_BANNERS 1 // Number of banners to show simultaneously
|
||||
|
|
|
@ -154,6 +154,8 @@ static void Soc_PutFormWhichUsrs (void);
|
|||
static void Soc_PutParamWhichUsrs (void);
|
||||
static void Soc_GetParamsWhichUsrs (void);
|
||||
|
||||
static void Soc_ShowWarningYouDontFollowAnyUser (void);
|
||||
|
||||
static void Soc_InsertNewPubsInTimeline (const char *Query);
|
||||
static void Soc_ShowOldPubsInTimeline (const char *Query);
|
||||
|
||||
|
@ -356,21 +358,8 @@ void Soc_ShowTimelineGbl2 (void)
|
|||
static void Soc_ShowTimelineGblHighlightingNot (long NotCod)
|
||||
{
|
||||
extern const char *Txt_Public_activity;
|
||||
extern const char *Txt_You_dont_follow_any_user;
|
||||
char Query[1024];
|
||||
|
||||
/***** Check if I follow someone *****/
|
||||
if (!Fol_GetNumFollowing (Gbl.Usrs.Me.UsrDat.UsrCod))
|
||||
{
|
||||
/***** Put link to show users to follow *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
|
||||
Fol_PutLinkWhoToFollow ();
|
||||
fprintf (Gbl.F.Out,"</div>");
|
||||
|
||||
/***** Show warning if I do not follow anyone *****/
|
||||
Lay_ShowAlert (Lay_WARNING,Txt_You_dont_follow_any_user);
|
||||
}
|
||||
|
||||
/***** Build query to get timeline *****/
|
||||
Soc_BuildQueryToGetTimeline (Soc_TIMELINE_GBL,
|
||||
Soc_GET_RECENT_TIMELINE,
|
||||
|
@ -1061,6 +1050,10 @@ static void Soc_PutFormWhichUsrs (void)
|
|||
fprintf (Gbl.F.Out,"</ul>"
|
||||
"</div>");
|
||||
Act_FormEnd ();
|
||||
|
||||
/***** Show warning if I do not follow anyone *****/
|
||||
if (Gbl.Social.WhichUsrs == Soc_FOLLOWED)
|
||||
Soc_ShowWarningYouDontFollowAnyUser ();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -1086,6 +1079,27 @@ static void Soc_GetParamsWhichUsrs (void)
|
|||
(unsigned long) Soc_DEFAULT_WHICH_USRS);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/********* Get parameter with which users to view in global timeline *********/
|
||||
/*****************************************************************************/
|
||||
|
||||
static void Soc_ShowWarningYouDontFollowAnyUser (void)
|
||||
{
|
||||
extern const char *Txt_You_dont_follow_any_user;
|
||||
|
||||
/***** Check if I follow someone *****/
|
||||
if (!Fol_GetNumFollowing (Gbl.Usrs.Me.UsrDat.UsrCod))
|
||||
{
|
||||
/***** Show warning if I do not follow anyone *****/
|
||||
Lay_ShowAlert (Lay_WARNING,Txt_You_dont_follow_any_user);
|
||||
|
||||
/***** Put link to show users to follow *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
|
||||
Fol_PutLinkWhoToFollow ();
|
||||
fprintf (Gbl.F.Out,"</div>");
|
||||
}
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/********** Show new social activity (new publishings in timeline) ***********/
|
||||
/*****************************************************************************/
|
||||
|
|
Loading…
Reference in New Issue
Block a user