Customizing SMF > SMF Coding Discussion

personal text

(1/2) > >>

The Wizard:
Hello:

Can you tell me where I can find all the code that's used to create and display the personal text box? Yes I know their are custon fields. I'm intrested in what the code looks like and how it works.

Wiz

Shambles:
Why not get all the source files onto your system, so they're right in front of you?

Having them there means you can use the various "find" utilities, like the "find in files" feature of Notepad++ and you'll feel so much more confident wandering through the various subroutines and functions. It's the way I learned I'm learning my way around the system.

Arantor:
It's not a custom field, it's one of the hardcoded fields, which means in 2.0.2 it's defined primarily in the fat array at the start of Profile-Modify.php, and dumps its data into the members table.

Custom fields are voodoo you do not want to mess with.

The Wizard:
Black Magic??

Well if that's the case I'm all for it!! Where is the wand and what spell do I use to rule the world?

Na just kidding.

I trust you Arantor and you know my simple coding level so I expect in my case this is way above my knowledge level.

So let me ask you a question:

Is there a simple way to read the database?

Wiz

Arantor:
Read the database for what exactly?

Navigation

[0] Message Index

[#] Next page

Go to full version