Page 1 of 1
"Mark forums read" Link on the "View unread posts" Page
Posted: 13 Jan 2014, 13:57
by GDI_Lord
Hi
An irritation that I've been experiencing is not having a "Mark forums read" link on the "View unread posts" page.
Use case 1:
- User navigates to the "View unread posts" page.
- He/She/It sees that there are no topics that interest him/her/it that are unread and wants to mark them all as read.
- He/She/It now has to click on the "Board index" link, wait for the page to load, scroll to the bottom of the page and then click on the "Mark forums read" link.
Use case 2:
- User navigates to the "View unread posts" page.
- He/She/It sees that there are a few topics that interest him/her/it that are unread.
- He/She/It middle clicks on the "View latest unread post" icon on each thread that he/she/it is interested in to open up the threads in new tabs.
- He/She/It wants to mark the other threads that don't interest him/her/it as read.
- He/She/It now has to click on the "Board index" link, wait for the page to load, scroll to the bottom of the page and then click on the "Mark forums read" link.
Thanks
Re: "Mark forums read" Link on the "View unread posts" Page
Posted: 15 Jan 2014, 02:47
by Anakha56
I hear what you are saying but it aint happening.
There is no-one (admin/PCF Staff) with the relevant knowledge who could attempt to do this for you and this actually goes with anything board related. It does not mean that it wont be looked at later but right now its not going to happen...
Re: "Mark forums read" Link on the "View unread posts" Page
Posted: 15 Jan 2014, 08:22
by GDI_Lord
Bahahahaha! The reason given was certainly unexpected!
Thanks Anakha.
Re: "Mark forums read" Link on the "View unread posts" Page
Posted: 28 Jan 2014, 23:29
by Ron2K
Received a personal request from a user who will remain anonymous to do this. Took all of 10 minutes.
Code: Select all
diff -x images -crNEB release-3.0.12/search.php patch-3.0.12/search.php
*** release-3.0.12/search.php 2013-09-28 03:20:51.000000000 +0200
--- patch-3.0.12/search.php 2014-01-28 19:12:53.714961250 +0200
***************
*** 624,629 ****
--- 624,631 ----
'LAST_POST_IMG' => $user->img('icon_topic_latest', 'VIEW_LATEST_POST'),
'U_SEARCH_WORDS' => $u_search,
+
+ 'U_MARK_FORUMS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'hash=' . generate_link_hash('global') . '&mark=forums') : '',
));
if ($sql_where)
diff -x images -crNEB release-3.0.12/styles/prosilver/template/search_results.html patch-3.0.12/styles/prosilver/template/search_results.html
*** release-3.0.12/styles/prosilver/template/search_results.html 2013-09-28 03:20:51.000000000 +0200
--- patch-3.0.12/styles/prosilver/template/search_results.html 2014-01-28 19:34:22.835607764 +0200
***************
*** 23,32 ****
<!-- ENDIF -->
</div>
<!-- ENDIF -->
!
! <div class="rightside pagination">
! {SEARCH_MATCHES}<!-- IF PAGINATION --> • <a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> • <span>{PAGINATION}</span><!-- ELSE --> • {PAGE_NUMBER}<!-- ENDIF -->
! </div>
</div>
</form>
--- 23,33 ----
<!-- ENDIF -->
</div>
<!-- ENDIF -->
!
! <ul class="linklist">
! <!-- IF S_USER_LOGGED_IN and not S_IS_BOT and U_MARK_FORUMS --><li><a href="{U_MARK_FORUMS}" accesskey="m">{L_MARK_FORUMS_READ}</a></li><!-- ENDIF -->
! <li class="rightside pagination">{SEARCH_MATCHES}<!-- IF PAGINATION --> • <a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> • <span>{PAGINATION}</span><!-- ELSE --> • {PAGE_NUMBER}<!-- ENDIF --></li>
! </ul>
</div>
</form>
diff -x images -crNEB release-3.0.12/styles/subsilver2/template/search_results.html patch-3.0.12/styles/subsilver2/template/search_results.html
*** release-3.0.12/styles/subsilver2/template/search_results.html 2013-09-28 03:20:51.000000000 +0200
--- patch-3.0.12/styles/subsilver2/template/search_results.html 2014-01-28 19:38:48.109017887 +0200
***************
*** 12,17 ****
--- 12,22 ----
</tr>
</table>
+ <!-- IF S_USER_LOGGED_IN and not S_IS_BOT and U_MARK_FORUMS -->
+ <div class="gensmall" style="float: {S_CONTENT_FLOW_BEGIN};"><a href="{U_MARK_FORUMS}">{L_MARK_FORUMS_READ}</a></div>
+ <div class="nav" style="float: {S_CONTENT_FLOW_END};"></div>
+ <!-- ENDIF -->
+
<br clear="all" />
<!-- IF S_SHOW_TOPICS -->
Re: "Mark forums read" Link on the "View unread posts" Page
Posted: 29 Jan 2014, 09:23
by D3PART3D
I don't buy it. I think you're just a really nice guy who saw this thread decided to help.
Re: "Mark forums read" Link on the "View unread posts" Page
Posted: 29 Jan 2014, 09:49
by doo_much
Yep - lurking, yearning and wanting to be asked back.
It's a common affliction.
Re: "Mark forums read" Link on the "View unread posts" Page
Posted: 29 Jan 2014, 17:06
by GDI_Lord
Thank you Ron, I appreciate it.
And it's nice to see you back! **hint hint nudge nudge please**
Re: "Mark forums read" Link on the "View unread posts" Page
Posted: 29 Jan 2014, 17:06
by GDI_Lord
doo_much wrote:Yep - lurking, yearning and wanting to be asked back.
If that is the case, then Ron, please would you come back and stay?
Re: "Mark forums read" Link on the "View unread posts" Page
Posted: 05 Feb 2014, 13:21
by GDI_Lord
Can you use Ron's code Anak?
Re: "Mark forums read" Link on the "View unread posts" Page
Posted: 05 Feb 2014, 13:25
by Anakha56
Of course its useable, we just need someone skilled in php to "install" it
.
Re: "Mark forums read" Link on the "View unread posts" Page
Posted: 05 Feb 2014, 14:30
by SykomantiS
What was that thing Ronnie always said about spoonfeeding?
Re: "Mark forums read" Link on the "View unread posts" Page
Posted: 05 Feb 2014, 15:26
by GDI_Lord
@Syk
Re: "Mark forums read" Link on the "View unread posts" Page
Posted: 05 Feb 2014, 15:49
by Anakha56
If I get given the login codes I will gladly try not to destroy everyone huge post count and the database itself...
Re: "Mark forums read" Link on the "View unread posts" Page
Posted: 06 Feb 2014, 09:36
by Tribble
Oh Anky - I will give you a few codes you can add at the same time
Re: "Mark forums read" Link on the "View unread posts" Page
Posted: 06 Feb 2014, 09:55
by Anakha56
Tribble wrote:Oh Anky - I will give you a few codes you can add at the same time
No DROP codes!
Re: "Mark forums read" Link on the "View unread posts" Page
Posted: 06 Feb 2014, 10:13
by Tribble
Darn! You saw through my plans