PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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.
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.
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.
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.