aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-03-20 20:46:43 +0000
committerThomas Willingham <founder@kakste.com>2013-03-20 20:46:43 +0000
commit39028d618403e40741009b070e4c969d499cf021 (patch)
treeacad99ce00cd4911acc059dce3d5fdcba9646bc8
parent897910b5c96d9ce58eda8c40ea0a8ab19acb151a (diff)
downloadvolse-hubzilla-39028d618403e40741009b070e4c969d499cf021.tar.gz
volse-hubzilla-39028d618403e40741009b070e4c969d499cf021.tar.bz2
volse-hubzilla-39028d618403e40741009b070e4c969d499cf021.zip
Make the channels profile tab actually do something.
-rw-r--r--mod/profiles.php7
-rw-r--r--view/tpl/profile_edit.tpl9
-rw-r--r--view/tpl/smarty3/profile_edit.tpl9
3 files changed, 24 insertions, 1 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index e857c4216..0a8b2b9dc 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -232,6 +232,7 @@ function profiles_post(&$a) {
$about = fix_mce_lf(escape_tags(trim($_POST['about'])));
$interest = fix_mce_lf(escape_tags(trim($_POST['interest'])));
$contact = fix_mce_lf(escape_tags(trim($_POST['contact'])));
+ $channels = fix_mce_lf(escape_tags(trim($_POST['channels'])));
$music = fix_mce_lf(escape_tags(trim($_POST['music'])));
$book = fix_mce_lf(escape_tags(trim($_POST['book'])));
$tv = fix_mce_lf(escape_tags(trim($_POST['tv'])));
@@ -393,6 +394,7 @@ function profiles_post(&$a) {
`about` = '%s',
`interest` = '%s',
`contact` = '%s',
+ `channels` = '%s',
`music` = '%s',
`book` = '%s',
`tv` = '%s',
@@ -426,6 +428,7 @@ function profiles_post(&$a) {
dbesc($about),
dbesc($interest),
dbesc($contact),
+ dbesc($channels),
dbesc($music),
dbesc($book),
dbesc($tv),
@@ -550,6 +553,7 @@ function profiles_content(&$a) {
'$lbl_about' => t('Tell us about yourself...'),
'$lbl_hobbies' => t('Hobbies/Interests'),
'$lbl_social' => t('Contact information and Social Networks'),
+ '$lbl_channels' => t('My other channels'),
'$lbl_music' => t('Musical interests'),
'$lbl_book' => t('Books, literature'),
'$lbl_tv' => t('Television'),
@@ -593,7 +597,8 @@ function profiles_content(&$a) {
'$romance' => $r[0]['romance'],
'$work' => $r[0]['work'],
'$education' => $r[0]['education'],
- '$contact' => $r[0]['contact']
+ '$contact' => $r[0]['contact'],
+ '$channels' => $r[0]['channels'],
));
$arr = array('profile' => $r[0], 'entry' => $o);
diff --git a/view/tpl/profile_edit.tpl b/view/tpl/profile_edit.tpl
index a498f3a65..6ff4cf8c1 100644
--- a/view/tpl/profile_edit.tpl
+++ b/view/tpl/profile_edit.tpl
@@ -206,6 +206,15 @@ $lbl_social
</div>
<div id="contact-jot-end"></div>
+<div id="channels-jot-wrapper" >
+<p id="channels-jot-desc" >
+$lbl_channels
+</p>
+
+<textarea rows="10" cols="72" id="channels-jot-text" name="channels" >$channels</textarea>
+
+</div>
+<div id="channels-jot-end"></div>
<div class="profile-edit-submit-wrapper" >
<input type="submit" name="submit" class="profile-edit-submit-button" value="$submit" />
diff --git a/view/tpl/smarty3/profile_edit.tpl b/view/tpl/smarty3/profile_edit.tpl
index 3a2652a68..864599244 100644
--- a/view/tpl/smarty3/profile_edit.tpl
+++ b/view/tpl/smarty3/profile_edit.tpl
@@ -211,6 +211,15 @@
</div>
<div id="contact-jot-end"></div>
+<div id="channels-jot-wrapper" >
+<p id="channels-jot-desc" >
+{{$lbl_channels}}
+</p>
+
+<textarea rows="10" cols="72" id="channels-jot-text" name="channels" >{{$channels}}</textarea>
+
+</div>
+<div id="channels-jot-end"></div>
<div class="profile-edit-submit-wrapper" >
<input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}" />