211
samuels
Library Module
  • 2003/11/19 12:03

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I'm working on a library module, at this time the status is:

-Make categories
-Add books
-Users can submit books (like donations)
-Each book can be reserved with distinct time.
-Users can reserve a book.
-Users can add a book to their waiting list.
-Users can remove books of their waiting list.
-Users can view their reservations and waiting list.

-Admin can modify the whole waiting list.
-Admin can change if a book is reservable or not.
-Admin can verify and approve the reservations.

TODO:
-Admin can make a user reservation.
-Admin can cancel,modify and fine users.
-Auto fine users.
-Auto PM to user when book reservation is confirmed.
-Edit single user booking information.
-Some way to order the information, by user, by book name e.t.c
-System to purgue de bd.

I have a lot of work to do, some day it will be finished.



212
samuels
Re: Mark all messages read hack practically finished
  • 2003/11/19 11:51

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Thank´s for the answer i'll try at home.



213
samuels
Re: Mark all messages read hack practically finished
  • 2003/11/11 15:19

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


It´s not a good solution because it makes a heavy BD query.
Perhaps it´s easiest to save the actual date in the cookie and consider all posts before the date readed.



214
samuels
Re: Mark all messages read hack practically finished
  • 2003/11/11 15:11

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I'm sorry for my last comment but i´m a noob programming and a can't find documentation. Only two or three documents at wiki section.



215
samuels
Re: Mark all messages read hack practically finished
  • 2003/11/11 14:40

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Thanks for nothing



216
samuels
Re: 4images gallery problems!
  • 2003/11/2 10:26

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


After install tou must run admincp to create the database entries.



217
samuels
Mark all messages read hack practically finished
  • 2003/10/30 19:00

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


It´s not the final version and it can be plenty of bugs. I need help to improve it.

Open modules/newbb/viewforum.php

After line 34 add:
$mark_read intval($HTTP_GET_VARS['mark_read']);



After line 50 add:
//hack mark all messages read by Samuels
if ($mark_read==1
{
    
$topic_lastread = !empty($HTTP_COOKIE_VARS['newbb_topic_lastread']) ? unserialize($HTTP_COOKIE_VARS['newbb_topic_lastread']) : array();
    
$consulta=$xoopsDB->query("SELECT topic_id FROM " $xoopsDB->prefix"bb_topics" ). " WHERE forum_id=$forum order by topic_time desc");
    while (
$contenido=$xoopsDB->fetchArray($consulta))
    {
        
$topic_lastread[$contenido["topic_id"]] = time();
        
setcookie("newbb_topic_lastread"serialize($topic_lastread), time()+365*24*3600$bbCookie['path'], $bbCookie['domain'], $bbCookie['secure']);        
    }
    
$url=XOOPS_URL "/modules/newbb/viewforum.php?forum=".$forum;
    
redirect_header($url,4,"Todos los mensajes marcados como leídos");    
}
//end hack mark all messages read by Samuels


After line:
include XOOPS_ROOT_PATH."/header.php";

Add:
$xoopsTpl->assign('mark_read'"<a href="viewforum.php?forum=".$forum."&mark_read=1">Mark all messages read</a>");


Now you can edit your newbb_viewforum.html theme and add <{$mark_read}> to put the link for mark all post read.

I´m waiting for suggestions.




TopTop
« 1 ... 19 20 21 (22)



Login

Who's Online

234 user(s) are online (160 user(s) are browsing Support Forums)


Members: 0


Guests: 234


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits