Mark as Read on Click/Expand

by RubenK, Friday, March 15, 2013, 11:27 (4227 days ago) @ RubenK

Another 'hacky' solution - but it works like a charm.


- STEP 1 ----

Added the following line to /selfoss/config.ini. Setting it to 1 will mark items as read on opening/expanding. Setting to 0 will retain the original functionality.


- STEP 2 ----

Added the following line to /selfoss/helpers/View.php on line 35, right before $lastSlash = strrpos($_SERVER['SCRIPT_NAME'], '/');. Exactely the same spot as with the fullscreen-hack.


- STEP 3 ----

Changed the following code in /selfoss/template/home.phtml - replace the following code

with this code


- STEP 4 ----

Added the following code to /selfoss/public/js/selfoss-events.js on line 317, right before if(selfoss.isSmartphone()==false) {.


- STEP 5 ----

Added the following code to /selfoss/public/js/selfoss-events.js on line 391, right before // no source click. (after adding the previous code, otherwise the line-numbers won't match).


Complete thread:

 RSS Feed of thread

powered by my little forum