rejetto forum

Terayon template: server stats. Shoutbox hidden by default

Guest · 6 · 6096

0 Members and 1 Guest are viewing this topic.

Steven

  • Guest
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


Offline Giant Eagle

  • Moderator
  • Tireless poster
  • *****
    • Posts: 535
  • >=3 RAWR!
    • View Profile
    • RAWR-Designs.com
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".


Steve

  • Guest
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.


Offline Giant Eagle

  • Moderator
  • Tireless poster
  • *****
    • Posts: 535
  • >=3 RAWR!
    • View Profile
    • RAWR-Designs.com
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.


Steve

  • Guest
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 ;)


Steve

  • Guest
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 ;)