<div class="gmail_quote">On Tue, Mar 17, 2009 at 1:52 PM, noskule <span dir="ltr"><<a href="mailto:noskule@gmx.net">noskule@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I would like to update a ptv in the users profile page after login. So I<br>
need a function which I could execute in config.php. Something like<br>
<br>
writeptv(pagename, ptv, value)<br>
<br>
I did try peters toolbox, but the probleme there is that it can't be<br>
executed in config php cause it needs stdconfig.php be initialized first.<br>
</blockquote><div><br>To further clarify, it appears that UpdatePage() has several dependencies which prevent it from executing at the time config.php is being run. We tried simply bringing in stdconfig.php early, but that simply exposed another dependency (maybe $LinkPattern?). I copied that in from pmwiki.php further on down and that exposed another dependency. About that time I figured things were going south on that particular approach...<br>
<br>Has anybody gotten UpdatePage() working when called directly from config.php?<br><br>Noskule, you could copy the writeptv() and sub-functions from toolbox.php and replace UpdatePage() with a simple WritePage(). You lose some functionality (historical revisions?) but it might get you where you want to be...<br>
<br>-Peter <br></div></div>