Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 8 Years, 11 Months ago [General] Multiquote button
#1
Solved: 8 Years, 11 Months ago
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?
.m.  Very helpful staff member, very knowledgeable.
#2
Solved: 8 Years, 11 Months ago
bumping
.m.  Very helpful staff member, very knowledgeable.
#3
Solved: 8 Years, 11 Months ago
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?)
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


#4
Solved: 8 Years, 11 Months ago
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.
.m.  Very helpful staff member, very knowledgeable.
#5
Solved: 8 Years, 11 Months ago
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.
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


#6
Solved: 8 Years, 11 Months ago
(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.
.m.  Very helpful staff member, very knowledgeable.
#7
Solved: 8 Years, 11 Months ago
Multiquote PNG. They should be gif format - unless the js is modified to accept png format. There is a tutorial somewhere about that....
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


#8
Solved: 8 Years, 11 Months ago
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.
.m.  Very helpful staff member, very knowledgeable.
#9
Solved: 8 Years, 11 Months ago
Lol. Anyway, here we go if you get bored on a wet Sunday afternoon:

http://community.mybb.com/thread-120533-...#pid873660
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


#10
Solved: 8 Years, 11 Months ago
Thanks Leefish, appreciate it Smile
.m.  Very helpful staff member, very knowledgeable.


Forum Jump:


Users browsing this thread: 1 Guest(s)