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.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.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
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
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.cooleydd wrote:Will it work OK on 3.0.1? If so update your information.
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?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?
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: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 ?
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;
}
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
Code: Select all
'U_DELETE'
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
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.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.
Add afterCode: Select all
'U_DELETE'
Tip: Add these lines on a new blank line after the preceding line(s) to find.
as well i cant find the code on viewtopic.phpCode: 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
and i found there are more comment codes
pls need guidance ASAP
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 senseFangarr 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...