Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2003
Posts: 43
Member
Member
Offline
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

Sponsored Links
Joined: Jul 2003
Posts: 273
Member
Member
Offline
Joined: Jul 2003
Posts: 273
In your UBB head content insert:

Code
<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:

Code
<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:

Code
onLoad="fillFrame();"
that calls it. For example:

Code
<frameset rows="100,*,100" onLoad="fillFrame();" border="1" frameborder="1" framespacing="1" bordercolor="#000000">
Try that..

Joined: Jan 2003
Posts: 43
Member
Member
Offline
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.

Joined: Jul 2003
Posts: 273
Member
Member
Offline
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.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)