From: Jonathan A. <jo...@sq...> - 2003-07-26 20:57:07
|
Hello J., On Saturday, July 26, 2003, J. Blank wrote... > Possible route to a solution: > SquirrelMail's source code is quite complex, and you know it better than > I. > Could someone please trace out the series of events necessary for the > HTMLArea to appear? The sort of 'paper trail' of triggering events that > leads to the HTML area being displayed instead of the plain <TEXTAREA>. > That is, something like: > * Blahblah() in foo.php is called. If it returns 1, then... > * Bleeblee() in bar.php is called. If that returns a value greater than > pi, then... > * Blingbling() in baz.php is called. If that returns 1, then the HTML area > is displayed; else, the plain textarea is displayed. Sure... that's fairly easy, what happens is when we read the config/config.php file, we read the $plugins array. There is a function that then takes every name from the $plugins array, and tries to read a file in that name, for example: $plugins[1] = 'htmlarea' Function reads: plugins/htmlarea/setup.php inside setup.php is a function that gets executed for each plugin, and inside that, the plugin writes to another array. The array is then used at certain parts of the site to execute certain code (see the doc/plugins.txt for a list of hooks). Well in this case, debugging weather the code is running properly is fairly easy... Take a look at the plugins/htmlarea/functions_header.php, there is only 1 function in there, so that is the part where the code is running to build the header for the compose box. To test to see if it's running, simply put: die('I ran'); Inside that function, then go to the compose screen... did you see that message? If not, then there is a starting point. If you saw that message, then the If statement in that function is failing... then we just have to work out which bit of it is failing. -- Jonathan Angliss (jo...@sq...) |