"Mark forums read" Link on the "View unread posts" Page

Got a suggestion for the board? Post it in here.
Post Reply
GDI_Lord
Forum Administrator
Posts: 2663
Joined: 05 Sep 2005, 02:00

"Mark forums read" Link on the "View unread posts" Page

Post 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:
  1. User navigates to the "View unread posts" page.
  2. 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.
  3. 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:
  1. User navigates to the "View unread posts" page.
  2. He/She/It sees that there are a few topics that interest him/her/it that are unread.
  3. 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.
  4. He/She/It wants to mark the other threads that don't interest him/her/it as read.
  5. 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
Important Thread: Yours in Christ's service,
Anakha56
Forum Administrator
Posts: 22136
Joined: 14 Jun 2004, 02:00
Processor: Ryzen 1700K
Motherboard: Asus X370
Graphics card: Asus 1060 Strix
Memory: 16GB RAM
Location: Where Google says

Re: "Mark forums read" Link on the "View unread posts" Page

Post by Anakha56 »

I hear what you are saying but it aint happening. :P

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...
JUSTICE, n A commodity which is a more or less adulterated condition the State sells to the citizen as a reward for his allegiance, taxes and personal service.
GDI_Lord
Forum Administrator
Posts: 2663
Joined: 05 Sep 2005, 02:00

Re: "Mark forums read" Link on the "View unread posts" Page

Post by GDI_Lord »

Bahahahaha! The reason given was certainly unexpected! :lol:

Thanks Anakha.
Important Thread: Yours in Christ's service,
User avatar
Ron2K
Forum Technical Administrator
Posts: 9050
Joined: 04 Jul 2006, 16:45
Location: Upper Hutt, New Zealand
Contact:

Re: "Mark forums read" Link on the "View unread posts" Page

Post 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 --> &bull; <a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> &bull; <span>{PAGINATION}</span><!-- ELSE --> &bull; {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 --> &bull; <a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> &bull; <span>{PAGINATION}</span><!-- ELSE --> &bull; {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 -->
Kia kaha, Kia māia, Kia manawanui.
D3PART3D
Starbound's Dear
Posts: 16295
Joined: 01 Dec 2004, 02:00
Contact:

Re: "Mark forums read" Link on the "View unread posts" Page

Post by D3PART3D »

I don't buy it. I think you're just a really nice guy who saw this thread decided to help. :)
Ceterum autem censeo Samsung Mobile esse delendam.

When something is important enough, you do it even if the odds are not in your favor.
- Elon Musk
doo_much
Registered User
Posts: 26022
Joined: 13 May 2004, 02:00
Location: Getting there...
Contact:

Re: "Mark forums read" Link on the "View unread posts" Page

Post by doo_much »

Yep - lurking, yearning and wanting to be asked back.

It's a common affliction. :whistling:
MOOD - Thirsty

A surprising amount of modern pseudoscience is coming out of the environmental sector. Perhaps it should not be so surprising given that environmentalism is political rather than scientific.
Timothy Casey
GDI_Lord
Forum Administrator
Posts: 2663
Joined: 05 Sep 2005, 02:00

Re: "Mark forums read" Link on the "View unread posts" Page

Post by GDI_Lord »

Thank you Ron, I appreciate it.

And it's nice to see you back! **hint hint nudge nudge please** :-)
Important Thread: Yours in Christ's service,
GDI_Lord
Forum Administrator
Posts: 2663
Joined: 05 Sep 2005, 02:00

Re: "Mark forums read" Link on the "View unread posts" Page

Post 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? :-)
Important Thread: Yours in Christ's service,
GDI_Lord
Forum Administrator
Posts: 2663
Joined: 05 Sep 2005, 02:00

Re: "Mark forums read" Link on the "View unread posts" Page

Post by GDI_Lord »

Can you use Ron's code Anak?
Important Thread: Yours in Christ's service,
Anakha56
Forum Administrator
Posts: 22136
Joined: 14 Jun 2004, 02:00
Processor: Ryzen 1700K
Motherboard: Asus X370
Graphics card: Asus 1060 Strix
Memory: 16GB RAM
Location: Where Google says

Re: "Mark forums read" Link on the "View unread posts" Page

Post by Anakha56 »

Of course its useable, we just need someone skilled in php to "install" it ;).
JUSTICE, n A commodity which is a more or less adulterated condition the State sells to the citizen as a reward for his allegiance, taxes and personal service.
SykomantiS
Registered User
Posts: 14085
Joined: 06 Oct 2004, 02:00
Location: Location, Location...
Contact:

Re: "Mark forums read" Link on the "View unread posts" Page

Post by SykomantiS »

:lol: What was that thing Ronnie always said about spoonfeeding? :P
GDI_Lord
Forum Administrator
Posts: 2663
Joined: 05 Sep 2005, 02:00

Re: "Mark forums read" Link on the "View unread posts" Page

Post by GDI_Lord »

:lol: @Syk
Important Thread: Yours in Christ's service,
Anakha56
Forum Administrator
Posts: 22136
Joined: 14 Jun 2004, 02:00
Processor: Ryzen 1700K
Motherboard: Asus X370
Graphics card: Asus 1060 Strix
Memory: 16GB RAM
Location: Where Google says

Re: "Mark forums read" Link on the "View unread posts" Page

Post by Anakha56 »

If I get given the login codes I will gladly try not to destroy everyone huge post count and the database itself... :lol:
JUSTICE, n A commodity which is a more or less adulterated condition the State sells to the citizen as a reward for his allegiance, taxes and personal service.
User avatar
Tribble
Registered User
Posts: 88465
Joined: 08 Feb 2007, 02:00
Processor: Intel Core i7-4770K CPU@3.50GHz
Motherboard: ACPI x64-based PC
Graphics card: GeForce GTX 780 Ti
Memory: 16GB
Location: Not here
Contact:

Re: "Mark forums read" Link on the "View unread posts" Page

Post by Tribble »

Oh Anky - I will give you a few codes you can add at the same time :twisted:
Image
Anakha56
Forum Administrator
Posts: 22136
Joined: 14 Jun 2004, 02:00
Processor: Ryzen 1700K
Motherboard: Asus X370
Graphics card: Asus 1060 Strix
Memory: 16GB RAM
Location: Where Google says

Re: "Mark forums read" Link on the "View unread posts" Page

Post by Anakha56 »

Tribble wrote:Oh Anky - I will give you a few codes you can add at the same time :twisted:
No DROP codes! :lol:
JUSTICE, n A commodity which is a more or less adulterated condition the State sells to the citizen as a reward for his allegiance, taxes and personal service.
User avatar
Tribble
Registered User
Posts: 88465
Joined: 08 Feb 2007, 02:00
Processor: Intel Core i7-4770K CPU@3.50GHz
Motherboard: ACPI x64-based PC
Graphics card: GeForce GTX 780 Ti
Memory: 16GB
Location: Not here
Contact:

Re: "Mark forums read" Link on the "View unread posts" Page

Post by Tribble »

Darn! You saw through my plans
Image
Post Reply