Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[MyBB] MyPlaza v0.5 (beta version)
Author Message
usif
Im just usif

Posts: 274.4127
Threads: 17
Joined: 20th Apr 2007
Reputation: 2.04707
E-Pigs: 1.1680
Offline
Post: #11
RE: [MyBB] MyPlaza (preview version)
that looks so awesome :
24/11/2007 12:04 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
Offline
Post: #12
RE: [MyBB] MyPlaza (preview version)
Pirata Nervo Wrote:well I'm installing it and i noticed one thing in the readme:
Find:
makelabelcode($lang»reg_ip, $user[\'regip\']);
And it should be:
makelabelcode($lang»reg_ip, $user['regip']);
i had no problems finding it but, maybe some guys will have =/

the same happens with:
maketextareacode($lang»signature, "signature", \'\', 6, 50);
should be:
maketextareacode($lang»signature, "signature", '', 6, 50);
Oops.

Pirata Nervo Wrote:Ok, installed, but error when going to plaza.php:

Parse error: syntax error, unexpected T_STRING in /www/freeweb7.com/p/e/r/perfectpredicament/htdocs/forums/plaza.php(321) : eval()'d code on line 1

Warning: Cannot modify header information - headers already sent by (output started at /www/freeweb7.com/p/e/r/perfectpredicament/htdocs/forums/plaza.php(321) : eval()'d code:1) in /www/freeweb7.com/p/e/r/perfectpredicament/htdocs/forums/inc/functions.php on line 79

i can access everything but i see that error, also, i know how to add categories, but how do i add items??
Can't quite think of why, but trying changing line 321 to:

PHP Code:
eval('$ajaxerrmsg = "'.str_replace(array("\n", '"'), array('', '\\\\"'), $templates->get('plaza_buy_fail')).'";');

Tell me if that works.

You can't add items from the AdminCP.  I don't see how that makes sense... >_>
Items need to be added through modules.

Pirata Nervo Wrote:I also found an issue that you must fix:
When I went to plaze.php
i had 28.956,50 $, i deposited 20.000$ and then i went to plaza.php?action=page&p=bank (the bank) and then i Withdrawed 20.000$, i got the 20.000$ on my hand, but i still have 20.000$ in my bank lol. (i deposited the money using the ajax thing that you made, you can find it on the right side of the categories and items table.)
Didn't realize that.
Attached is a fixed bank module - you can just overwrite your current one - no need to deactivate it.

.php  bank.php (Size: 18.14 KB / Downloads: 139)
Will update the package at the top sometime.

Pirata Nervo Wrote:so, wee can't add items, i thought wee could, just like in inventory shop or downloads plugin.
so, i must finish my modification to inventory shop plugin...OR can you add that small feature? :)
This isn't an inventory shop.
I'm thinking about writing an Inventory module, however, it will never be a part of MyPlaza (since it really limits what MyPlaza can do, plus it doesn't make any sense to me).

Pirata Nervo Wrote:@Zinga, i finished my first module, however it doesn't display in the admin cp..=| i will pm you the code after you take a look at my posts here lol xD
Did you upload it to the correct location?  Should be under /inc/plugins/myplaza/
24/11/2007 07:09 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
Offline
Post: #13
RE: [MyBB] MyPlaza v0.11 (preview version 2)
Okay, Pirata Nervo, updated to v0.11 - fixed the bugs that you mentioned (I hope).
Also adds ability for modules to upload files via AJAX.  Just deactivate MyPlaza, overwrite with newer version, then reactivate the plugin.
24/11/2007 11:58 PM
Visit this user's website Find all posts by this user Quote this message in a reply
S7*
Sweet Dreams

Posts: 16,689.4373
Threads: 1,056
Joined: 3rd Apr 2007
Reputation: 14.29926
E-Pigs: 383.2289
Offline
Post: #14
RE: [MyBB] MyPlaza v0.11 (preview version 2)
nice work Zinga!
25/11/2007 02:42 AM
Find all posts by this user Quote this message in a reply
Pirata Nervo
NervOS Developer

Posts: 699.4765
Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
Offline
Post: #15
RE: [MyBB] MyPlaza v0.11 (preview version 2)
thanks Zinga, I'm re-installing your plugin. I already found a way to "add" items like in inventory shop, but, for every item, i will need a file, but that's not important, i will see if i can find any bugs, i will let you know.

Also, about my module, I imported it from the Admin CP, so it was uploaded to the correct directory, i don't know what's wrong with it, let me just re-install this and see if everything works fine, then i will try to fix my module problem, if i can't, then i will pm you the source.

EDIT, lol, sry but i found errors again, not in the same place, i forgot to tell you this ones:
Spoiler:
Warning: include_once() [function.include-once]: Unable to access /www/freeweb7.com/p/e/r/perfectpredicament/htdocs/forums/inc/myplaza/class_myplaza_am in /www/freeweb7.com/p/e/r/perfectpredicament/htdocs/forums/inc/myplaza/myplaza_functions.php on line 461

Warning: include_once(/www/freeweb7.com/p/e/r/perfectpredicament/htdocs/forums/inc/myplaza/class_myplaza_am) [function.include-once]: failed to open stream: No such file or directory in /www/freeweb7.com/p/e/r/perfectpredicament/htdocs/forums/inc/myplaza/myplaza_functions.php on line 461

Warning: include_once() [function.include]: Failed opening '/www/freeweb7.com/p/e/r/perfectpredicament/htdocs/forums/inc/myplaza/class_myplaza_am' for inclusion (include_path='.:/usr/share/php') in /www/freeweb7.com/p/e/r/perfectpredicament/htdocs/forums/inc/myplaza/myplaza_functions.php on line 461
after i click "Activate" it redirects and then i see that above the:
Spoiler:
Thankyou for activating MyPlaza! I have spent a fair amount of time writing this up, so I hope you enjoy this plugin.
Please take the time to read the main sections of the readme, in particular, information about Advanced Modules. You can find MyPlaza options in the left navigation menu of the AdminCP.
Also, don't forget to visit the MyPlaza Release Thread!

Please select what you want to do:

    * Return to MyBB's Plugin Manager
    * Configure MyPlaza settings
    * Configure MyPlaza modules
well i think you could fix this ?

EDIT EDIT, I fixed that error,
overwrite the line 461 with include_once MYBB_ROOT.'inc/myplaza/class_myplaza_am.php'; (you forgot to put the .php after the file name xD) new version comiiiing lol
I can't find any header errors now, thank you.

EDIT EDIT EDIT: I fixed my module error!! yay, i just need to fix something lol, it says "connection error" when i buy the item, but i will fix that too!

Can you tell me what character type do you use in your plugin page? because this character: - can't be read from your page..

(This post was last modified: 25/11/2007 04:20 AM by Pirata Nervo.)
25/11/2007 03:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
Offline
Post: #16
RE: [MyBB] MyPlaza v0.11 (preview version 2)
Pirata Nervo Wrote:EDIT EDIT, I fixed that error,
overwrite the line 461 with include_once MYBB_ROOT.'inc/myplaza/class_myplaza_am.php'; (you forgot to put the .php after the file name xD) new version comiiiing lol
I can't find any header errors now, thank you.
>_<
Wonder why it didn't do that to me?  Maybe the newer PHP just assumes it or something... >_>
Thanks :)

Pirata Nervo Wrote:EDIT EDIT EDIT: I fixed my module error!! yay, i just need to fix something lol, it says "connection error" when i buy the item, but i will fix that too!

Can you tell me what character type do you use in your plugin page? because this character: - can't be read from your page..
If I recall correctly, you can only use letters, numbers and underscore character in module filenames...
"Connection error" occurs when no data has been received, or the incorrect data has been received.  If you want, PM me the module and I'll check it out.

Thanks for testing Pirata Nervo!


By the way, you do not need one file for each item.  A module can add as many items as it wants to.
(This post was last modified: 25/11/2007 04:43 AM by ZiNgA BuRgA.)
25/11/2007 04:40 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Pirata Nervo
NervOS Developer

Posts: 699.4765
Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
Offline
Post: #17
RE: [MyBB] MyPlaza v0.11 (preview version 2)
Ok I will pm you the code then ! thank you, you can call me just pirata.

25/11/2007 04:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
SXForce
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Posts: 280.3000
Threads: 38
Joined: 20th Feb 2007
Reputation: 1.40616
E-Pigs: 5.6493
Offline
Post: #18
RE: [MyBB] MyPlaza v0.11 (preview version 2)
Nice, keep it up.

It's a preview version, otherwise I would have said something about the interface. :P

26/11/2007 07:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Pirata Nervo
NervOS Developer

Posts: 699.4765
Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
Offline
Post: #19
RE: [MyBB] MyPlaza v0.11 (preview version 2)
hey zinga, something is wrong now ..:S, my module isn't detected !!! I don't know what's the problem, i was changing some functions :P but i replaced everything back and still not working ..

Also i found a new thing that you forgot to edit! (my php detected it, but it didn't before!)
Line 461 (myplaza_functions.php):
include_once MYBB_ROOT.'inc/myplaza/class_myplaza_am';

you forgot the .php after the name again lol.

after i get that php error, i fixed the error and then deactivated, activated and i got the same error as the other guy at mybb community:
MySQL error: 1060
Duplicate column name 'money'
Query: ALTER TABLE `mybb_users` ADD ( `money` decimal(10,2) NOT NULL default '10', `purchases` int(10) NOT NULL default '0' );S
lol, i already dropped the columns.
Dropped tables:
ALTER TABLE mybb_users DROP purchases, DROP money
ALTER TABLE mybb_adminoptions DROP canmanageplaza

but, i must drop all columns and tables that are a part of myplaza.

i still get that message, even after i remove that tables and columns

EDIT, after some tries (10/20 tries..) it is working..! but the module is not shown in the admin cp as it was before :S

(This post was last modified: 26/11/2007 01:19 PM by Pirata Nervo.)
26/11/2007 01:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply
SXForce
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Posts: 280.3000
Threads: 38
Joined: 20th Feb 2007
Reputation: 1.40616
E-Pigs: 5.6493
Offline
Post: #20
RE: [MyBB] MyPlaza v0.11 (preview version 2)
Withdraw in bank doesn't work... However, desposit DOES work.

(This post was last modified: 26/11/2007 02:26 PM by SXForce.)
26/11/2007 02:26 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 7 Guest(s)

 Quick Theme: