mirror of https://github.com/BOINC/boinc.git
Changed length of profile excerpt.
svn path=/trunk/boinc/; revision=1840
This commit is contained in:
parent
87535d0ee1
commit
906a735297
|
@ -3,7 +3,7 @@
|
|||
require_once("../html_user/project_specific/project.inc");
|
||||
require_once("../html_user/profile.inc");
|
||||
require_once("../html_user/util.inc");
|
||||
require_once("../html_user/sanitize_html.inc");
|
||||
|
||||
|
||||
// Generates the html files which comprise the photo gallery.
|
||||
// $room: which gallery to generate (user, computer).
|
||||
|
@ -65,7 +65,7 @@ function build_picture_pages($width, $height) {
|
|||
for ($col = 0; $col < $width; $col++) {
|
||||
if ($count < $numIds) {
|
||||
|
||||
fwrite($descriptor, "<td><a href=\"" . URL_BASE . "view_profile.php?userid=" . $userIds[$count] . "\"><img src=\"" . '../' . IMAGE_PATH . $userIds[$count] . '_sm.jpg' . "\"></a></td>");
|
||||
fwrite($descriptor, "<td align=\"center\"><a href=\"" . URL_BASE . "view_profile.php?userid=" . $userIds[$count] . "\"><img src=\"" . '../' . IMAGE_PATH . $userIds[$count] . '_sm.jpg' . "\"></a></td>");
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
|
@ -83,7 +83,6 @@ function build_picture_pages($width, $height) {
|
|||
|
||||
page_tail($descriptor);
|
||||
|
||||
//fwrite($descriptor, "</body></html>");
|
||||
fclose($descriptor);
|
||||
|
||||
}
|
||||
|
@ -113,6 +112,8 @@ function build_country_pages() {
|
|||
if ($row2['country']) {
|
||||
$countryMembers[$row2['country']][] = $row2['id'];
|
||||
$numIds++;
|
||||
} else {
|
||||
$countryMembers['Other'][] = $row2['id'];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -122,6 +123,7 @@ function build_country_pages() {
|
|||
//echo "$numIds users have profiles AND non-null country entries.<br>";
|
||||
|
||||
$countries = array_keys($countryMembers);
|
||||
sort($countries);
|
||||
|
||||
// Build the pages.
|
||||
// TODO: Define a constant for the desired number of rows per page.
|
||||
|
|
Loading…
Reference in New Issue