MyBB Community Forums
[General] Multiquote button - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: [General] Multiquote button (/thread-129569.html)



Multiquote button - MisterW - 2012-11-17

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?


RE: Multiquote button - MisterW - 2012-11-18

bumping


RE: Multiquote button - Leefish - 2012-11-18

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?)


RE: Multiquote button - MisterW - 2012-11-18

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.


RE: Multiquote button - Leefish - 2012-11-18

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.


RE: Multiquote button - MisterW - 2012-11-19

(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.


RE: Multiquote button - Leefish - 2012-11-19

Multiquote PNG. They should be gif format - unless the js is modified to accept png format. There is a tutorial somewhere about that....


RE: Multiquote button - MisterW - 2012-11-19

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.


RE: Multiquote button - Leefish - 2012-11-19

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

http://community.mybb.com/thread-120533-post-873660.html#pid873660


RE: Multiquote button - MisterW - 2012-11-19

Thanks Leefish, appreciate it Smile