[geeklog-cvs] geeklog-1.3/docs theme.html,1.13,1.14

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Tue Apr 22 13:00:32 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/docs
In directory internal.geeklog.net:/tmp/cvs-serv23880

Modified Files:
	theme.html 
Log Message:
Added hint about how to get multi-colored poll result bars.


Index: theme.html
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/docs/theme.html,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** theme.html	28 Dec 2002 13:28:34 -0000	1.13
--- theme.html	22 Apr 2003 17:00:30 -0000	1.14
***************
*** 130,133 ****
--- 130,146 ----
  <a href="http://www.geeklog.net/article.php?story=20020429092841722">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
+ the <tt>pollbooth/pollvotes_bar.thtml</tt> template file.
+ <code>{answer_counter}</code> will be replaced with a running number for each
+ answer, hence <code>bar{answer_counter}.gif</code> would result in
+ <tt>bar1.gif</tt>, <tt>bar2.gif</tt>, etc. Giving each of those GIFs a different
+ color would give you a different color for each answer.<br>
+ <code>{answer_odd}<code> will alternate between 0 and 1 for every answer, hence
+ <code>bar{answer_odd}.gif</code> will result in <tt>bar0.gif</tt> for the first,
+ third, fifth, etc. answer and <tt>bar1.gif</tt> for the second, fourth, etc.
+ answer.</p>
+ 
  
  <h2><a name="changes">Theme changes in Geeklog 1.3.7</a></h2>





More information about the geeklog-cvs mailing list