It seems to work well for what I wanted to do. I have the Hivemail integration mod installed, but it only updates new email on two different pages, categories.php and ubbthreads.php. These lines were added to the top of those pages:
[] // BEGIN HIVEMAIL INTEGRATION
define('UBBT_PLUGIN', true);require($config['hivemail_path'].'/includes/ubbthreads_plugin.php');update_newmail();
// END HIVEMAIL INTEGRATION
[/]
I however wanted to make it so new email updates in every page, much like IMs. I figured it wouldn't be much of a performance hit, one extra query per page. Is that sound logic?
Anyhow, to do this, I added these lines to main.inc.php:
[] $hackpath = "/home/laondal/public_html/foros";
include("$hackpath/hack.inc.php");
[/]
And I added this to the contents of a newly created hack.inc.php file (I got the idea from the Forum Design Integration forum, I think):
[] <?
define('UBBT_PLUGIN', true);
require('/home/laondal/public_html/correo/includes/ubbthreads_plugin.php');
update_newmail();
? [/]
Obviously, I had to remove the parts that had been added to the files previously altered in the hack before to avoid a redeclare type error. Now email updates on all pages, even while browsing PhotoPost powered galleries. I'm happy with this.
I however need to know whether this was a good idea or not and what kind of performance hit this would have on busier forums. I'm planning to update the instructions for the Hivemail mod and doing it the way I just did would certainly make it a lot easier, but I need to know if this is sound. Thanks!