Version 15.97.1

This commit is contained in:
Antonio Cañas Vargas 2016-01-04 16:10:27 +01:00
parent 7f72b603b7
commit b6c9bc0268
5 changed files with 17 additions and 16 deletions

View File

@ -1527,10 +1527,10 @@ a:hover img.CENTRE_PHOTO_SHOW
.USR_ID {color:#404040; font-size:18pt; font-weight:bold;}
.DAT {color:#707070; font-size:13pt;}
.DAT {color:#404040; font-size:13pt;}
.DAT_GREEN {color:#008000; font-size:13pt;}
.DAT_LIGHT {color:#A0A0A0; font-size:13pt;}
.DAT_NOBR {color:#707070; font-size:13pt; white-space:nowrap;}
.DAT_NOBR {color:#404040; font-size:13pt; white-space:nowrap;}
.DAT_N {color:black; font-size:13pt;}
.DAT_NOBR_N {color:black; font-size:13pt; white-space:nowrap;}
.DAT_N_BOLD {color:black; font-size:13pt; font-weight:bold;}

View File

@ -110,20 +110,21 @@
// TODO: Fix bug at the end of ranking (number too low) when a course is selected
// TODO: Reply to all
// TODO: Hour in exam announcement should start at six a.m.
// TODO: Change "Actividad pública" to "Actividad de Antonio" in user's profile
// TODO: Forums For_FORUM_GLOBAL_USRS and For_FORUM_SWAD_USRS should be available for guests for coherence with social timeline?
// TODO: Actividad pública: (*) Visible por cualquier usuario identificado
/*****************************************************************************/
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.97 (2016-01-04)"
#define Log_PLATFORM_VERSION "SWAD 15.97.1 (2016-01-04)"
#define CSS_FILE "swad15.97.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.97.1: Jan 04, 2016 User's timeline below user's profile visible only by logged users. (190719 lines)
Version 15.97: Jan 04, 2016 Show list of some users who has shared a social note. (190718 lines)
3 changes necessary in database:
CREATE TABLE IF NOT EXISTS social_timeline_new (PubCod BIGINT NOT NULL AUTO_INCREMENT, NotCod BIGINT NOT NULL, PublisherCod INT NOT NULL, AuthorCod INT NOT NULL, TimePublish DATETIME NOT NULL, UNIQUE INDEX(PubCod), UNIQUE INDEX(NotCod,PublisherCod), INDEX(PublisherCod), INDEX(AuthorCod), INDEX(TimePublish)) SELECT PubCod,NotCod,PublisherCod,AuthorCod,TimePublish FROM social_timeline ORDER BY PubCod;

View File

@ -207,7 +207,7 @@ static void Prf_GetUsrDatAndShowUserProfile (void)
/***** Request nickname again *****/
Prf_RequestUserProfileWithDefaultNickname ("");
}
else
else if (Gbl.Usrs.Me.Logged) // Timeline visible only by logged users
{
/***** Start section *****/
fprintf (Gbl.F.Out,"<section id=\"timeline\">");

View File

@ -114,7 +114,7 @@ struct SocialNote
long Cod; // Code of file, forum post, notice,...
bool Unavailable; // File, forum post, notice,... unavailable (removed)
time_t DateTimeUTC;
unsigned NumShared; // Number of times this note has been shared
unsigned NumShared; // Number of times (users) this note has been shared
};
/*****************************************************************************/
@ -1817,13 +1817,13 @@ static void Soc_GetDataOfSocialNoteByCod (struct SocialNote *SocNot)
else
{
/***** Reset fields of social note *****/
SocNot->NoteType = Soc_NOTE_UNKNOWN;
SocNot->UsrCod = -1L;
SocNot->HieCod = -1L;
SocNot->Cod = -1L;
SocNot->Unavailable = false;
SocNot->DateTimeUTC = (time_t) 0;
SocNot->NumShared = 0;
SocNot->NoteType = Soc_NOTE_UNKNOWN;
SocNot->UsrCod = -1L;
SocNot->HieCod = -1L;
SocNot->Cod = -1L;
SocNot->Unavailable = false;
SocNot->DateTimeUTC = (time_t) 0;
SocNot->NumShared = 0;
}
}

View File

@ -23858,17 +23858,17 @@ const char *Txt_No_of_users_who_will_be_notified_by_e_mail =
const char *Txt_No_public_activity =
#if L==1
"No hi ha activitat p&uacute;blica";
"Cap activitat p&uacute;blica";
#elif L==2
"Keine &ouml;ffentliche Aktivit&auml;t";
#elif L==3
"No public activity";
#elif L==4
"No hay actividad p&uacute;blica";
"Ninguna actividad p&uacute;blica";
#elif L==5
"Aucune activit&eacute; public";
#elif L==6
"No hay actividad p&uacute;blica"; // Okoteve traducción
"Ninguna actividad p&uacute;blica"; // Okoteve traducción
#elif L==7
"Nessuna attivit&agrave; pubblica";
#elif L==8