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