I have been trying to figure this out for a while. My UBB sits inside a frame on my site. When the email system sends a user a PM or reply notification, the link that is embedded in the email points directly to the message.
As a result, when you click on the link, you end up on the UBB formatted page, not the website with the message inside of the proper frame (what I'd like to do).
Does anyone have any idea how to make the link sent via email return the user to the properly formatted webpage?
Thanks!
-Josh
In your UBB head content insert:
<script language="javascript" type="text/javascript">
<!--
if (top.location == self.location) {
top.location.href = "URL TO FRAMESET" + "?" + window.location.href;
}
//-->
</script>
In the frameset HEAD content insert:
<script language="javascript" type="text/javascript">
<!--
pageURL = "YOURINDEX.HTML";
if (parent.document.URL) {
parentURL = parent.document.URL;
if (parentURL.indexOf('?') != -1) {
pageURL = parentURL.substring(parentURL.indexOf('?')+1,parentURL.length);
}
}
function fillFrame() {
parent.main.location.href = pageURL;
}
//-->
</SCRIPT>
in your frameset you need to insert:
that calls it. For example:
<frameset rows="100,*,100" onLoad="fillFrame();" border="1" frameborder="1" framespacing="1" bordercolor="#000000">
Try that..
OK, I did the first part, no problem.
In the second part, the one that gets added to the frameset head, what filename should I put into it where you indicated?
Also, I'm not clear on how it is called...
This will also affect how the URLs are treated in email?
Sorry for the beginner's questions.
Thanks.
you put whatever is the main frame index for your site. You put that in both parts where I said to put the path to your frame index.
this affects whenever anyone views the page, no matter where they got the URL from.