Search Results for 'code'
-
Search Results
-
Hi,
I currently have an API problem fixing a plugin. Using mysql_query() will result in errors on some boards so I wanted to change this using $bbdb->get_results(). This works, but mysql_fetch_array will error things up now. What do I need to change to make this work correctly?
Current code (without using $bbdb->get_results()):
$r = mysql_query("SELECT * FROM $bbdb->menu
WHERE set = 'inactive' ORDER BY order ASC");
while($rw = mysql_fetch_array($r))I’ll probably copy this to TRAC but it’s good for a discussion here too?
I’ve been poking around the results using the query list plugin and something hit me.
Options are not being preloaded (ie. SELECT meta_value FROM $bbdb->topicmeta WHERE topic_id = 0)
However a few options, like active plugins MUST be loaded on every load. So the options table has to be queried at least once, usually two or three times. This causes extra queries.
So the question is, what’s slower, unserializing possibly serialized data in half a dozen to a dozen options, or making half a dozen to a dozen extra mysql queries?
Preloading could be a plugin, the cache code is already there. Just wondering if I should bother working on it given the above question.
I know the emails have to come from somewhere, but still… this was surprise.
Could there be a notice somewhere that the admin email is used to send every registration notification? Spambots are getting it too

I had expected that bbPress would use it only to send notifications to the admin.
what are possible reasons/conditions of getting this nonce message?
I gathered it could be issued by the
bb_check_admin_referer( 'create-post_' . $topic_id );but what is it for?PS I saw there’s a similar title resolved thread, but it doesn’t make it clear.
