View Full Version : Force Forum into iFrame using PHP
bezworks
07-27-2008, 03:59 PM
I have my board in an iframe on our site. When someone receives an email notification about a post or private message, it gives them a URL to the forum OUTSIDE of the iframe.
What modifications can be made so that either:
1) The page recognizes the URL, modifies it, and loads it into an iframe
or
2) Alter the email system so that it a URL that targets the iframe.
Thanks!
Opserty
07-27-2008, 04:11 PM
Set up a .htaccess redirect to direct traffic away from the direct URL to the iframe URL.
(Searching google will give you infromation/guides on the subject).
Not sure why you want people to access the site only through the iframe, though, just seems a bit annoying having another window inside of another window.
bezworks
07-27-2008, 04:32 PM
Set up a .htaccess redirect to direct traffic away from the direct URL to the iframe URL.
(Searching google will give you infromation/guides on the subject).
Not sure why you want people to access the site only through the iframe, though, just seems a bit annoying having another window inside of another window.
Everyone has their different reasons for using an iframe. :)
The htaccess won't work because it's not dynamic. I don't want to just redirect to another page, but it needs to redirect to a page and load the page they WOULD have gone to had they not been redirected. Know what I mean?
For example:
1. They receive an email notification stating that a reply has been made to a post.
2. They click that link to go to the forum NORMALLY to that specific thread
That's not what I want to happen. What I want to happen is this.
1. They receive an email notification stating that a reply has been made to a post.
2. They click that link to go to the forum NORMALLY to that specific thread
3. The page using PHP recognizes that the link is to and redirects it to another page where the forum is in an iframe
4. The URL redirect not only takes them to the iframe, but includes the necessary info to load for the iframe SRC tag, which would be that post they would've have seen (had they not been redirected)
Hope I'm making sense.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.