Moving Latest Topics V5 above widgets Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
3 posters

    Moving Latest Topics V5 above widgets

    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    Solved Moving Latest Topics V5 above widgets

    Post by FrOsTyXi December 16th 2014, 3:35 am

    Hello was wondering if i can get some help moving my latest topic v5 above my widgets? here is a pic

    Moving Latest Topics V5 above widgets Testa10

    If i need to provide my template i shall.

    PunBB

    Forum TPSN

    Thank you in adavnce
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Moving Latest Topics V5 above widgets

    Post by Ange Tuteur December 16th 2014, 8:20 am

    Hello,

    Try this :
    Go to Administration Panel > Modules > JavaScript codes management > Create a new script

    Title : Your choice
    Placement : In the homepage
    Code:
    $(function() {
      var a = document.getElementById('left');
      a.parentNode.insertBefore(a,a.parentNode.firstChild);
    });
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    Solved Re: Moving Latest Topics V5 above widgets

    Post by FrOsTyXi December 16th 2014, 1:10 pm

    No sir that didn't work still in the same place.

    Edit: Been thinking about it maybe if we move the home page message to the bottom of the recent topics v5 that will fix the issue. What's your thought?

    Just thinking that is part of the original template.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Moving Latest Topics V5 above widgets

    Post by Ange Tuteur December 16th 2014, 11:46 pm

    Where is your recent topics installed ? When I check, it's where the widgets would be, the left column.

    Try Installing it again, but tick in all the pages.
    Code:
    $(function() {
      var a = document.getElementById('left');
      a.parentNode.insertBefore(a,a.parentNode.firstChild);
    });
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    Solved Re: Moving Latest Topics V5 above widgets

    Post by FrOsTyXi December 16th 2014, 11:53 pm

    Ok the script is in place and the left widgets make up the recent topics v5 cell i found a red </div> in the template could that be causing a issue?

    I also added the right widgets as well.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Moving Latest Topics V5 above widgets

    Post by Ange Tuteur December 16th 2014, 11:57 pm

    It could, I would try to figure out what is causing it. Sometimes it's just an extra tag that you may have left by mistake and can delete.
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    Solved Re: Moving Latest Topics V5 above widgets

    Post by JScript December 17th 2014, 12:02 am

    @FrOsTyXi

    Try this code with placement only In the home page:
    Code:

     if (location.pathname == "/") {
        var latestTopic = setInterval(function() {
           if (document.getElementById("left") !== null) {
              clearInterval(latestTopic);
              $('#left').detach().prependTo('#wrapper');
           }
        }, 80);
     }

    JS
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    Solved Re: Moving Latest Topics V5 above widgets

    Post by FrOsTyXi December 17th 2014, 12:09 am

    Ok JScript that place the recent topics v5 cell above my shoutbox is there a way to get it below it?
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    Solved Re: Moving Latest Topics V5 above widgets

    Post by JScript December 17th 2014, 12:23 am

    FrOsTyXi wrote:Ok JScript that place the recent topics v5 cell above my shoutbox is there a way to get it below it?
    Try:
    Code:

    if (location.pathname == "/") {
       var latestTopic = setInterval(function() {
          if (_userdata.session_logged_in !== null) {
             if (_userdata.session_logged_in) {
                if (document.getElementById("chatbox_top") !== null) {
                   if (document.getElementById("left") !== null) {
                      clearInterval(latestTopic);
                      $('#left').detach().insertAfter('#chatbox_top');
                   }
                }
             } else {
                if (document.getElementById("left") !== null) {
                   clearInterval(latestTopic);
                   $('#left').detach().prependTo('#wrapper');
                }
             }
          }
       }, 80);
    }

    JS
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    Solved Re: Moving Latest Topics V5 above widgets

    Post by FrOsTyXi December 17th 2014, 12:30 am

    that made recent topics v5 disappear completely.

    @JScript
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    Solved Re: Moving Latest Topics V5 above widgets

    Post by JScript December 17th 2014, 12:32 am

    @FrOsTyXi

    Okay, try again because I wrote a "t" where should not !!!

    Link: https://help.forumotion.com/t137481-moving-latest-topics-v5-above-widgets#929300

    JS
    FrOsTyXi
    FrOsTyXi
    Forumember


    Male Posts : 460
    Reputation : 12
    Language : english

    Solved Re: Moving Latest Topics V5 above widgets

    Post by FrOsTyXi December 17th 2014, 12:35 am

    That's perfect! Thank you @JScript and @Ange Tuteur!

    Regards
    FrOsTyXi
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Moving Latest Topics V5 above widgets

    Post by Ange Tuteur December 17th 2014, 12:54 am

    Thanks for the help JScript.

    Topic archived