MyBB Community Forums

Full Version: thanks plugin css - help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
{$stylesheets}
<!--[if IE 7]>
        <link type="text/css" rel="stylesheet" href="{$mybb->settings['bburl']}/images/intox/ie.css" />
<![endif]-->
<script type="text/javascript">
<!--
    var cookieDomain = "{$mybb->settings['cookiedomain']}";
    var cookiePath = "{$mybb->settings['cookiepath']}";
    var cookiePrefix = "{$mybb->settings['cookieprefix']}";
    var deleteevent_confirm = "{$lang->deleteevent_confirm}";
    var removeattach_confirm = "{$lang->removeattach_confirm}";
    var loading_text = '{$lang->ajax_loading}';
    var saving_changes = '{$lang->saving_changes}';
    var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
    var my_post_key = "{$mybb->post_code}";
    var imagepath = "{$theme['imgdir']}";
// -->
</script>
{$newpmmsg}
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/intox/fancyCollapses.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/intox/tipTip.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/intox/jquery.cookie.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/intox/theme-js.js"></script>
<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.multiquote').click(function() {
    if($(this).hasClass('multiquote_on')) {
        $(this).removeClass('multiquote_on');
    } else {
        $(this).addClass('multiquote_on');
    }
});
});
</script>	{$newpmmsg}
Can you paste

<script type="text/javascript" src="jscripts/thx.js"></script>

above newpmmsn variable (in headerinclude) (Note: this is for this thanks - plugin http://mods.mybb.com/view/thanks).
Above means "above" only newpmsng or near others scripts codes?
wherever you want the call has on headerinclude only, after all or at the begining or after a code you want, but the script has to be on headerinclude to be called.

This only adds the script and then run the mod by itself, anyway if you don't have the script have to work too but AJAX not work. Anyway if you change some values of buttons or images you have to add this changes to plugin script.
Just include it above {$newpmsng} variable only.
That var wont exist you may say {$newpmmsg}

but is the same if you include at the begining at all, or end, or at script end, it's only a call for a script, you can put on showthread only if you wish to use only on that events and have to work, but on headerinclude the call persist to this file, you can verify if you have to source code and then clic it, content of this file have to show.

I use this same script but modified on some things, and have to work, i tested and goes fine at all if you put as Johnny S says or as i say and i can probe it, because it's only a call of that file, cheers.

NOTE: about that this var is duplicated and i thing shows 2 pm message bars...
Guys, if you want I give u a Test accounts to check all because I think that it's better.
<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1603"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
{$stylesheets}
<!--[if IE 7]>
        <link type="text/css" rel="stylesheet" href="{$mybb->settings['bburl']}/images/intox/ie.css" />
<![endif]-->
<script type="text/javascript">
<!--
    var cookieDomain = "{$mybb->settings['cookiedomain']}";
    var cookiePath = "{$mybb->settings['cookiepath']}";
    var cookiePrefix = "{$mybb->settings['cookieprefix']}";
    var deleteevent_confirm = "{$lang->deleteevent_confirm}";
    var removeattach_confirm = "{$lang->removeattach_confirm}";
    var loading_text = '{$lang->ajax_loading}';
    var saving_changes = '{$lang->saving_changes}';
    var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
    var my_post_key = "{$mybb->post_code}";
    var imagepath = "{$theme['imgdir']}";
// -->
</script>
<script type="text/javascript" src="jscripts/thx.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/intox/fancyCollapses.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/intox/tipTip.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/intox/jquery.cookie.js"></script>
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/intox/theme-js.js"></script>
<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.multiquote').click(function() {
    if($(this).hasClass('multiquote_on')) {
        $(this).removeClass('multiquote_on');
    } else {
        $(this).addClass('multiquote_on');
    }
});
});
</script>
{$newpmmsg}

You can use that code, as you can see i put the script to replace the newpmmsg var duplicated. You can use as you wish and have to work, but anyway you can send to Johnny S or another user an account test to see how it works and posible conflicts between your codes, because sometimes is anothe calling i can see that because in my last theme i have to recode some peaces to make full cunctionabillity with jQuery and other scripts and no conflict between JSON and jQuery.

You can send to Johnny or me if you wish a test account to your forum and your url to see what can be the conflict.
Changed the headerinclude and I sent you a test account via pm.
I check it out but have no activation yet to this account and i can't do anything, but i review some parts of your code and there's a conflict in some parts, but i can not test nothing yet without an account.

You call thankyoulike script and so thanks script, theres no troubles, because thanyoulike would not exist, the problem instead on your jQuery, that because some things would not work fine, when you change your code you can use any mod as you wish xD. But for now i can't do anything.

EDIT: Well i see it's a paid theme, and i can post on other categories i see, but i only have to use your thras to post and delete and post and test only, well i try to anallize when o have this.

EDIT 2: I see your code and has no visible errors, well for quickreply you don't call thread.js on your template, about other issues that's because you have some kind of trouble with another plugin or code mod, that's for sure, you can ask at template creator about that and plugins creators with posible conflicts, i know newpoints causes conflict between thanks mod. But you can edit some values when you see it xD.

Cheers.
Pages: 1 2 3