Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jan 2005
Posts: 14
M
stranger
stranger
M Offline
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

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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.
Do you need Forum Install or Upgrade Services?
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!
Joined: Apr 2004
Posts: 141
O
member
member
O Offline
Joined: Apr 2004
Posts: 141
I'm leaning towards the frames + redirects as the cause of the problem.

Joined: Jun 2006
Posts: 346
R
enthusiast
enthusiast
R Offline
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.

Joined: Jan 2005
Posts: 14
M
stranger
stranger
M Offline
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

Joined: Jan 2005
Posts: 14
M
stranger
stranger
M Offline
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

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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.
Do you need Forum Install or Upgrade Services?
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!
Joined: Jan 2005
Posts: 14
M
stranger
stranger
M Offline
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

Joined: Jul 2006
Posts: 2,143
Pooh-Bah
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]
Joined: Jan 2005
Posts: 14
M
stranger
stranger
M Offline
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

Joined: Jul 2006
Posts: 2,143
Pooh-Bah
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]
Joined: Jan 2005
Posts: 14
M
stranger
stranger
M Offline
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

Joined: Jul 2006
Posts: 2,143
Pooh-Bah
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]

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
2 members (Gizmo, Nightcrawler), 553 guests, and 186 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)