Recent Topics Moving
3 posters
Page 1 of 1
Recent Topics Moving
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: ;
}
Re: Recent Topics Moving
Maybe this will archive what you what: https://help.forumotion.com/t90639-latest-topics-new-system#583553
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Recent Topics Moving
Hello! Sorry I don't really know about coding, but to be more clear I want to move the recent topics widget from the portal or the widget.
I tried the below for taking it from the portal but it didn't work either.
https://i.servimg.com/u/f39/09/03/38/36/linak10.png For an example of what I mean. I don't mind it just being in the heading either. Thanks.
I tried the below for taking it from the portal but it didn't work either.
- Code:
<marquee scrollamount="1" direction="up" behavior="scroll">
<div id="recent-topics">
</div><script type="text/javascript">jQuery.get('/portal.forum?pid=1',function(data){jQuery('#recent-topics').html(jQuery(data).find('#comments_scroll_div').html());});</script>
</marquee>
https://i.servimg.com/u/f39/09/03/38/36/linak10.png For an example of what I mean. I don't mind it just being in the heading either. Thanks.
Similar topics
» Change Recent Topics widget to Recent Posts?
» A selected topics bar like the one of recent topics
» Recent Topics bug
» Recent topics
» Recent topics layout
» A selected topics bar like the one of recent topics
» Recent Topics bug
» Recent topics
» Recent topics layout
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum