Logged Out
Create an Account
Login:
Password:

Forgot your password?
Getting rid of right side menus on forum page.

Getting rid of right side menus on forum page.
[Back to Index]
Thread Tags
Primary: [General]
Secondary: None

Hi Chops, I want to get rid of the right side menus every time you go to the forums page, how can this be done?

I only want it gone when you visit the forums, but have them remain on all other pages.


--
http://themis.dkpsystem.com/
Eek! This can only be done through javascript and advanced layout options. It would have to be something that checks the url of the page for "forum.php" and if so, either hide the right menu, or print them on the left or whatever.


--
It's all in the reflexes.
Quote by Chops
Eek! This can only be done through javascript and advanced layout options. It would have to be something that checks the url of the page for "forum.php" and if so, either hide the right menu, or print them on the left or whatever.


AKA... forget about it

Thanks for the quick reply though. Lova ya lots!


--
http://themis.dkpsystem.com/
Hey Kris.

I don't mind making a quick script to do this for you (If you know scripting, it's really rather easy), but you'll have to make some very slight changes to the Advanced Layout Options.

If you're up for that, I can go ahead and do it for you.

Let me know.
Quote by Noblekain
Hey Kris.

I don't mind making a quick script to do this for you (If you know scripting, it's really rather easy), but you'll have to make some very slight changes to the Advanced Layout Options.

If you're up for that, I can go ahead and do it for you.

Let me know.


Hey i would love that, if it's not too much trouble


--
http://themis.dkpsystem.com/
Quote
Hey Kris.

I don't mind making a quick script to do this for you (If you know scripting, it's really rather easy), but you'll have to make some very slight changes to the Advanced Layout Options.

If you're up for that, I can go ahead and do it for you.

Let me know.



First, Add the following inside the <HEAD> tag at the top of the Html Layout page:

<Script language="Javascript">
function Page_OnLoad() {
var sPage = window.location.href
if (sPage.indexOf('forum.php') != -1 || sPage.indexOf('viewthread.php') != -1) {
document.getElementById('TdRightMenu').style.display = 'none';
}
}
</Script>




=========================================================

Next add the following to your <Body> tag near the top of the page.


<Body onload="Page_OnLoad()">



=========================================================

Finally, find the below code, and add the text marked in Red.

<center>
<span class=copyright>
Content of this site is &copy; 2007 Themis unless otherwise stated<br>
Part of the <a href="http://www.dkpsystem.com" target=_blank KPSystem.com</a> Network.<br>
&copy; 2001-2007 <a href="http://www.sigma-star.com" target=_blank>Sigma Star Systems</a>. All Rights Reserved.
</span>
</center>
</td>
<td id="TdRightMenu" valign=top width=167 align=left style='width:167px'>



=========================================================

Note, that the Copyright info is actually represented by a PHP tag called something like <!--System:Copyright-->. When you find that, it should point you in the proper direction. Without being able to see your layout sheet I can't tell you for sure.

Good Luck!
Dude!!! it worked!!!

Your're the best thanks so much


--
http://themis.dkpsystem.com/
Quote by Kris
Dude!!! it worked!!!

Your're the best thanks so much


Heehee, No problem. Glad it worked out for you


[Back to Index]