add expire_starred option, fix "delete selected" on some themes, new project name in email templates
This commit is contained in:
parent
ea04263f52
commit
c568493f57
2
boot.php
2
boot.php
|
@ -9,7 +9,7 @@ require_once('include/nav.php');
|
||||||
require_once('include/cache.php');
|
require_once('include/cache.php');
|
||||||
|
|
||||||
define ( 'FRIENDIKA_PLATFORM', 'Friendica');
|
define ( 'FRIENDIKA_PLATFORM', 'Friendica');
|
||||||
define ( 'FRIENDIKA_VERSION', '2.3.1170' );
|
define ( 'FRIENDIKA_VERSION', '2.3.1172' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1105 );
|
define ( 'DB_UPDATE_VERSION', 1105 );
|
||||||
|
|
||||||
|
|
|
@ -25,4 +25,10 @@ The "Automatic Friend Account" is typically used for personal profile pages wher
|
||||||
We recommend that you create group pages with the same email address and password as your normal account. If you do this, you will find a new "Manage" tab on the menu bar which lets you toggle identities easily and manage your pages. You are not required to do this, but the alternative is to logout and log back into the other account to manage alternate pages - and this could get cumbersome if you manage several different pages/identities.
|
We recommend that you create group pages with the same email address and password as your normal account. If you do this, you will find a new "Manage" tab on the menu bar which lets you toggle identities easily and manage your pages. You are not required to do this, but the alternative is to logout and log back into the other account to manage alternate pages - and this could get cumbersome if you manage several different pages/identities.
|
||||||
|
|
||||||
|
|
||||||
|
**Posting to Community Pages**
|
||||||
|
|
||||||
|
If you are a member of a community page/forum, you may post to the page by including an @-tag in the post mentioning the forum. For example @bicycle would send my post to all members of the group "bicycle" in addition to the normal recipients. If your post is private you must also explicitly include the group in the post permissions (to allow the forum "contact" to see the post) **and** mention it in a tag (which redistributes the post to the forum members).
|
||||||
|
|
||||||
|
You may also post to a community page/forum by posting a "wall-to-wall" post using secure cross-site authentication.
|
||||||
|
|
||||||
|
Comments which are relayed to community pages will be relayed back to the original post creator. Mentioning the forum/group with an @-tag in a comment does not relay the message, as distribution is controlled entirely by the original post creator.
|
|
@ -2821,10 +2821,13 @@ function item_expire($uid,$days) {
|
||||||
$expire_notes = get_pconfig($uid, 'expire','notes');
|
$expire_notes = get_pconfig($uid, 'expire','notes');
|
||||||
$expire_notes = (($expire_notes===false)?1:intval($expire_notes)); // default if not set: 1
|
$expire_notes = (($expire_notes===false)?1:intval($expire_notes)); // default if not set: 1
|
||||||
|
|
||||||
|
$expire_starred = get_pconfig($uid, 'expire','starred');
|
||||||
|
$expire_starred = (($expire_starred===false)?1:intval($expire_starred)); // default if not set: 1
|
||||||
|
|
||||||
$expire_photos = get_pconfig($uid, 'expire','photos');
|
$expire_photos = get_pconfig($uid, 'expire','photos');
|
||||||
$expire_photos = (($expire_photos===false)?0:intval($expire_photos)); // default if not set: 0
|
$expire_photos = (($expire_photos===false)?0:intval($expire_photos)); // default if not set: 0
|
||||||
|
|
||||||
logger('expire: # items=' . count($r). "; expire items: $expire_items, expire notes: $expire_notes, expire photos: $expire_photos");
|
logger('expire: # items=' . count($r). "; expire items: $expire_items, expire notes: $expire_notes, expire starred: $expire_starred, expire photos: $expire_photos");
|
||||||
|
|
||||||
foreach($r as $item) {
|
foreach($r as $item) {
|
||||||
|
|
||||||
|
@ -2832,6 +2835,8 @@ function item_expire($uid,$days) {
|
||||||
|
|
||||||
if($expire_photos==0 && strlen($item['resource-id']))
|
if($expire_photos==0 && strlen($item['resource-id']))
|
||||||
continue;
|
continue;
|
||||||
|
if($expire_starred==0 && intval($item['starred']))
|
||||||
|
continue;
|
||||||
if($expire_notes==0 && $item['type']=='note')
|
if($expire_notes==0 && $item['type']=='note')
|
||||||
continue;
|
continue;
|
||||||
if($expire_items==0 && $item['type']!='note')
|
if($expire_items==0 && $item['type']!='note')
|
||||||
|
|
|
@ -219,6 +219,7 @@ function settings_post(&$a) {
|
||||||
|
|
||||||
$expire_items = ((x($_POST,'expire_items')) ? intval($_POST['expire_items']) : 0);
|
$expire_items = ((x($_POST,'expire_items')) ? intval($_POST['expire_items']) : 0);
|
||||||
$expire_notes = ((x($_POST,'expire_notes')) ? intval($_POST['expire_notes']) : 0);
|
$expire_notes = ((x($_POST,'expire_notes')) ? intval($_POST['expire_notes']) : 0);
|
||||||
|
$expire_starred = ((x($_POST,'expire_starred')) ? intval($_POST['expire_starred']) : 0);
|
||||||
$expire_photos = ((x($_POST,'expire_photos'))? intval($_POST['expire_photos']) : 0);
|
$expire_photos = ((x($_POST,'expire_photos'))? intval($_POST['expire_photos']) : 0);
|
||||||
|
|
||||||
|
|
||||||
|
@ -305,6 +306,7 @@ function settings_post(&$a) {
|
||||||
|
|
||||||
set_pconfig(local_user(),'expire','items', $expire_items);
|
set_pconfig(local_user(),'expire','items', $expire_items);
|
||||||
set_pconfig(local_user(),'expire','notes', $expire_notes);
|
set_pconfig(local_user(),'expire','notes', $expire_notes);
|
||||||
|
set_pconfig(local_user(),'expire','starred', $expire_starred);
|
||||||
set_pconfig(local_user(),'expire','photos', $expire_photos);
|
set_pconfig(local_user(),'expire','photos', $expire_photos);
|
||||||
|
|
||||||
$r = q("UPDATE `user` SET `username` = '%s', `email` = '%s', `openid` = '%s', `timezone` = '%s', `allow_cid` = '%s', `allow_gid` = '%s', `deny_cid` = '%s', `deny_gid` = '%s', `notify-flags` = %d, `page-flags` = %d, `default-location` = '%s', `allow_location` = %d, `theme` = '%s', `maxreq` = %d, `expire` = %d, `openidserver` = '%s', `blockwall` = %d, `hidewall` = %d, `blocktags` = %d WHERE `uid` = %d LIMIT 1",
|
$r = q("UPDATE `user` SET `username` = '%s', `email` = '%s', `openid` = '%s', `timezone` = '%s', `allow_cid` = '%s', `allow_gid` = '%s', `deny_cid` = '%s', `deny_gid` = '%s', `notify-flags` = %d, `page-flags` = %d, `default-location` = '%s', `allow_location` = %d, `theme` = '%s', `maxreq` = %d, `expire` = %d, `openidserver` = '%s', `blockwall` = %d, `hidewall` = %d, `blocktags` = %d WHERE `uid` = %d LIMIT 1",
|
||||||
|
@ -602,6 +604,9 @@ function settings_content(&$a) {
|
||||||
$expire_notes = get_pconfig(local_user(), 'expire','notes');
|
$expire_notes = get_pconfig(local_user(), 'expire','notes');
|
||||||
$expire_notes = (($expire_notes===false)?1:$expire_notes); // default if not set: 1
|
$expire_notes = (($expire_notes===false)?1:$expire_notes); // default if not set: 1
|
||||||
|
|
||||||
|
$expire_starred = get_pconfig(local_user(), 'expire','starred');
|
||||||
|
$expire_starred = (($expire_starred===false)?1:$expire_starred); // default if not set: 1
|
||||||
|
|
||||||
$expire_photos = get_pconfig(local_user(), 'expire','photos');
|
$expire_photos = get_pconfig(local_user(), 'expire','photos');
|
||||||
$expire_photos = (($expire_photos===false)?0:$expire_photos); // default if not set: 0
|
$expire_photos = (($expire_photos===false)?0:$expire_photos); // default if not set: 0
|
||||||
|
|
||||||
|
@ -719,9 +724,11 @@ function settings_content(&$a) {
|
||||||
|
|
||||||
$expire_arr = array(
|
$expire_arr = array(
|
||||||
'days' => array('expire', t("Automatically expire posts after days:"), $expire, t('If empty, posts will not expire. Expired posts will be deleted')),
|
'days' => array('expire', t("Automatically expire posts after days:"), $expire, t('If empty, posts will not expire. Expired posts will be deleted')),
|
||||||
'advanced' => t('Advanced expire settings'),
|
'advanced' => t('Advanced expiration settings'),
|
||||||
|
'label' => t('Advanced Expiration'),
|
||||||
'items' => array('expire_items', t("Expire posts:"), $expire_items, '', array(t('No'),t('Yes'))),
|
'items' => array('expire_items', t("Expire posts:"), $expire_items, '', array(t('No'),t('Yes'))),
|
||||||
'notes' => array('expire_notes', t("Expire personal notes:"), $expire_notes, '', array(t('No'),t('Yes'))),
|
'notes' => array('expire_notes', t("Expire personal notes:"), $expire_notes, '', array(t('No'),t('Yes'))),
|
||||||
|
'starred' => array('expire_starred', t("Expire starred posts:"), $expire_starred, '', array(t('No'),t('Yes'))),
|
||||||
'photos' => array('expire_photos', t("Expire photos:"), $expire_photos, '', array(t('No'),t('Yes'))),
|
'photos' => array('expire_photos', t("Expire photos:"), $expire_photos, '', array(t('No'),t('Yes'))),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional //EN">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional //EN">
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Friendika Message</title>
|
<title>Friendica Message</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<table style="border:1px solid #ccc">
|
<table style="border:1px solid #ccc">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td colspan="2" style="background:#084769; color:#FFFFFF; font-weight:bold; font-family:'lucida grande', tahoma, verdana,arial, sans-serif; padding: 4px 8px; vertical-align: middle; font-size:16px; letter-spacing: -0.03em; text-align: left;"><img style="width:32px;height:32px; float:left;" src='$siteurl/images/friendika-32.png'><div style="padding:7px; margin-left: 5px; float:left; font-size:18px;letter-spacing:1px;">Friendika</div><div style="clear: both;"></div></td></tr>
|
<tr><td colspan="2" style="background:#084769; color:#FFFFFF; font-weight:bold; font-family:'lucida grande', tahoma, verdana,arial, sans-serif; padding: 4px 8px; vertical-align: middle; font-size:16px; letter-spacing: -0.03em; text-align: left;"><img style="width:32px;height:32px; float:left;" src='$siteurl/images/friendica-32.png'><div style="padding:7px; margin-left: 5px; float:left; font-size:18px;letter-spacing:1px;">Friendica</div><div style="clear: both;"></div></td></tr>
|
||||||
|
|
||||||
<tr><td style="padding-top:22px;" colspan="2">$from commented on an item/conversation which you have been following.</td></tr>
|
<tr><td style="padding-top:22px;" colspan="2">$from commented on an item/conversation which you have been following.</td></tr>
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional //EN">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional //EN">
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Friendika Message</title>
|
<title>Friendica Message</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<table style="border:1px solid #ccc">
|
<table style="border:1px solid #ccc">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td colspan="2" style="background:#084769; color:#FFFFFF; font-weight:bold; font-family:'lucida grande', tahoma, verdana,arial, sans-serif; padding: 4px 8px; vertical-align: middle; font-size:16px; letter-spacing: -0.03em; text-align: left;"><img style="width:32px;height:32px; float:left;" src='$siteurl/images/friendika-32.png'><div style="padding:7px; margin-left: 5px; float:left; font-size:18px;letter-spacing:1px;">Friendika</div><div style="clear: both;"></div></td></tr>
|
<tr><td colspan="2" style="background:#084769; color:#FFFFFF; font-weight:bold; font-family:'lucida grande', tahoma, verdana,arial, sans-serif; padding: 4px 8px; vertical-align: middle; font-size:16px; letter-spacing: -0.03em; text-align: left;"><img style="width:32px;height:32px; float:left;" src='$siteurl/images/friendica-32.png'><div style="padding:7px; margin-left: 5px; float:left; font-size:18px;letter-spacing:1px;">Friendica</div><div style="clear: both;"></div></td></tr>
|
||||||
|
|
||||||
|
|
||||||
<tr><td style="padding-top:22px;" colspan="2">$from sent you a new private message at $siteName.</td></tr>
|
<tr><td style="padding-top:22px;" colspan="2">$from sent you a new private message at $siteName.</td></tr>
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional //EN">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional //EN">
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Friendika Message</title>
|
<title>Friendica Message</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<table style="border:1px solid #ccc">
|
<table style="border:1px solid #ccc">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td colspan="2" style="background:#084769; color:#FFFFFF; font-weight:bold; font-family:'lucida grande', tahoma, verdana,arial, sans-serif; padding: 4px 8px; vertical-align: middle; font-size:16px; letter-spacing: -0.03em; text-align: left;"><img style="width:32px;height:32px; float:left;" src='$siteurl/images/friendika-32.png'><div style="padding:7px; margin-left: 5px; float:left; font-size:18px;letter-spacing:1px;">Friendika</div><div style="clear: both;"></div></td></tr>
|
<tr><td colspan="2" style="background:#084769; color:#FFFFFF; font-weight:bold; font-family:'lucida grande', tahoma, verdana,arial, sans-serif; padding: 4px 8px; vertical-align: middle; font-size:16px; letter-spacing: -0.03em; text-align: left;"><img style="width:32px;height:32px; float:left;" src='$siteurl/images/friendica-32.png'><div style="padding:7px; margin-left: 5px; float:left; font-size:18px;letter-spacing:1px;">Friendica</div><div style="clear: both;"></div></td></tr>
|
||||||
|
|
||||||
<tr><td style="padding-top:22px;" colspan="2">$from posted something to your profile wall.</td></tr>
|
<tr><td style="padding-top:22px;" colspan="2">$from posted something to your profile wall.</td></tr>
|
||||||
|
|
||||||
|
|
|
@ -57,12 +57,13 @@ $blocktags
|
||||||
|
|
||||||
{{inc field_input.tpl with $field=$expire.days }}{{endinc}}
|
{{inc field_input.tpl with $field=$expire.days }}{{endinc}}
|
||||||
<div class="field input">
|
<div class="field input">
|
||||||
<span class="field_help"><a href="#advaced-expire-popup" id="advenced-expire" class='popupbox' title="$expire.advanced">Advanced</a></span>
|
<span class="field_help"><a href="#advaced-expire-popup" id="advenced-expire" class='popupbox' title="$expire.advanced">$expire.label</a></span>
|
||||||
<div style="display: none;">
|
<div style="display: none;">
|
||||||
<div id="advaced-expire-popup" style="width:auto;height:auto;overflow:auto;">
|
<div id="advaced-expire-popup" style="width:auto;height:auto;overflow:auto;">
|
||||||
<h3>$expire.advanced</h3>
|
<h3>$expire.advanced</h3>
|
||||||
{{ inc field_yesno.tpl with $field=$expire.items }}{{endinc}}
|
{{ inc field_yesno.tpl with $field=$expire.items }}{{endinc}}
|
||||||
{{ inc field_yesno.tpl with $field=$expire.notes }}{{endinc}}
|
{{ inc field_yesno.tpl with $field=$expire.notes }}{{endinc}}
|
||||||
|
{{ inc field_yesno.tpl with $field=$expire.starred }}{{endinc}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
13
view/theme/duepuntozero/conversation.tpl
Normal file
13
view/theme/duepuntozero/conversation.tpl
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{{ for $threads as $thread }}
|
||||||
|
<div class="tread-wrapper">
|
||||||
|
$thread
|
||||||
|
</div>
|
||||||
|
{{ endfor }}
|
||||||
|
|
||||||
|
{{ if $dropping }}
|
||||||
|
<div id="item-delete-selected" class="fakelink" onclick="deleteCheckedItems();">
|
||||||
|
<div id="item-delete-selected-icon" class="icon drophide" title="$dropping" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></div>
|
||||||
|
<div id="item-delete-selected-desc" >$dropping</div>
|
||||||
|
</div>
|
||||||
|
<div id="item-delete-selected-end"></div>
|
||||||
|
{{ endif }}
|
13
view/theme/loozah/conversation.tpl
Normal file
13
view/theme/loozah/conversation.tpl
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{{ for $threads as $thread }}
|
||||||
|
<div class="tread-wrapper">
|
||||||
|
$thread
|
||||||
|
</div>
|
||||||
|
{{ endfor }}
|
||||||
|
|
||||||
|
{{ if $dropping }}
|
||||||
|
<div id="item-delete-selected" class="fakelink" onclick="deleteCheckedItems();">
|
||||||
|
<div id="item-delete-selected-icon" class="icon drophide" title="$dropping" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></div>
|
||||||
|
<div id="item-delete-selected-desc" >$dropping</div>
|
||||||
|
</div>
|
||||||
|
<div id="item-delete-selected-end"></div>
|
||||||
|
{{ endif }}
|
13
view/theme/testbubble/conversation.tpl
Normal file
13
view/theme/testbubble/conversation.tpl
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{{ for $threads as $thread }}
|
||||||
|
<div class="tread-wrapper">
|
||||||
|
$thread
|
||||||
|
</div>
|
||||||
|
{{ endfor }}
|
||||||
|
|
||||||
|
{{ if $dropping }}
|
||||||
|
<div id="item-delete-selected" class="fakelink" onclick="deleteCheckedItems();">
|
||||||
|
<div id="item-delete-selected-icon" class="icon drophide" title="$dropping" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></div>
|
||||||
|
<div id="item-delete-selected-desc" >$dropping</div>
|
||||||
|
</div>
|
||||||
|
<div id="item-delete-selected-end"></div>
|
||||||
|
{{ endif }}
|
Loading…
Reference in a new issue