Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
Hi guys,

in the admin menu it happens sometimes that the frameset is not correct. within the mainframe the left adminmenu is coming up again etc.

To prevent the adminmenu from cascading open

###
### /admin/login.php
###

and find:
Code
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"><br /><html><br /><head><br /> 


add directly under this:
Code
  <script LANGUAGE="JavaScript" type="text/javascript"><br /><!--<br />if (self != top) top.location.href = window.location.href;<br />//--><br />


This will display the frameset always in the full browser window. Admin menu will display correct everytime...

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I don't think I have ever had this problem myself. Is there specific pages or browsers that this happens to?

Personally I have decided to to skip frame usage in the control panels that I have been creating for various projects. This is to make going from XHTML 1.0 to 1.1 a bit easier at some point.

Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
happens here if you click "entrance" while inside the admin panel

nice one jl


- Allen wavey
- What Drives You?
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
That may be from a missing $taget variable in the template. I'll have to look.

Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
make that $target... lol

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Yep, missing $target, fixed now.

Joined: Aug 2002
Posts: 218
Member
Member
Offline
Joined: Aug 2002
Posts: 218
This prevents also that other users include your forum into their page cause this few lines makes the page opening in the complete browser window


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1424
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 26
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)