[Imc-tech] Author on the newswire
Daniel S. Lewart
d-lewart at uiuc.edu
Thu Nov 1 01:23:20 CST 2001
Christopher,
> I was curious how you hacked in the author's name on the newswire on the
> front page? we would like to do the same. thanks
> --christopher, tc-imc
Below is the patch I made to webcast/summary_list.inc.
I'm glad y'all like it!
Solidarity,
Dan
http://urbana.indymedia.org/
-------------------------------------------------------------------------------
--- webcast/summary_list.inc.orig Tue Aug 14 03:32:53 2001
+++ webcast/summary_list.inc Mon Aug 27 06:45:43 2001
@@ -113,17 +113,21 @@
# $str .= "<IMG SRC=\"$filename_doc\" ALT=\"document\" $sizes_doc[3] BORDER=\"0\">";
# using "sizes" for the doc icon yields an icon which is too large -
# stefai 25 may 2001
- $str .= "<IMG SRC=\filename_doc\" ALT=\"document\" height=\"20\" width=\"15\" BORDER=\"0\">";
+ $str .= "<IMG SRC=\"$filename_doc\" ALT=\"document\" height=\"20\" width=\"15\" BORDER=\"0\">";
# } elseif (strstr($mymime, "application/pdf")) {
} elseif (substr_count($mymime, "application/pdf")==1 ) {
$str .= "<IMG SRC=\"$filename_pdf\" ALT=\"document\" $sizes_pdf[3] BORDER=\"0\">";
}
- $group = $row["arttype"];
+ $group = chop($row["arttype"]);
$str .= "<a href=\"front.php3?article_id=$id&group=$group\">";
- $str .= "$row[heading]";
- $str .= "</a>\n";
+ $str .= chop($row[heading]);
+ $str .= "</a><br>\n";
+ $str .= "by " . chop($row[author]);
+ if ($row[numcomment] > 0)
+ $str .= " (+$row[numcomment])";
+ $str .= "<br>\n";
$str .= "<font size=-1><i>$nice_time</i></font>\n";
}
-------------------------------------------------------------------------------
More information about the Imc-tech
mailing list