nascartr
12-21-2008, 10:00 PM
Sorry if this has already been posted. I am not aware of any other modification such as this.
This template edit will allow members to click 'Mark Forums Read' from any search result page including but not limited to the New Posts page.
Now, when members are done with the threads they want to see, they can easily mark all posts read and be taken back to the main forum page.
In 'search_results' template
find:
<td class="tfoot" colspan="$threadcolspan" align="$stylevar[right]">
<if condition="$show['results']">
<span class="smallfont"><phrase 1="$first" 2="$last" 3="$numitems">$vbphrase[showing_results_x_to_y_of_z]</phrase></span>
<else />
</if>
</td>
replace with:
<td class="tfoot" colspan="$threadcolspan" align="$stylevar[right]">
<if condition="$show['results']">
<span class="smallfont"><phrase 1="$first" 2="$last" 3="$numitems">$vbphrase[showing_results_x_to_y_of_z]</phrase></span>
<span class="smallfont"><a href="forumdisplay.php?$session[sessionurl]do=markread&markreadhash=$bbuserinfo[securitytoken]" rel="nofollow">$vbphrase[mark_forums_read]</a></span>
<else />
</if>
</td>
This template edit will allow members to click 'Mark Forums Read' from any search result page including but not limited to the New Posts page.
Now, when members are done with the threads they want to see, they can easily mark all posts read and be taken back to the main forum page.
In 'search_results' template
find:
<td class="tfoot" colspan="$threadcolspan" align="$stylevar[right]">
<if condition="$show['results']">
<span class="smallfont"><phrase 1="$first" 2="$last" 3="$numitems">$vbphrase[showing_results_x_to_y_of_z]</phrase></span>
<else />
</if>
</td>
replace with:
<td class="tfoot" colspan="$threadcolspan" align="$stylevar[right]">
<if condition="$show['results']">
<span class="smallfont"><phrase 1="$first" 2="$last" 3="$numitems">$vbphrase[showing_results_x_to_y_of_z]</phrase></span>
<span class="smallfont"><a href="forumdisplay.php?$session[sessionurl]do=markread&markreadhash=$bbuserinfo[securitytoken]" rel="nofollow">$vbphrase[mark_forums_read]</a></span>
<else />
</if>
</td>