rejetto forum

Terayon Proplem

Guest · 8 · 4380

0 Members and 1 Guest are viewing this topic.

Jake

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


Offline westwoon

  • Occasional poster
  • *
    • Posts: 18
    • View Profile
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  ;)


Offline Giant Eagle

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


Offline fishingkid

  • Occasional poster
  • *
    • Posts: 9
    • View Profile
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


Offline Giant Eagle

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


Offline TSG

  • Moderator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
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.
« Last Edit: February 02, 2008, 07:00:05 PM by That_Stevens_Guy »


Offline fishingkid

  • Occasional poster
  • *
    • Posts: 9
    • View Profile

Offline Giant Eagle

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