by 10spetter10 January 29th 2016, 12:29 pm
My guess is that you can't change this with template modifications, so it needs to be done with js. I'm not the best with js but this seems to work (placing on the subforums):
- Code:
$(function() {
var storage = window.localStorage;
var cacheTime = 24*60*60*1000;
// controleer of storage bestaat
if (storage.forumDesc && storage.forumDescExp > +new Date - cacheTime) addDescription();
else loadDescription();
function addDescription() {
$('body').append('<div id="temp2">'+storage.forumDesc+'</div>');
var id = $(location).attr('pathname').substring(1).split('-');
$('#plus_menu').closest('table').after('<div id="forumdesc"></div>');
$('#forumdesc').html($('#temp2 #'+id).text());
$('#temp2').remove();
};
function loadDescription() {
$('body').append('<div id="temp"></div><div id="storage"></div>');
$('#temp').load('/forum .hierarchy a, .hierarchy + .genmed',function(){
$('#temp > a').each(function(){
var url = $(this).attr('href').substring(1).split('-');
var id = url[0];
$('#storage').append('<span id="'+ $(this).attr('href').substring(1).split('-')[0] +'">'+$(this).next().text()+'</span>');
});
if (storage) storage.forumDesc = $('#storage').html(), storage.forumDescExp = +new Date;
$('#temp, #storage').remove();
addDescription();
});
};
});
There might be a more efficient way but then again, I'm not super with js.
You can edit the box of the description with this tag in css:
.