Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Inventory item modifying a custom profile field
Ferrel Offline
Junior Member
**
Posts: 4
Joined: Jul 2008
Post: #1
Inventory item modifying a custom profile field
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!
07-29-2008 10:58 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Inventory item modifying a custom profile field
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

My Blog
07-29-2008 04:39 PM
Find all posts by this user Quote this message in a reply
Guest
Unregistered
 
Post: #3
RE: Inventory item modifying a custom profile field
(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.
07-29-2008 11:36 PM
Quote this message in a reply
Ferrel Offline
Junior Member
**
Posts: 4
Joined: Jul 2008
Post: #4
RE: RE: Inventory item modifying a custom profile field
Opps, ^ is me.
07-29-2008 11:37 PM
Find all posts by this user Quote this message in a reply
Ferrel Offline
Junior Member
**
Posts: 4
Joined: Jul 2008
Post: #5
RE: Inventory item modifying a custom profile field
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.

07-31-2008 12:17 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #6
RE: Inventory item modifying a custom profile field
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.

My Blog
08-01-2008 10:33 AM
Find all posts by this user Quote this message in a reply
Ferrel Offline
Junior Member
**
Posts: 4
Joined: Jul 2008
Post: #7
RE: Inventory item modifying a custom profile field
No sweat =) I'll read up on creating a module and see about coming up with something for you to see!
08-02-2008 12:01 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: