Quantcast
Channel: MyBB Community Forums - Tutorials
Viewing all articles
Browse latest Browse all 690

Multiquote button fix (without jQuery)

$
0
0
For sibling selector fix open postbit_multiquote template and replace all content with

Code:
<a href="javascript:Thread.multiQuote({$post['pid']});" class="postbit_button" 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']}" style="display:none;" /><span></span>Quote</a>
<script type="text/javascript">
//<!--
    $('multiquote_link_{$post['pid']}').style.display = '';
// -->
</script>

and in your showthread.css (that is used by your theme) add:

Code:
img[src*="postbit_multiquote.gif"] ~ span:before {
  
}

img[src*="postbit_multiquote_on.gif"] ~ span:before {
   content:"+";
}

and save it.

When you quote someone in a post (using multiquote) you'll get "+" before "Quote" text that is indicating that that post is quoted.


Result:

[Image: 18R7mp1.png]

[Image: tF53n4y.png]

Remember to upload two transparent (1px x 1px, from postbit.zip) gif files into your theme image folder.

.zip  postbit.zip (Size: 418 bytes / Downloads: 9)

Viewing all articles
Browse latest Browse all 690

Trending Articles