Page 1 of 1
New to Php - trying to edit a facebook iframe
Posted: Thu Aug 25, 2011 12:22 pm
by metalice
hi,
im very much new to all of this php so i need a little help
i trying to edit a facebook template and i want this code:
Code: Select all
<?php
if ( isLiked() ) {
?>
<div class="downloadBox" id="shBtn">
<b>Thanks for liking this page</b>
<a class="btnDownload" href="http://www.facebook.com/oritschatzmanpage?sk=photos"><img src="images/download_now_1.png" alt="download btn"></a>
only to move the user to a link. not open the downloadbox.
so if i want the user to move in the same browser window to:
http://www.xxxxx.com/xxxxx
how im doing it? what do i need to change?
tnx
Matan
Re: New to Php - trying to edit a facebook iframe
Posted: Thu Aug 25, 2011 1:36 pm
by califdon
The line that begins with <a is the "anchor" or hyperlink. In that line (before the <img ), the href= is the URL that will be requested when the link is clicked by the user. So all you have to do is substitute your URL for the Facebook URL.
Re: New to Php - trying to edit a facebook iframe
Posted: Thu Aug 25, 2011 1:42 pm
by metalice
the url is already substitute.. "
http://www.facebook.com/oritschatzmanpage?sk=photos" .. as you can see..
but i want it to go direct to this page without the button and not to open this page in the iframe window.
like i need this code to redirect instantly to "
http://www.facebook.com/oritschatzmanpage?sk=photos" without pressing on nothing. and not to redirect in the iframe tab
Re: New to Php - trying to edit a facebook iframe
Posted: Thu Aug 25, 2011 1:53 pm
by califdon
Then you don't want to use a template at all. You need to set up the script that is now opening the template so that it goes directly where you want it to go. You might perhaps use a file that has nothing in it but a redirect meta tag in the <head>, but be aware that it won't pass on any variables or data that is probably handled in the template. So it is really impossible to tell you how to do it without completely analyzing what you are trying to do and why. That might take considerable time and I am not offering to do that for you because I don't have the time.
Re: New to Php - trying to edit a facebook iframe
Posted: Thu Aug 25, 2011 1:59 pm
by metalice
i cant do that.
beacuse i want the redirect only after they have pressed "like" button in facebook.
in sted of showing them a thank you page with a button to click i want it to go stright to the page. i dont think its really that hard. but i dont know how.
Re: New to Php - trying to edit a facebook iframe
Posted: Thu Aug 25, 2011 9:45 pm
by califdon
metalice wrote:i cant do that.
beacuse i want the redirect only after they have pressed "like" button in facebook.
in sted of showing them a thank you page with a button to click i want it to go stright to the page. i dont think its really that hard. but i dont know how.
So you want to hijack Facebook's API to change it to what you want to do? I don't think you'll find that easy to do.
Re: New to Php - trying to edit a facebook iframe
Posted: Fri Aug 26, 2011 8:53 am
by metalice
what?
i only want it to redirect to a page insted of open a box. its really hard.
i found this command
Code: Select all
<?php
header( 'Location: http://www.yoursite.com/new_page.html' ) ;
?>
but i dont know how to use it there..