<div class="gmail_quote">On Sun, Mar 29, 2009 at 3:57 PM, Hans <span dir="ltr"><<a href="mailto:design5@softflow.co.uk">design5@softflow.co.uk</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;">
<div class="im">Sunday, March 29, 2009, 2:01:55 PM, Peter wrote:<br>
<br>
> I have run into difficulty running UpdatePage() from config.php. In my own<br>
> trouble-shooting I determined there were just too many things uninitialized,<br>
> but perhaps I was wrong in that conclusion. If someone has successfully run<br>
> UpdatePage() from config.php I would be very grateful for any pointers.<br>
<br>
</div>I am not sure what you mean by "running UpdatePage() from config.php".<br>
Surely you don't want to call that function with every page load.<br>
If you have a custom action defined, then such action will cause<br>
acutstom function to be called, and you can use UpdatePage() within<br>
it. Same goes for a custom markup calling a custom markup function.<br>
So where exactly are the difficulties?<br>
<font color="#888888"></font></blockquote><div><br>I don't remember the exact scenario... Maybe trying to log actions & users? But, yes, the desire was to write to a page based on certain conditions within config.php. Maybe this was trying to set a PTV in a user's profile to indicate their last action along with a timestamp -- I think that was it... <br>
<br>So that rules out a custom action -- the desire was to write in conjunction with the browse or edit action. Theoretically it could have been done via a markup in a site-wide header or maybe by registering a shutdown function, but the conclusion was that was too much complication for a relatively simple function.<br>
<br>-Peter<br></div></div>