MyBB Community Forums

Full Version: Multiquote button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,

The multiquote button on my forums does not change when pressed it remains the same as if it was not pressed.

Any ideas how to fix this?
bumping
Are you using a custom theme? Do you see this behaviour in the default theme? Is the post quoted, but just no button change?

If the post quotes but the button does not change color then your custom theme is probably using the same button for both the on and off states of multiquote (css buttons?)
Silly question Lee, my minds gone blank, where would I find this CSS? I have the 2 images but they may not be defined correctly like you say.
Sorry, badly phrased.

It could be that your theme is using css buttons - and css buttons won't change state on click unless the javascript is also modified. The way to see if that is the case is to go to your theme templates and look in the postbit_multiquote template.

If there is a reference to images then you are not using true css buttons. You then need to look in the images directory for your theme and see if there are two images present - postbit_multiquote and postbit_multiquote on. They should of course be different.

If you are using css buttons then there will be no reference to an image in the template OR the css is "half-right" and the image is there but does not change on click.

Post the contents of that template.
(2012-11-18, 11:57 PM)Leefish Wrote: [ -> ]Sorry, badly phrased.

It could be that your theme is using css buttons - and css buttons won't change state on click unless the javascript is also modified. The way to see if that is the case is to go to your theme templates and look in the postbit_multiquote template.

If there is a reference to images then you are not using true css buttons. You then need to look in the images directory for your theme and see if there are two images present - postbit_multiquote and postbit_multiquote on. They should of course be different.

If you are using css buttons then there will be no reference to an image in the template OR the css is "half-right" and the image is there but does not change on click.

Post the contents of that template.

<a href="javascript:Thread.multiQuote({$post['pid']});" style="display: none;" id="multiquote_link_{$post['pid']}"><img src="{$theme['imglangdir']}/postbit_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>

I have the 2 images in the images folder.

Edit, Sorry I've not posted it in php tags, it stretched the page too much.
Multiquote PNG. They should be gif format - unless the js is modified to accept png format. There is a tutorial somewhere about that....
I renamed the images on the server from .png to .gif and changed the .png in above code to .gif and it's fixed the issue. Smile

Lazy I know but sod it Toungue

Appreciate your help.
Lol. Anyway, here we go if you get bored on a wet Sunday afternoon:

http://community.mybb.com/thread-120533-...#pid873660
Thanks Leefish, appreciate it Smile