Changeset 13978 for lang/csharp
- Timestamp:
- 06/15/08 08:06:48 (5 months ago)
- Location:
- lang/csharp/MMMMB/MMMMB/MiniBlogs
- Files:
-
- 2 modified
-
FriendFeed.cs (modified) (1 diff)
-
Jaiku.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/csharp/MMMMB/MMMMB/MiniBlogs/FriendFeed.cs
r13604 r13978 60 60 foreach (XmlNode node in nodeList) 61 61 { 62 string icon = node.SelectSingleNode("ff:service/ff:iconUrl", ns).InnerText; 63 string link = node.SelectSingleNode("link", ns).InnerText; 64 62 65 Entry e = new Entry(); 63 66 e.Permalink = new Uri("http://friendfeed.com/e/" + node.SelectSingleNode("ff:id", ns).InnerText); 64 67 e.Name = HttpUtility.HtmlEncode(node.SelectSingleNode("ff:user/ff:nickname", ns).InnerText); 65 e.Content = HttpUtility.HtmlEncode(node.SelectSingleNode("title").InnerText); 68 e.Content = 69 "<a href=\"" + link + "\"><img src=\"" + icon + "\" alt=\"" + link + "\" /></a>" + 70 HttpUtility.HtmlEncode(node.SelectSingleNode("title").InnerText); 66 71 e.Date = DateTime.Parse(node.SelectSingleNode("pubDate").InnerText); 67 72 e.Image = new Uri(node.SelectSingleNode("ff:user/ff:profileUrl", ns).InnerText + "/picture?size=medium&v=1"); -
lang/csharp/MMMMB/MMMMB/MiniBlogs/Jaiku.cs
r10019 r13978 55 55 56 56 // �A�C�e�����[�v 57 Regex r = new Regex("<img src=\\\"(http://jaiku.com/images/icons/.+?)\\\" class=\\\"icon\\\" alt=\\\".+?\\\" />"); 57 58 XmlNodeList nodeList = xml.SelectNodes("/rss/channel/item"); 58 59 foreach (XmlNode node in nodeList) 59 60 { 61 string icon = null; 62 Match m = r.Match(node.SelectSingleNode("description").InnerText); 63 if (m.Success) icon = m.Groups[1].Value; 64 string link = node.SelectSingleNode("link").InnerText; 65 60 66 Entry e = new Entry(); 61 67 e.Permalink = new Uri(node.SelectSingleNode("guid").InnerText); 62 68 e.Name = HttpUtility.HtmlEncode(node.SelectSingleNode("jaiku:user", ns).Attributes["nick"].InnerText); 63 e.Content = HttpUtility.HtmlEncode(node.SelectSingleNode("title").InnerText); 69 e.Content = 70 (icon != null ? "<a href=\"" + link + "\"><img src=\"" + icon + "\" alt=\"" + link + "\" /></a>" : "") + 71 HttpUtility.HtmlEncode(node.SelectSingleNode("title").InnerText); 64 72 e.Date = DateTime.Parse(node.SelectSingleNode("pubDate").InnerText); 65 73 e.Image = new Uri(node.SelectSingleNode("jaiku:user", ns).Attributes["avatar"].InnerText);
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)