Added a “message to admins” that gets shown when server thumbnail is unavailable, explaining how to try and fix it

This commit is contained in:
pezcurrel 2022-12-29 09:30:06 +01:00
parent 94bfec5f78
commit 594447e2a5

View file

@ -508,10 +508,11 @@ while ($if<$il && $row=mysqli_fetch_assoc($res)) {
while ($rrow=mysqli_fetch_assoc($rres))
$buf[]=hspech($rrow['Lang']);
($row['Thumb']=='unavailable') ? $thumb=$prepath.'imgs/InstThumbUnavailable.svg' : $thumb=$row['Thumb'];
$out.='<a href="https://'.hspech($row['URI']).'" title="'._('Go to instance').'"><div class="iimgc"><img class="iimg" src="'.$thumb.'">';
$out.='<div class="iimgc"><a href="https://'.hspech($row['URI']).'" title="'._('Go to instance').'"><img class="iimg" src="'.$thumb.'"></a>';
// if (!is_null($row['Priority'])) $out.='<img src="'.$prepath.'imgs/featured-it.svg" class="ifeat">';
if (!is_null($row['Priority'])) $out.='<div class="dfeat">'._('Recommended').'</div>';
$out.='</div></a>'.N;
if ($row['Thumb']=='unavailable') $out.='<div class="unavmsg">'._('It seems like this instances server thumbnails URL points to a non existent file. This is usually easily fixeable by admins by uploading again the server thumbnail (“Preferences” &gt; “Administration” &gt; “Server settings” &gt; “Branding” &gt; “Server thumbnail”). Note that if you do it, the change wont be displayed here before the daily automatic update of this instances infos occurs.').'</div>';
$out.='</div>'.N;
$out.='<div class="icol">'.N;
$out.='<div><span class="ilab">'._('Name').'</span> <a href="https://'.hspech($row['URI']).'" title="'._('Go to instance').'">'.nully(hspech($row['Title'])).'</a></div>'.N;
/*$out.='<div><span class="ilab">'._('Consigliata').'</span> ';