Firefox PHP

Latest X Posts in a templated Phorum-Page

Posted by Thomas Seifert 
Re: Latest X Posts in a templated Phorum-Page
March 29, 2005 12:58AM

so what do you suggest?

how do i make them exist for firefox?
Re: Latest X Posts in a templated Phorum-Page
March 29, 2005 03:32AM
rheo Wrote:
-------------------------------------------------------
> > so what do you suggest?
>
> how do i make them exist for firefox?

Well I don't care about NS 4.x at all so I would just get rid of the if and wite the divs no matter what browser is used.

Or you could add || getelementbyid or something in the end.

See how you check for browser support in your show function, was the DHTML a global variable? you could use that too then if(DHTML){...





---
-=[ Panu ]=-
Re: Latest X Posts in a templated Phorum-Page
April 05, 2005 06:06PM

i've been running behind on trying to make this work properly with firefox..

if anyone wants to pick it up please feel free. here is my template..

Attachments:
open | download - newest10.tpl (3.8 KB)
Re: Latest X Posts in a templated Phorum-Page
April 05, 2005 08:31PM
replace
echo "<script language=\"Javascript\">\n<!-- \nif ((document.layers)||(document.all)) {\n";

with 
echo "<script language=\"Javascript\">\n<!-- \nif (document.getElementById || document.layers || document.all) {\n";

and you should be fine I quess.

Newer check just for document.all and document.layers if you want to be future safe (or present safe as all modern browser support getElementbyId) And I quess you could drop NS 4 support too already...

---
-=[ Panu ]=-
Re: Latest X Posts in a templated Phorum-Page
April 20, 2005 10:22PM

Finally had time to look at this again.

I got it working in both IE and FireFox now however the positioning of the popup element isn't working out.

Does anyone know how you could position the popup excerpt over the subject link?

[www.neotribes.net]
Re: Latest X Posts in a templated Phorum-Page
April 21, 2005 04:08AM
I'm no JS expert, but maybe the offset needs and id for the object.

Did it work at some point?

---
-=[ Panu ]=-
Re: Latest X Posts in a templated Phorum-Page
April 21, 2005 01:21PM

i'll do some testing but i think it's the table that kind of screwing it up..

i'm not javascript expert either..

can you explain "maybe the offset needs and id for the object"


Re: Latest X Posts in a templated Phorum-Page
April 21, 2005 07:30PM
try defining a style for the popup class:

.popup{
left: 20px;
}

Or something. Now it doesn't have any position information assigned and it opens in default position (which varies browser by browser)

---
-=[ Panu ]=-
Re: Latest X Posts in a templated Phorum-Page
April 24, 2005 12:37PM

already did this..

.popup {position: absolute; width: 350px; background-color:#FFFFFF; layer-background-color:#FFFFFF; visibility: hidden; left:30px; top: 50px;
font-size: 9pt; font-family: arial, helvetica, sans-serif; color:#000000; text-decoration:none;
padding: 5px 5px 5px 5px; border-width: 1; border-color: #cc0000; border-style: solid; margin: 0 0 0 0}


if i change it to relative instead of absolute position the boxes appear after the table.. but in the position relative to where the subject appears in the table.

i think i could get this to behave properly if i used DIVs for the layout instead of a table.

i notice that the index.tpl does this. i haven't figured out quite how that works yet tho.

Re: Latest X Posts in a templated Phorum-Page
April 24, 2005 06:18PM
I think it's quirksmodes code, so yeah you can/have to inline the popup divs to the messagelist.

---
-=[ Panu ]=-
Sorry, only registered users may post in this forum.

Click here to login