Difference between revisions of "Ideas"

From Hack Sphere Labs Wiki
Jump to: navigation, search
(Idea Torrent Setup)
(Notes)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
Site is now up @ http://ideas.hackspherelabs.com
 +
 
=Concept=
 
=Concept=
  
Line 14: Line 16:
  
 
=Idea Torrent Setup=
 
=Idea Torrent Setup=
 +
http://www.ideatorrent.org/download
 
http://www.ideatorrent.org/docs/en/installation.txt.html
 
http://www.ideatorrent.org/docs/en/installation.txt.html
  
Line 24: Line 27:
 
Steps
 
Steps
 
*PHP/Apache/PostgreSQL
 
*PHP/Apache/PostgreSQL
 +
**http://wiki.debian.org/PostgreSql
 +
{{Note|Make sure that the user owns the database}}
 +
http://fatpenguinblog.com/scott-rippee/granting-postgresql-database-and-table-ownership-privileges-to-a-new-user/
 +
 +
ALTER DATABASE mynewdb OWNER TO newuser;
 +
 
*Test connection to database
 
*Test connection to database
 
  psql -h localhost -p 5432 -U drupalapp -W -d drupaldb;
 
  psql -h localhost -p 5432 -U drupalapp -W -d drupaldb;
Line 40: Line 49:
  
 
{{Note| I had to use the full settings.  That is the wizard will not try and configure the changed url.  You must have the correct line.}}
 
{{Note| I had to use the full settings.  That is the wizard will not try and configure the changed url.  You must have the correct line.}}
 +
{{Note| I also had to run install.php manually (I had to navigate to it)}}
 +
{{Note| I use dreamhost.  I had to do a custom php.ini and they told me that I would need to compile the module for postgreSQL (pgsql.so) but I did locate pgsql.so on the box that I was using and found a good module.}} Here:  http://wiki.dreamhost.com/Php.ini#PHP_5.2
  
 
A snippit of documentation code from http://drupal.org/files/issues/settings_4.patch :
 
