Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Iframe
phptest
CZ Super Newbie
phptest has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Aug 22, 2004
0.01 posts per day
Posts: 58
Points: 3,076
   
Hi Guys its me again the Iframe Dude icon_smile.gif

I have another question....

I load a page of another website into the Iframe.. this works great. The issue i have is this. the top of the loaded webpage has a banner.. or just a image loaded.

Is it possible to load the entire page in the Iframe except the banner/image ? Im thinking there might be a way to block that image from loading ?

Help is much apriciated again.. And i like to take this opportunity to thank the people who helped me in the past and those who are willing to help now.



Back to top Reply with quote
#2   re: Iframe
nomadesign
CZ Super Newbie
nomadesign has been a member for over 20 year's 20 Year Member
usa.gif
Status: Offline
Joined: Jun 24, 2004
0.01 posts per day
Posts: 71
Points: 2,907
   
Hello phptest
Question:
Is the other website yours?
If not there is still away to do this, but it will take some work...

damon



Back to top Reply with quote
#3   re: Iframe
phptest
CZ Super Newbie
phptest has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Aug 22, 2004
0.01 posts per day
Posts: 58
Points: 3,076
   
No the other website is not mine.. how can i fix it ?



Back to top Reply with quote
#4   re: Iframe
nomadesign
CZ Super Newbie
nomadesign has been a member for over 20 year's 20 Year Member
usa.gif
Status: Offline
Joined: Jun 24, 2004
0.01 posts per day
Posts: 71
Points: 2,907
   
OK...
thought of an easier way to do this.
I would duplicate the web page that you want. Then get rid of the banner and what ever else you want, save it
Then create your Iframe...



Back to top Reply with quote
#5   re: Iframe
phptest
CZ Super Newbie
phptest has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Aug 22, 2004
0.01 posts per day
Posts: 58
Points: 3,076
   
Thats not an option.. About 500 pages on that site. any other idears ?



Back to top Reply with quote
#6   re: Iframe
mjhufford
CZ Active Member
 Codezwiz Site Donator
mjhufford has been a member for over 20 year's 20 Year Member
usa.gif arkansas.gif
Occupation: IT Industry
Age: 47
Gender: Male
Fav. Sports Team: Da Bears.
Website:
Status: Offline
Joined: Jul 01, 2004
0.04 posts per day
Posts: 288
Points: 15,094
  MSN Messenger 
I don't think you can do it. The IFrame just loads another site in a "window" of "frame" on your site. Without having access to their code, you won't be able to block any pictures or banners.




_________________
"The pursuit of easy things makes men weak."
-David O. McKay
Back to top Reply with quote
#7   re: Iframe
SidewinderX
CZ Super Newbie
SidewinderX has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Aug 06, 2004
0.01 posts per day
Posts: 39
Points: 1,333
   
lol, i just came from nukecops with a similar question...here is what you can do..it will take a little knowledge of php but thats why there is [ Register or login to view links on this board. ]

here is what you can do:

Look up a function called file_get_contents

what that is going to do is "get the contents" of the web site and store it a a string
ie)
$content = file_get_contents($url)
where $url is the link to the site you want

Then you need to manipulate the string $content... for this look up the command str_replace what this does is it looks through the newly formulated string $content for the information you set in this case the html of the image, then replace the data with something bogus that would not show something like:

ie)
$srch = array('src="/images/image.gif');
$rplc = array('<br>');
$go = str_replace($srch, $rplc, $content);


so in the end the final script would look something like

$content = file_get_contents($_POST['url']);

$srch = array('src="/images/image.gif');
$rplc = array('<br>');
$go = str_replace($srch, $rplc, $content);

echo $go;


HTH icon_exclaim.gif icon_exclaim.gif


Back to top Reply with quote
#8   re: Iframe
phptest
CZ Super Newbie
phptest has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Aug 22, 2004
0.01 posts per day
Posts: 58
Points: 3,076
   
Thanks sidewinderx

Im willing to try this... But..

Where can i find the file wich contains the "file_get_contents" line
Its not in the iframe file.

Thanks for helping.



Back to top Reply with quote
#9   re: Iframe
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.48 posts per day
Posts: 3765
Points: 351,412
   
He means look up those functions/commands in the php manual so you can understand how to create the script he's telling you about.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum