rejetto forum

Software => HTML & templates => HFS ~ HTTP File Server => RAWR-Designs => Topic started by: Steven on May 06, 2009, 11:46:59 PM

Title: Terayon template: server stats. Shoutbox hidden by default
Post by: Steven on May 06, 2009, 11:46:59 PM
Hi everyone!
I've been looking through the HTML template and I can't find a way to make the "server statistics" and "Shoutbox" open by default. Anytime someone browses my HFS, they have to open the Shoutbox to see the posts.
Could anyone point me to where I can make them open by default?
Thanks in advance
Steve
Title: Re: Terayon template: server stats. Shoutbox hidden by default
Post by: Giant Eagle on May 07, 2009, 08:21:24 AM
Hey,

Browse to your local template folder and open the subdirectory called `code`. Open and modify the `terayon_main.js` file.

If you scroll down a bit, you will see the following section:

Code: [Select]
//Set module state according to cookie.
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");

Change the code accordingly:
- If a line contains !="normal", it will be hidden by default.
- If a line contains =="pinned", it will be displayed by default.

So in your case change all the lines to =="pinned".
Title: Re: Terayon template: server stats. Shoutbox hidden by default
Post by: Steve on May 08, 2009, 06:29:19 AM
Hi thanks for the tip.
Changed them to ==pinned still collapsed by default.
I'll look some more and post a fix if I find it.
Title: Re: Terayon template: server stats. Shoutbox hidden by default
Post by: Giant Eagle on May 08, 2009, 08:04:03 PM
Make sure you clear your browser cache and delete your cookies. See if they then still collapse by default.

Because that javascript file is the only thing that could possibly collapse these things by default, there is nothing else that handles their appearance.
Title: Re: Terayon template: server stats. Shoutbox hidden by default
Post by: Steve on May 10, 2009, 02:53:03 AM
Yes, I did do that. Firefox; tools --> clear all private data
and Ccleaner (for cookies)
Confirmed cookies cleaned by opening local forum, go back to my site and just the two modules in question are collapsed.
Been away for work the past couple days, I'll dig into it later and see if I can find a solution.
Thanks again ;)
Title: Re: Terayon template: server stats. Shoutbox hidden by default
Post by: Steve on May 10, 2009, 05:01:10 AM
I knew I would figure it out ;)
I had left the "!" at the beginning. It was "!==pinned" should have been "==pinned"
Thank you for your patience ;)