Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-14-2006, 08:46 PM   #1
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
need some code help please

I am working on an iframe which is to become a sub page of a domain of mine.
the contents within the iframe are a cobranded page from an affiliate program. The iframe is coded with a status bar message to hide the reflink urls from appearing in the status bar.
I next added a couple of times, no right click scripts & none of them work.
which code can I use to disable right click on/in an iframe? Also I want to hide or disable viewing of the source code. When I click view source code from the page, I get the source code of the page contained inside the iframe. When I click view source code in the windows toolbar, I get the source code of my own page with the iframe.

any suggestions. It is for a cobranded site from an affiliate program & I am trying to integrate it to look & feel as if it were all on the same domain, hence the Iframe.


PS, I know several no right click scripts & codes & am familiar with writing them, but they don't work on Iframes? I need one that works on Iframes, to prevent right click of the offsite page as well as Iframe itself. & disable source code

Last edited by spacedog; 01-14-2006 at 08:47 PM..
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-14-2006, 08:49 PM   #2
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
i dont htink you can hide the code of the iframe , because you dont control it.. but you can control your pages right click
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-14-2006, 08:50 PM   #3
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by SmokeyTheBear
i dont htink you can hide the code of the iframe , because you dont control it.. but you can control your pages right click
Problem is, the Iframe is 100% width & height to contain a full offsite page
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-14-2006, 08:55 PM   #4
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
you could do it in php by using ssi to include the page your trying to iframe , then just add any no click script to the page
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-14-2006, 08:57 PM   #5
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
another thing I need help with is the height of the Iframe.

the width of the contained page is consistent, however, the height always changes, therefore If I set a fixed height, it could either be too big, or too small depending on what content is displayed on the contained page. I've been googling, but am unable to find the code for autosizing the iframe to autosize to the height of the contained page. Can anyone offer assistance in this? thanks
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-14-2006, 08:59 PM   #6
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by SmokeyTheBear
you could do it in php by using ssi to include the page your trying to iframe , then just add any no click script to the page

yeah, hmm.. maybe I should php include the external page onto an internal .php page instead of using Iframe... thanks, I'm going to look into how to set that up.
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-14-2006, 09:01 PM   #7
Myst
Confirmed User
 
Join Date: Feb 2004
Location: Alberta, Canada
Posts: 4,708
if the content within the frame is yours, check the referrer and if its the page thats loading the iframe, insert (or activate) the no right click code
__________________
ICQ: 298-523-037
Myst is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-14-2006, 09:03 PM   #8
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by Myst
if the content within the frame is yours, check the referrer and if its the page thats loading the iframe, insert (or activate) the no right click code
the page loading the frame is mine. the page inside the frame is not. the page inside the frame is a cobranded affiliate program page
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-14-2006, 09:04 PM   #9
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally Posted by spacedog
yeah, hmm.. maybe I should php include the external page onto an internal .php page instead of using Iframe... thanks, I'm going to look into how to set that up.
<?php
$url = "http://somesite.com";
$html = file_get_contents($url);
echo $html;
?>
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-14-2006, 09:13 PM   #10
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by SmokeyTheBear
<?php
$url = "http://somesite.com";
$html = file_get_contents($url);
echo $html;
?>
you're my new best friend. Fucking brilliant. works perfect.

thanks very much. You saved me some headaches. It solved another problem I was having with the Iframe too.
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-14-2006, 09:40 PM   #11
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally Posted by spacedog
you're my new best friend. Fucking brilliant. works perfect.

thanks very much. You saved me some headaches. It solved another problem I was having with the Iframe too.
just make sure everything works because i think server side links wont work properly. ( or images/scripts )
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-14-2006, 09:46 PM   #12
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by SmokeyTheBear
just make sure everything works because i think server side links wont work properly. ( or images/scripts )
all looks great. Hit me up on icq so I can show you. I don't want to post it on the board
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.