The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Recent Topics Moving

3 posters

Go down

In progress Recent Topics Moving

Post by Grass Man October 11th 2019, 8:33 pm

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
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:

Grass Man
Grass Man
New Member

Posts : 3
Reputation : 1
Language : English

https://testgoesboom.forumactif.com

Back to top Go down

In progress Re: Recent Topics Moving

Post by SLGray October 11th 2019, 8:40 pm



Recent Topics Moving Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51555
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Recent Topics Moving

Post by Grass Man October 11th 2019, 8:54 pm

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.

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.
Grass Man
Grass Man
New Member

Posts : 3
Reputation : 1
Language : English

https://testgoesboom.forumactif.com

Back to top Go down

In progress Re: Recent Topics Moving

Post by skouliki October 13th 2019, 6:02 am

hello

can you put the link of that France thread please
skouliki
skouliki
Manager
Manager

Female Posts : 15391
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum