i got that error on version 0.1, so please, redownload and reupload everything to your root.
@Zinga, i edited the file myplaza.php (admin dir) and i edited 4 functions inside of that file.
I added a comment:
// ****************************
// ADDED !! ********************
// ****************************
above each line that i EDITED/ADDED.
if($mybb->input['action']=='do_additem'&&$mybb->input['module']){// we'll do some escaping/handling, but otherwise
// let modules handle everything
if(isset($mybb->input['cid']))$cid= intval($mybb->input['cid']);if($mybb->input['visible']!='no')$visible='yes';else$visible='no';// ****************************
// ADDED !! ******************** NOT NECESSARY I THINK
// ****************************
$download= intval($mybb->input['download']);// ****************************
// ADDED !! ******************** NOT NECESSARY I THINK
// ****************************
$password=intval($mybb->input['password']);$restockamount= intval($mybb->input['restockamount']);$restocktime= intval($mybb->input['restocktime']);$stockoffset= calcStockOffset(intval($mybb->input['stock']),$restockamount,$restocktime);$infstock=(($mybb->input['infstock']=='no') ? 'no' : 'yes');$showonstats=(($mybb->input['showonstats']=='no') ? 'no' : 'yes');$plugins->run_hooks("myplaza_admin_do_add_item");}
that's what i edited in that file.
now, in inventory.php i edited this query: (line 770)
Spoiler:
PHP Code:
// get item info
$query=$db->simple_select(TABLE_PREFIX.'plaza_items i INNER JOIN '.TABLE_PREFIX.'plaza_inventory_items v ON i.iid=v.iid','i.iid,i.name,i.format,i.description,i.disporder,i.icon,i.cost,v.image,v.sellable','v.iid IN ('.implode(',',array_keys($useritems)).')',array('order_by'=>'i.disporder','order_dir'=>'ASC','limit_start'=>($page-1)*$perpage,'limit'=>$perpage));
to:
PHP Code:
1 2 3 4 5 6 7 8 9 10
// get item info
$query=$db->simple_select(TABLE_PREFIX.'plaza_items i INNER JOIN '.TABLE_PREFIX.'plaza_inventory_items v ON i.iid=v.iid','i.iid,i.name,i.format,i.description,
// ****************************
// ADDED !! ********************
// ****************************
i.download,
// ****************************
// ADDED !! ********************
// ****************************
i.password,i.disporder,i.icon,i.cost,v.image,v.sellable','v.iid IN ('.implode(',',array_keys($useritems)).')',array('order_by'=>'i.disporder','order_dir'=>'ASC','limit_start'=>($page-1)*$perpage,'limit'=>$perpage));
thanks buddy its activated... where is settings lan file? i can't found it. and some errors again
on plugin activation screen it gives this..
PHP Code:
Warning: myplaza_activate_plugin(): Unable to access /var/www/vhosts/forumsuzca.com/httpdocs/inc/myplaza/class_myplaza_am in /var/www/vhosts/forumsuzca.com/httpdocs/inc/myplaza/myplaza_functions.php on line 461
Warning: myplaza_activate_plugin(/var/www/vhosts/forumsuzca.com/httpdocs/inc/myplaza/class_myplaza_am): failed to open stream: No such file ordirectory in /var/www/vhosts/forumsuzca.com/httpdocs/inc/myplaza/myplaza_functions.php on line 461
Warning: myplaza_activate_plugin(): Failed opening '/var/www/vhosts/forumsuzca.com/httpdocs/inc/myplaza/class_myplaza_am'for inclusion (include_path='.:/usr/share/pear') in /var/www/vhosts/forumsuzca.com/httpdocs/inc/myplaza/myplaza_functions.php on line 461
and on boardname.com/plaza.php screen:
PHP Code:
Warning: Missing argument 2for bank_update_values() in /var/www/vhosts/forumsuzca.com/httpdocs/inc/plugins/myplaza/bank.php on line 364
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/forumsuzca.com/httpdocs/inc/plugins/myplaza/bank.php:364) in /var/www/vhosts/forumsuzca.com/httpdocs/inc/functions.php on line 78
gives that error?
(This post was last modified: 29/11/2007 02:27 AM by dared.)
DARED ! download the latest version !!! you downloaded the first one, get the latest one, that's why you are getting so many errors, that one was fixed on the last version, at least i told zinga to fix..
@Zinga, oh my post wasn't edited when i edited it :s, well, i got it to work, everything is fine. I also changed the returned message and i changed the inventory_item template (or soemthign like that) to display the rar pass and the download links in your inventory, can i redistribute my modification to rockhead? (he is from my forum and he owns a forum too)
oh i see :$ sorry about it :D i downloaded it from community.. i will try from here than.. thanks again..
but its still gives some errors on plaza.php page..
PHP Code:
Warning: Missing argument 2for bank_update_values() in /var/www/vhosts/forumsuzca.com/httpdocs/inc/plugins/myplaza/bank.php on line 364
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/forumsuzca.com/httpdocs/inc/plugins/myplaza/bank.php:364) in /var/www/vhosts/forumsuzca.com/httpdocs/inc/functions.php on line 78
(This post was last modified: 29/11/2007 03:11 AM by dared.)
ZiNgA BuRgA Wrote:I still don't get why PHP would do that... try replacing "&$user = null" with "&$user".
plugin was not activated, yes i did this and than it works now... but it gives this error on domainname.com/plaza.php
Code:
Warning: Missing argument 2 for bank_update_values() in /var/www/vhosts/forumsuzca.com/httpdocs/inc/plugins/myplaza/bank.php on line 364
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/forumsuzca.com/httpdocs/inc/plugins/myplaza/bank.php:364) in /var/www/vhosts/forumsuzca.com/httpdocs/inc/functions.php on line 78
29/11/2007 04:50 AM
ZiNgA BuRgA
Smart Alternative
Posts: 17,022.2988 Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391 E-Pigs: 446.1274