<? DEW-CODE.COM  

Downloads

Assorted scripts  (1)
DewNewPHPLinks  (9)





Lost Password?
No account yet? Register

Dew-Code Newsfeed

Resources


 USdigitalcable.com

Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:site jumps out of the iframe (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:site jumps out of the iframe
#1860
gwilleboordse (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
site jumps out of the iframe 5 Months, 2 Weeks ago Karma: 0  
My site is at http://websitesbygeorge.net/.

The top links take the PHP link pages outside of the Iframe I set aside for it.

Browse - What's New - What's Cool - What's Popular - Add A Site - About

The Rest:

Arts & Humanities
Business
Computers & Internet
Education
Entertainment
Government
Health
News & Media
Recreation & Sports
Reference
Regional
Science
Social Science
Society & Culture

Stay in like the way I had hoped.
What must I do so that the top links behave like all the category links?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1861
Dewed (Admin)
Admin
Posts: 605
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:site jumps out of the iframe 5 Months, 2 Weeks ago Karma: 9  
The top nav buttons have a target set ...
target="_top"

To ensure these links stay within your frameset you could just remove the target= entirely, or change "_top" to the name of your target frame.

To do that edit /themes/YOURTHEME/navbar.top.php look for
target="_top" or target=\"_top\" (depending on if the string is defined with double or single quotes) and edit accordingly.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1862
gwilleboordse (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:site jumps out of the iframe 5 Months, 2 Weeks ago Karma: 0  
Hi
First of all thank you for your quick response, and your dedication to this project.
RE: To ensure these links stay within your frameset you could just remove the target= entirely, or change "_top" to the name of your target frame.

I edited as you mentioned or so I hope I understood right. I went for the route of deleting -

$html .= "target=\"_top\" href=\"$gl[BasePath]/directory/";
but
The top navigation links still have the same behavior of jumping out of the frame set.

This is how I left it:
<?
// *******************************************************************
// themes/original/navbar.top.php
// *******************************************************************
$and = "?";
$html = "\r\n<!-- Start Top NavBar Table themes/original/navbar.top.php -->";
$html .= "\r\n<table cellspacing=\"2\" cellpadding=\"2\" width=\"100%\" ";
$html .= "border=\"0\">\r\n<tr>\r\n\t<td nowrap=\"nowrap\">\r\n\t<table ";
$html .= "class=\"homebalkback\" cellspacing=\"1\" cellpadding=\"0\" ";
$html .= "width=\"100%\" border=\"1\">\r\n\t<tr>\r\n\t\t<td nowrap=\"nowrap\" ";
$html .= "width=\"16%\" class=\"navbaroff\" align=\"center\"><a class=\"ttd\" ";
if ($usesession == "yes"{$html .= "?" . session_name() . "=". session_id() . "";}
$html .= "\">Browse</a></td>";

As for changing _top to the framename -
The target frame name is set by Joommla, and I am not sure where to find the name for it as the software has set it. I did the "Home" link as a wrapper around your software the URL is http://websitesbygeorge.net/links/
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1863
Dewed (Admin)
Admin
Posts: 605
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:site jumps out of the iframe 5 Months, 2 Weeks ago Karma: 9  
In your case, the name of the desired frame is "iframe"

So... in theory, changing "_top" to "iframe" *should* give the desired results.

And just to be clear.. you implied you deleted . . . .

$html .= "target=\"_top\" href=\"$gl[BasePath]/directory/";

You need the href= portion..

and I also neglected to mention.. BACKUP YOUR FILES PRIOR TO EDITING
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#1864
gwilleboordse (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:site jumps out of the iframe 5 Months, 2 Weeks ago Karma: 0  
Good advice on the back up. I never mentioned it, but the files are backed up.

This is how I changed the code as I understood you asking:
<?
// *******************************************************************
// themes/original/navbar.top.php
// *******************************************************************
$and = "?";
$html = "\r\n<!-- Start Top NavBar Table themes/original/navbar.top.php -->";
$html .= "\r\n<table cellspacing=\"2\" cellpadding=\"2\" width=\"100%\" ";
$html .= "border=\"0\">\r\n<tr>\r\n\t<td nowrap=\"nowrap\">\r\n\t<table ";
$html .= "class=\"homebalkback\" cellspacing=\"1\" cellpadding=\"0\" ";
$html .= "width=\"100%\" border=\"1\">\r\n\t<tr>\r\n\t\t<td nowrap=\"nowrap\" ";
$html .= "width=\"16%\" class=\"navbaroff\" align=\"center\"><a class=\"ttd\" ";
$html .= "target=\"iframe\" href=\"$gl[BasePath]/directory/";
if ($usesession == "yes"{$html .= "?" . session_name() . "=". session_id() . "";}
$html .= "\">Browse</a></td>";

Every link in the whole page keeps the page inside the iframe in the top Navigation "Browse" works also
But the rest of the Top Navigation bar do not:

ie:
What's New What's Cool What's Popular Add A Site About

What I also did after... is that I went to the navbar.bottom.php (the links work excellent there)and found

$html .= "href=\"$gl[BasePath]/directory/";

Which I inserted as a copy in the top Nav bar

But with No different results:
<?
// *******************************************************************
// themes/original/navbar.top.php
// *******************************************************************
$and = "?";
$html = "\r\n<!-- Start Top NavBar Table themes/original/navbar.top.php -->";
$html .= "\r\n<table cellspacing=\"2\" cellpadding=\"2\" width=\"100%\" ";
$html .= "border=\"0\">\r\n<tr>\r\n\t<td nowrap=\"nowrap\">\r\n\t<table ";
$html .= "class=\"homebalkback\" cellspacing=\"1\" cellpadding=\"0\" ";
$html .= "width=\"100%\" border=\"1\">\r\n\t<tr>\r\n\t\t<td nowrap=\"nowrap\" ";
$html .= "width=\"16%\" class=\"navbaroff\" align=\"center\"><a class=\"ttd\" ";
$html .= "href=\"$gl[BasePath]/directory/";
if ($usesession == "yes"{$html .= "?" . session_name() . "=". session_id() . "";}
$html .= "\">Browse</a></td>";
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1865
Dewed (Admin)
Admin
Posts: 605
graph
User Online Now Click here to see the profile of this user
Dew-Code.com
Re:site jumps out of the iframe 5 Months, 2 Weeks ago Karma: 9  
It sounds like you haven't replaced all the "_top" with "iframe" The code you are including is for the Browse link..

You should of found a _top for each of the top nav buttons, possibly you missed a couple?

and disregard the quotes I just typed above.. search for _top and replace it with iframe Any text editor should have a search replace function these days, even Plain ol' notepad.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop
Outsource your projects to thousands of programmers at
ScriptLance.com
Newsflash
Interested in
advertising?

This space for rent!

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008