Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Gerolkae - heinäkuu 13, 2014, 12:17:22 AP

Otsikko: SSI.php Update $user_info and save to database
Kirjoitti: Gerolkae - heinäkuu 13, 2014, 12:17:22 AP
I'm building a custom website using SMF..I Have added a field called Guild_Rank to $user_info and the mysql statement....

Is there a way to
<php
$user_info = 1;
//save to dtabase?
?>
Otsikko: Re: SSI.php Update $user_info and save to database
Kirjoitti: Kindred - heinäkuu 13, 2014, 01:22:08 AP
Not through ssi....   You are going to have to build custom code.
Otsikko: Re: SSI.php Update $user_info and save to database
Kirjoitti: ZerK - heinäkuu 13, 2014, 02:02:44 AP
what is the guild rank thing for ? by the looks you could use custom fields
Otsikko: Re: SSI.php Update $user_info and save to database
Kirjoitti: Gerolkae - heinäkuu 13, 2014, 07:17:52 AP
I'ma new user to SMF so pleaseforgive my newbishness

My Site is a Dream Database system... It uses a bot to track Activity through a Dream on Furcadia.

I have setup custom tables to store and retrieve 15 minute Statics as well as a Guild Profile page.

Guild rank is one of 3 entries I usedto link the Database to SMF's User login properties... Others are Guild_ID and BotStat allowing the Bot to connect via smf_2_api.php... Guild_Rank is an Integer thats defined by smf_GuildRanks basically 1-6 with 1 being Newbie and 6 being the Rah or Leader...

I want to create an editor page a New Guild Profile that will check the New User for Guild Status of 0 and a Guild Rank of 0... when the User Submits the form... the new Guild entrywill be saved to the Guild table and the User_Info will update GuildRank to 6 and Update Guild ID to the ID of the newly created Guild...

http://silvermonkey.ts-projects.org is where the database is at if any one wants a visual of what I'm trying to do