Vercingetorix
Active member
Is there a particular template edit which would remove the entire 'Mark read/Watched' thing?
For that one in the template forum_view remove:*Ie: positioned above threads lists?
<xf:if is="$forum.canWatch()">
<xf:button href="{{ link('forums/watch', $forum) }}" class="button--link"
data-xf-click="switch-overlay"
data-sk-watch="{{ phrase('watch') }}"
data-sk-unwatch="{{ phrase('unwatch') }}">
<xf:if is="{$forum.Watch.{$xf.visitor.user_id}}">{{ phrase('unwatch') }}<xf:else />{{ phrase('watch') }}</xf:if>
</xf:button>
</xf:if>
<xf:if is="$xf.visitor.user_id">
<xf:button href="{{ link('forums/mark-read'...
The mark read template isIs there a particular template edit which would remove the entire 'Mark read/Watched' thing?
forum_mark_read
The ahh..[···confusion intensifies···]... Navigation????The template isforum_mark_read
I just removed all code from it, ie make it a totally blank template.
Obviously (as you are probably aware) you should alsodisnable it in the Navigation
Yeah, seems this 'Mark forums read' dealie doesn't appear to exist on my end.Yes
Admin Control Panel > Setup> Public Navigation > Mark forums read
Disable that item via the button on the right
View attachment 301081
Presumably you did that then as it would have been there by default when you first install xenForoYeah, seems this 'Mark forums read' dealie doesn't appear to exist on my end.
Everything in the navigation is already disabled as well.
Omg yes, you're absolutely right too. Sorry, Mr Lucky, my mistake.Presumably you did that then as it would have been there by default when you first install xenForo
For that one in the template forum_view remove:*Ie: positioned above threads lists?
<xf:if is="$forum.canWatch()">
<xf:button href="{{ link('forums/watch', $forum) }}" class="button--link"
data-xf-click="switch-overlay"
data-sk-watch="{{ phrase('watch') }}"
data-sk-unwatch="{{ phrase('unwatch') }}">
<xf:if is="{$forum.Watch.{$xf.visitor.user_id}}">{{ phrase('unwatch') }}<xf:else />{{ phrase('watch') }}</xf:if>
</xf:button>
</xf:if>
<xf:if is="$xf.visitor.user_id">
<xf:button href="{{ link('forums/mark-read', $forum, {'date': $xf.time}) }}"
class="button--link" overlay="true">
{{ phrase('mark_read') }}
</xf:button>
</xf:if>
<xf:if is="$thread.canWatch()">
<xf:button href="{{ link('threads/watch', $thread) }}" class="button--link"
data-xf-click="switch-overlay"
data-sk-watch="{{ phrase('watch') }}"
data-sk-unwatch="{{ phrase('unwatch') }}">
<xf:if is="{$thread.Watch.{$xf.visitor.user_id}}">
{{ phrase('unwatch') }}
<xf:else />
{{ phrase('watch') }}
</xf:if>
</xf:button>
</xf:if>
How on Earth do you know all this mind boggling stuff?For that one in the template forum_view remove:
Code:<xf:if is="$forum.canWatch()"> <xf:button href="{{ link('forums/watch', $forum) }}" class="button--link" data-xf-click="switch-overlay" data-sk-watch="{{ phrase('watch') }}" data-sk-unwatch="{{ phrase('unwatch') }}"> <xf:if is="{$forum.Watch.{$xf.visitor.user_id}}">{{ phrase('unwatch') }}<xf:else />{{ phrase('watch') }}</xf:if> </xf:button> </xf:if>
and
Code:<xf:if is="$xf.visitor.user_id"> <xf:button href="{{ link('forums/mark-read', $forum, {'date': $xf.time}) }}" class="button--link" overlay="true"> {{ phrase('mark_read') }} </xf:button> </xf:if>
and from thread_view
remove
Code:<xf:if is="$thread.canWatch()"> <xf:button href="{{ link('threads/watch', $thread) }}" class="button--link" data-xf-click="switch-overlay" data-sk-watch="{{ phrase('watch') }}" data-sk-unwatch="{{ phrase('unwatch') }}"> <xf:if is="{$thread.Watch.{$xf.visitor.user_id}}"> {{ phrase('unwatch') }} <xf:else /> {{ phrase('watch') }} </xf:if> </xf:button> </xf:if>
Apparently that little check box doodacky is some sort of moderation fandangle and probably unrelated to the 'Mark read/Watch' dealies.How on Earth do you know all this mind boggling stuff?
I can't even begin to fathom being able to comprehend—and recall such complicated technicalities. It really amazes me anyone can do this.
Nevertheless, I've just removed the codes as instructed and it appears to have successfully removed the [Mark read] & the [Watch] thingies in both Forum & Thread views.
All that remains to be removed is the little check box bit, ie: [✓]
(*Sorry. I currently can't provide visual examples due to the latest Android system update bug inhibiting attachment uploads)
It is unrelated, just happens to be in the same area. It is there to show if, and how many, items you have marked for moderation. It can be useful in case you have something marked somewhere and forgot about it. Only moderators see it. It can be removed (at your own risk) but I would not advise it:Apparently that little check box doodacky is some sort of moderation fandangle and probably unrelated to the 'Mark read/Watch' dealies.
<xf:if is="$canInlineMod">
<xf:macro template="inline_mod_macros" name="button" />
</xf:if>
Trial and error mostly.How on Earth do you know all this mind boggling stuff?
Sir, you had me at "...risk)".It is unrelated, just happens to be in the same area. It is there to show if, and how many, items you have marked for moderation. It can be useful in case you have something marked somewhere and forgot about it. Only moderators see it. It can be removed (at your own risk) but I would not advise it:
Code:<xf:if is="$canInlineMod"> <xf:macro template="inline_mod_macros" name="button" /> </xf:if>
Trial and error mostly.
Easy - it's immediately above the stuff to remove in post #8 aboveSir, you had me at "...risk)".
It'll probably take a few years to locate where this code is buried, but as soon as I do.......it is definitely gone.
Far out! It's amazing anything holds together at all.Trial and error mostly.
Plenty of error so test thoroughly before doing template edits, also I advise make a note of what you have edited and why. Whenever there are upgrades to xenForo it is possible that the edited templates show up in a list templates that may need attention. Often you can just click on merge and your edits carry on in the revised (updated) template, but sometimes you need to redo the edits.
Mr Lucky sir, I feel it is justified that I ought to be compensating you.Easy - it's immediately above the stuff to remove in post #8 above
We use essential cookies to make this site work, and optional cookies to enhance your experience.