Update of /cvs/scoop/scoop/struct/patch-files/current In directory lithium.sabren.com:/tmp/cvs-serv19656/struct/patch-files/current Modified Files: README Added Files: patch-17-NavBar.sql Log Message: janra's bug fix for Bug 171 -- hulver Index: README =================================================================== RCS file: /cvs/scoop/scoop/struct/patch-files/current/README,v retrieving revision 1.107 retrieving revision 1.108 diff -C2 -d -r1.107 -r1.108 *** README 11 Feb 2005 22:11:05 -0000 1.107 --- README 26 May 2005 09:37:16 -0000 1.108 *************** *** 86,89 **** --- 86,92 ---- userpref boxes. + May 26 10:30 patch-17-NavBar.sql + Moves the story nav bar from hard coded HTML into blocks. + Any problems, email scoop-help at lists.kuro5hin.org (don't forget to join!) join here: http://lists.kuro5hin.org/mailman/listinfo/scoop-help --- NEW FILE: patch-17-NavBar.sql --- INSERT INTO blocks (bid,block,aid,description,category,theme,language) VALUES ('navbar','<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>\n <TR BGCOLOR="%%story_nav_bg%%">\n <TD WIDTH="100%" ALIGN="center">\n %%smallfont%%%%last%%%%sep%%%%next%%%%smallfont_end%%\n </TD>\n </TR>\n</TABLE>','1','<P>This provides the overall layout for the story navigation bar which links to the previous and next stories at the bottom of the story text and should be a self-contained block of HTML. This navigation bar can be turned off entirely using the Site Control <B>disable_story_navbar</B>. The special keys are:</P>\n<DL>\n <DT>last</DT>\n <DD>The previous story. This is formatted using the block <B>navbar_last</B></DD>\n <DT>next</DT>\n <DD>The next story. This is formatted using the block <B>navbar_next</B></DD>\n <DT>sep</DT>\n <DD>A separator, only shown if both "last" and "next" above are used. (The most recent story, for example, will only have a "last" entry,! as there is no "next" story yet.)</DD>\n</DL>','Stories','default','en'); INSERT INTO blocks (bid,block,aid,description,category,theme,language) VALUES ('navbar_comments',' (%%num%% comments)','1','<P>This displays the number of comments attached to a story listed in the story navigation bar, if the current user can read comments in the story\'s section. The special key <B>num</B> is replaced with the number of comments in the relevant story.','Stories','default','en'); INSERT INTO blocks (bid,block,aid,description,category,theme,language) VALUES ('navbar_last','<B><</B> <A HREF="%%rootdir%%/story/%%sid%%">%%title%%</A> %%comments%%','1','<P>This formats the "last story" entry in the story navigation bar. The special keys are:</P>\n<DL>\n <DT>sid</DT>\n <DD>The story ID of the "last story"</DD>\n <DT>title</DT>\n <DD>The title of the "last story"</DD>\n <DT>comments</DT>\n <DD>The contents of <B>navbar_comments</B>, if the user has permission to view comments on the "last story"</DD>\n</DL>','Stories','default','en'); INSERT INTO blocks (bid,block,aid,description,category,theme,language) VALUES ('navbar_next','<A HREF="%%rootdir%%/story/%%sid%%">%%title%%</A> %%comments%% <B>></B> ','1','<P>This formats the "next story" entry in the story navigation bar. The special keys are:</P>\n<DL>\n <DT>sid</DT>\n <DD>The story ID of the "next story"</DD>\n <DT>title</DT>\n <DD>The title of the "next story"</DD>\n <DT>comments</DT>\n <DD>The contents of <B>navbar_comments</B>, if the user has permission to view comments on the "next story"</DD>\n</DL>','Stories','default','en'); INSERT INTO blocks (bid,block,aid,description,category,theme,language) VALUES ('navbar_sep',' | ','1','<P>This is the divider used to separate the "next" and "last" stories in the story navigation bar, if both have an entry. (The most recent story, for example, will only have a "last" entry, as there is no "next" story yet.) There are no special keys.</P>','Stories','default','en');