Commit info for scoop/struct:
Modified Files:
scoop.sql
Log Message:
Checking in code from bugs 21 (from janra), 53 (also from janra), and 55. This
means various subscriptions and payment fixes, a hotlist fix, some HTML removed
from the code, new block descriptions, some other tweaks. Also, janra's new
default db is going in, with a CSS-ified layout.
-keith
Index: scoop.sql
===================================================================
RCS file: /cvs/scoop/scoop/struct/scoop.sql,v
retrieving revision 1.186
retrieving revision 1.187
diff -r1.186 -r1.187
5c5
< -- Server version 4.0.17-log
---
> -- Server version 4.0.16
187c187
< PRIMARY KEY (bid,category,theme,language)
---
> PRIMARY KEY (bid,theme,language)
194,293c194,296
< INSERT INTO blocks VALUES ('footer','<CENTER>\r\n<TABLE WIDTH=\"80%\" CELLPADDING=0 CELLSPACING=0 BORDER=0>\r\n<TR>\r\n<TD>%%norm_font%%\r\n<FORM NAME=\"Search\" ACTION=\"%%rootdir%%\" METHOD=\"POST\">\r\n<INPUT TYPE=\"hidden\" NAME=\"op\" VALUE=\"search\">\r\n<INPUT TYPE=\"text\" SIZE=20 NAME=\"string\"><INPUT TYPE=\"submit\" VALUE=\"Search\">\r\n</FORM> \r\n</FONT>\r\n</TD>\r\n<TD ALIGN=\"center\" VALIGN=\"top\">\r\n<A href=\"http://sourceforge.net\"><IMG src=\"http://sourceforge.net/sflogo.php?group_id=4901&type=1\" width=\"88\" height=\"31\" border=\"0\" alt=\"SourceForge Logo\"></A> \r\n</TD>\r\n<TD align=\"right\" valign=\"top\">\r\n<A HREF=\"http://scoop.kuro5hin.org\"><IMG SRC=\"%%imagedir%%/new_powered.gif\" ALT=\"Powered by Scoop\" BORDER=0></A>\r\n</TD>\r\n</TR>\r\n</TABLE>\r\n\r\n<FONT size=1 color=\"#303030\" face=\"arial,helvetica\">\r\nAll trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The R!
est © 1999 The Management \r\n</FONT><P>\r\n</CENTER>\r\n','1','Whatever HTML you wish to have displayed at the bottom of every page generated.','site_html','default','en');
< INSERT INTO blocks VALUES ('index_template','<HTML>\r\n<HEAD>\r\n<TITLE>%%sitename%% || %%subtitle%%</TITLE>\r\n</HEAD>\r\n<BODY bgcolor=\"#ffffff\" text=\"#000000\" link=\"#006699\" vlink=\"#003366\">\r\n\r\n%%header%%\r\n\r\n<!-- Main layout table -->\r\n<TABLE BORDER=0 WIDTH=\"99%\" ALIGN=\"center\" CELLPADDING=0 CELLSPACING=10>\r\n <!-- Main page block -->\r\n <TR>\r\n\r\n <!-- Left info column -->\r\n <TD VALIGN=\"top\" WIDTH=\"20%\" HEIGHT=20 BGCOLOR=\"%%title_bgcolor%%\">\r\n %%title_font%%Welcome to Scoop%%title_font_end%%\r\n </TD>\r\n <!-- X Left info column -->\r\n\r\n <!-- Center content section -->\r\n <TD VALIGN=\"top\" width=\"55%\" HEIGHT=20 BGCOLOR=\"%%title_bgcolor%%\">\r\n %%BOX,section_title_subsections%%\r\n </TD>\r\n <!-- X center content section -->\r\n\r\n <!-- Right boxes column -->\r\n <TD VALIGN=\"top\" width=\"25%\" ROWSPAN=\"2\">\r\n \r\n !
%%BOX,main_menu%%\r\n %%BOX,ad_box%%\r\n %%BOX,user_box%%\r\n %%BOX,rdf_feeds%%\r\n %%BOX,hotlist_box%%\r\n %%BOX,admin_tools%%\r\n %%BOX,poll_box%%\r\n %%BOX,older_list_box%%\r\n\r\n </TD>\r\n <!-- X Right boxes column -->\r\n\r\n </TR> \r\n \r\n <TR>\r\n \r\n <!-- Left info column -->\r\n <TD VALIGN=\"top\" WIDTH=\"20%\" HEIGHT=\"100%\">\r\n <TABLE HEIGHT=\"650\" WIDTH=\"100%\" BORDER=0 CELLPADDING=0 CELLSPACING=0>\r\n <TR><TD VALIGN=\"top\">\r\n \r\n <!-- About Scoop -->\r\n %%scoop_intro%%\r\n <!-- X About Scoop -->\r\n \r\n </TD></TR>\r\n </TABLE> \r\n </TD>\r\n <!-- X Left info column -->\r\n\r\n <!-- Center content section -->\r\n <TD VALIGN=\"top\" width=\"55%\">\r\n <TABLE HEIGHT=\"65!
0\" WIDTH=\"100%\" BORDER=0 CELLPADDING=0 CELLSPACING=0>\r\n !
<TR><TD VALIGN=\"top\">\r\n %%CONTENT%%\r\n </TD></TR>\r\n </TABLE> \r\n </TD>\r\n <!-- X center content section -->\r\n \r\n </TR>\r\n <!-- X main page block -->\r\n</TABLE>\r\n<!-- X Main layout table -->\r\n<P>\r\n%%footer%%\r\n<P>\r\n<CENTER>%%BOX,menu_footer%%</CENTER>\r\n</BODY>\r\n</HTML>\r\n','1','A page template. This is typically the template used for the front page and section pages, but rarely anything else.','templates','default','en');
< INSERT INTO blocks VALUES ('header','<!-- header table -->\r\n<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width=\"100%\">\r\n <TR>\r\n <TD>\r\n <A href=\"%%rootdir%%/\"><IMG SRC=\"%%imagedir%%/small_logo.jpg\" BORDER=0 ALT=\"Scoop -- the free news and discussion system\"></A>\r\n </TD>\r\n <TD align=\"right\">\r\n %%section_links%%\r\n </TD>\r\n </TR>\r\n</TABLE>\r\n<!-- X header table -->\r\n%%dynamicmode_iframe%%','1','Whatever HTML you wish to have displayed at the top of every page generated.','site_html','default','en');
< INSERT INTO blocks VALUES ('comment','<!-- start comment -->\r\n<TABLE CELLPADDING=1 CELLSPACING=0 BORDER=0 BGCOLOR=\"#006699\">\r\n <TR>\r\n <TD width=\"100%\">\r\n <TABLE CELLPADDING=2 CELLSPACING=0 BORDER=0 BGCOLOR=\"%%comment_head_bg%%\" width=\"100%\">\r\n <TR>\r\n <TD WIDTH=\"100%\"><A NAME=\"%%cid%%\"></A>\r\n %%norm_font%% %%new%% <B>%%subject%%</B>\r\n(<A HREF=\"%%rootdir%%/comments/%%sid%%/%%cid%%?mode=alone;showrate=1#%%cid%%\">%%score%% / %%num_ratings%%</A>)\r\n(<A CLASS=\"light\" HREF=\"%%rootdir%%/comments/%%sid%%/%%cid%%#%%cid%%\">#%%cid%%</A>)%%norm_font_end%% <BR>\r\n %%norm_font%%by %%name%% %%email%% on %%date%%<BR>%%user_info%%%%edit_user%% %%url%%%%norm_font_end%%\r\n </TD>\r\n </TR>\r\n </TABLE>\r\n </TD>\r\n </TR>\r\n</TABLE>\r\n<BR>\r\n<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>\r\n <TR>\r\n <TD>\r\n %%norm_font%%%%comment%%<BR>%%sig%%<BR>%%actions%%%%norm_font_end%%\r\n !
</TD>\r\n </TR>\r\n</TABLE>\r\n<BR><BR>\r\n%%norm_font%%%%replies%%%%norm_font_end%%\r\n\r\n<!-- end comment -->\r\n\r\n','1','The structure of comments attached to a story. This should be mostly self-contained and have the replies at the end. See http://guide.kuro5hin.org for details on the special vars.','content','default','en');
< INSERT INTO blocks VALUES ('story_info','<!-- Story info -->\r\n<TABLE BORDER=0 CELLPADDING=1 CELLSPACING=0 ALIGN=\"center\" WIDTH=\"100%\">\r\n <TR BGCOLOR=\"%%story_mod_bg%%\">\r\n <TD align=\"center\">\r\n %%smallfont%%%%story_info%%%%smallfont_end%%\r\n </TD>\r\n </TR></TABLE>\r\n<!-- X Story info -->\r\n\r\n','1','The bar placed at the top and bottom of the comments. It contains the story name, number and type of comments, and the \'post a comment\' link.','content','default','en');
< INSERT INTO blocks VALUES ('story_summary','<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=2>\r\n<TR>\r\n<TD>\r\n%%title_font%%%%title%%%%title_font_end%%\r\n</TD>\r\n<TD ALIGN=\"right\" VALIGN=\"top\" ROWSPAN=2>%%norm_font%%<CENTER>%%hotlist%%%%norm_font_end%%<BR>%%topic_img%%</TD>\r\n</TR>\r\n\r\n<TR>\r\n<TD>\r\n%%smallfont%%By %%info%%, Section %%section_link%%<BR>Posted on %%time%%%%smallfont_end%%\r\n</TD>\r\n</TR>\r\n\r\n<TR>\r\n<TD BGCOLOR=\"#000000\" HEIGHT=2 COLSPAN=2><IMG SRC=\"%%imagedir%%/spacer.gif\" HEIGHT=2></TD>\r\n</TR>\r\n\r\n<TR><TD COLSPAN=2>\r\n%%norm_font%%%%introtext%% \r\n<P>\r\n%%stats%% %%readmore%%%%norm_font_end%%\r\n</TD>\r\n</TR>\r\n</TABLE>\r\n<P>','1','The layout of the story header and introtext. This should be a reasonably self-contained bit of HTML. See http://guide.kuro5hin.org for details on the special vars.','content','default','en');
< INSERT INTO blocks VALUES ('box','<TABLE WIDTH=\"100%\" BORDER=1 CELLPADDING=2 CELLSPACING=0>\r\n <TR>\r\n <td bgcolor=\"%%box_title_bg%%\">\r\n %%box_title_font%%%%title%%%%box_title_font_end%%\r\n </TD>\r\n </TR>\r\n <TR>\r\n <TD>\r\n %%smallfont%%\r\n %%content%%\r\n %%smallfont_end%%\r\n </TD>\r\n </TR>\r\n</TABLE>\r\n<P>','1','A box template - the default one with the blue title bar. The special vars |title| and |content| are supplied by the box code','boxes','default','en');
< INSERT INTO blocks VALUES ('submission_message','<FONT =\"+1\">Thank you for your submission. This is a community-edited site, so hopefully your fellow readers will see fit to post your story. Good Luck!</FONT>','1','The message displayed at the bottom of the story when it has just been posted to the moderation queue, thanking the user for submitting a story.','site_html','default','en');
< INSERT INTO blocks VALUES ('submission_guidelines','Thank you for taking the time to submit a story!<P>\r\nHere are some general guidelines for new stories:\r\n<UL>\r\n<LI>Pick the topic carefully! Try your best to match the topic with the story you\'re submitting.\r\n<LI>Only the html tags listed are allowed in story text. No HTML is allowed in \"title\" or \"dept.\"\r\n<LI>You must preview at least once. Please read over your story carefully. <LI>Check all URLS!\r\n<LI>Check all facts! :-)\r\n<LI>This site is community-edited (mostly), so don\'t whine to the admins if your story doesn\'t get posted. If you\'re logged in, you\'ll see a \"Moderate Submissions\" link to the right. This is how you decide what gets posted here! Use it!\r\n</UL>\r\nNow post away!','1','Warnings and instructions displayed on the story submission page, just above the form. This is basically free-form HTML.','site_html','default','en');
< INSERT INTO blocks VALUES ('moderate_head','%%norm_font%%Current score:<B>%%score%%</B><BR>\r\nTotal votes: <B>%%votes%%</B></FONT><P>\r\n','1','This is the text put at the top of the moderation box after a visitor has voted on a story.','site_html','default','en');
< INSERT INTO blocks VALUES ('moderation_comment','<!-- start comment -->\r\n\r\n<TABLE CELLPADDING=1 CELLSPACING=0 BORDER=0 BGCOLOR=\"#FF0000\">\r\n <TR>\r\n <TD width=\"100%\">\r\n <TABLE CELLPADDING=2 CELLSPACING=0 BORDER=0 BGCOLOR=\"%%comment_head_bg%%\" width=\"100%\">\r\n <TR>\r\n <TD WIDTH=\"100%\"><A NAME=\"%%cid%%\"></A>\r\n %%norm_font%% %%new%% <B>%%subject%%</B> %%score%%</A> (<A CLASS=\"light\" HREF=\"%%rootdir%%/comments/%%sid%%/%%cid%%#%%cid%%\">#%%cid%%</A>)%%norm_font_end%% <BR>\r\n %%norm_font%%by %%name%% %%email%% on %%date%%<BR>%%user_info%% %%url%%%%norm_font_end%%\r\n </TD>\r\n </TR>\r\n </TABLE>\r\n </TD>\r\n </TR>\r\n</TABLE>\r\n<BR>\r\n<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>\r\n <TR>\r\n <TD>\r\n %%norm_font%%%%comment%%<BR>%%sig%%<BR>%%actions%%%%norm_font_end%%\r\n </TD>\r\n </TR>\r\n</TABLE>\r\n<BR><BR>\r\n%%norm_font%%%%replies%%%%norm_font_end%%\r\n\r\n<!-- end !
comment -->\r\n\r\n','1','This is just like the block comment, only it is used for \'editorial\' instead of \'topical\' comments. This uses all the same special and normal vars as the block comment.','content','default','en');
< INSERT INTO blocks VALUES ('commentdisclaimer','Trolling is <B>not</B> tolerated here. Any comment may be \r\ndeleted by a site admin, and all trolls <B>will</B> be \r\ndeleted. This is fair warning. If you don\'t know what \r\ntrolling is, then you\'re probably not about to do it, so \r\ndon\'t worry. :-)','1','Anything you want to display above the comment posting form.','site_html','default','en');
< INSERT INTO blocks VALUES ('login_box','<TABLE BORDER=0 align=\"center\" CELLPADDING=1 CELLSPACING=0 BGCOLOR=\"%%box_content_bgcolor%%\">\r\n <TR>\r\n <TD COLSPAN=2>\r\n <CENTER>%%LOGIN_ERROR%%</CENTER>\r\n </TD>\r\n </TR>\r\n <TR>\r\n <TD COLSPAN=2>\r\n <CENTER>\r\n %%norm_font%%\r\n <B><A CLASS=\"light\" HREF=\"%%rootdir%%/newuser\">Make a new account</A></B>\r\n %%norm_font_end%%\r\n </CENTER>\r\n </TD>\r\n </TR>\r\n <TR>\r\n <TD align=\"right\">\r\n <FORM NAME=\"login\" ACTION=\"%%rootdir%%/\" METHOD=\"post\">\r\n %%norm_font%%<SMALL>Username:</SMALL>%%norm_font_end%%\r\n </TD>\r\n <TD>\r\n %%norm_font%%<SMALL><INPUT TYPE=\"text\" SIZE=12 NAME=\"uname\"></SMALL>%%norm_font_end%%\r\n </TD>\r\n </TR>\r\n <TR>\r\n <TD align=\"right\">\r\n %%norm_font%%<SMALL>Password:</SMALL>%%norm_font_end%%\r\n </TD>\r\n <TD>\r\n %%norm_font%%<SMALL><INPUT TYPE=\"password\" SIZE=12 NAME=\"pass\"></SMALL>%%norm_font_end%%\r\n </TD>\r\n </TR>\r\n <TR>\r\n!
<TD align=\"right\" COLSPAN=2>\r\n %%norm_font%%\r\n <INPUT TYPE=\"submit\" NAME=\"login\" VALUE=\"Login\">\r\n <INPUT TYPE=\"submit\" NAME=\"mailpass\" VALUE=\"Mail Password\">\r\n %%norm_font_end%%</FORM>\r\n </TD>\r\n </TR>\r\n</TABLE>\r\n\r\n','1','Not a box template. This is the content put into the user box if a visitor is not logged in. This should contain a form with two text inputs, one named \"uname\" and one named \"pass\" for the visitor to input their username and password, respectively, and two submit buttons, one named \"login\" with a value of \"login\" and one named \"mailpass\" with a value of \"Mail Password\".','site_html','default','en');
< INSERT INTO blocks VALUES ('hotlist_link','+Hotlist','1','The text of the link provided beside each story title that allows people to add stories to their hotlist.','site_html','default','en');
< INSERT INTO blocks VALUES ('hotlist_remove_link','-Hotlist','1','The text of the link provided beside each story title that allows people to remove stories from their hotlist.','site_html','default','en');
< INSERT INTO blocks VALUES ('poll_block','<!-- Poll Block -->\r\n<TABLE WIDTH=100% BORDER=0 CELLPADDING=1 CELLSPACING=0>\r\n <TR>\r\n <TD BGCOLOR=\"%%title_bgcolor%%\" colspan=2>\r\n %%title_font%%<B>%%title%%</B></FONT>\r\n </TD>\r\n </TR><tr><td><br></td></tr>\r\n %%poll_image%%\r\n</TABLE>\r\n<!-- X Poll Block -->','1','Used by Scoop to format and display a poll.','content','default','en');
< INSERT INTO blocks VALUES ('dot','<FONT SIZE=\"+1\">·</FONT>','1','Any bit of HTML code that produces a dot or bullet or something for lists in the boxes along the side.','site_html','default','en');
< INSERT INTO blocks VALUES ('vote_console','<!-- vote_console -->\r\n<TABLE BGCOLOR=\"#006699\" BORDER=0 CELLPADDING=1 CELLSPACING=0 WIDTH=\"100%\" ALIGN=\"center\">\r\n <TR>\r\n <TD>\r\n <TABLE BGCOLOR=\"%%story_mod_bg%%\" BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=\"100%\" ALIGN=\"center\">\r\n <TR>\r\n <TD>\r\n %%norm_font%%\r\n Your vote really does count! \r\n <B>You</B> decide whether this story ever sees the \r\n light of the front page. So vote!\r\n %%norm_font_end%%\r\n </TD>\r\n </TR>\r\n <TR>\r\n <TD ALIGN=\"center\" VALIGN=\"middle\">\r\n %%norm_font%%\r\n %%vote_form%%\r\n %%norm_font_end%%\r\n </TD>\r\n </TR>\r\n </TABLE>\r\n </TD>\r\n </TR>\r\n </TABLE>\r\n<!-- X vote_console -->\r\n','1','The story moderation form, d!
isplayed below the story for stories in the moderation queue. There is only one special var: |vote_form| is replaced with the actual form used to register votes.','site_html','default','en');
< INSERT INTO blocks VALUES ('blank_box','<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"99%\">\r\n <tr>\r\n <td>%%content%%</td>\r\n </tr>\r\n</table>','1','A box template - no title bar or border.','boxes','default','en');
< INSERT INTO blocks VALUES ('story_template','<HTML>\r\n<HEAD>\r\n<TITLE>%%sitename%% || %%subtitle%%</TITLE>\r\n</HEAD>\r\n%%dynamicmode_javascript%%\r\n<BODY bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#006699\" vlink=\"#003366\">\r\n\r\n%%header%%\r\n\r\n<!-- Main layout table -->\r\n<TABLE BORDER=0 WIDTH=\"99%\" ALIGN=\"center\" CELLPADDING=0 CELLSPACING=10>\r\n <!-- Main page block -->\r\n <TR>\r\n \r\n <!-- Center content section -->\r\n <TD VALIGN=\"top\" width=\"75%\">\r\n <!-- Story stuff -->\r\n %%STORY%%\r\n <!-- X story stuff -->\r\n </TD>\r\n <!-- X center content section -->\r\n \r\n <!-- Right boxes column -->\r\n <TD VALIGN=\"top\" WIDTH=\"25%\">\r\n %%BOX,main_menu%%\r\n %%BOX,user_box%%\r\n %%BOX,hotlist_box%%\r\n %%BOX,admin_tools%%\r\n %%BOX,poll_box%%\r\n %%BOX,related_links%%\r\n %%BOX,mod_stats%%\r\n \r\n </TD>\r\n <!-- X Right boxes column -->\r\n </TR>\r\n <!-- X main page block -->\r\n</TABLE>\r\n\r\n<!-- comments -->\r!
\n %%CONTENT%%\r\n %%BOX,comment_controls%%\r\n %%COMMENTS%%\r\n %%BOX,comment_controls%%\r\n<!-- X comments -->\r\n\r\n<!-- X Main layout table -->\r\n<P>\r\n%%footer%%\r\n<P>\r\n<CENTER>%%BOX,menu_footer%%</CENTER>\r\n</BODY>\r\n</HTML>\r\n','1','A page template. This one is used to display the full story and its comments.','templates','default','en');
< INSERT INTO blocks VALUES ('attach_poll_message','Below you can attach a poll to this story, if you like. \r\nPolls are not required, but if you want one, fill in a question \r\nand some answers below.','1','The message displayed just above the poll form, below the story submission form, telling the user about the poll.','site_html','default','en');
< INSERT INTO blocks VALUES ('default_template','<HTML>\r\n<HEAD>\r\n<TITLE>%%sitename%% || %%subtitle%%</TITLE>\r\n%%dynamicmode_javascript%%\r\n</HEAD>\r\n<BODY bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#006699\" vlink=\"#003366\">\r\n\r\n%%header%%\r\n\r\n<!-- Main layout table -->\r\n<TABLE BORDER=0 WIDTH=\"99%\" ALIGN=\"center\" CELLPADDING=0 CELLSPACING=10>\r\n <!-- Main page block -->\r\n <TR>\r\n \r\n <!-- Center content section -->\r\n <TD VALIGN=\"top\" width=\"73%\">\r\n %%STORY%%\r\n %%BOX,comment_controls%%\r\n %%CONTENT%%\r\n %%BOX,comment_controls%%\r\n </TD>\r\n <!-- X center content section -->\r\n \r\n <!-- Right boxes column -->\r\n <TD VALIGN=\"top\" WIDTH=\"27%\">\r\n\r\n %%BOX,main_menu%%\r\n %%BOX,hotlist_box%%\r\n %%BOX,user_box%%\r\n %%BOX,admin_tools%%\r\n \r\n </TD>\r\n <!-- X Right boxes column -->\r\n </TR>\r\n <!-- X main page block -->\r\n</TABLE>\r\n<!-- X Main layout table -->\r\n<P>\r\n%%footer!
%%\r\n<P>\r\n<CENTER>%%BOX,menu_footer%%</CENTER>\r\n</BODY>\r\n</HTML>\r\n','1','A page template. This is the default template, used for most pages on the site. Be EXTREMELY careful when changing this template! If you mess it up, you may not be able to do anything - the admin pages may use this template! See http://guide.kuro5hin.org for details on the special vars.','templates','default','en');
< INSERT INTO blocks VALUES ('submit_template','<HTML>\r\n<HEAD>\r\n<TITLE>%%sitename%% || %%subtitle%%</TITLE>\r\n</HEAD>\r\n<BODY bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#006699\" vlink=\"#003366\">\r\n\r\n%%header%%\r\n\r\n<!-- Main layout table -->\r\n<TABLE BORDER=0 WIDTH=\"99%\" ALIGN=\"center\" CELLPADDING=0 CELLSPACING=10>\r\n <!-- Main page block -->\r\n <TR>\r\n \r\n <!-- Center content section -->\r\n <TD VALIGN=\"top\" width=\"75%\">\r\n %%STORY%%\r\n %%CONTENT%%\r\n </TD>\r\n <!-- X center content section -->\r\n \r\n <!-- Right boxes column -->\r\n <TD VALIGN=\"top\" WIDTH=\"25%\">\r\n\r\n %%BOX,main_menu%%\r\n %%BOX,hotlist_box%%\r\n %%BOX,user_box%%\r\n %%BOX,admin_tools%%\r\n %%BOX,poll_box%%\r\n \r\n </TD>\r\n <!-- X Right boxes column -->\r\n </TR>\r\n <!-- X main page block -->\r\n</TABLE>\r\n<!-- X Main layout table -->\r\n<P>\r\n%%footer%%\r\n<P>\r\n<CENTER>%%BOX,menu_footer%%</CENTER>\r\n</BODY>\r\n</HTML>\r\n','1','A page !
template. This one is used when a user is composing a story.','templates','default','en');
< INSERT INTO blocks VALUES ('story_body','<table>\r\n <tr>\r\n <td>%%norm_font%%%%bodytext%%%%norm_font_end%%</td>\r\n </tr>\r\n</table>','1','How the body text of a story is displayed. This should be a reasonably self-contained piece of HTML. There is only one special var used: |bodytext| is replaced by the text of the story body.','content','default','en');
< INSERT INTO blocks VALUES ('readmore_txt','Full Story','1','The text of the link at the bottom of the story summary if the story has body text that is not displayed. If the story does not have body text, the block no_body_text is used instead.','site_html','default','en');
< INSERT INTO blocks VALUES ('section_links','%%norm_font%% \r\n <A HREF=\"%%rootdir%%/\">Front Page</A> \r\n ·\r\n <A HREF=\"%%rootdir%%/section/__all__\">Everything</A> \r\n ·\r\n <A HREF=\"%%rootdir%%/section/news\">News</A> \r\n ·\r\n <A HREF=\"%%rootdir%%/section/Diary\">Diaries</A>\r\n%%norm_font_end%%','1','The links to the different sections. Usually only displayed in the block header.','site_html','default','en');
< INSERT INTO blocks VALUES ('diary_submission_message','<FONT SIZE=\"+1\">Your new entry has been posted. Enjoy!</FONT>','1','The message displayed underneath a user\'s diary entry when they have just posted it. Basically free-form HTML.','site_html','default','en');
< INSERT INTO blocks VALUES ('box_title_bg','#006699','1','The background colour of the title bar used in a box template. A hexadecimal colour value: #rrggbb (r = red, g = green, b = blue)','display','default','en');
< INSERT INTO blocks VALUES ('comment_head_bg','#eeeeee','1','The background colour of the comment title bar. A hexadecimal colour value: #rrggbb (r = red, g = green, b = blue)','display','default','en');
< INSERT INTO blocks VALUES ('dept_font','<FONT FACE=\"arial, helvetica, sans-serif\" SIZE=2>','1','A complete opening font tag. Used if use_dept is enabled.','display','default','en');
< INSERT INTO blocks VALUES ('no_body_txt','Comments >>','1','This is the text of the link used instead of readmore_txt if there is nothing in the body of the story.','site_html','default','en');
< INSERT INTO blocks VALUES ('sectiononlystory_bg','#eeeeee','1','The background colour of a story that is displayed only in the section. Used only in the story list. A hexadecimal colour value: #rrggbb (r = red, g = green, b = blue)','display','default','en');
< INSERT INTO blocks VALUES ('smallfont','<FONT FACE=\"arial, Helvetica, Sans-Serif\" SIZE=2>','1','A complete opening font tag for text that must be smaller than normal.','display','default','en');
< INSERT INTO blocks VALUES ('smallfont_end','</FONT>','1','A closing font tag to match block smallfont.','display','default','en');
< INSERT INTO blocks VALUES ('story_mod_bg','#EEEEEE','1','The background colour of a story in moderation that the user has not yet voted on. A hexadecimal colour value: #rrggbb (r = red, g = green, b = blue)','display','default','en');
< INSERT INTO blocks VALUES ('story_nav_bg','#EEEEEE','1','The background colour of the story navigation bar. A hexadecimal colour value: #rrggbb (r = red, g = green, b = blue)','display','default','en');
< INSERT INTO blocks VALUES ('submittedstory_bg','#c6dae4','1','The background colour of a story in the moderation queue. Used only in the story list. A hexadecimal colour value: #rrggbb (r = red, g = green, b = blue)','display','default','en');
< INSERT INTO blocks VALUES ('title_bgcolor','#EEEEEE','1','The background colour used for titles. A hexadecimal colour value: #rrggbb (r = red, g = green, b = blue)','display','default','en');
< INSERT INTO blocks VALUES ('undisplayedstory_bg','#c0c0c0','1','The background colour used for stories that have been hidden. Used only in the story list. A hexadecimal colour value: #rrggbb (r = red, g = green, b = blue)','display','default','en');
< INSERT INTO blocks VALUES ('scoop_intro','<TABLE WIDTH=\"100%\" BORDER=1 CELLPADDING=2 CELLSPACING=0>\n <TR>\n <TD BGCOLOR=\"#006699\">\n %%box_title_font%%Where to learn about Scoop%%box_title_font_end%%\n </TD>\n </TR>\n <TR>\n <TD>\n %%norm_font%%\n<P>Holy Crap! You have your own <A HREF=\"http://scoop.kuro5hin.org\">Scoop</A> site now. Well, there\'s too many features for me to explain right here, but I can give you some places to look for help and whatnot.</P>\n<P>The main development site is at <A HREF=\"http://scoop.kuro5hin.org\">scoop.kuro5hin.org</A>. This contains links to all the other stuff, so poke around a little.</P>\n<P>For immediate help and assistance from the Scoop code monkeys, join the <A HREF=\"http://sourceforge.net/mail/?group_id=4901\">scoop-help mailing list</A>. This is practically a requirement for a pleasant Scoop administrative experience, as Scoop is rather complicated and it isn\'t always obvious where to find things.</P>\n<P>To help!
figure things out, there is a <A HREF=\"http://scoop.kuro5hin.org/guide/\">Scoop Admin Guide</A> which can hopefully answer most of your questions.</P>\n<P>Other things of note:</P>\n<UL>\n<LI> Many Scoop developers can often be found on IRC, channel #scoop at irc.slashnet.org. If nobody is in that channel, try #kuro5hin\n<LI> The <A HREF=\"http://sourceforge.net/project/?group_id=4901\">main Sourceforge page</A> has some information on the project\n<LI> The latest code is always <A HREF=\"http://scoop.versionhost.com/viewcvs.cgi/\">in CVS</A> (username and password are both \"anonymous\")\n<LI> You can look at a convenient <A HREF=\"http://scoop.kuro5hin.org/special/sites\">list of other Scoop sites</A> to see what folks are doing with it\n</UL>\n %%norm_font_end%%\n </TD>\n </TR>\n</TABLE>\n','1','The \'introduction to scoop\' box shown in the left column of the front page of a fresh install. You probably want to note the addresses of the links and remove it from the!
page before your site goes live.','site_html','default','en');
< INSERT INTO blocks VALUES ('rss_template','<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\r\n<rdf:RDF\r\nxmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\r\nxmlns:fz=\"http://www.zapogee.com/rdf/forumzilla/\"\r\n>\r\n\r\n%%BOX,fzdescribe%%\r\n\r\n</rdf:RDF>','1','Page template used for ForumZilla. Shouldn\'t change this either.','templates','default','en');
< INSERT INTO blocks VALUES ('fz_navigation_url','%%site_url%%%%rootdir%%/blank','1','Forumzilla stuff.','forumzilla','default','en');
< INSERT INTO blocks VALUES ('fz_ad_url','%%site_url%%%%rootdir%%/blank','1','Forumzilla stuff.','forumzilla','default','en');
< INSERT INTO blocks VALUES ('blank_template','<HTML>\r\n<HEAD>\r\n<TITLE>%%slogan%%</TITLE>\r\n</HEAD>\r\n<BODY BGCOLOR=\"#FFFFFF\"></body>\r\n</html>','1','A page template - no header, footer, or content. This must be a complete HTML page.','templates','default','en');
< INSERT INTO blocks VALUES ('empty_box','%%content%%','1','A box template that contains no framing, no formatting, just the content via the special var |content|','boxes','default','en');
< INSERT INTO blocks VALUES ('fzdisplay_template','<html>\r\n<head><title>%%slogan%%</title></head>\r\n<body bgcolor=\"#EEEEEE\">\r\n<table width=\"80%\" align=\"center\" cellpadding=0 cellspacing=0 bgcolor=\"#000000\" border=0>\r\n<tr><td>\r\n<table width=\"100%\" align=\"center\" cellpadding=10 cellspacing=0 bgcolor=\"#ffffff\" border=0>\r\n<tr><td>\r\n%%CONTENT%%</center>\r\n</td></tr>\r\n</table>\r\n</td></tr>\r\n</table>\r\n</body>\r\n</html>','1','Forumzilla stuff.','templates','default','en');
< INSERT INTO blocks VALUES ('rss_box','<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\r\n<rdf:RDF\r\nxmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\r\nxmlns:fz=\"http://www.zapogee.com/rdf/forumzilla/\"\r\n>\r\n\r\n%%BOX,fzdescribe%%\r\n\r\n</rdf:RDF>','1','Template for the ForumZilla boxes. Probably shouldn\'t change this, since doing so will probably break ForumZilla support.','boxes','default','en');
< INSERT INTO blocks VALUES ('new_comment_marker','<FONT COLOR=\"#FF0000\"><B>[new]</B></FONT>','1','This is inserted by the code with the comment title if a visitor has not yet read that title.','site_html','default','en');
< INSERT INTO blocks VALUES ('submit_rdf_message','Know of any good sites that syndicate their headlines, but aren\'t carried by this site yet? Well, most likely this is because the admins don\'t know about the site yet, or that they syndicate headlines with RDF. All it takes is for you to find a URL for the site where their RDF file is, and copy it to the form below. Once submitted, and admin will review it, and will either approve it or delete it.','1','The message displayed explaining how to submit an rdf feed.','site_html','default','en');
< INSERT INTO blocks VALUES ('titled_box','<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=2 WIDTH=\"100%\">\n <TR>\n <TD BGCOLOR=\"%%title_bgcolor%%\">%%title_font%%<B>%%title%%</B>%%title_font_end%%</TD>\n </TR>\n <TR>\n <TD>\n %%content%%\n </TD>\n </TR>\n</TABLE>\n','1','A box template. This one has both |title| and |content| but is otherwise plain.','boxes','default','en');
< INSERT INTO blocks VALUES ('cron_template','<html>\r\n<head>\r\n<title>%%slogan%% %%%% Cron</title>\r\n</head>\r\n<body bgcolor=\"#FFFFFF\"><pre>%%CONTENT%%</pre></body>\r\n</html>','1','A page template. No header or footer, only |CONTENT| and title. This must be a complete HTML page. This is used for when cron is run, and is parsed (to an extent) by run_cron.pl, so you\'d best just leave this be.','templates','default','en');
< INSERT INTO blocks VALUES ('digest_storyformat','\n%%title%% \n By %%aid%%, %%time%% \n Section: %%section%%, Topic: %%tid%% \n\n%%introtext%% \n\n%%url%%\n\n----\n','1','The format of the stories listed in the digest email. See http://guide.kuro5hin.org for details on the string substitution','email','default','en');
< INSERT INTO blocks VALUES ('digest_headerfooter','---------------------------------------------------------\nThis is the %%FREQUENCY%% digest for SITENAME.\nIf you have received this email in error, just reply to \nthis message and say that you got it in error.\nPlease mention that this email was sent for user number %%USERID%%.\n---------------------------------------------------------\n','1','The text of the header and footer of emails sent with the story digest system. The strings __FREQUENCY__ and __USERID__ are replaced with the appropriate values when the email is sent. \n is a newline character, though a normal newline also works.','email','default','en');
< INSERT INTO blocks VALUES ('next_page_link','%%norm_font%%Next %%maxstories%% >>%%norm_font_end%%','1','This is the text of the link to the next page of stories. It is placed after the last story on a page.','site_html','default','en');
< INSERT INTO blocks VALUES ('prev_page_link','%%norm_font%%<< Previous %%maxstories%%%%norm_font_end%%','1','This is the text of the link to the previous page of stories. It is placed at the top and bottom of the page when a visitor is on a page other than the first, or only the bottom when on the first page.','site_html','default','en');
< INSERT INTO blocks VALUES ('subscribe','<p>You are not currently a paid member. Why not <a href=\"%%rootdir%%/subscribe\">become one</a>?</p>','1','Text of a \"please subscribe\" message.','site_html','default','en');
< INSERT INTO blocks VALUES ('story_separator','\n','1','Placed between the story summary and the story body to separate them visually.','site_html','default','en');
< INSERT INTO blocks VALUES ('spell_err','<font color=\"red\">','1','A complete opening font tag for marking spelling errors. Only used if spell checking is active.','display','default','en');
< INSERT INTO blocks VALUES ('spell_err_end','</font>','1','A closing font tag matching spell_err','display','default','en');
< INSERT INTO blocks VALUES ('new_user_html','<table> <TR>\r\n <TD COLSPAN=2 BGCOLOR=\"%%title_bgcolor%%\">%%title_font%%\r\n <B>Create New User Account</B>%%title_font_end%%<P>\r\n <FORM NAME=\"adduser\" METHOD=\"post\" ACTION=\"%%rootdir%%/\">\r\n <INPUT TYPE=\"hidden\" name=\"tool\" VALUE=\"writeuser\">\r\n <INPUT TYPE=\"hidden\" name=\"op\" VALUE=\"newuser\">\r\n <INPUT TYPE=\"hidden\" name=\"formkey\" VALUE=\"%%formkey%%\">\r\n </TD>\r\n </TR>\r\n <TR><TD COLSPAN=2><FONT COLOR=\"#FF0000\"><H3><CENTER>%%error%%</CENTER></H3></FONT></TD></TR>\r\n <TR><TD COLSPAN=2>%%norm_font%%\r\nIn order to create an account (which is free), fill out this form. You will receive an email containing your username and autogenerated password, at the address you provide here. Use this data to login. It\'s that easy.\r\n<P>\r\nWhy is the password autogenerated? First, random passwords are typically more secure than non-random ones. Second, by requiring you to log in using a !
password we send you, we can make sure that the email address is valid. This makes it harder for malicious users to abuse the account creation system by creating an arbitrary number of accounts and spamming the site with stories or comments. If you do not like your autogenerated password, you can easily change it after logging in.\r\n<P>\r\nAgain, your password will be mailed to the email address you enter here, so it <B>must</B> work. Do NOT enter a spam-protected or fake email address. \r\n<P>\r\nIf you are concerned about privacy, this email does not have to be in any way traceable to you. We will never use the email you provide here for anything else, ever. All it needs to be is working, and accessible to you, at the time the account is created. \r\n <P>\r\n Now get started, and we hope you enjoy %%sitename%%!\r\n %%norm_font_end%%</TD></TR>\r\n <TR><TD COLSPAN=2> </TD></TR>\r\n <TR>\r\n <TD>\r\n %%norm_font%%\r\n Please enter your desired username:<BR>\!
r\n %%norm_font_end%%\r\n </TD>\r\n <TD>\r\n %%norm_fo!
nt%%<INP
UT TYPE=\"text\" NAME=\"nickname\" SIZE=30 VALUE=\"%%uname%%\">%%norm_font_end%%<BR>\r\n </TD>\r\n </TR>\r\n <TD COLSPAN=2>\r\n %%smallfont%%(Legal characters: a-z, A-Z, 0-9, space. Names may not start or end with a space, and may not contain more than one space in a row.)%%smallfont_end%%\r\n </TD>\r\n </TR>\r\n <TR>\r\n <TD>\r\n %%norm_font%%\r\n and a working email (this will never be made public!):<BR>\r\n <B><FONT COLOR=\"#FF0000\">Check this for typos!</FONT></B>\r\n %%norm_font_end%%\r\n </TD>\r\n <TD>\r\n %%norm_font%%<INPUT TYPE=\"text\" NAME=\"email\" VALUE=\"%%email%%\" SIZE=30>%%norm_font_end%%\r\n </TD>\r\n </TR><tr><td colspan=2 align=\"right\">%%norm_font%%<input type=\"submit\" value=\"Create Account!\" size=\"30\" /></form>%%norm_font_end%%</td></tr></table>','1','The HTML form and explanation text used on the page a new user visits to create an account.','site_html','default','en');
< INSERT INTO blocks VALUES ('new_advertiser_html','<table><tr><TD COLSPAN=2 BGCOLOR=\"%%title_bgcolor%%\">%%title_font%%<B>Upgrade to an Advertiser Account</B>%%title_font_end%%<P>\n<form name=\"adduser\" method=\"post\" action=\"%%rootdir%%/\">\n<input type=\"hidden\" name=\"tool\" value=\"writeuser\" />\n<input type=\"hidden\" name=\"op\" value=\"newuser\" />\n<input type=\"hidden\" name=\"formkey\" value=\"%%formkey%%\" /></td></tr>\n <TR><TD COLSPAN=2><FONT COLOR=\"#FF0000\"><H3><CENTER>%%error%%</CENTER></H3></FONT></TD></TR><tr><td colspan=\"2\"><input type=\"hidden\" name=\"advertiser\" value=\"1\"> </td></tr>\r\n <TR>\r\n <TD colspan=\"2\">%%norm_font%%\r\nSince you have expressed an interest in advertising on this site, I\'ll be needing a bit more\r\ninformation about you, for billing purposes. \r\n%%norm_font_end%%</TD>\r\n </TR>\r\n <TR>\r\n <TD colspan=\"2\">%%norm_font%% %%advertising_account_disclaimer%% %%norm_font_end%% </TD>\r\n </TR>\r\n <TR>\r\n <!
TD align=\"right\">%%norm_font%% Your Name: %%norm_font_end%%</TD>\r\n <TD align=\"left\"> <input type=\"text\" name=\"realname\" value=\"%%yourname%%\" size=\"30\"></TD>\r\n </TR>\r\n <TR>\r\n <TD align=\"right\">%%norm_font%% Business name: %%norm_font_end%%</TD>\r\n <TD align=\"left\"><input type=\"text\" name=\"bizname\" value=\"%%bizname%%\" size=\"40\"> </TD>\r\n </TR>\r\n <TR>\r\n <TD align=\"right\">%%norm_font%% Contact phone number: %%norm_font_end%%</TD>\r\n <TD align=\"left\"><input type=\"text\" name=\"bizphone\" value=\"%%bizphone%%\" size=\"12\"> </TD>\r\n </TR>\r\n <TR>\r\n <TD align=\"right\">%%norm_font%% Mailing Address: %%norm_font_end%%</TD>\r\n <TD align=\"left\"><textarea cols=\"30\" rows=\"5\" name=\"snailmail\" value=\"%%snailmail%%\"></textarea></TD>\r\n </TR>\r\n<tr><td colspan=2 align=\"right\">%%norm_font%%<input type=\"submit\" value=\"Create Account!\" size=\"30\" /></form>%%norm_font_end%%</td></tr></table>','1','A form used for collec!
ting contact information from new advertisers.','advertising',!
'default
','en');
< INSERT INTO blocks VALUES ('advertising_account_disclaimer','Please remember the following with your new advertising account. <br><br><blockquote> <b>Any stories posted to this site for purely advertising purposes will void your contract with us.</b> The articles and diaries on this site are <b>not for advertising purposes</b>. This account entitles you to submit ads for posting in specified places on the page only. If you are caught abusing this account, you\'re ads will be disabled, no money will be refunded, and your account will be disabled. If you have any questions about this send mail to %%local_email%%.\r\n</blockquote><br> Thank you for your understanding.','1','A warning and reminder of the terms of use of an advertising account.','advertising','default','en');
< INSERT INTO blocks VALUES ('ad_test_template','<HTML>\r\n<HEAD>\r\n<TITLE>%%slogan%%</TITLE>\r\n</HEAD>\r\n<BODY BGCOLOR=\"#FFFFFF\">%%BOX,show_ad,fromurl%%</body>\r\n</html>','1','A page template with just the ad on it','advertising','default','en');
< INSERT INTO blocks VALUES ('text_ad_template','<TABLE bgcolor=\"FFFFFF\" fgcolor=\"000000\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">\r\n<TR><TD><a href=\"%%REDIRECT_URL%%?to_url=%%LINK_URL%%\" title=\"%%LINK_URL%%\" %%TARGET%%>\r\n%%norm_font%% %%TITLE%%%%norm_font_end%%</a> </TD></TR>\r\n<TR><TD>%%norm_font%%%%TEXT1%%%%norm_font_end%%</TD></TR>\r\n</TABLE>','1','The template used for text ads.','advertising','default','en');
< INSERT INTO blocks VALUES ('donate_email_success','Thank you for your donation of $%%AMOUNT%%.',NULL,'Email sent to confirm that a donation was recieved.','email','default','en');
< INSERT INTO blocks VALUES ('next_previous_links','',NULL,'If filled in, can be used to replace the Next and Previous links on the front and section pages. The special keys PREVIOUS_LINK and NEXT_LINK will be filled with the appropriate relative URLs. If this block is left empty, then the default code will be used instead.','site_html','default','en');
< INSERT INTO blocks VALUES ('ad_step1_rules','<!-- ad_step1_rules. Do not take out the |NEXT_LINK| text, as it will be replaced with a button to get the user to the next step in the process -->\r\n<TABLE BORDER=0 WIDTH=\"99%\" ALIGN=\"center\" CELLPADDING=0 CELLSPACING=10>\r\n<TR>\r\n <TD VALIGN=\"top\" width=\"55%\" BGCOLOR=\"%%title_bgcolor%%\">\r\n %%title_font%% Rules for Submitting Ads %%title_font_end%%\r\n </TD>\r\n</TR>\r\n<TR>\r\n<TD>%%norm_font%%\r\n<ul>\r\n<li>These are the rules for submitting ads on this Scoop site.\r\n</ul>\r\n%%norm_font_end%%\r\n</TD>\r\n</TR>\r\n<TR><TD>%%norm_font%% %%NEXT_LINK%% %%norm_font_end%%\r\n</TABLE>','1','Rules for submitting ads. Insert your site\'s rules in the list.','advertising','default','en');
< INSERT INTO blocks VALUES ('error_template','<h1>%%ERROR_TYPE%%</h1>\r\n<p>\r\n<b>Time:</b> %%thetime%%<br>\r\n<b>Package:</b> %%package%%<br>\r\n<b>File:</b> %%file%% <br>\r\n<b>Line:</b> %%line%% <br>\r\n<b>Additional Messages:</b> %%ERROR_MSG%%\r\n<b>Var Dump:</b><br>\r\n%%VARDUMP%%\r\n</p>','1','A layout for error messages when scoop really chokes.','templates','default','en');
< INSERT INTO blocks VALUES ('ad_confirm_text','<p>Your ad is shown above for you to make sure that its how you want it. If you see any problems,\r\nhit back and fix them. Make sure that you take note of how much this will cost, as the next step\r\nis where you pay. If you like what you see, hit \"Purchase Ad\" below, if not, hit back and make your\r\nchanges.</p>','1','Text shown on ad preview page, just before purchase.','advertising','default','en');
< INSERT INTO blocks VALUES ('no_submit_ad_perm','<TABLE BORDER=0 CELLPADDING=1 CELLSPACING=1 WIDTH=\"99%\"> \r\n<TR><TD bgcolor=\"%%title_bgcolor%%\">%%title_font%% Submit Ad Error %%title_font_end%%</TD></TR>\r\n<TR><TD >%%norm_font%% Sorry, but you must have a user account or login before you can submit ads on this site. You may login using the box to your right. To create an account you may go <a href=\"%%rootdir%%/newuser\">here</a>%%norm_font_end%%</TD></TR>\r\n</TABLE>\r\n','1','Error message telling a user they don\'t have the permissions required to submit ads to the site.','advertising','default','en');
< INSERT INTO blocks VALUES ('ad_disapproval_mail','The ad that you submitted to %%sitename%% was disapproved today\r\nfor the following reason:\r\n\r\n%%REASON%%\r\n\r\nAdvertisement details:\r\nTitle: %%TITLE%%\r\nText1: %%TEXT1%%\r\nURL: %%URL%%\r\n\r\nIf you have received this message in error, please reply and let us know.\r\n\r\n-%%sitename%%\r\n%%local_email%%\r\n','1','The text of the email sent when an ad is disapproved.','advertising,email','default','en');
< INSERT INTO blocks VALUES ('ad_approval_mail','The ad that you submitted to %%sitename%% was accepted for display on our site.\r\n\r\nAdvertisement details:\r\nTitle: %%TITLE%%\r\nText1: %%TEXT1%%\r\nURL: %%URL%%\r\n\r\nIf you have received this message in error, please reply and let us know.\r\n\r\n-%%sitename%%\r\n%%local_email%%\r\n','1','The text of the email sent when an ad is approved.','advertising,email','default','en');
< INSERT INTO blocks VALUES ('mail_ad_almost_done_msg','The ad that you submitted to %%sitename%% has is almost finished wth its campaign. You only have %%VIEWS_LEFT%% impressions left before its gone. If you would like to not receive these reminders, please reply and let us know.\r\n\r\nAdvertisement details:\r\nTitle: %%TITLE%%\r\nText1: %%TEXT1%%\r\nURL: %%URL%%\r\n\r\nIf you have received this message in error, please reply and let us know.\r\n\r\n-%%sitename%%\r\n%%local_email%%\r\n','1','The text of the email sent by the system when impressions are almost gone from a given ad.','advertising,email','default','en');
< INSERT INTO blocks VALUES ('mail_ad_done_msg','The ad that you submitted to %%sitename%% has finished its campaign. Thank you for advertising on our site, we look forward to doing business with you again.\r\n\r\nAdvertisement details:\r\nTitle: %%TITLE%%\r\nText1: %%TEXT1%%\r\nURL: %%URL%%\r\n\r\nIf you have received this message in error, please reply and let us know.\r\n\r\n-%%sitename%%\r\n%%local_email%%\r\n','1','The text of the email sent by the system when impressions are gone from a given ad.','advertising,email','default','en');
< INSERT INTO blocks VALUES ('buy_ad_impression_message','From here you can pre-pay for ad impressions. Once you have prepaid impressions on your account, you can distribute them to any ad you have submitted, from the <a href=\"%%rootdir%%/ads/dist\">distribution</a> page.','1','directions on buying ad impressions separately from ads.','advertising','default','en');
< INSERT INTO blocks VALUES ('confirm_purchase_impressions','If you\'re sure that you want to buy this many impressions, click \"Purchase\" below, and proceed to the payment page. If you need to make a change, change the number and hit confirm again.','1','Text of the confirm message just before purchase.','advertising','default','en');
< INSERT INTO blocks VALUES ('editqueuestory_bg','#99ccdd','1','Background colour of a story in the edit queue','display','default','en');
< INSERT INTO blocks VALUES ('author_edit_console','<!-- author_edit_console -->\r\n<TABLE BGCOLOR=\"#006699\" BORDER=0 CELLPADDING=1 CELLSPACING=0 WIDTH=\"100%\" ALIGN=\"center\">\r\n <TR>\r\n <TD>\r\n <TABLE BGCOLOR=\"%%story_mod_bg%%\" BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=\"100%\" ALIGN=\"center\">\r\n <TR>\r\n <TD>\r\n %%norm_font%%\r\n As the author of this story, you may cancel the submission at any time during voting. Simply check the confirm box below, and click \"Cancel Submission\". If the story is still in editing, you may also edit it using the \"Edit\" button. To finish the editing period and move the story to voting, click \"Edit\", uncheck \"Request editorial feedback\" and save.\r\n %%norm_font_end%%\r\n </TD>\r\n </TR>\r\n <TR>\r\n <TD ALIGN=\"center\" VALIGN=\"middle\">\r\n %%norm_font%%\r\n!
%%author_edit_form%%\r\n %%norm_font_end%%\r\n </TD>\r\n </TR>\r\n </TABLE>\r\n </TD>\r\n </TR>\r\n</TABLE>\r\n<!-- X vote_console -->\r\n','1','The editing console for the story author, when the story is in the edit queue.','site_html','default','en');
< INSERT INTO blocks VALUES ('edit_instructions','<!-- vote_console -->\r\n<TABLE BGCOLOR=\"#006699\" BORDER=0 CELLPADDING=1 CELLSPACING=0 WIDTH=\"100%\" ALIGN=\"center\">\r\n <TR>\r\n <TD>\r\n <TABLE BGCOLOR=\"%%story_mod_bg%%\" BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=\"100%\" ALIGN=\"center\">\r\n <TR>\r\n <TD>\r\n %%norm_font%%\r\n<b>Please Help.</b> The author of this story has requested editorial help from you, and the rest of the community. Please read, and post your editorial suggestions below. The author can edit at any time, so some suggestions may already have been fixed when you read them. After editing, the story will continue on to voting as usual.\r\n %%spam_form%%\r\n %%norm_font_end%%\r\n </TD>\r\n </TR>\r\n </TABLE>\r\n </TD>\r\n </TR>\r\n</TABLE>\r\n<!-- X vote_console -->','1','Instruction!
s to the author regarding story editing','site_html','default','en');
< INSERT INTO blocks VALUES ('renew_ad_message','Renew an ad. Right here! Today!','1','Text displayed to get people to renew ads','advertising','default','en');
< INSERT INTO blocks VALUES ('renew_choose_ad','%%norm_font%% You need to choose an ad to renew. Check <a href=\"%%rootdir%%/my/ads\">your ad listing page</a> to \r\nchoose an ad to renew. %%norm_font_end%%','1','Message displayed to tell the person that they need to choose an ad to renew before they can renew anything','advertising','default','en');
< INSERT INTO blocks VALUES ('renew_ad_no_permission','%%norm_font%% Sorry, but you cannot renew another person\'s advertisement. Please choose an ad from <a href=\"%%rootdir%%/my/ads\">your ad list</a> to renew.%%norm_font_end%%','1','Message displayed if somebody tries to renew a different user\'s ad','advertising','default','en');
< INSERT INTO blocks VALUES ('rating_format','(<A HREF=\"%%rootdir%%/comments/%%sid%%/%%cid%%?mode=alone;showrate=1#%%cid%%\">%%score%% / %%num_ratings%%</A>)',NULL,'The rating part of a comment for inclusion into the comment block.','site_html','default','en');
< INSERT INTO blocks VALUES ('donate_email_pledge','Thank you for your donation. Please remember to send $%%AMOUNT%% to our mailing address.',NULL,'Email sent to confirm a pledge to donate. Should probably remind the person to actually send their money.','email','default','en');
< INSERT INTO blocks VALUES ('confirm_ad_renew','%%norm_font%% Be sure this is the number of impressions you want to purchase, and hit \"Purchase\" below when you are ready to renew your ad %%norm_font_end%%','1','Text of the confirm message just before ad renewal.','advertising','default','en');
< INSERT INTO blocks VALUES ('dynamic_template','<HTML>\r\n<HEAD>\r\n<TITLE>%%sitename%% || %%subtitle%%</TITLE>\r\n%%dynamicmode_javascript%%\r\n</HEAD>\r\n<BODY onload=\"copyContent(%%mainpid%%,%%dynamicmode%%)\">\r\n%%CONTENT%%\r\n</BODY>\r\n</HTML>\r\n','1','Page template for dynamic comment display mode','templates','default','en');
< INSERT INTO blocks VALUES ('dynamic_collapse_thread_link','<img src=\"%%imagedir%%/dyn_cola.gif\" alt=\"--\" title=\"Collapse Subthread\" width=\"12\" height=\"12\" border=\"0\">',NULL,'Link to collapse a dynamic comment subthread.','site_html','default','en');
< INSERT INTO blocks VALUES ('ad_renewal_mail','Your ad on %%sitename%% has been renewed.\r\n\r\nAdvertisement details:\r\nTitle: %%TITLE%%\r\nText1: %%TEXT1%%\r\nURL: %%URL%%\r\nAdditional Impressions: %%IMPRESSIONS%%\r\n\r\nIf you have received this message in error, please reply and let us know.\r\n\r\n-%%sitename%%\r\n%%local_email%%\r\n','1','The text of the email sent when an ad is renewed.','advertising,email','default','en');
< INSERT INTO blocks VALUES ('paypal_finished','Thank you for your order! An administrator will soon review your ad to \r\nensure that it meets our guidelines. You will receive a notice by email \r\nwhen your ad is reviewed. If your ad is not approved, the charge to your \r\naccount will be reversed. If it is approved, it will begin running \r\nimmediately.\r\n','1','Text displayed after somebody finished paying for their ad through paypal','advertising','default','en');
< INSERT INTO blocks VALUES ('paypal_canceled','We\'re sorry you decided to cancel your order.','1','Text displayed if somebody cancelled their order of ads','advertising','default','en');
< INSERT INTO blocks VALUES ('dynamic_loading_link','<img src=%%imagedir%%/dyn_wait.gif width=12 height=16 ALT=x border=0>','1','Text or image of the comment loading message','site_html','default','en');
< INSERT INTO blocks VALUES ('dynamic_collapse_bottom_link','<img src=%%imagedir%%/dyn_colb.gif width=12 height=12 ALT=- border=0>','1','Text or image of the link to collapse a comment, placed at the bottom of the comment.','site_html','default','en');
< INSERT INTO blocks VALUES ('block_category_list','<tr>\r\n<td>%%norm_font%%<a href=\"%%rootdir%%/admin/blocks/%%item_url%%\">%%item%%</a>%%norm_font_end%%</td>\r\n<td>%%norm_font%%<a href=\"%%rootdir%%/admin/blocks/%%item_url%%\">%%item%%</a>%%norm_font_end%%</td>\r\n<td>%%norm_font%%<a href=\"%%rootdir%%/admin/blocks/%%item_url%%\">%%item%%</a>%%norm_font_end%%</td>\r\n</tr>\r\n',NULL,'One line of the block category list. Usually one table row.','admin_pages','default','en');
< INSERT INTO blocks VALUES ('edit_block','<form name=\"editblocks\" action=\"%%rootdir%%/admin/blocks/\" method=\"post\">\r\n<input type=\"hidden\" name=\"cat\" value=\"%%category%%\" />\r\n\r\n<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\">\r\n<tr><td bgcolor=\"%%title_bgcolor%%\">%%title_font%%Blocks: %%category%%%%title_font_end%%</td></tr>\r\n<tr><td>%%norm_font%%%%update_msg%%%%norm_font_end%%</td></tr>\r\n<tr><td>%%norm_font%%%%theme_sel%%%%norm_font_end%%</td></tr>\r\n<tr><td>%%norm_font%%Choose a category to edit:%%norm_font_end%%</td></tr>\r\n<tr><td>\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"2\" width=\"100%\">%%catlist%%</table>\r\n</td></tr>\r\n<tr><td>%%norm_font%%<input type=\"submit\" name=\"save\" value=\"Save\"> <input type=\"submit\" name=\"edit\" value=\"Get\" />%%norm_font_end%%</td></tr>\r\n<tr><td>%%norm_font%%%%html_check%%%%norm_font_end%%</td></tr>\r\n<tr><td>\r\n <table border=0 cellpadding=1 cellspacing=0 widt!
h=\"100%\">%%form_body%%</table>\r\n</td></tr>\r\n<tr><td>%%norm_font%%<input type=\"submit\" name=\"save\" value=\"Save\"> <input type=\"submit\" name=\"edit\" value=\"Get\" />%%norm_font_end%%</td></tr>\r\n</table>\r\n</form>\r\n',NULL,'The main edit block page. the special var \"form_body\" is either the single-block edit form, or the category table, depending on which view you\'re using.','admin_pages','default','en');
< INSERT INTO blocks VALUES ('edit_cat_blocks','<!-- category line begin -->\r\n<tr>\r\n <td>\r\n %%norm_font%%%%name%%<br />\r\n %%description%%%%norm_font_end%%\r\n </td>\r\n <td>%%norm_font%%%%value%%%%norm_font_end%%</td>\r\n</tr>\r\n<!--category line end -->\r\n',NULL,'One line of the table all blocks in one category are placed in. Special vars name, description, and value are a link, plain text, and a textarea, respectively, that are substituted in.','admin_pages','default','en');
< INSERT INTO blocks VALUES ('edit_cat_vars','<tr>\r\n <td>%%norm_font%%%%name%%%%norm_font_end%%</td>\r\n <td>%%norm_font%%%%value%%%%norm_font_end%%</td>\r\n <td>%%norm_font%%%%description%%%%norm_font_end%%</td>\r\n</tr>\r\n',NULL,'One line of the table all vars in one category are placed in. Special vars name, value, and description are a link, the appropriate input element for the var type, and text, respectively','admin_pages','default','en');
< INSERT INTO blocks VALUES ('edit_one_block','<tr><td>%%norm_font%%Or edit a block directly:%%norm_font_end%%</td></tr>\n<tr><td><table cellspacing=\"2\" cellpadding=\"0\" width=\"100%\">\n<tr>\n <td colspan=\"2\">%%norm_font%%<b>Delete:</b><input type=\"checkbox\" name=\"delete\" value=\"1\">%%norm_font_end%%</td>\n</tr>\n<tr>\n <td>%%norm_font%%<b>Select Block:</b>%%norm_font_end%%</td>\n <td>%%blockselect%%</td>\n</tr>\n<tr>\n <td>%%norm_font%%<b>Select Categories:</b>%%norm_font_end%%</td>\n <td>%%catselect%%</td>\n</tr>\n<tr>\n <td>%%norm_font%%<b>Name:</b>%%norm_font_end%%</td>\n <td><input type=\"text\" size=\"60\" name=\"name\" value=\"%%bid%%\"></td>\n</tr>\n<tr>\n <td>%%norm_font%%<b>Theme:</b>%%norm_font_end%%</td>\n <td><input type=\"text\" size=\"60\" name=\"block_theme\" value=\"%%theme%%\"><input type=\"hidden\" name=\"theme\" value=\"%%curr_theme%%\"></td>\n</tr>\n<tr>\n <td>%%norm_font%%<b>New Category:</b>%%norm_font_end%%</td>\n <td><input type=\"text\" s!
ize=\"60\" name=\"category\" value=\"\"><br>\n %%norm_font%%<i>(seperate multiple categories with commas)</i>%%norm_font_end%%\n </td>\n</tr>\n<tr>\n <td colspan=\"2\">\n %%norm_font%%<b>Value:</b>%%norm_font_end%%<br>\n <textarea cols=\"60\" rows=\"20\" name=\"value\" wrap=\"soft\">%%value%%</textarea>\n </td>\n</tr>\n<tr>\n <td colspan=\"2\">\n %%norm_font%%<b>Description:</b>%%norm_font_end%%<br>\n <textarea cols=\"60\" rows=\"5\" name=\"description\"\n wrap=\"soft\">%%description%%</textarea>\n </td>\n</tr>\n</table></td></tr>\n',NULL,'The form to edit all aspects of a single block','admin_pages','default','en');
< INSERT INTO blocks VALUES ('edit_one_var','<tr><td>%%norm_font%%Or edit a variable directly:%%norm_font_end%%</td></tr>\r\n<tr><td><table cellspacing=\"2\" cellpadding=\"0\" width=\"100%\">\r\n <tr>\r\n <td colspan=\"2\">%%norm_font%%<b>Delete:</b><input type=\"checkbox\" name=\"delete\" value=\"1\" />%%norm_font_end%%</td>\r\n </tr>\r\n <tr>\r\n <td>%%norm_font%%<b>Type:</b>%%norm_font_end%%</td>\r\n <td>%%typeselect%%</td>\r\n </tr>\r\n <tr>\r\n <td>%%norm_font%%<b>Select Variable:</b>%%norm_font_end%%</td>\r\n <td>%%varselect%%</td>\r\n <tr>\r\n <td>%%norm_font%%<b>Select Categories:</b>%%norm_font_end%%</td>\r\n <td>%%catselect%%</td>\r\n </tr>\r\n <tr>\r\n <td>%%norm_font%%<b>Name:</b>%%norm_font_end%%</td>\r\n <td><input type=\"text\" size=\"60\" name=\"name\" value=\"%%name%%\" /></td>\r\n </tr>\r\n <tr>\r\n <td>%%norm_font%%<b>New Category:</b>%%norm_font_end%%</td>\r\n <td><input type=\"text\" size=\"60\" name=\"category\" value=\"\"><br />\r\n %%norm!
_font%%<i>(seperate multiple categories with commas)</i>%%norm_font_end%%\r\n </td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"2\">\r\n %%norm_font%%<b>Value:</b>%%norm_font_end%%<br />\r\n <textarea cols=\"60\" rows=\"12\" name=\"value\" wrap=\"soft\">%%value%%</textarea>\r\n </td>\r\n </tr>\n <tr>\n <td colspan=\"2\">%%norm_font%%%%description%%%%norm_font_end%%</td>\n </tr>\r\n <tr>\r\n <td colspan=\"2\">\r\n %%norm_font%%<b>Description:</b>%%norm_font_end%%<br />\r\n <textarea cols=\"60\" rows=\"3\" name=\"description\" wrap=\"soft\">%%description%%</textarea>\r\n </td>\r\n </tr>\r\n</table></td></tr>\r\n',NULL,'','admin_pages','default','en');
< INSERT INTO blocks VALUES ('edit_var','<form name=\"editvars\" action=\"%%rootdir%%/admin/vars/\" method=\"post\">\r\n<input type=\"hidden\" name=\"cat\" value=\"%%category%%\" />\r\n\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\r\n<tr><td bgcolor=\"%%title_bgcolor%%\">%%title_font%%Site Controls: %%category%%%%title_font_end%%</td></tr>\r\n<tr><td>%%norm_font%%%%update_msg%%%%norm_font_end%%</td></tr>\r\n<tr><td> </td></tr>\r\n<tr><td>%%norm_font%%Choose a category to edit:%%norm_font_end%%</td></tr>\r\n<tr><td>\r\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"2\" width=\"100%\">%%catlist%%</table>\r\n</td></tr>\r\n<tr><td>%%norm_font%%<input type=\"submit\" name=\"save\" value=\"Save\" /> <input type=\"submit\" name=\"edit\" value=\"Get\" />%%norm_font_end%%</td></tr>\r\n<tr><td><table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\">%%form_body%%</table></td></tr>\r\n<tr><td>%%norm_font%%<input type=\"submit\" name=\"s!
ave\" value=\"Save\" /> <input type=\"submit\" name=\"edit\" value=\"Get\" />%%norm_font_end%%</td></tr>\r\n</table>\r\n</form>\r\n',NULL,'The main edit var page. The special var \"form_body\" is either the single-var edit form, or the category table, depending on which view you\'re using.','admin_pages','default','en');
< INSERT INTO blocks VALUES ('var_category_list','<tr>\r\n <td>%%norm_font%%<a href=\"%%rootdir%%/admin/vars/%%item_url%%\">%%item%%</a>%%norm_font_end%%</td>\r\n <td>%%norm_font%%<a href=\"%%rootdir%%/admin/vars/%%item_url%%\">%%item%%</a>%%norm_font_end%%</td>\r\n <td>%%norm_font%%<a href=\"%%rootdir%%/admin/vars/%%item_url%%\">%%item%%</a>%%norm_font_end%%</td>\r\n</tr>\r\n',NULL,'One line of the var category list. Usually one table row.','admin_pages','default','en');
---
> INSERT INTO blocks VALUES ('footer','<DIV id=\"footer\">\r\n<P><A href=\"http://sourceforge.net\"><IMG src=\"http://sourceforge.net/sflogo.php?group_id=4901&type=1\" width=\"88\" height=\"31\" border=\"0\" alt=\"SourceForge Logo\"></A> \r\n<A HREF=\"http://scoop.kuro5hin.org\"><IMG SRC=\"%%imagedir%%/new_powered.gif\" ALT=\"Powered by Scoop\" BORDER=0></A></P>\r\n\r\n<FORM NAME=\"Search\" ACTION=\"%%rootdir%%\" METHOD=\"POST\">\r\n <INPUT TYPE=\"hidden\" NAME=\"op\" VALUE=\"search\">\r\n <INPUT TYPE=\"text\" SIZE=20 NAME=\"string\"><INPUT TYPE=\"submit\" VALUE=\"Search\">\r\n</FORM> \r\n\r\n<P>%%smallfont%%All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 2004 The Management \r\n%%smallfont_end%%</P>\r\n</DIV>','1','<P>This block is used at the bottom of each page. It should be fairly self-contained HTML, and contain any copyright notices and badges you want displayed at the bottom of all pag!
es. This block has no special keys.</P>','General','default','en');
> INSERT INTO blocks VALUES ('index_template','<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n<HTML>\r\n<HEAD>\r\n<TITLE>%%sitename%% %%bars%% %%subtitle%%</TITLE>\r\n<LINK rel=\"stylesheet\" type=\"text/css\" href=\"%%rootdir%%/css/main\">\r\n</HEAD>\r\n<BODY>\r\n\r\n%%header%%\r\n\r\n<!-- Main layout table -->\r\n<TABLE id=\"main\">\r\n <TR>\r\n <!-- Left info column -->\r\n <TD VALIGN=\"top\" WIDTH=\"20%\" HEIGHT=20>\r\n <!-- About Scoop -->\r\n %%scoop_intro%%\r\n <!-- X About Scoop -->\r\n </TD>\r\n <!-- X Left info column -->\r\n\r\n <!-- Center content section -->\r\n <TD VALIGN=\"top\" width=\"55%\">\r\n %%BOX,section_title%%\r\n %%CONTENT%%\r\n </TD>\r\n <!-- X center content section -->\r\n\r\n <!-- Right boxes column -->\r\n <TD VALIGN=\"top\" width=\"25%\">\r\n \r\n %%BOX,main_menu%%\r\n %%BOX,ad_box%%\r\n %%BOX,user_box%%\r!
\n %%BOX,rdf_feeds%%\r\n %%BOX,hotlist_box%%\r\n %%BOX,admin_tools%%\r\n %%BOX,poll_box%%\r\n %%BOX,older_list_box%%\r\n\r\n </TD>\r\n <!-- X Right boxes column -->\r\n\r\n </TR> \r\n <!-- X main page block -->\r\n</TABLE>\r\n<!-- X Main layout table -->\r\n\r\n%%footer%%\r\n\r\n<CENTER>%%BOX,menu_footer%%</CENTER>\r\n</BODY>\r\n</HTML>\r\n','1','<P>This block is used to build the front and section story index pages. It must be a full HTML page; dynamic content is added through the use of special keys. The special keys recognised are:</P>\n<DL>\n <DT>subtitle</DT>\n <DD>This is replaced with the display name of the section being displayed.</DD>\n <DT>CONTENT</DT>\n <DD>This is replaced with the story summaries for all of the stories that should be displayed on this page. It is built using the block <B>story_summary</B> once for each story displayed.</DD>\n</DL>\n','Page Templates','default','en');
> INSERT INTO blocks VALUES ('header','<!-- header table -->\r\n<DIV id=\"header\">\r\n%%section_links%%\r\n<A href=\"%%rootdir%%/\"><IMG SRC=\"%%imagedir%%/small_logo.jpg\" BORDER=0 ALT=\"Scoop -- the free news and discussion system\"></A>\r\n</DIV>\r\n<!-- X header table -->\r\n%%dynamicmode_iframe%%','1','<P>This block is used at the top of each page. It should be fairly self-contained HTML, and contain any site-wide navigation you want displayed at the top of all pages. This block has one special key; dynamicmode_iframe is replaced with an IFRAME tag on pages displaying dynamic comments, and with nothing otherwise.</P>','General','default','en');
> INSERT INTO blocks VALUES ('comment','<!-- start comment -->\r\n<DIV class=\"commenthead\">\r\n<A NAME=\"%%cid%%\">%%norm_font%%%%new%% <B>%%subject%%</B></A>\r\n%%rating_format%% (<A CLASS=\"light\" HREF=\"%%rootdir%%/comments/%%sid%%/%%cid%%#%%cid%%\">#%%cid%%</A>)%%norm_font_end%% <BR>%%norm_font%%by %%name%% %%email%% on %%date%%\r\n<BR>%%user_info%%%%edit_user%% %%url%%%%norm_font_end%%\r\n</DIV>\r\n\r\n<DIV class=\"commentbody\">\r\n%%norm_font%%%%comment%%\r\n<BR>%%sig%%\r\n<BR>%%actions%%%%norm_font_end%%\r\n</DIV>\r\n%%replies%%\r\n<!-- end comment -->\r\n','1','<P>This block is used to format each topical comment attached to a story or poll. It is not used directly in any block, but is called repeatedly in the code, once for each topical comment displayed. (Editorial comments use the block <B>moderation_comment</B>). This should be a self-contained chunk of HTML code that can be nested arbitrarily deep. The special keys recognised are:</P>\n<DL>\n <DT>uid</DT!
>\n <DD>The numeric user ID of the comment poster</DD>\n <DT>edit_user</DT>\n <DD>The edit user link, only displayed if the user viewing the page has the perm <B>edit_user</B>.</DD>\n <DT>name</DT>\n <DD>The nickname of the comment poster</DD>\n <DT>date</DT>\n <DD>A formatted time/date string</DD>\n <DT>subject</DT>\n <DD>The subject of the comment</DD>\n <DT>new</DT>\n <DD>The contents of the block <B>new_comment_marker</B>, if the comment is not yet marked as read for the user viewing the comment. Use this, not new_comment_marker, in this block.</DD>\n <DT>member</DT>\n <DD>The contents of the block <B>mark_(groupname)</B>, if it exists for the poster\'s group</DD>\n <DT>sig</DT>\n <DD>The user\'s signature, if one is set.</DD>\n <DT>rating_format</DT>\n <DD>If ratings are turned off, or the user chooses not to see ratings, this is blanked; if ratings should be displayed, this is replaced with the contents of the block <B>rating_format</B> which may use the spe!
cial keys <B>score</B> and <B>num_ratings</B> to display the c!
urrent r
atings.</DD>\n <DT>comment</DT>\n <DD>The body of the comment</DD>\n <DT>cid</DT>\n <DD>The comment ID. This plus the sid uniquely identifies each comment.</DD>\n <DT>actions</DT>\n <DD>The parent, reply, delete, toggle, and dynamic mode expand and collapse links; each part according to permissions.</DD>\n <DT>user_info</DT>\n <DD>A link to the comment poster\'s user info page.</DD>\n <DT>sid</DT>\n <DD>The story ID. This plus the cid uniquely identifies each comment; this alone uniquely identifies each story or poll.</DD>\n <DT>score</DT>\n <DD>The comment\'s current score, an average of all the ratings.</DD>\n <DT>num_ratings</DT>\n <DD>The number of ratings given to the comment.</DD>\n <DT>email</DT>\n <DD>The user\'s \"fake email\" from their user preferences in a mailto: link, if present</DD>\n <DT>url</DT>\n <DD>The user\'s homepage from their user preferences in a link, if present</DD>\n <DT>replies</DT>\n <DD>All comment replies. If in threaded or minimal!
, this is formatted as just the subject; if in nested, this is formatted as the full comment.</DD>\n</DL>','Comments','default','en');
> INSERT INTO blocks VALUES ('admin_template','<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n<HTML>\r\n<HEAD>\r\n<TITLE>%%sitename%% %%bars%% %%subtitle%%</TITLE>\r\n<LINK rel=\"stylesheet\" type=\"text/css\" href=\"%%rootdir%%/css/main\">\r\n</HEAD>\r\n<BODY>\r\n\r\n%%header%%\r\n\r\n<!-- Main layout table -->\r\n<TABLE id=\"main\">\r\n <!-- Main page block -->\r\n <TR>\r\n \r\n <!-- Center content section -->\r\n <TD VALIGN=\"top\" width=\"72%\">\r\n %%CONTENT%%\r\n </TD>\r\n <!-- X center content section -->\r\n \r\n <!-- Right boxes column -->\r\n <TD VALIGN=\"top\" WIDTH=\"25%\">\r\n\r\n %%BOX,main_menu%%\r\n %%BOX,hotlist_box%%\r\n %%BOX,user_box%%\r\n %%BOX,admin_tools%%\r\n \r\n </TD>\r\n <!-- X Right boxes column -->\r\n </TR>\r\n <!-- X main page block -->\r\n</TABLE>\r\n<!-- X Main layout table -->\r\n\r\n%%footer%%\r\n\r\n<CENTER>%%BOX,menu_foot!
er%%</CENTER>\r\n</BODY>\r\n','1','This block is used to build most pages on the site. It must be a full HTML page; dynamic content is added through the use of special keys. The special keys recognised are:</P>\n<DL>\n <DT>subtitle</DT>\n <DD>This is replaced with an appropriate subtitle indicating which page is currently being viewed.</DD>\n <DT>CONTENT</DT>\n <DD>This is replaced with any other content specific to the page being requested. It is provided by the function or box named in the Ops Admin Tool which handles the op (the first pseudo-directory) of the page.</P>\n<P>This block is used to create the Admin Tools pages, including the Blocks Admin Tool, so be very careful when changing it. If you break this block, you will not be able to use any of the Admin Tools anymore and will not be able to fix it without going directly to the database.</P>','Page Templates','default','en');
> INSERT INTO blocks VALUES ('story_info','<!-- Story info -->\r\n<DIV class=\"story_info\">\r\n %%smallfont%%%%story_info%%%%smallfont_end%%\r\n</DIV>\r\n<!-- X Story info -->\r\n\r\n','1','<P>This block displays information about the story and links to some of the things you can do. It recognizes one special key, story_info, which is replaced with the story name, number and type of comments, and the \'post a comment\' and \'edit\' links as permissions allow.</P>','Stories','default','en');
> INSERT INTO blocks VALUES ('story_summary','<DIV class=\"story_summary\">\r\n<DIV class=\"story_title\"><H2>%%title%%</H2>\r\n%%norm_font%%%%hotlist%%%%norm_font_end%%\r\n<BR>%%topic_img%%</DIV>\r\n\r\n<P>%%smallfont%%By %%info%%, Section %%section_link%%\r\n<BR>Posted on %%time%%%%smallfont_end%%</P>\r\n\r\n<DIV class=\"introtext\">\r\n%%norm_font%%%%introtext%%%%norm_font_end%%\r\n</DIV>\r\n<P>%%norm_font%%%%stats%% %%readmore%%%%norm_font_end%%</P>\r\n</DIV>','1','<P>This block is used to format the story headlines and introtext, both on the index pages and the story pages. It should be a self-contained bit of HTML that lays out the story\'s information. The following special keys are recognized:</P>\n<DL>\n <DT>info</DT>\n <DD>The author\'s name and the story\'s \"department\" (if used)</DD>\n <DT>title</DT>\n <DD>The story\'s title</DD>\n <DT>introtext</DT>\n <DD>The formatted contents of the story\'s introtext field</DD>\n <DT>hotlist</DT>\n <DD>The link to eithe!
r add or remove the story to the user\'s hotlist. Blank for anonymous users and stories that haven\'t been published yet.</DD>\n <DT>topic_img</DT>\n <DD>The topic image, linked to the search results for that topic.</DD>\n <DT>topic_text</DT>\n <DD>The alt text for the topic image as a text link, linked to the search results for that topic.</DD>\n <DT>time</DT>\n <DD>The localized time the story was posted.</DD>\n <DT>sid</DT>\n <DD>The story ID; can be used in custom links.</DD>\n <DT>section_icon</DT>\n <DD>The file name of the section icon; can be used in an IMG tag to display an icon.</DD>\n <DT>section_title</DT>\n <DD>The title of the section.</DD>\n <DT>aid</DT>\n <DD>The nickname of the story author</DD>\n <DT>section</DT>\n <DD>The title of the section.</DD>\n <DT>new</DT>\n <DD>The new story marker; displays the contents of the block <B>new_story_marker</B> if the logged-in user has not yet read the story, otherwise blank.</DD>\n <DT>readmore</DT>\n <DD>!
The link to the full story, drawing on either the block <B>rea!
dmore_tx
t</B> or <B>no_body_txt</B> as appropriate. Also the link to edit the story, if the user has the appropriate perms.</DD>\n <DT>stats</DT>\n <DD>The number of comments and unread comments, and the number of words in the story.</DD>\n <DT>section_link</DT>\n <DD>The section title as a link to the section index page</DD>\n</DL>','Stories','default','en');
> INSERT INTO blocks VALUES ('box','<DIV class=\"box\">\r\n%%box_title_font%%%%title%%%%box_title_font_end%%\r\n%%smallfont%%\r\n%%content%%\r\n%%smallfont_end%%\r\n</DIV>','1','<P>This block is used to provide a container for box output, and is not used directly in the page templates. It should be self-contained HTML, and provide the frame seen around the boxes in the sidebar. The special keys recognised are:</P>\n<DL>\n <DT>title</DT>\n <DD>The title of the box; if the box code returns a value for the title, that is used, otherwise the title field set in the Boxes Admin Tool is used</DD>\n <DT>content</DT>\n <DD>The main body of the box. This is the only thing the box code must return; if the box returns nothing or an empty string, the entire box (and its template) is not displayed at all</DD>\n <DT>bid</DT>\n <DD>The internal name for the box.</DD>\n</DL>','Box Templates','default','en');
> INSERT INTO blocks VALUES ('submission_message','<P><FONT =\"+1\">Thank you for your submission. This is a community-edited site, so hopefully your fellow readers will see fit to post your story. Good Luck!</FONT></P>','1','<P>This block is displayed below the story body when it has been submitted to the queue. It should be self-contained HTML and should explain what will happen to the user\'s story now that it has been submitted.</P>','Stories','default','en');
> INSERT INTO blocks VALUES ('submission_guidelines','<P>Thank you for taking the time to submit a story!</P>\r\n<P>Here are some general guidelines for new stories:</P>\r\n<UL>\r\n<LI>Pick the topic carefully! Try your best to match the topic with the story you\'re submitting.</LI>\r\n<LI>Only the html tags listed are allowed in story text. No HTML is allowed in \"title\" or \"dept.\"</LI>\r\n<LI>You must preview at least once. Please read over your story carefully. <LI>Check all URLS!</LI>\r\n<LI>Check all facts! :-)</LI>\r\n<LI>This site is community-edited (mostly), so don\'t whine to the admins if your story doesn\'t get posted. If you\'re logged in, you\'ll see a \"Moderate Submissions\" link to the right. This is how you decide what gets posted here! Use it!</LI>\r\n</UL>\r\n<P>Now post away!</P>','1','<P>This block is displayed above the story submission form. It should be self-contained HTML and should explain the site\'s submission guidelines. Keep in mind that the!
majority of people will at most skim this when going to post a story, so put the most important points up top.</P>','Stories','default','en');
> INSERT INTO blocks VALUES ('moderate_head','<P>%%norm_font%%Current score:<B>%%score%%</B><BR>\r\nTotal votes: <B>%%votes%%</B></FONT></P>\r\n','1','<P>This block is used at the top of the story moderation form, after the user has voted on a story in the queue. It should be self-contained HTML, and summarize the story\'s current standing in the queue. The special keys recognized are:</P>\n<DL>\n <DT>score</DT>\n <DD>The story\'s current score.</DD>\n <DT>votes</DT>\n <DD>The total number of votes cast.</DD>\n</DL>','Stories','default','en');
> INSERT INTO blocks VALUES ('moderation_comment','<!-- start comment -->\r\n<DIV class=\"editorialhead\">\r\n<A NAME=\"%%cid%%\">%%norm_font%%%%new%% <B>%%subject%%</B></A> %%rating_format%% (<A CLASS=\"light\" HREF=\"%%rootdir%%/comments/%%sid%%/%%cid%%#%%cid%%\">#%%cid%%</A>)%%norm_font_end%% \r\n<BR>%%norm_font%%by %%name%% %%email%% on %%date%%\r\n<BR>%%user_info%%%%edit_user%% %%url%%%%norm_font_end%%\r\n</DIV>\r\n\r\n<DIV class=\"commentbody\">\r\n%%norm_font%%%%comment%%\r\n<BR>%%sig%%\r\n<BR>%%actions%%%%norm_font_end%%\r\n</DIV>\r\n%%replies%%\r\n<!-- end comment -->\r\n\r\n','1','<P>This block is used to format each editorial comment attached to a story or poll. It is not used directly in any block, but is called repeatedly in the code, once for each editorial comment displayed. (Topical comments use the block <B>comment</B>). This should be a self-contained chunk of HTML code that can be nested arbitrarily deep. The special keys recognised are:</P>\n<DL>\n <D!
T>uid</DT>\n <DD>The numeric user ID of the comment poster</DD>\n <DT>edit_user</DT>\n <DD>The edit user link, only displayed if the user viewing the page has the perm <B>edit_user</B>.</DD>\n <DT>name</DT>\n <DD>The nickname of the comment poster</DD>\n <DT>date</DT>\n <DD>A formatted time/date string</DD>\n <DT>subject</DT>\n <DD>The subject of the comment</DD>\n <DT>new</DT>\n <DD>The contents of the block <B>new_comment_marker</B>, if the comment is not yet marked as read for the user viewing the comment. Use this, not new_comment_marker, in this block.</DD>\n <DT>member</DT>\n <DD>The contents of the block <B>mark_(groupname)</B>, if it exists for the poster\'s group</DD>\n <DT>sig</DT>\n <DD>The user\'s signature, if one is set.</DD>\n <DT>rating_format</DT>\n <DD>If ratings are turned off, or the user chooses not to see ratings, this is blanked; if ratings should be displayed, this is replaced with the contents of the block <B>rating_format</B> which may us!
e the special keys <B>score</B> and <B>num_ratings</B> to disp!
lay the
current ratings.</DD>\n <DT>comment</DT>\n <DD>The body of the comment</DD>\n <DT>cid</DT>\n <DD>The comment ID. This plus the sid uniquely identifies each comment.</DD>\n <DT>actions</DT>\n <DD>The parent, reply, delete, toggle, and dynamic mode expand and collapse links; each part according to permissions.</DD>\n <DT>user_info</DT>\n <DD>A link to the comment poster\'s user info page.</DD>\n <DT>sid</DT>\n <DD>The story ID. This plus the cid uniquely identifies each comment; this alone uniquely identifies each story or poll.</DD>\n <DT>score</DT>\n <DD>The comment\'s current score, an average of all the ratings.</DD>\n <DT>num_ratings</DT>\n <DD>The number of ratings given to the comment.</DD>\n <DT>email</DT>\n <DD>The user\'s \"fake email\" from their user preferences in a mailto: link, if present</DD>\n <DT>url</DT>\n <DD>The user\'s homepage from their user preferences in a link, if present</DD>\n <DT>replies</DT>\n <DD>All comment replies. If in threaded o!
r minimal, this is formatted as just the subject; if in nested, this is formatted as the full comment.</DD>\n</DL>','Comments','default','en');
> INSERT INTO blocks VALUES ('error_font','<FONT COLOR=\"#FF0000\">','1','','display','default','en');
> INSERT INTO blocks VALUES ('error_font_end','</FONT>','1','','display','default','en');
> INSERT INTO blocks VALUES ('commentdisclaimer','Trolling is <B>not</B> tolerated here. Any comment may be \r\ndeleted by a site admin, and all trolls <B>will</B> be \r\ndeleted. This is fair warning. If you don\'t know what \r\ntrolling is, then you\'re probably not about to do it, so \r\ndon\'t worry. :-)','1','<P>This block is displayed just above the comment posting form. Put whatever message or warning you want displayed every time somebody posts a comment. This should be self-contained HTML. There are no special keys.</P>','Comments','default','en');
> INSERT INTO blocks VALUES ('login_box','<P>%%LOGIN_ERROR%%</P>\r\n<P>%%norm_font%%<B><A CLASS=\"light\" HREF=\"%%rootdir%%/newuser\">Make a new account</A></B>\r\n%%norm_font_end%%</P>\r\n\r\n<DIV class=\"loginform\"><P><FORM NAME=\"login\" ACTION=\"%%rootdir%%/\" METHOD=\"post\">\r\n%%smallfont%%Username: <INPUT TYPE=\"text\" SIZE=12 NAME=\"uname\">\r\n<BR>Password: <INPUT TYPE=\"password\" SIZE=12 NAME=\"pass\">\r\n<BR><INPUT TYPE=\"submit\" NAME=\"login\" VALUE=\"Login\">\r\n<INPUT TYPE=\"submit\" NAME=\"mailpass\" VALUE=\"Mail Password\">%%smallfont_end%%\r\n</FORM></DIV>','1','<P>Despite its name, this is not a box template. It is an entire static box used to present the login form and new account link in place of the user box to a visitor who is not logged in. It should be self-contained HTML. It should contain the special key below:</P>\n<DL>\n <DT>LOGIN_ERROR</DT>\n <DD>The error message generated from a failed login attempt. The text and format of the error messa!
ges are set in the blocks <B>login_error_message</B>, <B>login_mailed_message</B>, or <B>login_mail_failed</B>, depending on which error was encountered.</DD>\n</DL>\n<P>The block must contain the following form elements or the login process will not work properly:</P>\n<DL>\n <DT>FORM</DT>\n <DD>The form should post to the root directory of your site.</DD>\n <DT>Username field</DT>\n <DD>The text input field must be named \"uname\"</DD>\n <DT>Password field</DT>\n <DD>The password input field must be named \"pass\"</DD>\n <DT>Login button</DT>\n <DD>The button that submits both above fields for login must be named \"login\"</DD>\n <DT>Mail forgotton password button</DT>\n <DD>The button that submits the username field for creation of a new password must be named \"mailpass\"</DD>\n</DL>','Accounts','default','en');
> INSERT INTO blocks VALUES ('hotlist_link','+Hotlist','1','<P>This block is used as the text of the link used to add a story to a user\'s personal hotlist. It is only displayed to users who are logged in and who have not hotlisted that story; the block <B>hotlist_remove_link</B> is displayed to users who have already hotlisted the story. This block has no special keys.</P>','Stories','default','en');
> INSERT INTO blocks VALUES ('hotlist_remove_link','-Hotlist','1','<P>This block is used as the text of the link used to remove a story from a user\'s personal hotlist. It is only displayed to users who are logged in and who have hotlisted that story; the block <B>hotlist_link</B> is displayed to users who have not hotlisted the story. This block has no special keys.</P>','Stories','default','en');
> INSERT INTO blocks VALUES ('poll_block','<!-- Poll Block -->\r\n%%title_font%%<B>%%title%%</B>%%title_font_end%%\r\n\r\n<TABLE>\r\n%%poll_image%%\r\n</TABLE>\r\n<!-- X Poll Block -->','1','<P>This block is used to format the poll results when displayed as the main content of the page. The following special keys are recognized:</P>\n<DL>\n <DT>title</DT>\n <DD>The poll question</DD>\n <DT>poll_image</DT>\n <DD>The poll results, with poll answers beside images representing the votes. The image file used is set in the block <B>poll_img</B>, and the width used to represent 100% is set in the block <B>poll_img_width</B>.</DD>\n</DL>','Polls','default','en');
> INSERT INTO blocks VALUES ('dot','+','1','<P>This block is used whenever a dot or list item indicator of some sort is needed. It is called directly by other blocks, never assembled as part of a special key, and recognizes no special keys itself.</P>','General','default','en');
> INSERT INTO blocks VALUES ('vote_console','<!-- vote_console -->\r\n<DIV id+\"vote_console\">\r\n <P>%%norm_font%%Your vote really does count! <B>You</B> decide whether this story ever sees the light of the front page. So vote!%%norm_font_end%%</P>\r\n\r\n<P>%%norm_font%%\r\n%%vote_form%%\r\n%%norm_font_end%%</P>\r\n</DIV>\r\n<!-- X vote_console -->\r\n','1','<P>This block is displayed below the story body for stories still in the voting queue. It should be self-contained HTML and explain what the voting is for. The special key vote_form is replaced with the actual form.</P>','Stories','default','en');
> INSERT INTO blocks VALUES ('blank_box','<DIV class=\"blank_box\">%%content%%</DIV>','1','<P>This block is used to provide a container for box output, and is not used directly in the page templates. It should be self-contained HTML, and provide a \"blank\" frame for the box output. The special keys recognised are:</P>\n<DL>\n <DT>title</DT>\n <DD>The title of the box; if the box code returns a value for the title, that is used, otherwise the title field set in the Boxes Admin Tool is used</DD>\n <DT>content</DT>\n <DD>The main body of the box. This is the only thing the box code must return; if the box returns nothing or an empty string, the entire box (and its template) is not displayed at all</DD>\n <DT>bid</DT>\n <DD>The internal name for the box.</DD>\n</DL>','Box Templates','default','en');
> INSERT INTO blocks VALUES ('story_template','<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n<HTML>\r\n<HEAD>\r\n<TITLE>%%sitename%% %%bars%% %%subtitle%%</TITLE>\r\n<LINK rel=\"stylesheet\" type=\"text/css\" href=\"%%rootdir%%/css/main\">\r\n</HEAD>\r\n%%dynamicmode_javascript%%\r\n<BODY>\r\n\r\n%%header%%\r\n\r\n<!-- Main layout table -->\r\n<TABLE id=\"main\">\r\n <!-- Main page block -->\r\n <TR>\r\n \r\n <!-- Center content section -->\r\n <TD VALIGN=\"top\" width=\"75%\">\r\n <!-- Story stuff -->\r\n %%STORY%%\r\n <!-- X story stuff -->\r\n </TD>\r\n <!-- X center content section -->\r\n \r\n <!-- Right boxes column -->\r\n <TD VALIGN=\"top\" WIDTH=\"25%\">\r\n %%BOX,main_menu%%\r\n %%BOX,user_box%%\r\n %%BOX,hotlist_box%%\r\n %%BOX,admin_tools%%\r\n %%BOX,poll_box%%\r\n %%BOX,related_links%%\r\n %%BOX,mod_stats%%\r\n </TD>\r\n <!
!-- X Right boxes column -->\r\n </TR>\r\n <!-- X main page block -->\r\n</TABLE>\r\n<!-- X Main layout table -->\r\n\r\n<!-- comments -->\r\n%%CONTENT%%\r\n%%BOX,comment_controls%%\r\n%%COMMENTS%%\r\n%%BOX,comment_controls%%\r\n<!-- X comments -->\r\n\r\n%%footer%%\r\n\r\n<CENTER>%%BOX,menu_footer%%</CENTER>\r\n</BODY>\r\n</HTML>\r\n','1','<P>This block is used to build the story and comment display pages. It must be a full HTML page. The special keys recognised are:</P>\n<DL>\n <DT>subtitle</DT>\n <DD>This is replaced with an appropriate subtitle indicating which page is currently being viewed.</DD>\n <DT>dynamicmode_javascript</DT>\n <DD>This is replaced with javascript for the dynamic comment display if the page template is being used for comment display.</DD>\n <DT>STORY</DT>\n <DD>This is replaced with either the poll display or the story display, if either are being viewed.</DD>\n <DT>CONTENT</DT>\n <DD>This is replaced with any other content specific to the p!
age being requested. It is provided by the function or box na!
med in t
he Ops Admin Tool which handles the op (the first pseudo-directory) of the page.</DD>\n</DL>','Page Templates','default','en');
> INSERT INTO blocks VALUES ('attach_poll_message','<P>Using the form below, you can attach a poll to this story. Polls are not required, but if you want one, fill in a question and some answers.</P>','1','<P>This block is displayed below the story submission form and above the attached poll submission form. It should be self-contained HTML and should contain an explanation of polls attached to stories. There are no special keys.</P>','Polls,Stories','default','en');
> INSERT INTO blocks VALUES ('default_template','<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n<HTML>\r\n<HEAD>\r\n<TITLE>%%sitename%% %%bars%% %%subtitle%%</TITLE>\r\n%%dynamicmode_javascript%%\r\n<LINK rel=\"stylesheet\" type=\"text/css\" href=\"%%rootdir%%/css/main\">\r\n</HEAD>\r\n<BODY>\r\n\r\n%%header%%\r\n\r\n<!-- Main layout table -->\r\n<TABLE id=\"main\">\r\n <!-- Main page block -->\r\n <TR>\r\n \r\n <!-- Center content section -->\r\n <TD VALIGN=\"top\" width=\"72%\">\r\n %%STORY%%\r\n %%BOX,comment_controls%%\r\n %%CONTENT%%\r\n %%BOX,comment_controls%%\r\n </TD>\r\n <!-- X center content section -->\r\n \r\n <!-- Right boxes column -->\r\n <TD VALIGN=\"top\" WIDTH=\"25%\">\r\n\r\n %%BOX,main_menu%%\r\n %%BOX,hotlist_box%%\r\n %%BOX,user_box%%\r\n %%BOX,admin_tools%%\r\n \r\n </TD>\r\n <!-- X Right boxes column -->\r\n </TR>\r\n !
<!-- X main page block -->\r\n</TABLE>\r\n<!-- X Main layout table -->\r\n\r\n%%footer%%\r\n\r\n<CENTER>%%BOX,menu_footer%%</CENTER>\r\n</BODY>\r\n','1','<P>This block is used to build most pages on the site. It must be a full HTML page; dynamic content is added through the use of special keys. The special keys recognised are:</P>\n<DL>\n <DT>subtitle</DT>\n <DD>This is replaced with an appropriate subtitle indicating which page is currently being viewed.</DD>\n <DT>dynamicmode_javascript</DT>\n <DD>This is replaced with javascript for the dynamic comment display if the page template is being used for comment display.</DD>\n <DT>STORY</DT>\n <DD>This is replaced with either the poll display or the story display, if either are being viewed.</DD>\n <DT>CONTENT</DT>\n <DD>This is replaced with any other content specific to the page being requested. It is provided by the function or box named in the Ops Admin Tool which handles the op (the first pseudo-directory) of the !
page. This can be forms, comments, special pages, or custom c!
ontent f
rom your own boxes.</DD>\n</DL>','Page Templates','default','en');
> INSERT INTO blocks VALUES ('submit_template','<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n<HTML>\r\n<HEAD>\r\n<TITLE>%%sitename%% %%bars%% %%subtitle%%</TITLE>\r\n<LINK rel=\"stylesheet\" type=\"text/css\" href=\"%%rootdir%%/css/main\">\r\n</HEAD>\r\n<BODY>\r\n\r\n%%header%%\r\n\r\n<!-- Main layout table -->\r\n<TABLE id=\"main\">\r\n <!-- Main page block -->\r\n <TR>\r\n <!-- Center content section -->\r\n <TD VALIGN=\"top\" width=\"75%\">\r\n %%STORY%%\r\n %%CONTENT%%\r\n </TD>\r\n <!-- X center content section -->\r\n \r\n <!-- Right boxes column -->\r\n <TD VALIGN=\"top\" WIDTH=\"25%\">\r\n %%BOX,main_menu%%\r\n %%BOX,hotlist_box%%\r\n %%BOX,user_box%%\r\n %%BOX,admin_tools%%\r\n %%BOX,poll_box%%\r\n </TD>\r\n <!-- X Right boxes column -->\r\n </TR>\r\n <!-- X main page block -->\r\n</TABLE>\r\n<!-- X Main layout table -->\r\n\r\n%%footer%%\!
r\n\r\n<CENTER>%%BOX,menu_footer%%</CENTER>\r\n</BODY>\r\n</HTML>\r\n','1','<P>This block is the page template used to build the story and ad submission forms. It must be a full HTML page. The special keys recognised are:</P>\n<DL>\n <DT>subtitle</DT>\n <DD>This is replaced with an appropriate subtitle indicating which page is currently being viewed.</DD>\n <DT>STORY</DT>\n <DD>This is replaced with either the poll display or the story display, if either are being viewed.</DD>\n <DT>CONTENT</DT>\n <DD>This is replaced with any other content specific to the page being requested. It is provided by the function or box named in the Ops Admin Tool which handles the op (the first pseudo-directory) of the page.</DD>\n</DL>','Page Templates','default','en');
> INSERT INTO blocks VALUES ('story_body','<DIV class=\"story_body\">%%norm_font%%\r\n%%bodytext%%\r\n%%norm_font_end%%</DIV>\r\n','1','<P>This block is used to format the body (extended copy only) of a story. It should be self-contained HTML. It recognizes one special key, bodytext, which is replaced with the formatted contents of the extended copy field of the story.</P>','Stories','default','en');
> INSERT INTO blocks VALUES ('readmore_txt','Full Story','1','<P>This block is used as the text of the link leading to the full story and comments, when there is a story body. If there is no story body, the block <B>no_body_txt</B> is used instead.</P>','Stories','default','en');
> INSERT INTO blocks VALUES ('section_links','<DIV id=\"section_links\">\r\n%%norm_font%% \r\n <A HREF=\"%%rootdir%%/\">Front Page</A> \r\n %%dot%%\r\n <A HREF=\"%%rootdir%%/section/__all__\">Everything</A> \r\n %%dot%%\r\n <A HREF=\"%%rootdir%%/section/news\">News</A> \r\n %%dot%%\r\n <A HREF=\"%%rootdir%%/section/Diary\">Diaries</A>\r\n%%norm_font_end%%\r\n</DIV>','1','<P>This block contains the links to the different sections available on the site. It is typically displayed in the page header but can be used anywhere. Any sections that exist but aren\'t linked here are typically hard for visitors to find, so don\'t forget to update it when you change your sections.</P>','General','default','en');
> INSERT INTO blocks VALUES ('diary_submission_message','<FONT SIZE=\"+1\">Your new entry has been posted. Enjoy!</FONT>','1','<P>This block is displayed just underneath a user\'s diary when they have just posted it. It should contain a message informing the user that their diary was successfully saved, and is otherwise free-form, self-contained HTML. There are no special keys.</P>','Diaries','default','en');
> INSERT INTO blocks VALUES ('box_title_bg','#006699','1','<P>This block is used wherever a colour value is needed to set the colour of the sidebar box title bars. It should be a hex colour value, including the #, such as #000000 for black. There are no special keys.</P>','Colours','default','en');
> INSERT INTO blocks VALUES ('comment_head_bg','#eeeeee','1','<P>This block is used wherever a colour value is needed to set the background colour of the comment header (which typically contains the subject and poster\'s information, but not the comment itself). It should be a hex colour value, including the #, such as #000000 for black. There are no special keys.</P>','Colours','default','en');
> INSERT INTO blocks VALUES ('dept_font','<FONT FACE=\"arial, helvetica, sans-serif\" SIZE=2>','1','<P>This block is used to format the \"from the x department\" string attached to stories, if the variable <B>show_dept</B> is turned on. It should be a complete opening font or text style indicator, such as a font or b tag. It must be properly closed by the contents of the block <B>dept_font_end</B>. There are no special keys.</P>','Fonts','default','en');
> INSERT INTO blocks VALUES ('no_body_txt','Comments >>','1','<P>This block is used as the text of the link leading to the full story and comments, when there is no story body, only an intro. If there is a story body, the block <B>readmore_txt</B> is used instead.</P>','Stories','default','en');
> INSERT INTO blocks VALUES ('sectiononlystory_bg','#eeeeee','1','<P>This block is used as a row background colour in the Story List Admin Tool, for those stories that are published to section only, including ad stories and user diaries. This should be a hex colour value including the #, such as #000000 for black.','Colours','default','en');
> INSERT INTO blocks VALUES ('smallfont','<FONT FACE=\"arial, Helvetica, Sans-Serif\" SIZE=2>','1','<P>This block should be a complete opening FONT tag. It must match the closing tag set in the block <B>smallfont_end</B>.</P>','Fonts','default','en');
> INSERT INTO blocks VALUES ('smallfont_end','</FONT>','1','<P>This block should be a closing FONT tag, or otherwise close the tag opened in the block <B>smallfont</B>.</P>','Fonts','default','en');
> INSERT INTO blocks VALUES ('story_mod_bg','#EEEEEE','1','<P>This block is used as a row background colour in the story voting queue. It is applied to stories in the voting queue that the user has not yet voted on. It should be a hex colour value, including the #.</P>','Colours','default','en');
> INSERT INTO blocks VALUES ('story_nav_bg','#EEEEEE','1','<P>This block is used as the background colour for the story navigation bar, which provides links to the next and previous stories at the bottom of the current story body. It should be a hex colour value, including the #.</P>','Colours','default','en');
> INSERT INTO blocks VALUES ('submittedstory_bg','#c6dae4','1','<P>This block is used as a row background colour in the Story List Admin Tool and the moderation queue, for those stories that are in the voting queue awaiting votes. This should be a hex colour value including the #, such as #000000 for black.','Colours','default','en');
> INSERT INTO blocks VALUES ('title_bgcolor','#EEEEEE','1','<P>This block is used anywhere a title bar needs a background (except in the sidebar boxes, which use <B>box_title_bg</B>). It should be a hex colour value, including the #.</P>','Colours','default','en');
> INSERT INTO blocks VALUES ('undisplayedstory_bg','#c0c0c0','1','<P>This block is used as the background colour for a line in the Story List Admin Tool for stories that have been voted down in the queue or hidden by an admin. It should be a hex colour value, including the #.','Colours','default','en');
> INSERT INTO blocks VALUES ('scoop_intro','<DIV class=\"box\">\r\n%%box_title_font%%Welcome to Scoop%%box_title_font_end%%\r\n\r\n<P>%%norm_font%%Holy Crap! You have your own <A HREF=\"http://scoop.kuro5hin.org\">Scoop</A> site now. Well, there\'s too many features for me to explain right here, but I can give you some places to look for help and whatnot.%%norm_font_end%%</P>\r\n\r\n<P>%%norm_font%%The main development site is at <A HREF=\"http://scoop.kuro5hin.org\">scoop.kuro5hin.org</A>. This contains links to all the other stuff, so poke around a little.%%norm_font_end%%</P>\r\n\r\n<P>%%norm_font%%For immediate help and assistance from the Scoop code monkeys, join the <A HREF=\"http://sourceforge.net/mail/?group_id=4901\">scoop-help mailing list</A>. This is practically a requirement for a pleasant Scoop administrative experience, as Scoop is rather complicated and it isn\'t always obvious where to find things.%%norm_font_end%%</P>\r\n\r\n<P>%%norm_font%%To help figure t!
hings out, there is a <A HREF=\"http://scoop.kuro5hin.org/guide/\">Scoop Admin Guide</A> which can hopefully answer most of your questions.%%norm_font_end%%</P>\r\n\r\n<P>%%norm_font%%Other things of note:%%norm_font_end%%</P>\r\n\r\n<UL>\r\n<LI>%%norm_font%%Many Scoop developers can often be found on IRC, channel #scoop at irc.slashnet.org.%%norm_font_end%%</LI>\r\n<LI>%%norm_font%%The <A HREF=\"http://sourceforge.net/project/?group_id=4901\">main Sourceforge page</A> has some information on the project%%norm_font_end%%</LI>\r\n<LI>%%norm_font%%The latest code is always <A HREF=\"http://scoop.versionhost.com/viewcvs.cgi/\">in CVS</A> (username and password are both \"anonymous\")%%norm_font_end%%</LI>\r\n<LI>%%norm_font%%You can look at a convenient <A HREF=\"http://scoop.kuro5hin.org/special/sites\">list of other Scoop sites</A> to see what folks are doing with it%%norm_font_end%%</LI>\r\n</UL>\r\n</DIV>\r\n','1','<P>This block contains introductory information and is dis!
played in the left column of the front page when you first ins!
tall Sco
op. There is useful information on where to get help in this block, so make a note of it before deleting. This block should not be displayed on a live site, because its content is of no interest except to the administrator.</P>','General','default','en');
> INSERT INTO blocks VALUES ('rss_template','<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\r\n<rdf:RDF\r\nxmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\r\nxmlns:fz=\"http://www.zapogee.com/rdf/forumzilla/\"\r\n>\r\n\r\n%%BOX,fzdescribe%%\r\n\r\n</rdf:RDF>','1','forumzilla support is going to be removed in the near fiture. Ignore this block.','FZ','default','en');
> INSERT INTO blocks VALUES ('fz_navigation_url','%%site_url%%%%rootdir%%/blank','1','forumzilla support is going to be removed in the near future. Ignore this block.','FZ','default','en');
> INSERT INTO blocks VALUES ('fz_ad_url','%%site_url%%%%rootdir%%/blank','1','forumzilla support is going to be removed in the near future. Ignore this block.','FZ','default','en');
> INSERT INTO blocks VALUES ('blank_template','<HTML>\r\n<HEAD>\r\n<TITLE></TITLE>\r\n</HEAD>\r\n<BODY>\r\n</BODY>\r\n</HTML>','1','<P>This block is a complete, blank HTML page. No header, footer, or CONTENT. It must be a complete HTML page. This template is used for commands which do not display pages, such as the logout or redirect ops.</P>','Page Templates','default','en');
> INSERT INTO blocks VALUES ('empty_box','%%content%%','1','<P>This block is a box template that should have absolutely nothing but the content special key in it, so that the box output has no frame and will not mess up the formatting of whatever part of the page it\'s placed on. The special key content is replaced with the output of whichever box uses it as a wrapper.</P>','Box Templates','default','en');
> INSERT INTO blocks VALUES ('fzdisplay_template','<html>\r\n<head><title>%%slogan%%</title></head>\r\n<body bgcolor=\"#EEEEEE\">\r\n<table width=\"80%\" align=\"center\" cellpadding=0 cellspacing=0 bgcolor=\"#000000\" border=0>\r\n<tr><td>\r\n<table width=\"100%\" align=\"center\" cellpadding=10 cellspacing=0 bgcolor=\"#ffffff\" border=0>\r\n<tr><td>\r\n%%CONTENT%%</center>\r\n</td></tr>\r\n</table>\r\n</td></tr>\r\n</table>\r\n</body>\r\n</html>','1','forumzilla support is going to be removed in the near future. Ignore this block.','FZ','default','en');
> INSERT INTO blocks VALUES ('rss_box','<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\r\n<rdf:RDF\r\nxmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\r\nxmlns:fz=\"http://www.zapogee.com/rdf/forumzilla/\"\r\n>\r\n\r\n%%BOX,fzdescribe%%\r\n\r\n</rdf:RDF>','1','forumzilla support is going to be removed in the near future. Ignore this block.','FZ','default','en');
> INSERT INTO blocks VALUES ('new_comment_marker','<FONT COLOR=\"#FF0000\"><B>[new]</B></FONT>','1','<P>This block is inserted in the comment if the user has not yet read this comment, according to Scoop\'s read-tracking system. It replaces the special key <TT>|new|</TT> in the blocks <B>comment</B> and <B>moderation_comment</B>.</P>','Comments','default','en');
> INSERT INTO blocks VALUES ('submit_rdf_message','<P>Know of any good sites that syndicate their headlines, but aren\'t carried by this site yet? Well, most likely this is because the admins don\'t know about the site yet, or that they syndicate headlines with RDF. All it takes is for you to find a URL for the site where their RDF file is, and copy it to the form below. Once submitted, and admin will review it, and will either approve it or delete it.</P>','1','<P>This block is displayed just above the form used to submit an RDF file explaining what the form is for.</P>','RDF','default','en');
> INSERT INTO blocks VALUES ('titled_box','<DIV class=\"titled_box\">\r\n%%box_title_font%%%%title%%%%box_title_font_end%%\r\n%%content%%\r\n</DIV>\r\n','1','<P>This block is used as a box template, and is not used directly from other blocks. It should be self-contained HTML and provide a box with a title bar. The following special keys are recognized:</P>\n<DL>\n <DT>title</DT>\n <DD>The title of the box; either a value explicitly returned by the box code, or the text in the box title field if nothing is explicitly returned.</DD>\n <DT>content</DT>\n <DD>The content of the box; the text that the box code returns after running.</DD>\n</DL>','Box Templates','default','en');
> INSERT INTO blocks VALUES ('cron_template','<html>\r\n<head>\r\n<title>%%slogan%% %%%% Cron</title>\r\n</head>\r\n<body bgcolor=\"#FFFFFF\"><pre>%%CONTENT%%</pre></body>\r\n</html>','1','<P>This block is used to format Scoop\'s cron system output. It parsed by run_cron.pl and should not be changed as neither users nor administrators ever use it directly.</P>','Page Templates','default','en');
> INSERT INTO blocks VALUES ('digest_storyformat','\n%%title%% \n By %%aid%%, %%time%% \n Section: %%section%%, Topic: %%tid%% \n\n%%introtext%% \n\n%%url%%\n\n----\n','1','<P>This block is used to format each story summary in the story digest email sent to users who request it. This should be plain text, with no HTML formatting. Because this is an email and is not sent through the usual processing given an HTML page, the only keys that work at all are the special keys defined for this block. The following special keys are recognised:</P>\n<DL>\n <DT>sid</DT>\n <DD>The story ID for the story being formatted. This is used in <TT>url</TT> (below) to create the full URL of the story and probably isn\'t needed on its own.</DD>\n <DT>tid</DT>\n <DD>The \"alt text\" of the topic attached to the story.</DD>\n <DT>aid</DT>\n <DD>The author\'s nickname.</DD>\n <DT>nick</DT>\n <DD>The author\'s nickname.</DD>\n <DT>time</DT>\n <DD>The time and date the story was posted on.</DD>!
\n <DT>title</DT>\n <DD>The title of the story</DD>\n <DT>dept</DT>\n <DD>The \"department\" of the story, if that feature is turned on in Site Controls (<B>show_dept</B>).</DD>\n <DT>introtext</DT>\n <DD>The story summary; that part of the story that is displayed on the index page of the scoop site. HTML line breaks are converted to newlines, links have their URL displayed beside the link text, and all other HTML tags are stripped. The intro text is then wrapped to 75 columns.</DD>\n <DT>section</DT>\n <DD>The title of the section the story is filed in.</DD>\n <DT>url</DT>\n <DD>The full URL of the story, built from the site\'s base URL and the story\'s sid.</DD>\n</DL>\n','Story Digests','default','en');
> INSERT INTO blocks VALUES ('digest_headerfooter','---------------------------------------------------------\nThis is the %%FREQUENCY%% digest for SITENAME.\nIf you have received this email in error, just reply to \nthis message and say that you got it in error.\nPlease mention that this email was sent for user number %%USERID%%.\n---------------------------------------------------------\n','1','<P>This block is displayed at the top and bottom of the story digest email sent to users who request it. It should name the site and introduce the digest in a way suited for any frequency. This should be plain text, with no HTML formatting. If either of the blocks <B>digest_header</B> or <B>digest_footer</B> exist, they override this block for the email header and footer, respectively. Because this is an email and is not sent through the usual processing given an HTML page, the only keys that work at all are the special keys defined for this block. The following special keys are!
recognised:</P>\n<DL>\n <DT>FREQUENCY</DT>\n <DD>This key is replaced with the digest frequency requested by the user receiving the email, which may be daily, weekly, or monthly.</DD>\n <DT>USERID</DT>\n <DD>The numeric user ID of the recipient of the digest</DD>\n <DT>NICKNAME</DT>\n <DD>The nickname of the recipient of the digest</DD>\n</DL>','Story Digests','default','en');
> INSERT INTO blocks VALUES ('next_page_link','<a class=\"light\" href=\"%%LINK%%\">%%norm_font%%Next %%maxstories%% >>%%norm_font_end%%</a>','1','<P>This block is the text of the link displayed at the bottom of the front and section index pages if there are more stories published earlier than those displayed. It should be self-contained HTML. The following special key is recognized:</P>\n<DL>\n <DT>maxstories</DT>\n <DD>The value of the variable <B>maxstories</B>, or the user preference \"Number of story summaries to show\" if set.</DD>\n</DL>','General','default','en');
> INSERT INTO blocks VALUES ('prev_page_link','<a class=\"light\" href=\"%%LINK%%\">%%norm_font%%<< Previous %%maxstories%%%%norm_font_end%%</a>','1','<P>This block is the text of the link displayed at the top and bottom of the front and section index pages if there are more stories published more recently than those displayed. It should be self-contained HTML. The following special key is recognized:</P>\n<DL>\n <DT>maxstories</DT>\n <DD>The value of the variable <B>maxstories</B>, or the user preference \"Number of story summaries to show\" if set.</DD>\n</DL>','General','default','en');
> INSERT INTO blocks VALUES ('subscribe','<p>You are not currently a paid member. Why not <a href=\"%%rootdir%%/subscribe\">become one</a>?</p>','1','<P>This block is displayed on a user\'s preferences page if they are not already subscribed, if they have the <B>allow_subscription</B> perm, and if the variable <B>use_subscriptions</B> is on. This should be a short note encouraging users to subscribe and should provide a link to the subscription purchase page. There are no special keys.</P>','Subscriptions','default','en');
> INSERT INTO blocks VALUES ('story_separator','\n','1','<P>This block is placed between the <B>story_summary</B> and <B>story_body</B> blocks when building the story page. It can contain any HTML and is usually used when visual separation between the two parts of the story is wanted.</P>','Stories','default','en');
> INSERT INTO blocks VALUES ('spell_err','<font color=\"red\">','1','<P>This block is used to format misspelled words if the spellchecking system is installed and active. It should be a complete opening font tag or other formatting tag. It should match its closing tag set in the block <B>spell_err_end</B>.</P>','Fonts','default','en');
> INSERT INTO blocks VALUES ('spell_err_end','</font>','1','<P>This block is used to format misspelled words if the spellchecking system is installed and active. It should be a closing tag for whatever is in the block <B>spell_err</B>.</P>','Fonts','default','en');
> INSERT INTO blocks VALUES ('new_user_html','%%title_font%%Create New User Account%%title_font_end%%\r\n<H3><CENTER>%%error_font%%%%error%%%%error_font_end%%</CENTER></H3>\r\n\r\n<P>%%norm_font%%In order to create an account (which is free), fill out this form. You will receive an email containing your username and autogenerated password, at the address you provide here. Us