MyBB Hacks

Full Version: Inventory item modifying a custom profile field
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am really impressed and excited about myplaza. So far it works like a dream!

I need a little guidance, however. Obviously the module for a user purchasing a new custom title works. I love that feature and want to take it further.

Essentially I want to allow a user to purchase an item I create that will change the text field of a custom profile field.

I get the basics but I really need some direction. I figure a variable needs to be added into the code somewhere.

Any help would be greatly appreciated!
Yeah, unfortunately, you'll need to make your own module for this (since code is needed to explicitly tell MyPlaza what to do).

Do you have any PHP experience?  If you code this yourself, I can assist if you're having issues Tongue

Guest

(07-29-2008 04:39 PM)ZiNgA BuRgA Wrote: [ -> ]Yeah, unfortunately, you'll need to make your own module for this (since code is needed to explicitly tell MyPlaza what to do).

Do you have any PHP experience?  If you code this yourself, I can assist if you're having issues Tongue

Awesome, thank you!

I do actually have php coding experience and my buddy who is assisting me is a genius with it.

We looked at the code for the changing the custom title and that made sense. It is really an issue of knowing which files to modify and getting it to work correctly.

More than anything we just need a point in the right direction.
Opps, ^ is me.
Okay, so the attempted code for the item I am looking at:

PHP Code:
{$lang->new_level}: <input type="text" name="newlevel" value= {"$post['fid5'] = 'Level: 02';" } />


Fix5 represents the custom field I want to modify
The trick is, I'm not sure what file to define new_Level in or if that is even necessary. Each item would write a static bit of text. It wouldn't ever change unless they then bought a subsequent item.

Yeah, unfortunately, it's more complex than that.
You're going to have to write a module, which adds the relevant item to the plaza and write appropriate parsing techniques (to stop HTML injections, overflows etc).

Sorry, I really don't have time these days to help much.
No sweat =) I'll read up on creating a module and see about coming up with something for you to see!
Reference URL's