Page 1 of 4

[BETA 4] Calendar Alerts MOD v0.0.4

PostPosted: Sat Jan 16, 2010 11:21 am
by battye
This is a MOD I threw together a couple of days ago because I wanted such a MOD, but I liked it enough that I think there might be a broader appeal for this MOD than just me :)

Brief description: What this MOD does is allows users to enter calendar events in the UCP - they select a date, and when they want to be notified of the event. They can choose to be notified either on the day, the day before, a week before (or any combination of those). Then, once the notification time comes, it will appear on the forum index for only them to see :)

Download link (0.0.4): http://www.cmxmods.net/downloads/Calend ... _Beta4.zip

Translations (for 0.0.3):
Italian: viewtopic.php?p=100223#p100223 (thanks to plasmino)

Translations (for 0.0.2):
Italian: viewtopic.php?p=99461#p99461 (thanks to plasmino)
German: viewtopic.php?p=99530#p99530 (thanks to darkonia)
Spanish: http://www.phpbb.com/community/viewtopi ... #p12025005 (thanks to Jorup16)

Translations (for 0.0.1):
German: viewtopic.php?p=98836#p98836 (thanks to Darkonia)
Italian: http://www.phpbb.com/community/viewtopi ... #p11764845 (thanks to plasmino)
Swedish: http://www.phpbb.com/community/viewtopi ... #p11765625 (thanks to trickoff)
Spanish: http://www.phpbb.com/community/viewtopi ... #p11894295 (thanks to Jorup16)

If anyone has any feature requests, please let me know. One feature that was suggested by quahappy was a "global" alert that all users can see, which I also think is a pretty good idea.

Screenshots:

Image

Image

Re: [BETA 1] Calendar Alerts MOD v0.0.1

PostPosted: Sat Jan 16, 2010 11:51 am
by darkonia
here are the German Translation:

Code: Select all
// Calendar Alerts MOD
   'UCP_ALERTS'            => 'Erinnerungen',
   'UCP_ALERTS_TITLE'         => 'Setze Kalender Erinnerungen',
   'UCP_ALERTS_INFO'         => 'Auf dieser Seite kannst Du Kalender Erinnerungen einstellen. Anhand Deiner Einstellungen wirst Du auf dem Forum Index benachrichtigt entweder eine Woche davor, einen Tag davor oder am Tag des von Dir eingetragenen Termins.',
   'UCP_ALERTS_ADD_NEW'      => 'Füge eine neue Erinnerung hinzu',
   'UCP_ALERTS_ADD_NEW_INFO'   => 'Hier kannst Du den Text der Erinnerung eingeben, sowie den Zeitraum für die Anzeiges der von Dir erstellten Erinnerung.',
   'UCP_ALERTS_NOTIFY_TEXT'   => 'Benachrichtigung',
   'UCP_ALERTS_DAY'         => 'Am selben Tag',
   'UCP_ALERTS_DAY_BEFORE'      => 'Einen Tag davor',
   'UCP_ALERTS_WEEK_BEFORE'   => 'Eine Woche davor',
   'UCP_ALERTS_FORM_REDO'      => 'Bitte überprüfe Deine Angaben ob alles richtig und vollständig eingetragen wurde.<br />%sGehe zur letzten Seite zurück%s.',
   'UCP_ALERTS_SUBMITTED'      => 'Deine Erinnerung für %s wurde erfolgreich gespeichert. Du wirst für den Termin erinnert bei der von Dir eingestellten Zeit: %s<br />%sGehe zur letzten Seite zurück%s.',
   'UCP_ALERTS_DELETE'         => 'Lösche die Erinnerung',
   'UCP_ALERTS_DELETE_CONFIRM'   => 'Bist Du dir sicher das Du diese Erinnerung Löschen willst?',
   'UCP_ALERTS_DELETE_SUCCESS'   => 'Diese Erinnerung wurde erfolgreich gelöscht.<br />%sGehe zur letzten Seite zurück%s.',

Re: [BETA 1] Calendar Alerts MOD v0.0.1

PostPosted: Sat Jan 16, 2010 11:56 am
by battye
Thanks Darkonia, I have added a link to the translation in the first post here and at phpBB.com :D (I will start doing the same with UQM as of Beta 3 - to be released this weekend - as well as it is much more organised)

Re: [BETA 1] Calendar Alerts MOD v0.0.1

PostPosted: Mon Jan 18, 2010 2:14 pm
by plasmino
this is very nice.. would be possible to automatically insert the username of who placed the alert?

example..

Getting close to australia day (posted by ....)
21 jannuary 2010

Re: [BETA 1] Calendar Alerts MOD v0.0.1

PostPosted: Mon Jan 18, 2010 3:16 pm
by battye
Hi plasmino, I'm glad you are able to log in okay this time :)

I could place the username in there, but as users can only see their own alerts what would the benefit be? :)

Re: [BETA 1] Calendar Alerts MOD v0.0.1

PostPosted: Mon Jan 18, 2010 3:20 pm
by plasmino
AAAAA ops forgot if you can add the option to view the alert public and private ^_^

ps: Yes, I can access, thanks for the help ^ _ ^

Re: [BETA 1] Calendar Alerts MOD v0.0.1

PostPosted: Mon Jan 18, 2010 3:33 pm
by battye
plasmino wrote:AAAAA ops forgot if you can add the option to view the alert public and private ^_^

ps: Yes, I can access, thanks for the help ^ _ ^


As I said in the first post, quahappy suggested a "global" alert that all users can see (which admins can add). I like this idea and I'll probably add it in v0.0.2 :)

Re: [BETA 2] Calendar Alerts MOD v0.0.2

PostPosted: Fri Feb 05, 2010 1:36 pm
by battye
v0.0.2 released. Download is available at http://www.cmxmods.net/downloads/Calend ... _beta2.zip

Major new features include a "global alerts" function which allows administrators to set an alert so everyone sees it. Also, a "7 day leadup" feature whereby you can be alerted everyday for the seven days before the event.

Re: [BETA 2] Calendar Alerts MOD v0.0.2

PostPosted: Fri Feb 05, 2010 6:20 pm
by plasmino
italian language Calendar Alerts MOD v0.0.2

Code: Select all
// Calendar Alerts MOD
   'UCP_ALERTS'            => 'Avvisi',
   'UCP_ALERTS_TITLE'         => 'Calendario di avvisi',
   'UCP_ALERTS_INFO'         => 'In questa pagina è possibile inserire avvisi nel calendario. A seconda delle impostazioni quando si invia una segnalazione, si riceverà un avviso di notifica nella pagina indice forum una settimana prima, un giorno prima e il giorno della segnalazione.',
   'UCP_ALERTS_ADD_NEW'      => 'Aggiungi un Avviso',
   'UCP_ALERTS_ADD_NEW_INFO'  => 'Qui puoi inserire il testo per l\'avviso, nonché la data di quando si desidera essere informati.',
   'UCP_ALERTS_NOTIFY_TEXT'   => 'Notifica',
   'UCP_ALERTS_DAY'         => 'Lo stesso giorno',
   'UCP_ALERTS_DAY_BEFORE'      => 'Il giorno prima',
   'UCP_ALERTS_WEEK_BEFORE'   => 'Una settimana prima',
   'UCP_ALERTS_WEEK_LEADING'   => 'Per ciascuno dei sette giorni precedenti l\'evento',
   'UCP_ALERTS_GLOBAL'      => 'Avviso Globale',
   'UCP_ALERTS_FORM_REDO'      => 'Prego controllare che la data, il testo avvisi e i tempi di notifica siano stati tutti riempiti correttamente.<br />%sRitorna alla pagina precedente%s.',
   'UCP_ALERTS_SUBMITTED'      => 'Il tuo avviso per %s è stato inserito nel database. Sarai avvisato molti giorni prima di ogni evento: %s<br />%sRitorna alla pagina precedente%s.',
   'UCP_ALERTS_DELETE'         => 'Elimina Avviso',
   'UCP_ALERTS_DELETE_CONFIRM'   => 'Sei sicuro di voler cancellare questo avviso?',
   'UCP_ALERTS_DELETE_SUCCESS'   => 'L\'avviso è stato cancellato con successo.<br />%sRitorna nella pagina precedente%s.',

Re: [BETA 2] Calendar Alerts MOD v0.0.2

PostPosted: Sat Feb 06, 2010 7:06 am
by battye
Thanks plasmino :)
I've updated the first post here and at phpBB.com.

Re: [BETA 2] Calendar Alerts MOD v0.0.2

PostPosted: Wed Feb 10, 2010 12:28 pm
by darkonia
v0.0.2 German Translation

Code: Select all
// Calendar Alerts MOD
   'UCP_ALERTS'            => 'Erinnerungen',
   'UCP_ALERTS_TITLE'         => 'Setze Kalender Erinnerungen',
   'UCP_ALERTS_INFO'         => 'Auf dieser Seite kannst Du Kalender Erinnerungen einstellen. Anhand Deiner Einstellungen wirst Du auf dem Forum Index benachrichtigt entweder eine Woche davor, einen Tag davor oder am Tag des von Dir eingetragenen Termins.',
   'UCP_ALERTS_ADD_NEW'      => 'Füge eine neue Erinnerung hinzu',
   'UCP_ALERTS_ADD_NEW_INFO'   => 'Hier kannst Du den Text der Erinnerung eingeben, sowie den Zeitraum für die Anzeiges der von Dir erstellten Erinnerung.',
   'UCP_ALERTS_NOTIFY_TEXT'   => 'Benachrichtigung',
   'UCP_ALERTS_DAY'         => 'Am selben Tag',
   'UCP_ALERTS_DAY_BEFORE'      => 'Einen Tag davor',
   'UCP_ALERTS_WEEK_BEFORE'   => 'Eine Woche davor',
   'UCP_ALERTS_WEEK_LEADING'   => 'Für 7-malige Wiederholung vor und bis zum Erinnerungsdatum',
   'UCP_ALERTS_GLOBAL'      => 'Globale Erinnerung',
   'UCP_ALERTS_FORM_REDO'      => 'Bitte überprüfe Deine Angaben ob alles richtig und vollständig eingetragen wurde.<br />%sGehe zur letzten Seite zurück%s.',
   'UCP_ALERTS_SUBMITTED'      => 'Deine Erinnerung für %s wurde erfolgreich gespeichert. Du wirst für den Termin erinnert bei der von Dir eingestellten Zeit: %s<br />%sGehe zur letzten Seite zurück%s.',
   'UCP_ALERTS_DELETE'         => 'Lösche die Erinnerung',
   'UCP_ALERTS_DELETE_CONFIRM'   => 'Bist Du dir sicher das Du diese Erinnerung Löschen willst?',
   'UCP_ALERTS_DELETE_SUCCESS'   => 'Diese Erinnerung wurde erfolgreich gelöscht.<br />%sGehe zur letzten Seite zurück%s.',

Re: [BETA 2] Calendar Alerts MOD v0.0.2

PostPosted: Wed Feb 10, 2010 4:20 pm
by battye
Thanks darkonia.

I was working on 0.0.3 a bit tonight, I believe I have now fixed the pacific time / 2:00 bug (that havocwreaker was alluding to) and also added the "global text to UCP and index" so admin's global alerts will have "Global" said next to it (although I agree with the users at phpBB.com, something like "Administrator alert" is more understandable - but I like global as it is concise and it is easily changed in the lang entry) and in the UCP global alerts are highlighted in red.

Still to be done in 0.0.3:

  • Destroy cache after alert is submitted
  • UMIL (maybe, might wait until 0.0.4)
  • Re-structure ucp_alerts.html (split it up into more rows, have the add new alert bit at the top so users don't have to scroll)

This is a handy little MOD, I've really enjoyed making it.

Re: [BETA 2] Calendar Alerts MOD v0.0.2

PostPosted: Thu Feb 11, 2010 6:41 pm
by darkonia
request:

- edit alert option
- bbcode usage

Re: [BETA 2] Calendar Alerts MOD v0.0.2

PostPosted: Tue Feb 23, 2010 1:19 pm
by battye
bbCode is on the list for beta 4 darkonia :D

Here is 0.0.3 (beta 3) :D: http://cmxmods.net/downloads/Calendar%2 ... _v003a.zip

Changes include:
- fix 2:00 bug / pacific time bug
- destroy cache once alert is entered / deleted
- "global" text in UCP & index
- re-structure ucp_alerts.html
- fix wrong month bug

Thanks lovelysummer for creating a subsilver file for ucp_alerts.html :D
Code: Select all
<!-- INCLUDE ucp_header.html -->
<table class="tablebg" width="100%" cellspacing="1">
<tr>
   <th colspan="2" valign="middle">{L_UCP_ALERTS_TITLE}</th>
</tr>
<tr>
   <td class="row3" colspan="2"><span class="gensmall">{L_UCP_ALERTS_INFO}</span></td>
</tr>
   

<tr>
   <td class="row1" width="40%"><label for="add"><b class="genmed">{L_UCP_ALERTS_ADD_NEW}:</b></label><br /><span class="genmed">{L_UCP_ALERTS_ADD_NEW_INFO} </span><br />
   </td>
   <td class="row2" align="center"><textarea name="add" rows="2" cols="50"  id="add" ></textarea><br />
   {L_DAY}: <select name="sday">{S_DAY}</select> {L_MONTH}: <select name="smonth">{S_MONTH}</select> {L_YEAR}: <select name="syear">{S_YEAR}</select><br />
   </td >   
</tr>
<tr>
   <td class="row1" width="40%"><label for="add"><b class="genmed">{L_UCP_ALERTS_DAYS_SELECT}:</b></label><br /><span class="genmed">{L_UCP_ALERTS_DAYS_SELECT_INFO} </span></td>
   <td class="row2" align="left"><input type="checkbox" value="1" name="day" /> {L_UCP_ALERTS_DAY} <input type="checkbox" value="1" name="daybefore" /> {L_UCP_ALERTS_DAY_BEFORE} <input type="checkbox" value="1" name="week" /> {L_UCP_ALERTS_WEEK_BEFORE} <br /><input type="checkbox" value="1" name="week_leading" /> {L_UCP_ALERTS_WEEK_LEADING}</td>

</tr>
<!-- IF U_ALERT_GLOBAL -->
<tr>
   <td class="row1" width="40%"><label for="alert_global"><b class="genmed">{L_UCP_ALERTS_GLOBAL}:</b></label><br /><span class="genmed">{L_UCP_ALERTS_GLOBAL_INFO} </span><br />
   </td>
   <td class="row2" align="left"><input type="checkbox" value="1" name="alert_global" id="alert_global"/><span class="genmed">{L_YES}</span>
   </td>
</tr>
<!-- ENDIF -->
<!-- BEGIN alerts -->
<tr>
   <td class="row1" width="40%">
   <div style="float: {S_CONTENT_FLOW_END}; margin-{S_CONTENT_FLOW_END}: 5px;"><a href="{alerts.U_DELETE_LINK}" title="{L_DELETE_POST}"><img src="{T_THEME_PATH}/images/icon_post_delete.gif" title="{L_DELETE_POST}" alt="{L_DELETE_POST}"/></a> </div>
      <span><strong>{alerts.U_ALERT}</strong><br />{alerts.U_DATE}</span>
   </td>
   <td class="row2" align="left" >
      <span><strong>{L_UCP_ALERTS_NOTIFY_TEXT}: </strong><br />{alerts.U_NOTIFY}<!-- IF alerts.U_GLOBAL_NOTIFY --><span style="color: red">{alerts.U_GLOBAL_NOTIFY}</span><!-- ENDIF --></span>
   </td>
</tr>
<!-- END alerts -->

<tr>
   <td class="cat" align="center" colspan="2">
   {S_HIDDEN_FIELDS}<input class="btnmain" type="submit" name="submit" value="{L_SUBMIT}" />&nbsp;&nbsp;<input class="btnlite" type="reset" value="{L_RESET}" name="reset" />
   </td>
</tr>

</table>
<!-- INCLUDE ucp_footer.html -->


And the edit for index_body.html in subsilver2 (thanks again to lovelysummer :D)

Code: Select all
<!-- IF U_CALENDAR_ALERTS -->
   <!-- BEGIN alerts -->
   <table class="forumrules" width="100%" cellspacing="0">
      <tr>
         <td><h3><strong>{alerts.U_CALENDAR_ALERT_DATE}</strong></h3>
         <br /><strong><!-- IF alerts.U_CALENDAR_ALERT_GLOBAL -->{L_CALENDAR_ALERTS_ADMIN_ALERT}: <!-- ENDIF -->{alerts.U_CALENDAR_ALERT_NOTIFICATION}</strong>
         </td>
      </tr>
   </table>     
   <!-- END alerts -->
<!-- ENDIF -->

Re: [BETA 3] Calendar Alerts MOD v0.0.3

PostPosted: Fri Mar 19, 2010 7:56 am
by plasmino
Language Italian Calendar Alerts MOD v0.0.3

language/it/common.php

Code: Select all
// Calendar Alerts MOD
   'CALENDAR_ALERTS_ADMIN_ALERT'   => 'Avviso Globale Admin',


language/it/ucp.php

Code: Select all
// Calendar Alerts MOD
   'UCP_ALERTS'            => 'Avvisi',
   'UCP_ALERTS_TITLE'         => 'Calendario di avvisi',
   'UCP_ALERTS_INFO'         => 'In questa pagina è possibile inserire avvisi nel calendario. A seconda delle impostazioni quando si invia una segnalazione, si riceverà un avviso di notifica nella pagina indice forum una settimana prima, un giorno prima e il giorno della segnalazione.',
   'UCP_ALERTS_ADD_NEW'      => 'Aggiungi un Avviso',
   'UCP_ALERTS_ADD_NEW_INFO'  => 'Qui puoi inserire il testo per l\'avviso, nonché la data di quando si desidera essere informati.',
   'UCP_ALERTS_NOTIFY_TEXT'   => 'Notifica',
   'UCP_ALERTS_DAY'         => 'Lo stesso giorno',
   'UCP_ALERTS_DAY_BEFORE'      => 'Il giorno prima',
   'UCP_ALERTS_WEEK_BEFORE'   => 'Una settimana prima',
   'UCP_ALERTS_WEEK_LEADING'   => 'Per ciascuno dei sette giorni precedenti l\'evento',
   'UCP_ALERTS_GLOBAL'      => 'Avviso Globale',
   'UCP_ALERTS_GLOBAL_INFO'   => 'Spuntare qui, se si desidera che questo avviso sia visibile a tutti.',
   'UCP_ALERTS_DAYS_SELECT'   => 'Essere avvertiti',
   'UCP_ALERTS_DAYS_SELECT_INFO'   => 'Seleziona quando si desidera essere avvertiti per questo evento.',
   'UCP_ALERTS_FORM_REDO'      => 'Prego controllare che la data, il testo avvisi e i tempi di notifica siano stati tutti riempiti correttamente.<br />%sRitorna alla pagina precedente%s.',
   'UCP_ALERTS_SUBMITTED'      => 'Il tuo avviso per %s è stato inserito nel database. Sarai avvisato molti giorni prima di ogni evento: %s<br />%sRitorna alla pagina precedente%s.',
   'UCP_ALERTS_DELETE'         => 'Elimina Avviso',
   'UCP_ALERTS_DELETE_CONFIRM'   => 'Sei sicuro di voler cancellare questo avviso?',
   'UCP_ALERTS_DELETE_SUCCESS'   => 'L\'avviso è stato cancellato con successo.<br />%sRitorna nella pagina precedente%s.',