GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   need some code help please (https://gfy.com/showthread.php?t=563926)

spacedog 01-14-2006 08:46 PM

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

SmokeyTheBear 01-14-2006 08:49 PM

i dont htink you can hide the code of the iframe , because you dont control it.. but you can control your pages right click

spacedog 01-14-2006 08:50 PM

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

SmokeyTheBear 01-14-2006 08:55 PM

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

spacedog 01-14-2006 08:57 PM

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 01-14-2006 08:59 PM

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.

Myst 01-14-2006 09:01 PM

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

spacedog 01-14-2006 09:03 PM

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

SmokeyTheBear 01-14-2006 09:04 PM

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;
?>

spacedog 01-14-2006 09:13 PM

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. :thumbsup

SmokeyTheBear 01-14-2006 09:40 PM

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. :thumbsup

just make sure everything works because i think server side links wont work properly. ( or images/scripts )

spacedog 01-14-2006 09:46 PM

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


All times are GMT -7. The time now is 11:42 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123