Ah that's the manual generation.
By automated I meant through the cron task.
Well I've been doing it manual then, how can I fix this? Do you have an old version?
Ah that's the manual generation.
By automated I meant through the cron task.
Oh wait, I see while inspecting network activity that you have a "script.js" file loaded that contains an old version of jquery bracket.
It's conflicting with my modified version.
That's most certainly the problem.
Do you know where that comes from ?
/*!
* jQuery Cookie Plugin v1.4.1
* https://github.com/carhartl/jquery-cookie
*
* Copyright 2006, 2014 Klaus Hartl
* Released under the MIT license
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// CommonJS
factory(require('jquery'));
} else {
// Browser globals
factory(jQuery);
}
}(function ($) {
var pluses = /\+/g;
function encode(s) {
return config.raw ? s : encodeURIComponent(s);
}
function decode(s) {
return config.raw ? s : decodeURIComponent(s);
}
function stringifyCookieValue(value) {
return encode(config.json ? JSON.stringify(value) : String(value));
}
function parseCookieValue(s) {
if (s.indexOf('"') === 0) {
// This is a quoted cookie as according to RFC2068, unescape...
s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
}
try {
// Replace server-side written pluses with spaces.
// If we can't decode the cookie, ignore it, it's unusable.
// If we can't parse the cookie, ignore it, it's unusable.
s = decodeURIComponent(s.replace(pluses, ' '));
return config.json ? JSON.parse(s) : s;
} catch(e) {}
}
function read(s, converter) {
var value = config.raw ? s : parseCookieValue(s);
return $.isFunction(converter) ? converter(value) : value;
}
var config = $.cookie = function (key, value, options) {
// Write
if (arguments.length > 1 && !$.isFunction(value)) {
options = $.extend({}, config.defaults, options);
if (typeof options.expires === 'number') {
var days = options.expires, t = options.expires = new Date();
t.setTime(+t + days * 864e+5);
}
return (document.cookie = [
encode(key), '=', stringifyCookieValue(value),
options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
options.path ? '; path=' + options.path : '',
options.domain ? '; domain=' + options.domain : '',
options.secure ? '; secure' : ''
].join(''));
}
// Read
var result = key ? undefined : {};
// To prevent the for loop in the first place assign an empty array
// in case there are no cookies at all. Also prevents odd result when
// calling $.cookie().
var cookies = document.cookie ? document.cookie.split('; ') : [];
for (var i = 0, l = cookies.length; i < l; i++) {
var parts = cookies[i].split('=');
var name = decode(parts.shift());
var cookie = parts.join('=');
if (key && key === name) {
// If second argument (value) is a function it's a converter...
result = read(cookie, value);
break;
}
// Prevent storing a cookie that we couldn't decode.
if (!key && (cookie = read(cookie)) !== undefined) {
result[name] = cookie;
}
}
return result;
};
config.defaults = {};
$.removeCookie = function (key, options) {
if ($.cookie(key) === undefined) {
return false;
}
// Must not alter options, thus extending a fresh object...
$.cookie(key, '', $.extend({}, options, { expires: -1 }));
return !$.cookie(key);
};
}));
$(document).on("ready", function(){
$('#console_select').on("change",function(){
// store console cookie, refresh
$.cookie("console", $('#console_select').val(), { path: '/', expires: 365 });
window.location = window.location.href;
});
$('#filterPlayerStats').on("click",function(e){
e.preventDefault();
window.location = '/rivals/stats/?pos=' + $(this).data('pos').toLowerCase() + '&page=1&order=' + $('#ordersort').val() + '&orderby=' + $('#orderby').val();
});
$('.pageNavStats').on("click",function(e){
e.preventDefault();
window.location = '/rivals/stats/?pos=' + $(this).data('pos').toLowerCase() + '&page=' + $(this).data('page') + '&order=' + $('#ordersort').val() + '&orderby=' + $('#orderby').val();
});
$('.ratingdonut').each(function(i, elem){
new Chart(document.getElementById($(elem).attr('id')).getContext("2d")).Doughnut([{value: ($(elem).data('rating')),color:'#1c89bb',highlight: "#FF5A5E"},{value: 100-($(elem).data('rating')),color:"#CCC"}], {responsive : false, showTooltips: false});
});
$('.wlddonut').each(function(i, elem){
new Chart(document.getElementById($(elem).attr('id')).getContext("2d")).Doughnut([{value: ($(elem).data('win')),color:'#1f8abb',highlight: "#1f8abb", label: "Win"},{value: $(elem).data('draw'),color:"#CCC", label: 'Draw'}, {value: $(elem).data('lost'),color:"#ff5a5e", label: 'Lose'}], {responsive : false, showTooltips: true});
});
$('.positionSpider').each(function(i, elem){
var data = {
labels: ["Goalkeeper", "Defence", "Midfield", "Attack", "Any"],
datasets: [
{
label: "My First dataset",
fillColor: "rgba(28, 137, 187,0.2)",
strokeColor: "rgba(28, 137, 187,1)",
pointColor: "rgba(28, 137, 187,1)",
pointStrokeColor: "#fff",
pointHighlightFill: "#fff",
pointHighlightStroke: "rgba(220,220,220,1)",
data: [$(elem).data('gk'),$(elem).data('def'),$(elem).data('mid'),$(elem).data('atk'),$(elem).data('any')]
}
]
};
var options = {
scaleBeginAtZero: false,
pointLabelFontFamily : "'Roboto'",
pointLabelFontStyle : "bold",
}
var myRadarChart = new Chart(document.getElementById($(elem).attr('id')).getContext("2d")).Radar(data, options);
});
});
No they are displaying now.
Though they now need some css tweaking.
For the team name color, try changing it using following css id:
div.jQBracket .teamContainer a.username
Don't forget to use !important, it might be needed.
What complete mess ? The bracket you shown looked mostly fine.
It's taking longer due to the offending add-on, which is not our fault.
We don't provide free support per skype, I am sorry.
Regarding the offending add-on, as I was telling in one of my previous message it's including the jquery-bracket javascript that we also use in our add-on but it's an old version. Ours is more recent and we also did some custom modification to it.
Clément
How do I show the full name, or team name? Instead of it being squashed.
https://www.fifaesport.net/forum/tournaments/team-bracket-test.3/
In that example the team name is being chopped I'd like it to show the full team name and or the username if this is possible?
Also on this page: https://www.fifaesport.net/forum/tournaments/
How do I change the block and text colour of the right hand block which currently looks silver?
First I would recommend you to decrease the font size as it's quite right now IMO.
The width of the box can't be changed unfortunately, we are using the default css from jquery-bracket third party script and it has some fixed size elements. But I think this sizes could be edited, tried quickly in a DOM inspector and that seems achievable.
You would need to edit the width of the following classes:
- div.jQBracket .team div.label: that's the width of the team name container
- div.jQBracket .team: that's the team row width, ie. the width of the container above + 30px (scores)
- div.jQBracket .round: that's the whole round size, same width that the team container
You edit the css template of the add-on ?
If not, you used !important ?