Firefox PHP

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
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.
Attachments:
open | download - newest10.tpl (3.8 KB)
Re: Latest X Posts in a templated Phorum-Page
April 25, 2005 08:02PM

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
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 ]=-
Re: Latest X Posts in a templated Phorum-Page
April 26, 2005 08:56PM

got that figured out now..

now wondering about the "mark all read" for this view.. possible?

Re: Latest X Posts in a templated Phorum-Page
April 27, 2005 02:54AM
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
Re: Latest X Posts in a templated Phorum-Page
April 29, 2005 03:38AM

could a function be crafted to quickly mark every post in every forum read for a user?

what needs to happen in the database?
Re: Latest X Posts in a templated Phorum-Page
April 29, 2005 08:26AM
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 5.0.16 - newest V 1.1. (download)
May 13, 2005 01:24PM
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.
Attachments:
open | download - newest11.zip (2.9 KB)
Re: Latest X Posts in a templated Phorum-Page
May 13, 2005 02:59PM

can we see this working somewhere?
Re: Latest X Posts in a templated Phorum-Page
May 16, 2005 03:08PM
irob, can you tell us what you changed/enhanced?


Thomas Seifert
Sorry, only registered users may post in this forum.

Click here to login