MyBB Hacks

Full Version: Avoid showing "Quote" button on 1st post of thread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi. I hope to be able to find a solution to this nuisance. I have to qualify that nuisance variable. I am sick and tired of members quoting the first post of a thread since we post longish tutorials on that post, so we'd like to avoid people quoting said 1st post.

Is there a plugin, script, etc, that will hide the "Quote" button from the first post of a thread ONLY?

Thanks very much for your assistance.
You can install PHP in Templates / Complex Templates or Template Conditionals plugin.
Use this condition in your postbit_quote button (depends on your theme):

HTML Code
<if $post['pid'] != $GLOBALS['thread']['firstpost'] then>
....
</if>


For example (based on the default MyBB 1.8* template):

HTML Code
<if $post['pid'] != $GLOBALS['thread']['firstpost'] then>
	<a href="newreply.php?tid={$tid}&amp;replyto={$post['pid']}" title="{$lang->postbit_quote}" class="postbit_quote"><span>{$lang->postbit_button_quote}</span></a>
</if>


You can do that also for postbit_multiquote template if you want.

Other alternative is by using CSS.

Thanks a lot. I'll give your suggestion a go.
Reference URL's