diff --git a/.gitignore b/.gitignore
index fea5fb91e..10a7187cf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,5 +4,6 @@ wip/*
include/jquery-1.4.2.min.js
*.log
*.out
+*.version*
push*
home.html
diff --git a/INSTALL.txt b/INSTALL.txt
index 85114dee5..8de306b7d 100644
--- a/INSTALL.txt
+++ b/INSTALL.txt
@@ -34,7 +34,7 @@ php.ini file
- Mysql 5.x
- ability to schedule jobs with cron (Linux/Mac) or Scheduled Tasks
-(Windows) [Note: other options are presented in Section 7 of this document]
+(Windows) [Note: other options are presented in Section 8 of this document]
- Installation into a top-level domain or sub-domain (without a
directory/path component in the URL) is preferred. Directory paths will
@@ -53,10 +53,15 @@ you might have trouble getting everything to work.]
3. Create an empty database and note the access details (hostname, username,
password, database name).
-4. Visit your website with a web browser and follow the instructions. Please
+
+4. If you know in advance that it will be impossible for the web server to
+write or create files in your web directory, create an empty file called
+.htconfig.php and make it writable by the web server.
+
+5. Visit your website with a web browser and follow the instructions. Please
note any error messages and correct these before continuing.
-5. *If* the automated installation fails for any reason, check the following:
+6. *If* the automated installation fails for any reason, check the following:
- ".htconfig.php" exists
If not, edit htconfig.php and change system settings. Rename
@@ -65,7 +70,7 @@ to .htconfig.php
If not, import the contents of "database.sql" with phpmyadmin
or mysql command line
-6. At this point visit your website again, and register your personal account.
+7. At this point visit your website again, and register your personal account.
Registration errors should all be recoverable automatically.
If you get any *critical* failure at this point, it generally indicates the
database was not installed correctly. You might wish to move/rename
@@ -78,7 +83,7 @@ tables, so that you can start fresh.
****************************************************************************
****************************************************************************
-7. Set up a cron job or scheduled task to run the poller once every 5-10
+8. Set up a cron job or scheduled task to run the poller once every 5-10
minutes to pick up the recent "public" postings of your friends. Example:
cd /base/directory; /path/to/php include/poller.php
diff --git a/addon/facebook/facebook.css b/addon/facebook/facebook.css
index 3df65706f..0c164331e 100644
--- a/addon/facebook/facebook.css
+++ b/addon/facebook/facebook.css
@@ -6,3 +6,8 @@
#facebook-disable-wrapper {
margin-top: 20px;
}
+
+#facebook-post-default-form input {
+ margin-top: 20px;
+ margin-right: 20px;
+}
\ No newline at end of file
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php
index d4d4cc443..edfc5a374 100644
--- a/addon/facebook/facebook.php
+++ b/addon/facebook/facebook.php
@@ -95,6 +95,15 @@ function facebook_init(&$a) {
}
+function facebook_post(&$a) {
+
+ if(local_user()){
+ $value = ((x($_POST,'post_by_default')) ? intval($_POST['post_by_default']) : 0);
+ set_pconfig(local_user(),'facebook','post_by_default', $value);
+ }
+ return;
+}
+
function facebook_content(&$a) {
if(! local_user()) {
@@ -107,6 +116,8 @@ function facebook_content(&$a) {
notice( t('Facebook disabled') . EOL);
}
+ $fb_installed = get_pconfig(local_user(),'facebook','post');
+
$appid = get_config('facebook','appid');
if(! $appid) {
@@ -119,14 +130,26 @@ function facebook_content(&$a) {
$o .= '