Previous Thread
Next Thread
Print Thread
Hop To
preview message not working in 6.7.3 #164822 02/16/2006 8:18 PM
Joined: Jan 2005
Posts: 14
Mark Round Offline OP
stranger
OP Offline
stranger
Joined: Jan 2005
Posts: 14
I've recently upgraded my board to 6.7.3 and whenever I reply to a message in the forum, if I click on ‘preview message’ the small window that appears actually take you back to the forum main page and not a preview of the message.

Any idea how I can fix this?
Here's a link to our board-
Foot Talk Forums

Thanks,
Steve

Re: preview message not working in 6.7.3 #164823 02/17/2006 1:53 AM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
Do you have any modifications installed on your forum?


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: preview message not working in 6.7.3 #164824 02/17/2006 3:35 PM
Joined: Apr 2004
Posts: 141
oracleweb Offline
member
Offline
member
Joined: Apr 2004
Posts: 141
I'm leaning towards the frames + redirects as the cause of the problem.

Re: preview message not working in 6.7.3 #164825 02/17/2006 3:39 PM
Joined: Jun 2006
Posts: 346
Ron M Offline
enthusiast
Offline
enthusiast
Joined: Jun 2006
Posts: 346
I'm going to move this to Post Installation Troubleshooting since using frames is a bad idea. If you can duplicate the issue without frames, I'll move this back to bugs.

Re: preview message not working in 6.7.3 #164826 02/17/2006 4:50 PM
Joined: Jan 2005
Posts: 14
Mark Round Offline OP
stranger
OP Offline
stranger
Joined: Jan 2005
Posts: 14
Well, hmmmmmm.....

I've got some javascript in the head section that forces the user into a frameset with a top nav bar.

It is essential that I do this, so can anybody give me a clue where I'd adjust the target frame of the pop-up preview window?..or is a fix even possible?

Oh, and Gizmo, it is a clean installation, no mods or hacks-


This is the javascript I've got in my header insert:

Code
<script language="JavaScript">
if (self.location == top.location)
top.location.href = '/Discussion/index.asp?' + escape(self.location); 
</script>  
Would it be possible to JUST remove the header include on the preview post window code?

I should also mention that I only have very basic Perl experience, so pretend I'm retarded when giving assistance <img src="https://www.ubbcentral.com/boards/images/graemlins/laugh.gif" alt="" />

Thanks,
Steve

Re: preview message not working in 6.7.3 #164827 02/17/2006 4:59 PM
Joined: Jan 2005
Posts: 14
Mark Round Offline OP
stranger
OP Offline
stranger
Joined: Jan 2005
Posts: 14
Quote:
Originally posted by Ron M:
[qb] I'm going to move this to Post Installation Troubleshooting since using frames is a bad idea. If you can duplicate the issue without frames, I'll move this back to bugs. [/qb]
Hi Ron-

I'm curious why you think using frames is a bad idea....it's worked great for us since early v.5...(2001)

Thanks,
Steve

Re: preview message not working in 6.7.3 #164828 02/17/2006 6:38 PM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
The Infopop (Groupee) staff insists that Frames are a horrid idea (heck, html specs specify that they are horrid as well); not entirely sure why but I know it can effect some portions of the coding


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: preview message not working in 6.7.3 #164829 02/17/2006 10:45 PM
Joined: Jan 2005
Posts: 14
Mark Round Offline OP
stranger
OP Offline
stranger
Joined: Jan 2005
Posts: 14
I'm no frames fan either, but "horrid"...I dunno know about all that... <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" />

I only use them when absolutely necessary, like with this site. I have a bunch of ASP running in that section..mainly there's some code for handling in-bound associate links and co-branding the site accordingly. They'd all be pissed if suddenly "their" Foot Talk Forum was showing a MyFootShop masthead...

example:
http://www.myfootshop.com/associate.asp?...t=000510#000000

