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.
The forum of the forums
3 posters

    Recent Topics Moving

    Grass Man
    Grass Man
    New Member


    Posts : 3
    Reputation : 1
    Language : English

    In progress Recent Topics Moving

    Post by Grass Man October 11th 2019, 10: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:

    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: Recent Topics Moving

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




    Recent Topics Moving Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Grass Man
    Grass Man
    New Member


    Posts : 3
    Reputation : 1
    Language : English

    In progress Re: Recent Topics Moving

    Post by Grass Man October 11th 2019, 10: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.
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    In progress Re: Recent Topics Moving

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

    hello

    can you put the link of that France thread please


      Current date/time is September 22nd 2024, 7:41 pm