Log in

View Full Version : how i make hock to run in one style


shqawe
08-09-2012, 04:11 PM
hey all,

i'm making product and one from my options is:
select style to run the product with it.

and i put this code for this option:


select:eval
$options = fetch_style_title_options_array();


now in my plugin area i write this code:


if ($vbulletin->options['act'])
{
if (in_array($foruminfo['styleid'],$vbulletin->options['style'] )) {
eval('$change_th_rp = "' . fetch_template('change_th_rp') . '";');
$vbulletin->templatecache['forumhome_forumbit_level2_post'] = $vbulletin->templatecache['change_th_rp'];
}
}


when i run my product i got this error:



Warning: in_array() [function.in-array]: Wrong datatype for second argument in C:\AppServ\www\vb\index.php(67) : eval()'d code on line 5


can any one help in my problem.

Thanks in advance.

ForceHSS
08-09-2012, 05:14 PM
in your title it says hock what is a hock

Lynne
08-09-2012, 08:10 PM
shqawe,

You are currently showing up as unlicensed.

To be able to download modifications and/or receive support here at vBulletin.org, we ask you to please click here (http://members.vbulletin.com/membersupport_priority.php) (vB-Germany users click here (http://members.vbulletin-germany.com/membersupport_priority.php)) and enter your email address. You will need to use your customer number and password (which will be in the email you got when you paid for your license) to access that page. Please note that your email is case sensitive.

To protect our customers privacy you will also need to Opt-In to license validation for all Support Sites. You must authorise vBulletin.org in order to validate your license status here. You can do this at the page linked above for your distributor. Make sure to set the permission to allow vBulletin.org to validate your status.

The update of your account can take up to one hour.

Thank you.