MyBB Community Forums

Full Version: Multi-quote Buttons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Anyone know how to make it so that when you select a multi-quote button, it shows a different image to let the user know they have clicked it for quoting?

Asking on behalf of: http://chroniclesofthedas.draebox.com
it shows a different image in the default theme. [Image: postbit_multiquote.gif] changes to [Image: postbit_multiquote_on.gif] - which theme you are using ?
I'm trying to make it so that when the user has clicked the multi-quote button to quote a post, it changes the image so that the button signals that it will be quoted.

This is the MyBB default for the Post Bit Template, postbit_multiquote:
<a href="javascript:Thread.multiQuote({$post['pid']});" style="display: none;" id="multiquote_link_{$post['pid']}"><img src="{$theme['imglangdir']}/postbit_multiquote.gif" alt="{$lang->postbit_multiquote}" title="{$lang->postbit_multiquote}" id="multiquote_{$post['pid']}" /></a>
<script type="text/javascript">
//<!--
	$('multiquote_link_{$post['pid']}').style.display = '';
// -->
</script>

This is the coding for my skin I have made for them that needs the multi-quote edit so that it changes the button when a post has been selected for quoting with the multi-quote. Does anyone know how to code it so that once selected the image is swapped for another?

<a href="javascript:Thread.multiQuote({$post['pid']});" style="display: none;" id="multiquote_link_{$post['pid']}"><img src="http://i6.photobucket.com/albums/y244/j9wolf/COTSkin1/COT1_multiquote.png" alt="{$lang->postbit_multiquote}" title="{$lang->postbit_multiquote}" id="multiquote_{$post['pid']}" /></a>
<script type="text/javascript">
//<!--
	$('multiquote_link_{$post['pid']}').style.display = '';
// -->
</script>