Welcome!
Log In
Create A New Profile
Home
>
Outdated forums
>
Phorum 5.1/5.0
>
5.1 Phorum Modules / Add-Ons
>
Topic
>
Page 7
Latest X Posts in a templated Phorum-Page
Posted by Thomas Seifert
|
April 25, 2005 01:35PM |
Registered: 10 years ago Posts: 799 |
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 02: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 02:39PM by rheo.
|
April 25, 2005 07:02PM |
Registered: 10 years ago Posts: 799 |
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 07:08PM by rheo.
|
Re: Latest X Posts in a templated Phorum-Page April 26, 2005 03:43AM |
Registered: 11 years ago Posts: 994 |
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 ]=-
|
April 26, 2005 07:56PM |
Registered: 10 years ago Posts: 799 |
|
April 27, 2005 01:54AM |
Admin Registered: 10 years ago Posts: 8,791 |
not possible, it would need to do a lot of work, its not just a link as it would need to affect all forums.
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
|
April 29, 2005 02:38AM |
Registered: 10 years ago Posts: 799 |
|
April 29, 2005 07:26AM |
Admin Registered: 10 years ago Posts: 8,791 |
see the phorum_db_newflag_allread to know what needs to be done for one forum.
that function is nicely documented.
no plans from our side to create a function for doing this for all forums as you could also call this function for each and every forum you want to.
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
that function is nicely documented.
no plans from our side to create a function for doing this for all forums as you could also call this function for each and every forum you want to.
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
|
phorum 5.0.16 - newest V 1.1. (download) May 13, 2005 12:24PM |
Registered: 8 years ago Posts: 143 |
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 12: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 12:07AM by irob.
|
May 13, 2005 01:59PM |
Registered: 10 years ago Posts: 799 |
|
May 16, 2005 02:08PM |
Admin Registered: 10 years ago Posts: 8,791 |
irob, can you tell us what you changed/enhanced?
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Sorry, only registered users may post in this forum.



