PDA

View Full Version : Save plugin issue


hymoo
06-09-2009, 09:50 PM
Hi there,

I've got a problem when saving a plugin, I wanne add a template to the subscription bits by doing the following:

eval('$infobits = "' . fetch_template('hymoo_subscription_addinfo') . '";');

$subscriptionbits = $infobits . $subscriptionbits;

When I save this, I get a nice confirmation message and everything works. Now, I need to add a simple variable to this template. thus changing my code:

$result = $vbulletin->db->query_first("SELECT count(userid) as count FROM refer_log WHERE userid = 3"); //the 3 is just a test number. query works in mysql
eval('$infobits = "' . fetch_template('hymoo_subscription_addinfo') . '";');

$subscriptionbits = $infobits . $subscriptionbits;

I try to save my template and.. nothing. I go to a blank page with just the administration footer (vBulletin? v3.8.2, Copyright ?2000-2009, Jelsoft Enterprises Ltd.). No confirmation or error that the plugin has actually been saved or found an error on the code.

Does anyone know why this should happen. because I've created numerous plugins with db querys in them.

Thanks in forward

Lynne
06-09-2009, 10:27 PM
Have you checked your error_logs (if you don't know where they are, ask your host)?

It also always help to specify which hook location you are using.