From abcca2c490c1acbcc2b3be65b4ac7e30aa6a8394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Tue, 12 Apr 2016 22:28:15 +0200 Subject: [PATCH] Version 15.192.12 --- css/swad15.192.9.css | 2 +- swad_changelog.h | 6 +++++- swad_forum.c | 3 +-- swad_group.c | 2 +- swad_social.c | 3 ++- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/css/swad15.192.9.css b/css/swad15.192.9.css index d5c80f1c6..d27ffbba2 100644 --- a/css/swad15.192.9.css +++ b/css/swad15.192.9.css @@ -2077,7 +2077,7 @@ a:hover img.CENTRE_PHOTO_SHOW { width:100%; border-radius:4px; - margin:10px 0; + margin:20px 0; } .FOR_IMG_TIT { diff --git a/swad_changelog.h b/swad_changelog.h index 95f165545..add360cf5 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -130,18 +130,22 @@ // TODO: In social refreshing via AJAX, an error occurs when session expirates // TODO: Messages in msg_content_deleted older than a certain time should be deleted to ensure the protection of personal data // TODO: Request confirmation to remove user's photo +// TODO: Optional link in images to original file /*****************************************************************************/ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.192.10 (2016-04-11)" +#define Log_PLATFORM_VERSION "SWAD 15.192.12 (2016-04-12)" #define CSS_FILE "swad15.192.9.css" #define JS_FILE "swad15.190.1.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.192.12:Apr 12, 2016 Fixed bug in groups reported by user raistmaj in GitHub. (199339 lines) + Version 15.192.11:Apr 12, 2016 Image quality in social posts reduced to 50 in order to speed up page loading. + Change in layout of message post. (199337 lines) Version 15.192.10:Apr 11, 2016 Fixed bug in edition of test questions. (199335 lines) Version 15.192.9: Apr 11, 2016 Changed layout of form to send attached image in forum posts and messages. (199333 lines) Version 15.192.8: Apr 11, 2016 Contextual icon to remove user's photo. (199331 lines) diff --git a/swad_forum.c b/swad_forum.c index 4e1cecbca..04a0d9dfb 100644 --- a/swad_forum.c +++ b/swad_forum.c @@ -1308,8 +1308,7 @@ static void For_ShowAForumPost (struct ForumThread *Thr,unsigned PstNum,long Pst } else fprintf (Gbl.F.Out,"%s",Txt_This_post_has_been_banned_probably_for_not_satisfy_the_rules_of_the_forums); - fprintf (Gbl.F.Out,"
 " - "" + fprintf (Gbl.F.Out,"" ""); /***** Free image *****/ diff --git a/swad_group.c b/swad_group.c index f6bb111ca..38a06be9d 100644 --- a/swad_group.c +++ b/swad_group.c @@ -2727,7 +2727,7 @@ bool Grp_CheckIfGroupExists (long GrpCod) bool Grp_CheckIfGroupBelongsToCourse (long GrpCod,long CrsCod) { - char Query[128]; + char Query[256]; /***** Get if a group exists from database *****/ sprintf (Query,"SELECT COUNT(*) FROM crs_grp,crs_grp_types" diff --git a/swad_social.c b/swad_social.c index d0ca40bf9..f099736b6 100644 --- a/swad_social.c +++ b/swad_social.c @@ -88,7 +88,8 @@ typedef enum // - maintaining the original aspect ratio (aspect ratio recommended: 3:2) #define Soc_IMAGE_SAVED_MAX_WIDTH 768 #define Soc_IMAGE_SAVED_MAX_HEIGHT 512 -#define Soc_IMAGE_SAVED_QUALITY 75 // 1 to 100 +#define Soc_IMAGE_SAVED_QUALITY 50 // 1 to 100 +// in social posts, the quality is low in order to speed up the loading of images /*****************************************************************************/ /****************************** Internal types *******************************/