So, I want to move the recent topics widget to a table or if need be just on the heading. It's my understanding the widget needs to be generated first, but if it doesn't that's fine too.
These codes are open for use on French Forumotion but I don't know how to translate the codes to work for English as well.
Where to put it
Javascript
CSS
Untranslated (I don't speak French but people there speak English and are credited on use).
These codes are open for use on French Forumotion but I don't know how to translate the codes to work for English as well.
Where to put it
- Code:
<div id="recent_topics"></div>
Javascript
- Code:
$(function(){
/*Path for phpBB3, Invision and PunBB*/
var pour_phpbb3_invision_punbb = '#left .module:first .js-marquee:first';
/*Path for phpBB2*/
var pour_phpbb2 = '#left .forumline:first .js-marquee:first';
/*Get the content of the latest topics with the paths*/
var widget_recent_topics = $(pour_phpbb2 + ',' + pour_phpbb3_invision_punbb).html();
/*We add the content of the last subjects in the block where we want them to be*/
$('#recent_topics').html(widget_recent_topics);
});
CSS
- Code:
/*Removes widgets column*/
#left {
display: none;
}
/*Customize the content of the latest topics*/
#recent_topics {
width: ;
}
Untranslated (I don't speak French but people there speak English and are credited on use).
- Spoiler:
- Where to put it
- Code:
<div id="derniers_sujets"></div>
Javascript
- Code:
$(function(){
/*Chemin pour phpBB3, Invision et PunBB*/
var pour_phpbb3_invision_punbb = '#left .module:first .js-marquee:first';
/*Chemin pour phpBB2*/
var pour_phpbb2 = '#left .forumline:first .js-marquee:first';
/*Aller chercher le contenu des derniers sujets avec les chemins*/
var widget_derniers_sujets = $(pour_phpbb2 + ',' + pour_phpbb3_invision_punbb).html();
/*On ajoute le contenu der derniers sujets dans le bloc où on veut qu'ils soient*/
$('#derniers_sujets').html(widget_derniers_sujets);
});
CSS
- Code:
/*Fait disparaître la colonne des widgets*/
#left {
display: none;
}
/*Personnaliser le contenu des derniers sujets*/
#derniers_sujets {
width: ;
}