"
+ ""
+ "#%u"
+ " | "
+ "",
+ Gbl.ColorRows[Gbl.RowEvenOdd],
+ Rank,
+ Gbl.ColorRows[Gbl.RowEvenOdd]);
/***** Check if I can see the public profile *****/
- if (Pri_ShowIsAllowed (UsrDat->ProfileVisibility,UsrDat->UsrCod))
+ if (Visible)
{
/***** User's photo *****/
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
- "PHOTO15x20",Pho_ZOOM);
-
- /***** Put form to go to public profile *****/
- if (UsrDat->Nickname[0])
- {
- Act_FormStart (ActSeePubPrf);
- Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
- Act_LinkFormSubmit (Txt_View_public_profile,"DAT_SMALL");
- fprintf (Gbl.F.Out,"@%s",UsrDat->Nickname);
- fprintf (Gbl.F.Out,"");
- Act_FormEnd ();
- }
+ "PHOTO18x24",Pho_ZOOM);
}
+
+ fprintf (Gbl.F.Out," | "
+ "",
+ Gbl.ColorRows[Gbl.RowEvenOdd]);
+
+ /***** Put form to go to public profile *****/
+ if (Visible && UsrDat->Nickname[0])
+ {
+ Act_FormStart (ActSeePubPrf);
+ Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
+ Act_LinkFormSubmit (Txt_View_public_profile,"DAT_SMALL");
+ Usr_RestrictLengthAndWriteName (UsrDat,8);
+ fprintf (Gbl.F.Out,"");
+ Act_FormEnd ();
+ }
+
+ fprintf (Gbl.F.Out," | ");
}
diff --git a/swad_user.c b/swad_user.c
index c6f33876..0e65bd0f 100644
--- a/swad_user.c
+++ b/swad_user.c
@@ -666,7 +666,7 @@ void Usr_BuildFullName (struct UsrData *UsrDat)
/******** Restrict length of firstname and surnames and write then ***********/
/*****************************************************************************/
-void Usr_RestrictLengthAndWriteName (struct UsrData *UsrDat,unsigned MaxChars)
+void Usr_RestrictLengthAndWriteName (const struct UsrData *UsrDat,unsigned MaxChars)
{
char FirstName[Usr_MAX_BYTES_NAME_SPEC_CHAR+1];
char Surnames[2*(Usr_MAX_BYTES_NAME_SPEC_CHAR+1)];
diff --git a/swad_user.h b/swad_user.h
index 5b655b3c..48544eff 100644
--- a/swad_user.h
+++ b/swad_user.h
@@ -206,7 +206,7 @@ void Usr_GetUsrDataFromUsrCod (struct UsrData *UsrDat);
void Usr_BuildFullName (struct UsrData *UsrDat);
-void Usr_RestrictLengthAndWriteName (struct UsrData *UsrDat,unsigned MaxChars);
+void Usr_RestrictLengthAndWriteName (const struct UsrData *UsrDat,unsigned MaxChars);
bool Usr_CheckIfUsrIsAdm (long UsrCod,Sco_Scope_t Scope,long Cod);
bool Usr_CheckIfUsrIsSuperuser (long UsrCod);