201
samuels
Re: Using notifications system on my module
  • 2003/11/28 13:32

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I've triggered it in my post.php file. When somebody sends a message it should add the notification, or not?



202
samuels
Re: Buddy list hack
  • 2003/11/28 13:13

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Here is it
Download



203
samuels
Re: Using notifications system on my module
  • 2003/11/27 7:23

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I forgot the permission, the link is ok now.

I can add the notification to my notification list, but I don't receive a new pm when somebody sends a message to the board.
I'll try with allow_bookmark disabled and i'll upload the module somewhere.

Thank's for all.



204
samuels
Re: Using notifications system on my module
  • 2003/11/26 20:24

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I have copied the file notification.inc.php to mymodule/include/ and the file notification_update.php to mymodule/

Perhaps it´s something related to the unique id that I must use, but I've tested it and never is null.

My module it's a modification of xtremmeguestbook module, and I'm using it to provide a presonalized guestbook for each user. It's like posting comments on user's accounts.
I very interested in notification system.

You can see in action here http://www.forjandoleyendas.com/userinfo.php?uid=1

The link "Ver o firmar en su libro de visitas"

Thank's for your time.



205
samuels
Using notifications system on my module
  • 2003/11/26 9:36

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I'm creating a module and I have read the wakka section that explains how to use the notification system.
But I'm unable to make it run.

I have make the following changes to my module:

In xoops_version.php
//Notification
$modversion['hasNotification'] = 1;
$modversion['notification']['lookup_file'] = 'include/notification.inc.php';

$modversion['notification']['category'][1]['name'] = 'messages';
$modversion['notification']['category'][1]['title'] = _MI_FIRMAS_CATEGORY_NOTIFY;
$modversion['notification']['category'][1]['description'] = _MI_FIRMAS_CATEGORY_NOTIFYDSC;
$modversion['notification']['category'][1]['subscribe_from'] = 'index.php';
$modversion['notification']['category'][1]['item_name'] = 'owner_id';
$modversion['notification']['category'][1]['allow_bookmark'] = 1;

$modversion['notification']['event'][1]['name'] = 'new_message';
$modversion['notification']['event'][1]['category'] = 'global';
$modversion['notification']['event'][1]['admin_only'] = 0;
$modversion['notification']['event'][1]['title'] = _MI_FIRMAS_GLOBAL_NEW_MESSAGE_NOTIFY;
$modversion['notification']['event'][1]['caption'] = _MI_FIRMAS_GLOBAL_NEW_MESSAGE_NOTIFYCAP;
$modversion['notification']['event'][1]['description'] = _MI_FIRMAS_GLOBAL_NEW_MESSAGE_NOTIFYDSC;
$modversion['notification']['event'][1]['mail_template'] = 'global_newfile_notify';
$modversion['notification']['event'][1]['mail_subject'] = _MI_FIRMAS_GLOBAL_NEW_MESSAGE_NOTIFYSBJ;


In my post.php file

$notification_handler =& xoops_gethandler('notification');
    
$tags = array();
    
$tags['name'] = '';
    
$tags['url'] = '';
    
$notification_handler->triggerEvent('messages'$owner_id'new_message',$tags);


In my index template i have added:

<{include file:'db:system_notification_select.html'}>


When I go to the index y can see the notification block but it says Bookmark this item (no notification).

Why? Thank's for your time.



206
samuels
Buddy list hack
  • 2003/11/25 7:40

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I have make a hack to create a buddy list in your account.
You can see in action there forjandoleyendas.com.

The table named "Contactos".
If somebody wants it i'll upload it.



207
samuels
Re: Library Module
  • 2003/11/24 14:06

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Status.
TODO:
-Edit individual user bookings by admin.
-Edit individual user fines by admin.
-Create new bookings by admin.



208
samuels
Re: Agenda X 1.2.1 Hacked
  • 2003/11/22 21:56

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Perhaps it's only in my version, but when somebody sends an event, his uid and the post date it's not saved in the bd.



209
samuels
Agenda X 1.2.1 Hacked
  • 2003/11/19 20:18

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


This hack removes a bug. When you enter to your account it displays all events not only the events sended by you.
I've corrected it.
Download



210
samuels
Re: Library Module
  • 2003/11/19 17:00

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


You can create categories like cd's, videos e.t.c but the books form is static.

-Title
-Autor
-Category
-Editorial
-Days of reservation (0 unable to reserve)
-Identification (for personal ordering)
-Description

You can specifiy the days. If a book can be reserved for 5 days, the end date will be 5 days after admin confirmation.
Waitinglist uses FCFS order.

The module uses the users list from xoops.
If a user is administrator of the module he has privileges to modify all the waiting lists, reservations and fines.

Perhaps in future releases i'll apply groups premissions for administrators. (I don't know any module with this functions).

And yes, I'm working on it.




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



Login

Who's Online

175 user(s) are online (73 user(s) are browsing Support Forums)


Members: 0


Guests: 175


more...

Donat-O-Meter

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

Latest GitHub Commits