A snippit of documentation code from http://drupal.org/files/issues/settings_4.patch :
Line 55: Line 66:
  
 
*Install ideatorrent [http://www.ideatorrent.org/docs/en/installation.txt.html]
 
*Install ideatorrent [http://www.ideatorrent.org/docs/en/installation.txt.html]
 +
*Like it says make sure to enable clean urls [http://drupal.org/getting-started/clean-urls]
 +
*Enable Modules
 +
*Most likley you may need autoaddignrole for drupal:  http://drupal.org/project/autoassignrole
  
{{Note|Just in case I have copy and pasted instructions}}
+
=Notes=
 
+
Syntax:
Install IdeaTorrent
+
DROP TABLE films, distributors;
 
 
Download IdeaTorrent from http://www.ideatorrent.org/download. Extract the tarball into the /path/to/your/drupal/modules/, usually /var/www/modules. You will have two new directories : qawebsite and ideatorrent.
 
 
 
Go to the Drupal module administration page (http://your.url/?q=admin/build/modules or http://your.url/admin/build/modules with clean URLs enabled), enable the qawebsite module and validate. Then enable the ideatorrent module and validate. (DON'T do it both at the same time. I'll need to fix that.) Et voilà! You can access IdeaTorrent at http://your.url/?q=ideatorrent or http://your.url/ideatorrent with clean URLs enabled. But behold! You should now configure it.
 
Configuring IdeaTorrent
 
Enabling the clean URLs
 
 
 
At the moment, IdeaTorrent is not known to work without the clean URLs feature of Drupal. So you should enable it : go to http://your.url/?q=admin/settings/clean-urls. Normally, the "Disabled" and "Enabled" options should be greyed. The trick is to click on the small link on the text below. Once clicked, the options should now be enabled. (Note: if you get a 'page not found' error, you'll need to change your Apache config, see the Drupal doc.) Select "Enable", and voila, IdeaTorrent should be accessible via http://your.url/ideatorrent/.
 
IdeaTorrent permissions
 
 
 
IdeaTorrent have four kind of permissions:
 
 
 
    Ideatorrent user permissions : These contains the basic user permissions: post an idea, a solution and a comment, edit its own content.
 
    Ideatorrent moderator permissions : A moderator has lots of power : edition/deletion of all content, ability to moderate ideas before insertion, process the reports (duplicates, spam,...), set the status of idea.
 
    Ideatorrent developer permissions : A developer can edit the Developer comments field of an idea, and select the solutions used by ideas in development/implemented ideas.
 
    Ideatorrent admin permissions : All the possible permissions.
 
 
 
By default, Drupal does not know who to assign these permissions. So with a basic install, you can't even post ideas. To do that, you'll need to create four new roles in Drupal (or use existing ones, your choice) in http://your.url/admin/user/roles and edit them: You will be able to assign to these roles the IdeaTorrent and QAWebsite permissions. Note that the permissions described earlier are split into the QAWebsite and IdeaTorrent module. So if you want to assign to a role the IdeaTorrent moderator permission, you will have to check Ideatorrent moderator permissions (1/2) and Ideatorrent moderator permissions (1/2).
 
 
 
Now you can affect these Drupal roles to users. Go to a user page (e.g. http://your.url/user/1 for the first user), click on the Edit tab, and select one of the roles you just created!
 
IdeaTorrent block
 
 
 
Ok, at this point, you should have IdeaTorrent accesible at http://your.url/ideatorrent/. But the widgets are the right ("Search", "Submit your idea", "My dashboard") are missing. To add them, go to http://your.url/admin/build/block, and put the "QA-Website module action block 2" on the right(preferred) or left sidebar of your theme. That should be it!
 
 
 
Optionnally you can remove the "Navigation" and "Primary links" block to hide the Drupal menu. But in this case, you will have to remember the links to login and access the admin panel!
 
Making IdeaTorrent the default module
 
 
 
Right now, IdeaTorrent is accessible at http://your.url/ideatorrent/. We now want to make it accessible from http://your.url/. To do this, go to http://your.url/admin/settings/site-information, and in the last "Default front page" option, put "ideatorrent". Et voilà!
 
Configuring IdeaTorrent itself
 
 
 
As a IdeaTorrent admin, you can access the IdeaTorrent administration panel at http://your.url/ideatorrent/ideatorrent_admin/.
 

Latest revision as of 16:36, 7 January 2012

Site is now up @ http://ideas.hackspherelabs.com

Concept

ideas.hackspherelabs.org - An idea storage and orginazation platform.

  • The site should allow one to brainstorm
  • You should be able to travel and link ideas
  • <idea> tag takes txt from other sites linked to the wiki
  • Site should allow paper sketches and such to be uploaded and notated

Temp Store

  • An array on top of the car with sensors and cameras intergrated into an in car computer.
  • A pair of sun glasses that allow you to stare at the sun, with improved image color, etc.

Idea Torrent Setup

http://www.ideatorrent.org/download http://www.ideatorrent.org/docs/en/installation.txt.html

The following pieces of software are required for IdeaTorrent to function:

  • A webserver with PHP5
  • PostgreSQL 8.3
  • Drupal 5.x OR 6.x


Steps

Note: Make sure that the user owns the database

http://fatpenguinblog.com/scott-rippee/granting-postgresql-database-and-table-ownership-privileges-to-a-new-user/

ALTER DATABASE mynewdb OWNER TO newuser; 
  • Test connection to database
psql -h localhost -p 5432 -U drupalapp -W -d drupaldb;
 change the line:

 $db_url = 'mysql://username:password@localhost/databasename';

 to

 $db_url = 'pgsql://username:password@localhost/databasename';
Note: I had to use the full settings. That is the wizard will not try and configure the changed url. You must have the correct line.
Note: I also had to run install.php manually (I had to navigate to it)
Note: I use dreamhost. I had to do a custom php.ini and they told me that I would need to compile the module for postgreSQL (pgsql.so) but I did locate pgsql.so on the box that I was using and found a good module.
Here: http://wiki.dreamhost.com/Php.ini#PHP_5.2

A snippit of documentation code from http://drupal.org/files/issues/settings_4.patch :

+ * Specifying the database port:
+ *
+ * If you need to specify a port other than the default for your database
+ * you can put it in the $db_url:
+ * e.g:
+ *   $db_url = 'mysql://username:password@localhost:3306/databasename';
+ *   $db_url = 'mysqli://username:password@localhost:3306/databasename';
+ *   $db_url = 'pgsql://username:password@localhost:5432/databasename';
+ *
  */

Notes

Syntax:

DROP TABLE films, distributors;