Resolved: Spoiler problem in Firefox

Let me know if something is not working, or you think something could be made better.

Resolved: Spoiler problem in Firefox

Postby MM_Dandy » Mon Apr 03, 2006 6:28 am

[RESOLVED]

I'm using Firfox 1.0.7, XP home SP 2. The problem happens with Dragon Star's spoiler including the image of the 'Cease and Desist' document.
The spoiler tag only hides/reveals the text and the image is always visible. The image also clips the next two posts, except for the next spoiler.

It seems to me that something like this happened before, but I can't remember if it was resolved or if it was decided that it wasn't really a problem.

Lost thread.
User avatar
MM_Dandy
Moderator
Moderator
King of Obscurity
 
Posts: 4927
Joined: Thu May 12, 2005 9:02 pm
Location: Canton, SD, USA

Postby Lance » Mon Apr 03, 2006 1:38 pm

Interesting...

I'm using Firefox 1.5.0.1 and I don't see the problem. Cyndi still has Firefox 1.0.6 and I can't duplicate it on her machine either. Is there another machine you can test it on to rule out your client as having a problem?

Yes, there was a similar problem in Firefox when I first wrote the mod but I was pretty sure I resolved it and the behavior I'm seeing here seems to support that.
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91430
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Postby Dragon Star » Mon Apr 03, 2006 1:40 pm

0_o...Thats really weird.
User avatar
Dragon Star
Enlightened One
Enlightened One
 
Posts: 12589
Joined: Sun Jan 08, 2006 6:37 pm
Location: Islamorada, FL

Postby Lance » Mon Apr 03, 2006 1:56 pm

Dragon Star wrote:0_o...Thats really weird.

Do you use Firefox, Dragon Star?
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91430
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Postby Dragon Star » Mon Apr 03, 2006 1:57 pm

Nope, IE.
User avatar
Dragon Star
Enlightened One
Enlightened One
 
Posts: 12589
Joined: Sun Jan 08, 2006 6:37 pm
Location: Islamorada, FL

Postby MM_Dandy » Mon Apr 03, 2006 2:35 pm

Just tested it from work. Looks good with IE 6.0 on XP Pro SP2.
I've got Firefox on the laptop, I'll try it from there, too.
User avatar
MM_Dandy
Moderator
Moderator
King of Obscurity
 
Posts: 4927
Joined: Thu May 12, 2005 9:02 pm
Location: Canton, SD, USA

Postby Dragon Star » Mon Apr 03, 2006 2:39 pm

But could the computer be the cause of this? I would think it would be from the site to you problem instead of the computer, if you can try another computer on that internet connection.

Don't really know if it would make a difference but that way we could know what the problem is for sure.
User avatar
Dragon Star
Enlightened One
Enlightened One
 
Posts: 12589
Joined: Sun Jan 08, 2006 6:37 pm
Location: Islamorada, FL

Postby Lance » Mon Apr 03, 2006 2:58 pm

Dragon Star wrote:But could the computer be the cause of this?

Yes, it is possible.

Dragon Star wrote:I would think it would be from the site to you problem instead of the computer

That makes the most sense, but has already been eliminated as a possible cause by me trying two different versions of Firefox to successfully view the same page.

Dragon Star wrote:if you can try another computer on that internet connection.

That the problem could somehow be with the connection is the most remote possibility.

Dragon Star wrote:Don't really know if it would make a difference but that way we could know what the problem is for sure.

That's what we're trying to do. Isolate the problem.
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91430
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Postby MM_Dandy » Mon Apr 03, 2006 3:03 pm

