[geeklog-cvs] geeklog-1.3/public_html/docs history,1.236,1.237 theme.html,1.35,1.36

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Mon Sep 13 15:02:57 EDT 2004


Update of /var/cvs/geeklog-1.3/public_html/docs
In directory www:/tmp/cvs-serv19497/public_html/docs

Modified Files:
	history theme.html 
Log Message:
Introduced $_CONF['left_blocks_in_footer'] config option that makes {left_blocks} available in footer.thtml.
There should probably be a complementary 'right_blocks_in_header' option, but I'm too lazy for that right now ...


Index: theme.html
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/docs/theme.html,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** theme.html	14 Aug 2004 13:24:33 -0000	1.35
--- theme.html	13 Sep 2004 19:02:55 -0000	1.36
***************
*** 118,122 ****
  <h3><a name="tips">Tips and tricks</a></h3>
  
! <p><strong>Themes and WYSIWG editors:</strong>
  The template files used by Geeklog are not complete HTML files - they contain
  only parts of the HTML that Geeklog puts together to build a proper HTML
--- 118,122 ----
  <h3><a name="tips">Tips and tricks</a></h3>
  
! <p><strong><a name="wysiwyg">Themes and WYSIWYG editors:</a></strong>
  The template files used by Geeklog are not complete HTML files - they contain
  only parts of the HTML that Geeklog puts together to build a proper HTML
***************
*** 126,139 ****
  We suggest you use a simple text editor to edit your themes.</p>
  
! <p><strong>PHP in themes:</strong>
  You can use PHP in the <em>header</em> of a theme, i.e. in the
  <tt>header.thtml</tt> file. If you want to use custom PHP functions, you can
  put them in the file <tt>functions.php</tt> within your themes directory.</p>
  
! <p><strong>Different look for left and right blocks:</strong>
  You can give the blocks on the left and right a different look. See 
  <a href="http://www.geeklog.net/forum/viewtopic.php?forum=10&showtopic=21070">this story on the Geeklog homepage</a> for details.</p>
  
! <p><strong>Polls:</strong>
  To use multi-colored bars in the graphical display of poll results, you can use
  the <code>{answer_counter}</code> and <code>{answer_odd}</code> variables in
--- 126,139 ----
  We suggest you use a simple text editor to edit your themes.</p>
  
! <p><strong><a name="php">PHP in themes:</a></strong>
  You can use PHP in the <em>header</em> of a theme, i.e. in the
  <tt>header.thtml</tt> file. If you want to use custom PHP functions, you can
  put them in the file <tt>functions.php</tt> within your themes directory.</p>
  
! <p><strong><a name="different-look">Different look for left and right blocks:</a></strong>
  You can give the blocks on the left and right a different look. See 
  <a href="http://www.geeklog.net/forum/viewtopic.php?forum=10&showtopic=21070">this story on the Geeklog homepage</a> for details.</p>
  
! <p><strong><a name="polls">Polls:</a></strong>
  To use multi-colored bars in the graphical display of poll results, you can use
  the <code>{answer_counter}</code> and <code>{answer_odd}</code> variables in
***************
*** 148,151 ****
--- 148,171 ----
  answer.</p>
  
+ <p><strong><a name="left-blocks">Left blocks in the right column:</a></strong>
+ <code>$_CONF['left_blocks_in_footer']</code> (in <tt>config.php</tt>) is a
+ rather curious option. It makes the <code>{left_blocks}</code> variable
+ available in the site's footer (i.e. <tt>footer.thtml</tt>) while at the same
+ time disabling it in the header (<tt>header.thtml</tt>).<br>
+ The idea is that this can be used for two-column layouts (one column for the
+ blocks and one column for the content) but when you want to have the blocks
+ on the right side. Simply moving all blocks to the right will not work as
+ expected, as you'd end up with <em>no blocks</em> at all on those pages that
+ normally only display the left blocks (e.g. <tt>article.php</tt> or the
+ admin pages). Setting <code>$_CONF['left_blocks_in_footer'] = 1</code> will
+ fix this, so that the blocks, while internally still treated as <em>left</em>
+ blocks, will actually be displayed on the <em>right</em>.<br>
+ The theme's <tt>header.thtml</tt>, <tt>footer.thtml</tt>, and
+ <tt>leftblocks.thtml</tt> will probably need some adjustments. It is also
+ recommended to leave the <code>$_CONF</code> variable unchanged in
+ <tt>config.php</tt> and overwrite it in the theme's <tt>functions.php</tt>
+ instead. That way, you can even leave your users a choice between, for example,
+ a "normal" theme and one with the blocks on the right.</p>
+ 
  <h2><a name="changes">Theme changes in Geeklog 1.3.10</a></h2>
  

Index: history
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/docs/history,v
retrieving revision 1.236
retrieving revision 1.237
diff -C2 -d -r1.236 -r1.237
*** history	29 Aug 2004 18:52:19 -0000	1.236
--- history	13 Sep 2004 19:02:55 -0000	1.237
***************
*** 4,12 ****
  ------------
  
  - Story IDs are now editable (just like the IDs of static pages). [Dirk]
    Important: Update the story editor template (admin/story/storyeditor.thtml)!
  - Fixed a bug that reset every user's password request as soon as some user
    changed their account information (bug #265) [Dirk]
! - Added support for the URL rewriting to portal.php [Dirk]
  - The links for the What's Related block are stored in the 'related' field in
    the gl_stories table again. Parsing the story for links every time it is
--- 4,20 ----
  ------------
  
+ - Introduced $_CONF['left_blocks_in_footer'] config option that makes the
+   {left_blocks} variable available in footer.thtml (disabling it in header.thtml
+   at the same time). This is really only useful for two-column layouts where
+   you want the side blocks in the right column [Dirk]
+ - Polls linked from the stats page now display the result of the poll instead
+   of letting the user vote on them (feature request #267) [Dirk]
+ - In the Admin's list of events and stories, don't list items for which the
+   Admin doesn't have read access (bug #269). [Dirk]
  - Story IDs are now editable (just like the IDs of static pages). [Dirk]
    Important: Update the story editor template (admin/story/storyeditor.thtml)!
  - Fixed a bug that reset every user's password request as soon as some user
    changed their account information (bug #265) [Dirk]
! - Added support for URL rewriting to portal.php [Dirk]
  - The links for the What's Related block are stored in the 'related' field in
    the gl_stories table again. Parsing the story for links every time it is




More information about the geeklog-cvs mailing list