May to bots, guests etc.
Display only the first post.
It has been asked to me to write something like this and i executed in few steps, hooking into the
viewtopic_modify_post_data
event which seem to be the good one for the scope.Questions: i do not want to follow on adding more code for event listeners that will hide this: as you can see, the result by setting all posts except the first as hidden
$v['hide_post'] = 1; // set as hidden all posts except the first (the lower post ID)
produce the result above.
Adding an asort in some ways, always return the right result despite the user's chosen mode to view the topic (ascendant or descendant).
Any idea? It is good by the way done in this way, the result is acceptable, but i would like to cut off all rows instead.
I will see if it is possible without hooking somewhere else. But it is 40degree around, so as it will be more comfortable!
May it is good this way, so that it can be possible to replace the hidden post's content, with something like:
Let see what best.if you were registered you would be able to see this content
Second question:
is there around something doing this already?
Cheers!
[EDITED]