View or mark unread posts

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: View or mark unread posts

Post by asinshesq »

[quote="sovietpop]It doesn't seem to send me emails at all. I've tested it a bit - subscribing to different topics and forums but never seem to get a notification.[/quote]
Seems to work on my test board, so it sounds like you've got something unrelated to this mod interfering with it. Can anyone else with this mod confirm that subscribe still works after installing this mod?
Scorpiuscat
Registered User
Posts: 108
Joined: Thu Jul 19, 2007 5:16 pm

Re: View or mark unread posts

Post by Scorpiuscat »

I want to install this mod, but I am using the X-treme style skin.

Would it be possible to get instructions on what to mod in that style?

Thank you
Please visit my Sci-Fi Website

Now Featuring over 1000 Free Flash Games!
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: View or mark unread posts

Post by asinshesq »

Scorpiuscat wrote:I want to install this mod, but I am using the X-treme style skin.

Would it be possible to get instructions on what to mod in that style?

Thank you
Did you try to figure it out? If you know just a little bit of html it should be really easy (and even if you don't it should be relatively easy), and if you don't and can't figure it out and expect to install other mods, you should probably stick with prosilver or subsilver2 since most mod authors will not support non-standard styles.

If you can't figure it out give me a link to the style (saying x-treme doesn't help at all) and I'll take a look at when I have time.
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

changes for X-treme style...

Post by asinshesq »

Scorpiuscat wrote:I want to install this mod, but I am using the X-treme style skin.

Would it be possible to get instructions on what to mod in that style?

Thank you
Ok, I found the X-treme style. You can try the changes below, though I haven't tried them myself. The changes replace the new post link with the unread post link (since I think it is confusing to have both links in the same forum). But if for some reason you want to keep the new post link in addition to the unread post link, you should change the first "REPLACE WITH" instruction to an "AFTER, ADD" instruction. Let me know if this works.

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
styles/X-treme/template/overall_header.html

#
#-----[ FIND ]------------------------------------------
#
										<td background="{T_THEME_PATH}/images/p_menu/p_85.png" width="10%" height="36" align="center">
											<A HREF="{U_SEARCH_NEW}"
											onMouseOver = "rollover('search_new')"
											onMouseOut = "rollout('search_new')"
											>
											<IMG SRC="{T_THEME_PATH}/images/buttons/np1.png"
											NAME="search_new"
											ALT="{L_SEARCH_NEW}" BORDER=0
											HEIGHT=36 WIDTH=133
											>
											</A>
											<SCRIPT TYPE="text/javascript">
											<!--
											setrollover("{T_THEME_PATH}/images/buttons/np2.png");
											//-->
											</SCRIPT>
										</td>

#
#-----[ REPLACE WITH ]------------------------------------------
#
										<!-- IF S_EXISTS_UNREADS -->
										<td background="{T_THEME_PATH}/images/p_menu/p_85.png" width="10%" height="36" align="center">
											<A HREF="{U_SEARCH_UNREAD}"
											onMouseOver = "rollover('search_unread')"
											onMouseOut = "rollout('search_unread')"
											>
											<IMG SRC="{T_THEME_PATH}/images/buttons/np1.png"
											NAME="search_unread"
											ALT="{L_VIEW_UNREADS}" BORDER=0
											HEIGHT=36 WIDTH=133
											>
											</A>
											<SCRIPT TYPE="text/javascript">
											<!--
											setrollover("{T_THEME_PATH}/images/buttons/np2.png");
											//-->
											</SCRIPT>
										</td>
										<!-- ELSE -->
										<td background="{T_THEME_PATH}/images/p_menu/p_85.png" width="10%" height="36" align="center">
											<A HREF="{U_SEARCH_UNREAD}"
											onMouseOver = "rollover('search_unread')"
											onMouseOut = "rollout('search_unread')"
											>
											<IMG SRC="{T_THEME_PATH}/images/buttons/np1.png"
											NAME="search_unread"
											ALT="{L_NO_UNREADS}" BORDER=0
											HEIGHT=36 WIDTH=133
											>
											</A>
											<SCRIPT TYPE="text/javascript">
											<!--
											setrollover("{T_THEME_PATH}/images/buttons/np2.png");
											//-->
											</SCRIPT>
										</td>
										<!-- ENDIF -->
										<!-- start mod view or mark unread posts (and end mod too) ... changed new posts references to unread references in the preceding line -->

#
#-----[ OPEN ]------------------------------------------
#
styles/X-treme/template/search_results.html

#
#-----[ FIND ]------------------------------------------
#
	<td colspan="2"><span class="titles"><!-- IF SEARCH_TITLE -->{SEARCH_TITLE}<!-- ELSE -->{SEARCH_MATCHES}<!-- ENDIF --></span><br /></td>

#
#-----[ IN-LINE FIND ]------------------------------------------
#
<br />

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
<!-- IF S_SHOW_MARK_FORUMS_LINK --><p class="gensmall"><a href="{U_MARK_FORUMS}">{L_MARK_FORUMS_READ}</a></p><br /><!-- ENDIF -->

#
#-----[ OPEN ]------------------------------------------
#
styles/X-treme/template/ucp_pm_viewmessage.html

#
#-----[ FIND ]------------------------------------------
# Note: actual line is longer
					<td class="gensmall" align="{S_CONTENT_FLOW_END}">

#
#-----[ BEFORE, ADD ]------------------------------------------
#
					<td valign="bottom"><a href="{U_MARK_UNREAD}" class="gensmall" title="{L_MARK_PM_UNREAD}">{L_MARK_PM_UNREAD}</a></td>
					<!-- start mod view or mark unread posts (and end mod too) ... added preceding line -->

#
#-----[ OPEN ]------------------------------------------
#
styles/X-treme/template/viewtopic_body.html

#
#-----[ FIND ]------------------------------------------
#
							<td class="gensmall" align="{S_CONTENT_FLOW_END}">

#
#-----[ BEFORE, ADD ]------------------------------------------
#
							<!-- IF S_INC_UNREAD_LINK --><td valign="bottom"><a href="{postrow.U_MARK_UNREAD}" class="gensmall" title="{L_MARK_POST_UNREAD}">{L_MARK_POST_UNREAD}</a></td><!-- ENDIF -->
							<!-- start mod view or mark unread posts (and end mod too) ... added mark_post_unread references in the preceding line -->

#
#-----[ DIY INSTRUCTIONS ]-------------------------------------------------
#
Go into the ACP styles section and click 'refresh' (and confirm) for
subsilver2's templates.

#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM
Scorpiuscat
Registered User
Posts: 108
Joined: Thu Jul 19, 2007 5:16 pm

Re: View or mark unread posts

Post by Scorpiuscat »

Thank you very much for the info asinshesq, I really appreciate it.

I can install mods with no problems as long as I have instructions to follow, but if I have to wing it or guess, I just dont have the knowledge to do so without major problems poping up.
Please visit my Sci-Fi Website

Now Featuring over 1000 Free Flash Games!
cooleydd
Registered User
Posts: 279
Joined: Fri Jul 28, 2006 2:17 pm
Location: San Jose CA

Re: View or mark unread posts

Post by cooleydd »

Will it work OK on 3.0.1? If so update your information.
----------------------------
Don
Version 2.0.21 and version 3.0.1 (prosilver)
Mods - 2.0.21: Register User, Mark Unread, FlashChat, Smartfeed, Digest
Mods - 3.0.1: FlashChat installed
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: View or mark unread posts

Post by asinshesq »

cooleydd wrote:Will it work OK on 3.0.1? If so update your information.
Seems to work fine on 3.0.1, but that information is not up to me to change. The first post in this topic is not mine to edit and lists only the version the mod was validated with. My understanding is that I am not supposed to submit an unchanged mod for validation with a later version of phpbb3, but someone on the mod team please correct me if I'm wrong.
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: View or mark unread posts

Post by asinshesq »

v8power wrote:I just had one of my members have an issue, not a problem, but something different:

It seems in 3.0.0 when the users pm box is full(100%), it says that you must remove messages to view a new message. That is displayed only in the "inbox" folder. When the users PM inbox was full and the user would click on the 'unread" messages and try and view the unread message, they would get a " no_auth_read_hold_message" message.

Is this a language/translation that was overlooked?
Sorry, I just noticed I never answered your question. I cannot replicate the behaviour you are describing. The proper hold message (saying you need to remove a pm before viewing new pms) displays fine when I click to view unread pms. Dpoes anyone else have this problem?
Bramster
Registered User
Posts: 605
Joined: Sun Jul 27, 2003 10:40 am

Re: View or mark unread posts

Post by Bramster »

This option is running finre in my forum !

But I would like this great option to ignore all new post in forums that are a subforum of forum 84. Is that possible ?

I browsed throught the code but could not really locate what changes to make.
Navy & Merchant Marine Forum:
www.DutchFleet.net
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: View or mark unread posts

Post by asinshesq »

[replaced by post below]
Last edited by asinshesq on Thu May 01, 2008 2:05 pm, edited 1 time in total.
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: View or mark unread posts

Post by asinshesq »

Bramster wrote:But I would like this great option to ignore all new post in forums that are a subforum of forum 84. Is that possible ?
I haven't tested any of this so you may need to tweak it, but the following looks like it should do what I think you were asking about:

If you are trying to prevent the link text from toggling from 'You have no unread posts' to 'View unread posts' because of an unread post in a subforum under forum_id 84, try this:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
includes/functions_display.php

#
#-----[ FIND ]------------------------------------------
#
				if ($subforum_unread)

#
#-----[ REPLACE WITH ]------------------------------------------
#
				if ($subforum_unread && $forum_id <> 84)

#
#-----[ OPEN ]------------------------------------------
#
functions/view_or_mark_unread_posts.php

#
#-----[ FIND ]------------------------------------------
#
	$sql = 'SELECT f.forum_id, forum_last_post_time, ft.mark_time

#
#-----[ REPLACE WITH ]------------------------------------------
#
	$sql = 'SELECT f.forum_id, f.parent_id, forum_last_post_time, ft.mark_time

#
#-----[ FIND ]------------------------------------------
#
		if (!$auth->acl_get('f_list', $row['forum_id']))
		{
			// if we get here, the user does not have permission to see the forum in question so we can skip it
			continue;
		}

#
#-----[ REPLACE WITH ]------------------------------------------
#
		if (!$auth->acl_get('f_list', $row['forum_id']) || $row['parent_id'] == 84)
		{
			// if we get here, the user does not have permission to see the forum in question or the forum is a subforum of forum_id 84 so we can skip it
			continue;
		}
If you are trying to prevent unread posts in subforums under forum_id 84 from showing up on the list when you click the 'View your unread posts' link, try this:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
functions/view_or_mark_unread_posts.php

#
#-----[ FIND ]------------------------------------------
#
			LEFT JOIN ' . TOPICS_TRACK_TABLE . ' tt ON (p.topic_id = tt.topic_id AND ft.user_id = ' . $user->data['user_id'] . ')

#
#-----[ AFTER, ADD ]------------------------------------------
#
			LEFT JOIN ' . FORUMS_TABLE . ' f ON p.forum_id = f.forum_id

#
#-----[ FIND ]------------------------------------------
#
			$m_approve_fid_sql

#
#-----[ BEFORE, ADD ]------------------------------------------
#
			AND f.parent_id <> 84

#
#-----[ FIND ]------------------------------------------
#
			LEFT JOIN ' . TOPICS_TRACK_TABLE . ' tt ON (t.topic_id = tt.topic_id AND tt.user_id = ' . $user->data['user_id'] . ')

#
#-----[ AFTER, ADD ]------------------------------------------
#
			LEFT JOIN ' . FORUMS_TABLE . ' f ON t.forum_id = f.forum_id

#
#-----[ FIND ]------------------------------------------
#
			AND t.topic_moved_id = 0

#
#-----[ BEFORE, ADD ]------------------------------------------
#
			AND f.parent_id <> 84
teman
Registered User
Posts: 145
Joined: Fri Mar 21, 2008 5:50 pm

Re: View or mark unread posts

Post by teman »

what does it mean by :
Comments
Note: actual line is longer
Find
Tip: This may be a partial find and not the whole line.

Code: Select all

'U_DELETE'
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all

// start mod view or mark unread posts
		'U_MARK_UNREAD'		=> append_sid("{$phpbb_root_path}viewtopic.$phpEx", "mu={$row['post_id']}"),
		// end mod  view or mark unread posts
as well i cant find the code on viewtopic.php
and i found there are more comment codes

pls need guidance ASAP
never pleased become the leader!!!
ask me for any symbian issues at
http://gsmvolt.com and see our rank here
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: View or mark unread posts

Post by asinshesq »

teman wrote:what does it mean by :
Comments
Note: actual line is longer
Find
Tip: This may be a partial find and not the whole line.

Code: Select all

'U_DELETE'
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

Code: Select all

// start mod view or mark unread posts
		'U_MARK_UNREAD'		=> append_sid("{$phpbb_root_path}viewtopic.$phpEx", "mu={$row['post_id']}"),
		// end mod  view or mark unread posts
as well i cant find the code on viewtopic.php
and i found there are more comment codes

pls need guidance ASAP
It means what it says: the 'U_DELETE' code is only part of the line you are looking for. Look for a line that begins with 'U_DELETE' and then add the new code on the next line.

If you can't find any line that begins with 'U_DELETE' that means you have installed another mod that changes that line. In that case, you'll need to look at a clean viewtopic phpbb3 file (unmodded) to figure out what happened to that line so you can figure out where to add the new line.
Fangarr
Registered User
Posts: 10
Joined: Sun Jun 12, 2005 12:13 am

Re: View or mark unread posts

Post by Fangarr »

I agree with the poster who said all they want is the "View Unread" functionality of this mod.

I tried to install it and rip out all the Mark Unread stuff for topics and pms but I couldn't seem to get it right. The mod was actually working but it screwed up the formatting of my ACP so I backed it out after I couldn't find the problem.

The "View New Posts" feature that phpbb3 comes with is weak and all I really want is to replace that with a View Unread option instead.

To the creator of the mod thanks for making this. I'll keep my eyes open in case there is ever a stripped down variant that fits my more modest needs.
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: View or mark unread posts

Post by asinshesq »

Fangarr wrote:I agree with the poster who said all they want is the "View Unread" functionality of this mod.

I tried to install it and rip out all the Mark Unread stuff for topics and pms but I couldn't seem to get it right...
I'm not sure why people want to go through extra trouble taking out things they don't use, but I'll take your word for it that it makes sense ;)

Anyway, in this post I explained how to leave out the unread pm stuff: http://www.phpbb.com/community/viewtopi ... 5#p4639565

And if you want to leave out the mark post unread stuff just leave out the changes to viewtopic and viewtopic_body.html.

By the way, when you said you were having trouble with the ACP, did you mean the UCP (since the mod doesn't touch the ACP but does make changes to the UCP for the PM functionality it adds)?

Return to “[3.0.x] MOD Database Releases”