• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Layout - Gesior ACC menu bug

Believer

Aashora.net
Joined
Aug 26, 2010
Messages
423
Reaction score
7
Location
Far away from home.
Hello, when i enter my url the menu pops up like this..

ScOe9.png


... With news, game guide & support menus open..

Why is that? i want them to be closed when entering the site except news menu.

Anyone? I have been searching in layout.php and .css but cant find it :S

Thanks!
 
PHP:
			function LoadMenu()
			{
				document.getElementById("submenu_"+activeSubmenuItem).style.color = "#000000";
				document.getElementById("ActiveSubmenuItemIcon_"+activeSubmenuItem).style.visibility = "visible";
				if(self.name.lastIndexOf("&") == -1) 
				{
					self.name = "news=1&library=0&community=0&forum=0&account=0&shops=0<?PHP if($config['site']['shop_system'] > 1) echo "&support=0"; ?>&";
				}
				FillMenuArray();
				InitializeMenu();
			}

			function SaveMenu()
			{
				if(unloadhelper == false) 
				{
					SaveMenuArray();
					unloadhelper = true;
				}
			}
.css file or into your layout you got this code


put corresponding menus to be closed at this code..

1 = true
0 = false

"news=1" (open)
"community=0" (closed)


(line 8 of the code)​
PHP:
self.name = "news=1&library=0&community=0&forum=0&account=0&shops=0<?PHP if($config['site']['shop_system'] > 1) echo "&support=0"; ?>&";


Done? Post result.. :D
 
Last edited:
It worked, but one other thing with that is when i enter http://localhost/?subtopic=terms & press on i agree button then the whole menu comes up..

Any clue how to change that?:eek:

fyxuj.png


for that button i use this code..
<center><form action="/?subtopic=downloads" method="post">
<input value="I Agree" type="submit">
</form>
<center><form action="/index.php" method="post">
<input value="I Disagree" type="submit">
</form>

EDIT: Noticed that only registred subtopics on layout.php will work to press on without that pop up. But if it isnt registred in layout.php then the whole menu list shows up.

EDIT: nvm..
 
Last edited:
Is the subtopic "downloads" and "terms" registered? (in index.php not at the layout.php)

PHP:
<center><form action="/?subtopic=downloads" method="post">
<input value="I Agree" type="submit">
</form>
<center><form action="/?subtopic=latestnews" method="post">
<input value="I Disagree" type="submit">
</form>
 
PHP:
			function LoadMenu()
			{
				document.getElementById("submenu_"+activeSubmenuItem).style.color = "#000000";
				document.getElementById("ActiveSubmenuItemIcon_"+activeSubmenuItem).style.visibility = "visible";
				if(self.name.lastIndexOf("&") == -1) 
				{
					self.name = "news=1&library=0&community=0&forum=0&account=0&shops=0<?PHP if($config['site']['shop_system'] > 1) echo "&support=0"; ?>&";
				}
				FillMenuArray();
				InitializeMenu();
			}

			function SaveMenu()
			{
				if(unloadhelper == false) 
				{
					SaveMenuArray();
					unloadhelper = true;
				}
			}
.css file or into your layout you got this code


put corresponding menus to be closed at this code..

1 = true
0 = false

"news=1" (open)
"community=0" (closed)


(line 8 of the code)​
PHP:
self.name = "news=1&library=0&community=0&forum=0&account=0&shops=0<?PHP if($config['site']['shop_system'] > 1) echo "&support=0"; ?>&";


Done? Post result.. :D

Ye it works only on google chrome & ie is what i noticed..
not on safari, mozilla!

Any ideas how to fix?
 
Back
Top