|
#57026
12/28/2003 4:37 PM
|
Joined: Jan 2003
Posts: 43
Member
|
Member
Joined: Jan 2003
Posts: 43 |
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
|
|
|
#57027
12/28/2003 5:27 PM
|
Joined: Jul 2003
Posts: 273
Member
|
Member
Joined: Jul 2003
Posts: 273 |
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..
|
|
|
#57028
12/28/2003 8:36 PM
|
Joined: Jan 2003
Posts: 43
Member
|
Member
Joined: Jan 2003
Posts: 43 |
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.
|
|
|
#57029
12/28/2003 9:04 PM
|
Joined: Jul 2003
Posts: 273
Member
|
Member
Joined: Jul 2003
Posts: 273 |
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.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 808
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|