rejetto forum

Software => HTML & templates => HFS ~ HTTP File Server => RAWR-Designs => Topic started by: Jake on January 24, 2008, 06:39:02 AM

Title: Terayon Proplem
Post by: Jake on January 24, 2008, 06:39:02 AM
Great Template but a couple of minor problems

By default when you load the Main Page the ["Server Statistics" and "Shout Box" ] frames are minimized by default how do i change that? i cannot find it in the code  :-[

THanks
Title: Re: Terayon Proplem
Post by: westwoon on January 24, 2008, 09:36:03 AM
Erm... u can play around with the terayon.jsp file, javascript coding that in the java folder. If not sure about to modifying the coding, please let me know. May be I can help out  ;)
Title: Re: Terayon Proplem
Post by: Giant Eagle on January 24, 2008, 10:42:23 AM
Code: (Terayon.js - line 142) [Select]
//--Initiate page changes.-----------------------//
function initiateChanges() {
dynPL();
altRowClr();
autoPlay();
ahah(1);
if (showSlideshow == true) gEBI("SlideShowLink").style.display = ""
if (getCookie("ModuleTable") == "pinned") hideShow("ModuleTable");
if (getCookie("ShoutBox") != "normal") hideShow("ShoutBox");
if (getCookie("ServerStatistics") != "normal") hideShow("ServerStatistics");
if (getCookie("ServerTraffic") == "pinned") hideShow("ServerTraffic");
if (getCookie("FolderOptions") == "pinned") hideShow("FolderOptions");
}

the last 5 if statements define the default values

getCookie("module name here") == "pinned" means that it is shown by default
getCookie("module name here") != "normal" means that it is hidden by default.

if you want them all to be visible by de fault, you will need this:

Code: (Terayon.js - line 142 || modified) [Select]
//--Initiate page changes.-----------------------//
function initiateChanges() {
dynPL();
altRowClr();
autoPlay();
ahah(1);
if (showSlideshow == true) gEBI("SlideShowLink").style.display = ""
if (getCookie("ModuleTable") == "pinned") hideShow("ModuleTable");
if (getCookie("ShoutBox") == "pinned") hideShow("ShoutBox");
if (getCookie("ServerStatistics") == "pinned") hideShow("ServerStatistics");
if (getCookie("ServerTraffic") == "pinned") hideShow("ServerTraffic");
if (getCookie("FolderOptions") == "pinned") hideShow("FolderOptions");
}
Title: Re: Terayon Proplem
Post by: fishingkid on February 01, 2008, 01:52:31 AM
i have tried Changing that section of the Terayon.js to the modified stuff but it didnt change anything  :(
i cleared my browser cache cookies and everything and still no luck
Title: Re: Terayon Proplem
Post by: Giant Eagle on February 01, 2008, 08:45:42 PM
Then you should try again, because that piece of code is the only code that is related to hiding and showing the modules on a page load. =\
Title: Re: Terayon Proplem
Post by: TSG on February 02, 2008, 06:23:39 AM
If you want the module to be hidden or shown by default on page load you need to fire the function.

It would be something like this. Make sure you place each one below below the associated module html otherwise it will not work.

<script type="text/javascript">hideShow("ServerStatistics");</script>

<script type="text/javascript">hideShow("ShoutBox");</script>

That way, when the page is loaded, the modules should be at the state you want.

That should do it, and why you didn't remember this GE i don't know lol.
Title: Re: Terayon Proplem
Post by: fishingkid on February 02, 2008, 06:14:16 PM
Thanks a lot i got it to work
Title: Re: Terayon Proplem
Post by: Giant Eagle on February 02, 2008, 08:37:32 PM
Great Template but a couple of minor problems

By default when you load the Main Page the ["Server Statistics" and "Shout Box" ] frames are minimized by default how do i change that? i cannot find it in the code  :-[

THanks

I thought that he ment it should be open as a default value, not always for every user :)