Current time: 07-25-2014, 03:57 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 3 Vote(s) - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CSS Buttons for 1.X
04-02-2012, 09:22 AM (This post was last modified: 04-03-2012 04:43 AM by brianmccoy.)
Post: #13
RE: CSS Buttons for 1.X
Hi Audentio
Thanks for this helpful tutorial, but there is a bit problem in multi-quote button. I copied the code in headerinclude template, CSS in global.css and the code for multi-quote you gave in the postbit_multiquote template.

The multi-quote button is working fine, but when I click/select the multi-quote button, it is not changing its color as desired. Its color remains same whether its selected or deselected. Where am I wrong??

now it is working with some tweaks
Put the following code at top of "header" template
Code:
<script type="text/javascript">
jQuery(document).ready(function($) {
if( $.cookie('multiquote') !== null ) {
    var quoted = $.cookie("multiquote");
    var quoted_split = quoted.split('|');
    jQuery.each(quoted_split, function() {
        $('#multiquote_link_' + this).addClass('multiquote_on');
    });
}
$('a.button_multiquote').click(function() {
    if($(this).hasClass('multiquote_on')) {
        $(this).removeClass('multiquote_on');
    } else {
        $(this).addClass('multiquote_on');
    }
});
});
</script>

And put this code in "headerinclude" template above {$stylesheets}
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.cookie.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/sidebar.js"></script>

@Audentio : also add a:hover.large_button besides a:hover.postbit_button in the CSS stylesheet
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
CSS Buttons for 1.X - Audentio - 03-12-2012, 02:21 PM
RE: CSS Buttons for 1.6 - Yaldaram - 03-12-2012, 02:31 PM
RE: CSS Buttons for 1.X - Euan T - 03-12-2012, 03:48 PM
RE: CSS Buttons for 1.X - crazy4cs - 03-12-2012, 04:12 PM
RE: CSS Buttons for 1.X - envira - 03-12-2012, 05:53 PM
RE: CSS Buttons for 1.X - Shemo - 03-12-2012, 09:41 PM
RE: CSS Buttons for 1.X - Audentio - 03-12-2012, 10:55 PM
RE: CSS Buttons for 1.X - envira - 03-13-2012, 02:04 AM
RE: CSS Buttons for 1.X - Audentio - 03-13-2012, 02:28 AM
RE: CSS Buttons for 1.X - envira - 03-13-2012, 06:55 AM
RE: CSS Buttons for 1.X - Audentio - 03-13-2012, 08:44 AM
RE: CSS Buttons for 1.X - Eric J. - 03-13-2012, 09:37 PM
RE: CSS Buttons for 1.X - brianmccoy - 04-02-2012 09:22 AM
RE: CSS Buttons for 1.X - JimR - 04-13-2012, 04:10 PM
RE: CSS Buttons for 1.X - Audentio - 04-13-2012, 09:23 PM
RE: CSS Buttons for 1.X - JimR - 04-14-2012, 09:14 AM
RE: CSS Buttons for 1.X - NBKTwitch - 04-20-2012, 02:19 PM
RE: CSS Buttons for 1.X - Sector - 05-26-2012, 11:30 AM
RE: CSS Buttons for 1.X - Audentio - 05-26-2012, 04:14 PM
RE: CSS Buttons for 1.X - Sector - 06-07-2012, 05:32 AM
RE: CSS Buttons for 1.X - rzr - 06-07-2012, 09:17 PM
RE: CSS Buttons for 1.X - Audentio - 06-07-2012, 09:24 PM
RE: CSS Buttons for 1.X - avril - 01-12-2013, 10:21 AM
RE: CSS Buttons for 1.X - Audentio - 01-12-2013, 05:36 PM
RE: CSS Buttons for 1.X - avril - 01-21-2013, 05:48 PM
RE: CSS Buttons for 1.X - Leefish - 01-12-2013, 05:39 PM
RE: CSS Buttons for 1.X - Audentio - 01-12-2013, 05:46 PM
RE: CSS Buttons for 1.X - Leefish - 01-21-2013, 05:56 PM
RE: CSS Buttons for 1.X - Yaldaram - 01-22-2013, 03:07 AM
RE: CSS Buttons for 1.X - Leefish - 01-22-2013, 03:17 AM
RE: CSS Buttons for 1.X - zaishen - 06-13-2013, 11:05 AM
RE: CSS Buttons for 1.X - Murder - 08-21-2013, 12:06 PM
RE: CSS Buttons for 1.X - J Greig - 01-02-2014, 01:16 AM
RE: CSS Buttons for 1.X - effone - 01-02-2014, 04:26 AM
RE: CSS Buttons for 1.X - J Greig - 01-02-2014, 04:41 AM
RE: CSS Buttons for 1.X - effone - 01-02-2014, 04:51 AM
RE: CSS Buttons for 1.X - J Greig - 01-02-2014, 04:54 AM
RE: CSS Buttons for 1.X - effone - 01-02-2014, 05:13 AM
RE: CSS Buttons for 1.X - Fireworks - 05-02-2014, 08:03 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication