Latest X Posts in a templated Phorum-Page
Posted by Thomas Seifert
Re: Latest X Posts in a templated Phorum-Page April 25, 2005 02:35PM |
Registered: 22 years ago Posts: 793 |
i figured out why this wasn't working quite right... it seems to be behaving properly now..
[www.neotribes.net]
i had to calculate the absolute position by taking into account all the nested cells like this:
var oObj = obj;
var iTotalTop = 0;
var iTotalLeft = 0;
while (oObj){
iTotalTop += oObj.offsetTop;
iTotalLeft += oObj.offsetLeft;
oObj = oObj.offsetParent;
}
here is my stylesheet entry for .popup
.popup {position: absolute; width: 400px; background-color:#C4DFFE; layer-background-color:#C4DFFE; 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: #3664BB; border-style: solid; margin: 0 0 0 0}
here's the javascript and template:
[www.neotribes.net]
Edited 2 time(s). Last edit at 04/25/2005 03:39PM by rheo.
[www.neotribes.net]
i had to calculate the absolute position by taking into account all the nested cells like this:
var oObj = obj;
var iTotalTop = 0;
var iTotalLeft = 0;
while (oObj){
iTotalTop += oObj.offsetTop;
iTotalLeft += oObj.offsetLeft;
oObj = oObj.offsetParent;
}
here is my stylesheet entry for .popup
.popup {position: absolute; width: 400px; background-color:#C4DFFE; layer-background-color:#C4DFFE; 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: #3664BB; border-style: solid; margin: 0 0 0 0}
here's the javascript and template:
[www.neotribes.net]
Edited 2 time(s). Last edit at 04/25/2005 03:39PM by rheo.
Re: Latest X Posts in a templated Phorum-Page April 25, 2005 08:02PM |
Registered: 22 years ago Posts: 793 |
next enhancement.
how possible would it be to put a "mark all read" link on the newest from all forums page?
also, i don't seem to have any control over how long the rollover stays up.. any ideas how i can make it stay on the page longer before it disappears?
Edited 1 time(s). Last edit at 04/25/2005 08:08PM by rheo.
Re: Latest X Posts in a templated Phorum-Page April 26, 2005 04:43AM |
Registered: 23 years ago Posts: 1,076 |
rheo Wrote:
-------------------------------------------------------
> also, i don't seem to have any control over how
> long the rollover stays up.. any ideas how i can
> make it stay on the page longer before it
> disappears?
Well put a delay before the hide part. Was it so that it hides as soon as you mouseout from the link?
You can find couple of tips here:
[www.faqts.com]
---
-=[ Panu ]=-
-------------------------------------------------------
> also, i don't seem to have any control over how
> long the rollover stays up.. any ideas how i can
> make it stay on the page longer before it
> disappears?
Well put a delay before the hide part. Was it so that it hides as soon as you mouseout from the link?
You can find couple of tips here:
[www.faqts.com]
---
-=[ Panu ]=-
Re: Latest X Posts in a templated Phorum-Page April 26, 2005 08:56PM |
Registered: 22 years ago Posts: 793 |
Re: Latest X Posts in a templated Phorum-Page April 27, 2005 02:54AM |
Admin Registered: 22 years ago Posts: 9,240 |
Re: Latest X Posts in a templated Phorum-Page April 29, 2005 03:38AM |
Registered: 22 years ago Posts: 793 |
Re: Latest X Posts in a templated Phorum-Page April 29, 2005 08:26AM |
Admin Registered: 22 years ago Posts: 9,240 |
phorum 5.0.16 - newest V 1.1. (download) May 13, 2005 01:24PM |
Registered: 20 years ago Posts: 135 |
Latest X Posts in a templated Phorum-Page
Version 1.1
UPDATE 1.0. --> 1.1
- Fixed and sorted out the different version-numbers to become one complete version.
- newest10.php becames newest11.php
- newest10.tpl becames newest11.tpl
- optimized the phpsource to the new filenames newest11.php and newest11.tpl
- Corrected/Renamed the subject in the download-area, so the user will detect at once the file before the user must read through the whole discussion-thread
Edited 3 time(s). Last edit at 05/17/2005 01:07AM by irob.
Version 1.1
UPDATE 1.0. --> 1.1
- Fixed and sorted out the different version-numbers to become one complete version.
- newest10.php becames newest11.php
- newest10.tpl becames newest11.tpl
- optimized the phpsource to the new filenames newest11.php and newest11.tpl
- Corrected/Renamed the subject in the download-area, so the user will detect at once the file before the user must read through the whole discussion-thread
Edited 3 time(s). Last edit at 05/17/2005 01:07AM by irob.
Re: Latest X Posts in a templated Phorum-Page May 13, 2005 02:59PM |
Registered: 22 years ago Posts: 793 |
Re: Latest X Posts in a templated Phorum-Page May 16, 2005 03:08PM |
Admin Registered: 22 years ago Posts: 9,240 |
Sorry, only registered users may post in this forum.