1 I'm trying to add a flickr stream thing to my (static) ikiwiki. I've disabled htmlscrubber and enabled rawhtml, and I get many strange errors.
5 ## putting the html right into the markdown index.mdwn
7 This should work, but html code (listing 1) shows up with a hash replaced for the actual content (listing 2)
9 I have to suspect that replacing html with some hash is a bug.
13 This would be my prefered solution. in index.mdwn:
15 \[[!inline pages="flickr.html" rss="no"]]
17 but this refuses to show any content. Trying to RTFM and adding raw="yes" results in this error:
22 private//ikiwiki.setup: Can't call method "param" on an undefined value at /usr/share/perl5/IkiWiki/Plugin/inline.pm line 253.
23 BEGIN failed--compilation aborted at (eval 10) line 63.
26 ## current workaround: iframe
28 I'm no html guru so I put the stuff in an iframe, but that doesn't work, since the links are script-generated and need a target="" attribute in them to load in the right place (replacing ikiwiki page).
34 disable_plugins => [qw{htmlscrubber}],
35 add_plugins => [qw{img map rawhtml toggle template prettydate haiku meta}],
42 <!-- Start of Flickr Badge -->
43 <style type="text/css">
44 #flickr_badge_source_txt {padding:0; font: 11px Arial, Helvetica, Sans serif; color:#666666;}
45 #flickr_badge_icon {display:block !important; margin:0 !important; border: 1px solid rgb(0, 0, 0) !important;}
46 #flickr_icon_td {padding:0 5px 0 0 !important;}
47 .flickr_badge_image {text-align:center !important;}
48 .flickr_badge_image img {border: 1px solid black !important;}
49 #flickr_www {display:none; text-align:left; padding:0 10px 0 10px !important; font: 11px Arial, Helvetica, Sans serif !important; color:#3993ff !important;}
50 #flickr_badge_uber_wrapper a:hover,
51 #flickr_badge_uber_wrapper a:link,
52 #flickr_badge_uber_wrapper a:active,
53 #flickr_badge_uber_wrapper a:visited {text-decoration:none !important; background:inherit !important;color:#6600CC;}
54 #flickr_badge_wrapper {}
55 #flickr_badge_source {padding:0 !important; font: 11px Arial, Helvetica, Sans serif !important; color:#666666 !important;}
57 <table id="flickr_badge_uber_wrapper" cellpadding="0" cellspacing="10" border="0">
59 <td><a href="http://www.flickr.com" id="flickr_www">www.<strong style="color:#3993ff">flick<span style="color:#ff1c92">r</span></strong>.com</a><table cellpadding="0" cellspacing="2" border="0" id="flickr_badge_wrapper">
61 <script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?show_name=1&count=5&display=latest&size=s&layout=h&source=user&user=23579158%40N05"></script>
62 <td id="flickr_badge_source" valign="center" align="center">
63 <table cellpadding="0" cellspacing="0" border="0"><tr>
64 <td width="10" id="flickr_icon_td"><a href="http://www.flickr.com/photos/23579158@N05/"><img id="flickr_badge_icon" alt="englabenny's items" src="http://farm3.static.flickr.com/2338/buddyicons/23579158@N05.jpg?1211285412#23579158@N05" align="left" width="48" height="48"></a></td>
65 <td id="flickr_badge_source_txt"><nobr>Go to</nobr> <a href="http://www.flickr.com/photos/23579158@N05/">englabenny's photostream</a></td>
71 <!-- End of Flickr Badge -->
75 <!-- Start of Flickr Badge -->
76 <style type="text/css">
77 #flickr_badge_source_txt {padding:0; font: 11px Arial, Helvetica, Sans serif; color:#666666;}
78 #flickr_badge_icon {display:block !important; margin:0 !important; border: 1px solid rgb(0, 0, 0) !important;}
79 #flickr_icon_td {padding:0 5px 0 0 !important;}
80 .flickr_badge_image {text-align:center !important;}
81 .flickr_badge_image img {border: 1px solid black !important;}
82 #flickr_www {display:none; text-align:left; padding:0 10px 0 10px !important; font: 11px Arial, Helvetica, Sans serif !important; color:#3993ff !important;}
83 #flickr_badge_uber_wrapper a:hover,
84 #flickr_badge_uber_wrapper a:link,
85 #flickr_badge_uber_wrapper a:active,
86 #flickr_badge_uber_wrapper a:visited {text-decoration:none !important; background:inherit !important;color:#6600CC;}
87 #flickr_badge_wrapper {}
88 #flickr_badge_source {padding:0 !important; font: 11px Arial, Helvetica, Sans serif !important; color:#666666 !important;}
92 7383eb73071488c9ef46d617acf3e402
96 <!-- End of Flickr Badge -->