Avoid showing "Quote" button on 1st post of thread
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Avoid showing "Quote" button on 1st post of thread
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.


12-24-2015 01:56 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Avoid showing "Quote" button on 1st post of thread - RateU - 12-24-2015 01:56 AM

 Standard Tools
Forum Jump: