<div dir="ltr">You can also see how we do this on <a href="http://ttc.org.nz/">http://ttc.org.nz/</a> where the next meeting is always shown<div><br></div><div>regards</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>____<br><a href="http://kiwiwiki.nz" target="_blank"><font size="1">http://kiwiwiki.nz</font></a></div></div></div></div>
<br><div class="gmail_quote">On 4 December 2016 at 07:45, Peter Kay <span dir="ltr"><<a href="mailto:pkay42@gmail.com" target="_blank">pkay42@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you want to be fairly heavy handed about it (and don't mind the<br>
code - if you've handled cron, I can't imagine that being a problem),<br>
this is a similar bit of code you could add to local/config:<br>
<br>
Markup("ShowMeetingDate", 'directives', "/\\(:MeetingDate:\\)/",<br>
"ShowMeetingDate");<br>
<br>
function ShowMeetingDate() {<br>
  $date="";<br>
  for ($i=0; $i<40; $i+=2) {<br>
    $date.=date('Y-m-d', strtotime("28 December 2013")+$i*7*24*60*60) . "<br>";<br>
  }<br>
  return $date;<br>
}<br>
<br>
A judicious use of php's time() function, strtotime() function and the<br>
date() function could easily give you a way to list the next 3 dates,<br>
for example.<br>
<br>
HTH,<br>
<br>
--Peter Kay<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Sat, Dec 3, 2016 at 1:22 AM, jdd <<a href="mailto:jdd@dodin.org">jdd@dodin.org</a>> wrote:<br>
> Hello,<br>
><br>
> My Linux User group have pmwiki as main web site<br>
><br>
> <a href="http://culte.org" rel="noreferrer" target="_blank">http://culte.org</a><br>
><br>
> We have meeting every two weeks, always.<br>
><br>
> I would like to keep anoucing the next meeting on the main page<br>
> automatically ("Next meeting on Saturday XXXXX, from 14:00 to 18:00" for<br>
> example)<br>
><br>
> I did a similar thing many years ago on this page<br>
><br>
> <a href="http://tldp.org/" rel="noreferrer" target="_blank">http://tldp.org/</a><br>
><br>
> (right top date) with a cron job to an html page<br>
><br>
> but it's really crude and probably not fitted for pmwiki<br>
><br>
> what could be the best way?<br>
><br>
> for example, we have a meeting on December 10 one and after that any other<br>
> saturday<br>
><br>
> this script<br>
><br>
> for i in $(seq 0 20); do semaine=$((2*i)); date -d "20131228 $semaine week"<br>
> +'* %A %d %B %Y'; done<br>
><br>
> is used to fill (manually) the meeting page:<br>
><br>
> <a href="http://culte.org/pmwiki/?n=Officiel.DatesDesR%e9unions" rel="noreferrer" target="_blank">http://culte.org/pmwiki/?n=<wbr>Officiel.DatesDesR%e9unions</a><br>
><br>
> any idea?<br>
><br>
> the server is openSUSE/Linux one and I'm the server admin<br>
><br>
> thanks<br>
> jdd<br>
><br>
> ______________________________<wbr>_________________<br>
> pmwiki-users mailing list<br>
> <a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
> <a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer" target="_blank">http://www.pmichaud.com/<wbr>mailman/listinfo/pmwiki-users</a><br>
<br>
______________________________<wbr>_________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer" target="_blank">http://www.pmichaud.com/<wbr>mailman/listinfo/pmwiki-users</a><br>
</div></div></blockquote></div><br></div>