Could be, but I think it's likely that it's either a browser setting or a problem with FF 1.0.7. [Edit: ToSeek'd]

Just tested again.
FF 1.5 also works from work. (same machine -- I forgot the laptop at home, this morning...it's Monday...it's the first Monday after DST change... ...ok, I ran out of excuses).
User avatar
MM_Dandy
Moderator
Moderator
King of Obscurity
 
Posts: 4927
Joined: Thu May 12, 2005 9:02 pm
Location: Canton, SD, USA

Postby Lance » Mon Apr 03, 2006 3:06 pm

I tried messing with some settings in 1.5.0.1 to see if I could duplicate the problem but I couldn't.

Just out of curiousity, when the page loaded bad, did you try clearing your cache and having the page reload?
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91430
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Postby MM_Dandy » Mon Apr 03, 2006 3:11 pm

Nope :oops:
I also have IE on that machine but never tried that, either. :oops: :oops:
And, never tried the laptop :oops: :oops: :oops:

So, when I get home, I will try these things, and get back to you. Somehow, I suspect that clearing the cache will do the trick. Anyway, if I'm lucky, I'll be home around 8 or so.
User avatar
MM_Dandy
Moderator
Moderator
King of Obscurity
 
Posts: 4927
Joined: Thu May 12, 2005 9:02 pm
Location: Canton, SD, USA

Postby Lance » Mon Apr 03, 2006 3:17 pm

Okey dokey. Sounds good.
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91430
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Postby umop ap!sdn » Mon Apr 03, 2006 3:54 pm

Okay you guys this is weird...

I tried opening it in Firefox 1.0 and I saw the exact same bug... then I hit reload and it fixed itself.

Strange. :shock:
umop ap!sdn
Puppet Master
Puppet Master
 
Posts: 4595
Joined: Mon Jul 04, 2005 5:24 pm

Postby Dragon Star » Mon Apr 03, 2006 4:01 pm

umop ap!sdn wrote:Okay you guys this is weird...

I tried opening it in Firefox 1.0 and I saw the exact same bug... then I hit reload and it fixed itself.

Strange. :shock:


Well, that just eliminated it being Dandy's computer. :?
User avatar
Dragon Star
Enlightened One
Enlightened One
 
Posts: 12589
Joined: Sun Jan 08, 2006 6:37 pm
Location: Islamorada, FL

Postby Lance » Mon Apr 03, 2006 4:09 pm

Do you think it could have anything to do with this line of code:

Code: Select all
if ( page.load_count < 1 )
{
appear_fucked_up = true;
}
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91430
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Postby Dragon Star » Mon Apr 03, 2006 4:11 pm

:glp-rotflmao:
User avatar
Dragon Star
Enlightened One
Enlightened One
 
Posts: 12589
Joined: Sun Jan 08, 2006 6:37 pm
Location: Islamorada, FL

Postby umop ap!sdn » Mon Apr 03, 2006 4:37 pm

OMFG. Image
umop ap!sdn
Puppet Master
Puppet Master
 
Posts: 4595
Joined: Mon Jul 04, 2005 5:24 pm

Postby MM_Dandy » Mon Apr 03, 2006 11:44 pm

Well, smegging hell.

So, guess what? I clicked the link and the page loaded fine; first time, no upgrades, no refreshes, no cache clearing; nothing.

I wonder if I might be April Foolish.... :-k
User avatar
MM_Dandy
Moderator
Moderator
King of Obscurity
 
Posts: 4927
Joined: Thu May 12, 2005 9:02 pm
Location: Canton, SD, USA

Postby Lance » Tue Apr 04, 2006 3:46 pm

I think I found it...

The element that covers the hidden info is set to be 100% height of the underlying element. Because the post is so long, it exceeds the height of the browser window. 100% height wasn't tall enough to cover the whole post.

However, once you load the post the first time, the browser learns how tall it is and can successfully cover it completely the next time it is loaded.

Damn! Sometimes I'm good!

I'm going to edit Dragon Star's post to make it more browser friendly.
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91430
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Postby Dragon Star » Tue Apr 04, 2006 3:52 pm

Lance wrote:I think I found it...

The element that covers the hidden info is set to be 100% height of the underlying element. Because the post is so long, it exceeds the height of the browser window. 100% height wasn't tall enough to cover the whole post.

However, once you load the post the first time, the browser learns how tall it is and can successfully cover it completely the next time it is loaded.

Damn! Sometimes I'm good!

I'm going to edit Dragon Star's post to make it more browser friendly.


Okey Dokey, sorry to cause problems..:mrgreen:
User avatar
Dragon Star
Enlightened One
Enlightened One
 
Posts: 12589
Joined: Sun Jan 08, 2006 6:37 pm
Location: Islamorada, FL

Postby Lance » Tue Apr 04, 2006 3:58 pm

Dragon Star wrote:Okey Dokey, sorry to cause problems..:mrgreen:

No problem at all. As a mater of fact, it was good. Had this not happened we wouldn't have known about the limitation.

There are several different "spoiler" mods for phpBB but most of them just cover text. When I wrote the one used here, I tried to make it more versatile than the others by making it cover images too. But that made it hard to have it cross-browser compatible.

I did the best I could but I guess large posts cause it problems.

But guess what? I'm not going to rewrite it because it works 99% of the time.
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91430
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Postby Dragon Star » Tue Apr 04, 2006 4:02 pm

Next time I guess I will just link the image with a warning, no big deal.
User avatar
Dragon Star
Enlightened One
Enlightened One
 
Posts: 12589
Joined: Sun Jan 08, 2006 6:37 pm
Location: Islamorada, FL

Postby MM_Dandy » Tue Apr 04, 2006 10:21 pm

It's also not that hard or inconvenient to click the refresh button. I just gotta remember to do that when this happens again.

I think you can put a big old DONE on this one, Lance.
User avatar
MM_Dandy
Moderator
Moderator
King of Obscurity
 
Posts: 4927
Joined: Thu May 12, 2005 9:02 pm
Location: Canton, SD, USA

Postby Lance » Tue Apr 04, 2006 10:35 pm

MM_Dandy wrote:It's also not that hard or inconvenient to click the refresh button. I just gotta remember to do that when this happens again.

I think you can put a big old DONE on this one, Lance.


You may have missed this. It was at the bottom of the previous page. The cause of the problem was this code:

Code: Select all
if ( page.load_count < 1 )
{
appear_fucked_up = true;
}
No trees were killed in the posting of this message.
However, a large number of electrons were terribly inconvenienced.

==========================================

Build a man a fire and he will be warm for a few hours.
Set a man on fire and he will be warm for the rest of his life.
User avatar
Lance
Administrator
Administrator
Cheeseburger Swilling Lard-Ass who needs to put down the remote and get off the couch.
 
Posts: 91430
Joined: Thu May 12, 2005 5:51 pm
Location: Oswego, IL

Postby MM_Dandy » Tue Apr 04, 2006 10:42 pm

I did see it, but I didn't know how serious you were.
Since it is your mod, though, I should've guessed. :D

Actually, I was making an obscure reference to "Monster House" concerning this thread (done ~ resolved), not the spoiler mod in general.
User avatar
MM_Dandy
Moderator
Moderator
King of Obscurity
 
Posts: 4927
Joined: Thu May 12, 2005 9:02 pm
Location: Canton, SD, USA

Next

Return to Suggestions, Problems and Complaints

Who is online

Users browsing this forum: No registered users and 3 guests