[evolvis-commits] r8723: Added some somewhat dated HOWTOs↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Feb 24 16:50:51 CET 2011


Author: mirabilos
Date: 2011-02-24 16:50:51 +0100 (Thu, 24 Feb 2011)
New Revision: 8723

Added:
   trunk/gforge_base/evolvisforge-5.1/gforge/docs/gforge-themes-HOWTO.html
   trunk/gforge_base/evolvisforge-5.1/gforge/docs/migrating-to-gforge-HOWTO.html
Log:
Added some somewhat dated HOWTOs


Added: trunk/gforge_base/evolvisforge-5.1/gforge/docs/gforge-themes-HOWTO.html
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/docs/gforge-themes-HOWTO.html	                        (rev 0)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/docs/gforge-themes-HOWTO.html	2011-02-24 15:50:51 UTC (rev 8723)
@@ -0,0 +1,62 @@
+<html>
+<head>
+<title>GForge Themes HOWTO</title>
+</head>
+<body>
+
+<h2><center>GForge Themes HOWTO</center></h2>
+<h3><center>Updated 12/30/02</center></h3>
+
+<p>Let's say you want to create a new theme called "water".  It'll be all blue-ish and clean and such.  
+
+<p>First, create a new directory <code>www/themes/water</code>.  This is where your new theme will live.  Now, write a PHP class called <code>Theme.class </code>that extends <code>www/include/Layout.class</code>.  Like this:
+
+<pre>
+class Theme extends Layout {
+ require_once('www/include/Layout.class');
+ function Theme() {
+  $this->Layout();
+  $this->COLOR_HTMLBOX_TITLE = '#BBDDFF';
+ }
+}
+</pre>
+
+<p>Note that we've made the box title color to a nice blue just so we can see something happen.  To make the theme available, we need to add it to list of available themes.  To do that, log in as the admin user, go to the admin page, click on Add, Delete, or Edit Themes, click on add_new, and add the new theme.  On this page you'll see listed the column names in the <code>themes</code> database table.  You can see if you already have any custom themes installed by querying the database, i.e.:
+
+<pre>
+bash-2.05a$ psql -c "select * from themes;" alexandria
+ theme_id | dirname | fullname
+----------+---------+----------
+(0 rows)
+
+bash-2.05a$
+</pre>
+
+<p>So, we don't have any custom themes installed, and we can enter a <code>theme_id</code> of <code>1</code>.  The <code>dirname</code> will be <code>water</code> and the <code>fullname</code> is <code>Water</code>.  Then click the Submit New Theme button and it'll be added, which you can verify with:
+
+<pre>
+bash-2.05a$ psql -c "select * from themes;" alexandria
+ theme_id | dirname | fullname
+----------+---------+----------
+      1   | water   | Water
+(1 row)
+
+bash-2.05a$
+</pre>
+
+<p>Now go to the Account Maintenance page and click on the Choose My Theme link.  Select the Water theme and click Submit Changes.  Then click on My Page and, if all goes well, the box title bars will all have blue backgrounds.  Nice, huh?
+
+<hr>
+
+<p>There's an example of a Layout subclass <a href="http://savannah.nongnu.org/cgi-bin/viewcvs/gforge/gforge/www/themes/debian/Theme.class?rev=1.8&content-type=text/vnd.viewcvs-markup">here</a>.
+
+<hr>
+
+TODO:
+<ul>
+<li>Changing other stuff seems to require copying the gforge/Theme.class file over and customizing it - i.e., editing the CSS stylesheet to do what you want, changing the image root, etc.
+<li>Need to include list of images with details from Ryan's post.
+</ul>
+ 
+</body>
+</html>

Added: trunk/gforge_base/evolvisforge-5.1/gforge/docs/migrating-to-gforge-HOWTO.html
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/docs/migrating-to-gforge-HOWTO.html	                        (rev 0)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/docs/migrating-to-gforge-HOWTO.html	2011-02-24 15:50:51 UTC (rev 8723)
@@ -0,0 +1,36 @@
+<html>
+<head>
+<title>Migrating to GForge HOWTO</title>
+</head>
+<body>
+
+<h2><center>Migrating to GForge HOWTO</center></h2>
+<h3><center>Updated 1/23/2003</center></h3>
+
+<p>
+Lots of people are moving from various other SourceForge codebases to GForge.  Here's some notes on how to do this.  Please post comments/questions/improvements to the <a href="http://gforge.org/forum/forum.php?forum_id=6">forums</a>.
+
+<p><b>SF 2.5 or SF 2.6 to GForge</b>
+<br>
+<p> The basic steps are:
+<ul>
+<li>First run a <code>apt-get install gforge-sourceforge-transition</code>.  This dumps the database into <code>/var/lib/sourceforge/sf_dump_for_gforge</code>.
+<li>Now <code>mv /var/lib/sourceforge /var/lib/gforge</code>
+<li>Now run a <code>apt-get install gforge</code>.  This will find the database dump and import it automagically.
+<li>If all goes well,  <code>/var/lib/gforge/sf_dump_for_gforge</code> will be renamed <code>/var/lib/gforge/sf_dump_for_gforge.ok</code>.  If something fails, it'll be renamed to <code>/var/lib/gforge/sf_dump_for_gforge.ko</code>.
+<li>Note that <code>apt-get install gforge</code> will also remove the <code>gforge-sourceforge-transition</code> package.
+</ul>
+
+<p><b>debian-sf to GForge</b>
+<br>
+This has been done - see <a href="http://gforge.org/forum/forum.php?thread_id=173&forum_id=6">this</a> thread.  Theme preferences may go away, but they can easily be reset.
+
+<p><b>SF Enterprise to GForge</b>
+<br>
+This has been done - see <a href="http://gforge.org/forum/forum.php?thread_id=148&forum_id=6">this</a> thread on the forums.  Looks like there are some database changes which might cause problems; not sure what those are.
+
+
+
+
+</body>
+</html>
\ No newline at end of file



More information about the evolvis-commits mailing list