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.

Making the sub-forum be on top

View previous topic View next topic Go down

Making the sub-forum be on top

Post by middo2 on September 12th 2010, 4:41 pm

You know how on this help forum, the Forum Reviews Forum has a sub forum inside it and it's on top of the Forum Review Page? How do you do that?

I tried doing that on my forum but the sub-forum goes on the bottom.

middo2
Forumember

Posts : 503
Reputation : 5
Language : English

http://newhorizons.englishboard.net

Back to top Go down

Re: Making the sub-forum be on top

Post by Guest on September 12th 2010, 5:54 pm

This is a bug in the forumotion version of IPB2/Invision. But it can be fixed with a simple script.

Go to your Admin Control Panel, General, Categories and Forums. For every group of subforums, put this code in the description of the last subforum of the group:

Code:
<script type="text/javascript"><!--
function swapsub() {var x=0;var y=0;var cn=document.getElementById('main-content');for (i=0; i<cn.childNodes.length; i++) {if (cn.childNodes[i].tagName=='UL') {x=i+1;}if (cn.childNodes[i].className=='borderwrap' && cn.childNodes[i].childNodes[0].className=='maintitle floated clearfix') {y=i;}}if (y!=0) {cn.childNodes[y].style.marginTop='25px';cn.insertBefore(cn.childNodes[y],cn.childNodes[x]);}document.getElementById('main-content').style.visibility='visible';}document.getElementById('main-content').style.visibility='hidden';if (window.attachEvent) {window.attachEvent("onload", swapsub);}else if (window.addEventListener) {window.addEventListener("load", swapsub, false);}
--></script>
Of course, a better fix would be for someone at forumotion to correct the bug in the PHP template. But I guess they're too busy to spend the 2-3 minutes that it would take to fix this...

Guest
Guest


Back to top Go down

Re: Making the sub-forum be on top

Post by middo2 on September 12th 2010, 8:18 pm

Thanks a lot Dion!!

And yes, I too wish that forumotion would fix this small bug.

middo2
Forumember

Posts : 503
Reputation : 5
Language : English

http://newhorizons.englishboard.net

Back to top Go down

Re: Making the sub-forum be on top

Post by Tezza1 on October 7th 2010, 7:50 pm

I have the same problem as the above.
Some of my sub forums are above and others are below. There is no logic to it at all.

I have tried the above solution but unfortunately it hasn't worked on my forum.

I wonder if anyone can take a look and give me some advice please?
Thanks in advance.

My forum is: http://find-madeleine.forumotion.net/forum.htm

Tezza1
Forumember

Posts : 38
Reputation : 0
Language : English

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