1 edb Nov 28, 2006 01:12
3 edb Nov 28, 2006 22:46
Thanks! I've found that if I watch your replies to everything sooner or later you'll say something that makes me go "wow I can do that?!?" and start the process all over again. For example being able to do "params[item]->id" to get something I obviously saw in a print_r for params.
var_dump() instead of vardump() - hooray! Dunno why but I thought vardump was in the code somewhere so I gave it a shot and it failed so I kept print_r ing everything. Good thing no one else uses the backend of the installation I'm doing this to because it saves me wrapping everything in "if is_logged_in and is me" :)
The doc page you linked to here convinced me to put "echo call to AdminWhateverFoo here" before each "Plugins->trigger_event( 'Admin" so's I would have an idea of where each little bit gets a chance to do it's thing.
Cool! I'm gonna var_dump() and see what there is to see.
4 blueyed Nov 28, 2006 23:14
As said.. pre_dump() is even cooler (better too read) than var_dump().
EdB, there's probably no event where both "Author" and "creator_User" are given in $params.
$params is different for most of the events. See the doc at http://doc.b2evolution.net/v-1-8/plugins/Plugin.html (for 1.8.x).
For debugging, you should use var_dump() instead of print_r() and in b2evo we have the very handy pre_dump() (which wraps html PRE tags around the output).