Re: preview message not working in 6.7.3 #164830 02/18/2006 12:45 AM
Joined: Jul 2006
Posts: 2,143
David Dreezer Offline
Pooh-Bah
Offline
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
Put the Javascript in your HTML Header, not the HTML Head. The Header is not included in popup windows, while the Head is.


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Re: preview message not working in 6.7.3 #164831 02/18/2006 3:53 AM
Joined: Jan 2005
Posts: 14
Mark Round Offline OP
stranger
OP Offline
stranger
Joined: Jan 2005
Posts: 14
ok, now I'm confused...Head...Header...

I only have one field in the UBB control panel that says the code will be placed inside the head area: Header Insert

I do need for that javascript to execute on all the UBB pages(except the little preview window), and really don't want to change the way it works now other than to get the redirect straightened out on the preview window.

....or if that's too difficult, I'd rather just strip the preview function out altogether, as it is nowhere nearly as important to me as maintaining the forum's current state.

Thanks,
Steve

Re: preview message not working in 6.7.3 #164832 02/20/2006 7:36 PM
Joined: Jul 2006
Posts: 2,143
David Dreezer Offline
Pooh-Bah
Offline
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
Sorry, I should have used the proper field names. Use the "Header HTML" field for your everywhere-but-popups Javascript. Use the "Header Insert" field for everywhere Javascript.


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Re: preview message not working in 6.7.3 #164833 03/15/2006 3:38 PM
Joined: Jan 2005
Posts: 14
Mark Round Offline OP
stranger
OP Offline
stranger
Joined: Jan 2005
Posts: 14
Thanks Charles.

I moved the javascript to the HTML Insert section and the preview message pop-up window problem is no longer an issue....however....new issues have arisen now that the javascript code is rendered within the body tag.

About every 7th or 8th time that I reply to a message, I hit the reply button and the screen goes blank (with the exception of my top frame). I also got it once when I clicked to enter one of the forums from the UBB main page.

When trying to post a reply, the reply response doesn’t post. Click the back button and you receive an error page stating:

Error: No forum selected
» Please use your browser's back button to return.

It doesn’t seem to be specific to any particular forum topic, particularly when I also got the same error, not only when adding a reply, but also when clicking to open a forum.

I'm sure that it is because of the addition of the javascript to the body, but if I change it back to the way it was, then I will have the same preview message window problem as before.

Since the only issue I had with the javascript being in the Header HTML field was the preview message window no working right, what I'm hoping is that somebody can assist me with changing the way the preview message window function works...

Like, rather than have it pop-up in a new javascript window, I'd like to try just having it open in a new standard window (target="_blank")..or anything else you can think of that would allow me to keep my javascript in the Header HTML field like before.

Thanks a million-
Steve

Re: preview message not working in 6.7.3 #164834 03/15/2006 5:37 PM
Joined: Jul 2006
Posts: 2,143
David Dreezer Offline
Pooh-Bah
Offline
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
That's ... odd. "Error: No forum selected" can only occur when no forum variable was passed in to the script. Unless your Javascript is doing something silly like cutting off the query string at some point (which I doubt, as that would cause other noticible effects), it's highly unlikely that it's the primary cause of the problem.

Have you considered running without the frameset Javascript, and instead using a frame detection script, such as the one used at QuirksMode? Try visiting this page and notice the "This page is supposed to be in a frameset" link at the top. The page also explains how that link works. <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" />


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]

Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Mobile app?
by Baldeagle - 12/06/2019 9:32 PM
How do you change Text Line spacing?
by jorb - 11/23/2019 12:14 AM
What happened to FAQ or Forum Help
by Ruben - 11/20/2019 11:58 AM
Search feature encountering an Error message
by jorb - 11/20/2019 12:06 AM
UBB Dev
by JAISP - 11/03/2019 11:01 AM
Who's Online Now
0 registered members (), 86 guests, and 378 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191023)