Jump to content

Functions to add to mysql_admin_queries.php


Guest Michael

Recommended Posts

Can you please add the following functions to the sources/sql/mysql_admin_queries.php file:

  • msg_get_cc_users
  • msg_get_msg_poster
Those two functions are used by the PM library functions when sending personal messages. Any mods or other addons inside the ACP that need to send PMs using the func_msg.php file will require those functions be present in the loaded cache file. Otherwise the mods have to do a less elegant workaround like inserting the PM stuff using a few custom DB queries.
Link to comment
Share on other sites

Are the extra queries always loaded? My concern is that by using the func_msg.php, it calls the cached queries using the cache_add_query function, but doesn't pass in the third argument that function uses, $method. So that argument will always be 'sql_queries', when it looks like functions in the extra queries file always pass in 'sql_extra_queries' as that third argument.

Link to comment
Share on other sites

  • 2 months later...

That would be ideal, since the root of the problem that led to this topic was the fact that the func_msg class has calls to a couple cached queries that aren't present in the cache file loaded in the ACP, meaning you can't use that class to send PMs from the ACP without adding these functions to the mysql_admin_queries.php file.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...