Page 1 of 1

adding fields to phpnuke

Posted: Mon Oct 27, 2003 4:39 am
by santoshkumar
Hi,everybody im using phpnuke can any body tell me how i can change the new user fields such as address ,city,country telephone no.
Thank you
santoshkumar

Posted: Mon Oct 27, 2003 11:23 am
by MishaPappa
Unless I'm mistaken, the fields you mentioned are not part of the normal PHP-Nuke architecture. Are you wanting to ADD fields to the database and make scripting changes to incorporate their use? Or, are you wanting to change existing fields and store different data?

The type of alteration you want to make will determine the complexity required to accomplish it...

Posted: Tue Oct 28, 2003 12:19 pm
by MishaPappa
Santoshkumar -

You've sent me a private message stating:
Hi Misha thank you for the reply ,im adding the field like address,phone no.,country .
I found the file in html/modules/your_account/index.php
.
for example if i have to add the field country what are the changes i have to make .Please mail me.
Thank you
santosh
My response to your original post was not an invitation to contact me privately for assistance -- kinda defeats the whole purpose of a forum doesn't it? :roll:

However, I am certainly willing to offer, in this public forum/thread, assistance to help you nail down possible change requirements that meet your need.

So, let's start this dialog over...
  1. As I understand it, you wish to add data fields for storage/presentation to those normally found in the `nuke_users` table.
  2. What type of information, exactly, do you wish to capture, store and present? You've said only "fields like"... Be specific because you'll need to draft the SQL Data Definition Language for altering the existing `nuke_users` table and adding these columns.
  3. When do you wish to capture this data? At initial user registration when they typically only identify a Nickname, Password and Email address? OR, after they've registered and access the user profile to identify more information about themselves and their preferences? This decision will drive the determination of scripting changes and in what files -- as you know, there are many within a typical PHP-Nuke environment.
  4. When do you wish to present this data? Should it be visible to anyone that has access to the "Members List"? Should it only be visible to the user and administrators? Again, the decision will drive the determination of scripting changes (or new scripts).
  5. Finally, how much time have you already invested in understanding the PHP-Nuke database architecture, PHP-Nuke scripting flow, PHP-Nuke user management, MySQL and general database concepts, and PHP language in general? This is your toolkit and you'll need it for this endeavor...
You are effectively undertaking a software re-engineering project and need to approach it in an appropriate fashion. I'd also add that it is entirely possible a PHP-Nuke "hack" of this nature already exists; or one similar enough that only minor changes are needed -- have you spent any time surfing sites that are dedicated to that product? Sites like http://www.NukeCops.com, http://www.NukeResources.com, http://www.NukeForums.com just to name a few come to mind...