The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Moving Latest Topics V5 above widgets

View previous topic View next topic Go down

Solved Moving Latest Topics V5 above widgets

Post by FrOsTyXi on 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



If i need to provide my template i shall.

PunBB

Forum TPSN

Thank you in adavnce

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Moving Latest Topics V5 above widgets

Post by Ange Tuteur on 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);
});

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Moving Latest Topics V5 above widgets

Post by FrOsTyXi on 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.

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Moving Latest Topics V5 above widgets

Post by Ange Tuteur on 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);
});

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Moving Latest Topics V5 above widgets

Post by FrOsTyXi on 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.

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Moving Latest Topics V5 above widgets

Post by Ange Tuteur on 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.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Moving Latest Topics V5 above widgets

Post by JScript on 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

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Solved Re: Moving Latest Topics V5 above widgets

Post by FrOsTyXi on 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?

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Moving Latest Topics V5 above widgets

Post by JScript on 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

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Solved Re: Moving Latest Topics V5 above widgets

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

that made recent topics v5 disappear completely.

@JScript

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Moving Latest Topics V5 above widgets

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

@FrOsTyXi

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

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

JS

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Solved Re: Moving Latest Topics V5 above widgets

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

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

Regards
FrOsTyXi

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Moving Latest Topics V5 above widgets

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

Thanks for the help JScript.

Topic archived

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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