<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>selfoss support forum - Mark as Read on Click/Expand</title>
<link>https://forum.selfoss.aditu.de/</link>
<description>selfoss support forum</description>
<language>en</language>
<item>
<title>Mark as Read on Click/Expand (reply)</title>
<content:encoded><![CDATA[<p><em>Internal Server Error<br />
Fatal error: Maximum execution time of 30 seconds exceeded</em></p>
<p>I use Lighttpd.</p>
<p>I restored the all.js, then after no has error messages. But the auto read doesn't working. I tried it with empty all.js, but no changes.</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=330</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=330</guid>
<pubDate>Wed, 10 Apr 2013 20:08:43 +0000</pubDate>
<dc:creator>sanchomuzax</dc:creator>
</item>
<item>
<title>Mark as Read on Click/Expand (reply)</title>
<content:encoded><![CDATA[<p>Interesting - worked for me. But thanks for the addition. I'll add that to the code!</p>
<p>Raspberry Pi running Rasbian (debian) with Apache 2.2.22 with PHP 5.4.4-14</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=21</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=21</guid>
<pubDate>Fri, 15 Mar 2013 13:01:36 +0000</pubDate>
<dc:creator>RubenK</dc:creator>
</item>
<item>
<title>Mark as Read on Click/Expand (reply)</title>
<content:encoded><![CDATA[<p>Actually it didn't work for me, I got:</p>
<p><strong>Internal Server Error</strong></p>
<p>Undefined property: helpers\View::$markasreadopenentry</p>
<p><br />
Ubuntu 12.04 LTS with PHP 5.3.10 with Suhosin-Patch / Apache FastCGI</p>
<p>Baz</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=20</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=20</guid>
<pubDate>Fri, 15 Mar 2013 12:55:13 +0000</pubDate>
<dc:creator>baz4096</dc:creator>
</item>
<item>
<title>Mark as Read on Click/Expand (reply)</title>
<content:encoded><![CDATA[<p>Was that necessary? Probably you're quite right, but it still works without that <img src="https://forum.selfoss.aditu.de/images/smilies/wink.png" alt=";-)" /> ... I'm moving code-suggestions to Github from now on!</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=18</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=18</guid>
<pubDate>Fri, 15 Mar 2013 12:38:51 +0000</pubDate>
<dc:creator>RubenK</dc:creator>
</item>
<item>
<title>iOS Fullscreen Webapp Capability (reply)</title>
<content:encoded><![CDATA[<p>Didn't think of Github .. <img src="https://forum.selfoss.aditu.de/images/smilies/biggrin.png" alt=":-D" /> ... thanks for the headsup. Now all that's left is figuring out how Github works <img src="https://forum.selfoss.aditu.de/images/smilies/wink.png" alt=";-)" /></p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=17</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=17</guid>
<pubDate>Fri, 15 Mar 2013 12:36:49 +0000</pubDate>
<dc:creator>RubenK</dc:creator>
</item>
<item>
<title>iOS Fullscreen Webapp Capability (reply)</title>
<content:encoded><![CDATA[<p>Have you thought about posting your code changes on the <a href="https://github.com/SSilence/selfoss">Github repo</a>?  These seem like some simple but effective changes to the code.</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=16</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=16</guid>
<pubDate>Fri, 15 Mar 2013 12:27:20 +0000</pubDate>
<dc:creator>nosbig</dc:creator>
</item>
<item>
<title>Mark as Read on Click/Expand (reply)</title>
<content:encoded><![CDATA[<p>Hi</p>
<p>I think you missed this around Step 2:</p>
<p> public $markasreadopenentry = 0;</p>
<p>Around line 20 in helpers/View.php</p>
<p><br />
Thanks by the way, I've implemented this and will see how I get on with it :)</p>
<p>Baz</p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=15</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=15</guid>
<pubDate>Fri, 15 Mar 2013 12:27:14 +0000</pubDate>
<dc:creator>baz4096</dc:creator>
</item>
<item>
<title>Mark as Read on Click/Expand (reply)</title>
<content:encoded><![CDATA[<p>Another 'hacky' solution - but it works like a charm. </p>
<p><br />
- STEP 1 ----</p>
<p>Added the following line to <strong>/selfoss/config.ini</strong>. Setting it to <strong>1</strong> will mark items as read on opening/expanding. Setting to <strong>0</strong> will retain the original functionality.</p>
<ul>
<li>markasread_openentry=1</li></ul><p><br />
- STEP 2 ----</p>
<p>Added the following line to <strong>/selfoss/helpers/View.php</strong> on line 35, right before <strong>$lastSlash = strrpos($_SERVER['SCRIPT_NAME'], '/');</strong>. Exactely the same spot as with the fullscreen-hack.</p>
<ul>
<li>$this-&gt;markasreadopenentry = \F3::get('markasread_openentry');</li></ul><p><br />
- STEP 3 ----</p>
<p>Changed the following code in <strong>/selfoss/template/home.phtml</strong> - replace the following code</p>
<ul>
<li>&lt;body class=&quot;&lt;?PHP if($this-&gt;publicMode===true) : ?&gt;publicmode&lt;?PHP endif; ?&gt; &lt;?PHP echo $this-&gt;loggedin ? &quot;loggedin&quot; : &quot;notloggedin&quot;; ?&gt; &lt;?PHP if(\F3::get('initial_open')==1) : ?&gt;initial_open&lt;?PHP endif; ?&gt;&quot;&gt;</li></ul><p>
with this code</p>
<ul>
<li>&lt;body class=&quot;&lt;?PHP if($this-&gt;publicMode===true) : ?&gt;publicmode&lt;?PHP endif; ?&gt; &lt;?PHP echo $this-&gt;loggedin ? &quot;loggedin&quot; : &quot;notloggedin&quot;; ?&gt; &lt;?PHP if(\F3::get('initial_open')==1) : ?&gt;initial_open&lt;?PHP endif; ?&gt;&quot; &lt;?PHP if ($this-&gt;markasreadopenentry=='1'){ echo 'data-markasreadonopenentry=&quot;1&quot;'; } ?&gt;&gt;</li></ul><p><br />
- STEP 4 ----</p>
<p>Added the following code to <strong>/selfoss/public/js/selfoss-events.js</strong> on line 317, right before <strong>if(selfoss.isSmartphone()==false) {</strong>.</p>
<ul>
<li>/* MOD --- mark as read hack */<br />
var markOnOpen = $('body').attr('data-markasreadonopenentry');<br />
var entryID = parent.attr('id');<br />
if (markOnOpen == '1') { markAsRead(entryID); }</li></ul><p><br />
- STEP 5 ----</p>
<p>Added the following code to <strong>/selfoss/public/js/selfoss-events.js</strong> on line 391, right before <strong>// no source click</strong>. (after adding the previous code, otherwise the line-numbers won't match).</p>
<ul>
<li>/* MOD --- mark as read hack */<br />
function markAsRead(entryid) {<br />
    var ids = new Array();<br />
    ids.push( entryid.substr(5) );<br />
    <br />
    $.ajax({<br />
        url: $('base').attr('href') + 'mark',<br />
        type: 'POST',<br />
            data: {<br />
                ids: ids<br />
            },<br />
        success: function() {<br />
            $('#'+entryid).removeClass('unread');<br />
          <br />
            var unreadstats = parseInt($('.nav-filter-unread span').html());<br />
            $('.nav-filter-unread span').html( (unreadstats - ids.length) );<br />
                    <br />
            if(selfoss.isSmartphone())<br />
                $('#nav-mobile-settings').click();<br />
            },<br />
            error: function(jqXHR, textStatus, errorThrown) {<br />
                alert('Can not mark visible item: ' + errorThrown);<br />
            }<br />
    });<br />
}<br />
<br />
<br />
- STEP 6 ----<br />
<br />
Delete the following file: <strong>/selfoss/public/all.js</strong> - this will be regenerated the next time you visit your selfoss webapp (might take a while on slower servers)</li></ul>]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=12</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=12</guid>
<pubDate>Fri, 15 Mar 2013 10:27:50 +0000</pubDate>
<dc:creator>RubenK</dc:creator>
</item>
<item>
<title>iOS Fullscreen Webapp Capability (reply)</title>
<content:encoded><![CDATA[<p>Alright - first step in 'hacking' iOS fullscreen capability into Selfoss are underway <img src="https://forum.selfoss.aditu.de/images/smilies/wink.png" alt=";-)" /> It's still very experimental work, since opening a entry_source-link will open that link inside the webapp, which will in essence disables control of the app. So read-entries-only at this point.</p>
<p>---</p>
<p>Added the following line at the bottom of <strong>/selfoss/config.ini</strong></p>
<ul>
<li>fullscreen_webapp=1</li></ul><p>
If set to <strong>1</strong>, the webapp will be capable of running in standalone fullscreen, if set to <strong>0</strong> the app will run in Safari</p>
<p>---</p>
<p>Added the following line to <strong>/selfoss/helpers/View.php</strong> on line 35, before <em>$lastSlash = strrpos($_SERVER['SCRIPT_NAME'], '/');</em></p>
<ul>
<li>$this-&gt;fullscreenwebapp = \F3::get('fullscreen_webapp');</li></ul><p>---</p>
<p>Added the following lines to <strong>/selfoss/templates/home.phtml</strong> before the <em>&lt;/head&gt;</em>-tag</p>
<ul>
<li>&lt;?PHP if($this-&gt;fullscreenwebapp=='1'){ ?&gt;&lt;!-- MOD iOS webapp --&gt;<br />
</li><li>&lt;meta name=&quot;apple-mobile-web-app-capable&quot; content=&quot;yes&quot;&gt;<br />
</li><li>&lt;link rel=&quot;apple-touch-startup-image&quot; href=&quot;public/images/ios-splash-320x460.png&quot; media=&quot;screen and (max-device-width: 320px)&quot;&gt;<br />
</li><li>&lt;link rel=&quot;apple-touch-startup-image&quot; href=&quot;public/images/ios-splash-640x920.png&quot; media=&quot;(max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2)&quot;&gt;<br />
</li><li>&lt;? } ?&gt;</li></ul><p>
The two images I used for the splash-screen can be found here: <a href="http://rubenkremer.nl/hosted/selfoss/ios-splash-320x640.png">320x640</a> and <a href="http://rubenkremer.nl/hosted/selfoss/ios-splash-640x920.png">640x920</a></p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=11</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=11</guid>
<pubDate>Fri, 15 Mar 2013 09:26:14 +0000</pubDate>
<dc:creator>RubenK</dc:creator>
</item>
<item>
<title>Feature Suggestions</title>
<content:encoded><![CDATA[<p>I've got some suggestions which would make Selfoss even better.</p>
<ul>
<li> Mark as read on clicking/opening item (already mentioned in another topic)<br />
</li><li> Ability to set an option that images will automatically load on opening a message in mobile view<br />
</li><li> Showing the unread message count behind each tag<br />
</li><li> Being abled to run the web app full screen via the web-app-capable meta (will run some tests on this later today)</li></ul><p>I'll be trying to 'hack' these options in by myself in the coming days, but in the end - native support would be better <img src="https://forum.selfoss.aditu.de/images/smilies/wink.png" alt=";-)" /></p>
<p><br />
So far - great web app! Runs great on my little Raspberry Pi here <img src="https://forum.selfoss.aditu.de/images/smilies/smile.png" alt=":-)" /></p>
]]></content:encoded>
<link>https://forum.selfoss.aditu.de/index.php?id=10</link>
<guid>https://forum.selfoss.aditu.de/index.php?id=10</guid>
<pubDate>Fri, 15 Mar 2013 07:35:35 +0000</pubDate>
<dc:creator>RubenK</dc:creator>
</item>
</channel>
</rss>
