A quick Profile Add-on Modification
Like the title says, a quick Profile Add-on Modification.
What does that mean? I will show you how to make a new profile add-on, and make it work ;) Profile Add-on Includes:
Will Include:
Preview:] (Image is too large for page.) http://i43.tinypic.com/2s6sm5e.jpg First things first, whatever you want to add to your profile/account file, you MUST add to your database, and to do that, all you need to do, is come up with a name, and place into your 'adopts_user' table. For the sake of this tutorial, I will be showing you how to add a very simple 'about me' section to your profile. So go ahead and add this to your 'adopts_user' table: Code:
`aboutme` varchar(5000) NOT NULL, PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Now go to your accountpost.php file, and find where it says: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Note: it is not a quotation mark, it is a double tick ' and ' PHP Code:
PHP Code:
Go to your profile.php and find where it says: PHP Code:
PHP Code:
Next scroll down to where it says: PHP Code:
PHP Code:
|
RE: A quick Profile Add-on Modification
Cool!
However, I am getting an error on the MySQL: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`aboutme` VARCHAR(5000) NOT NULL,' at line 2 |
RE: A quick Profile Add-on Modification
Quick question. Do you have to add another ,'' at the end of :
mysql_query("INSERT INTO ".$prefix."users VALUES ('', '$username', '$pass1', '$email', '3', '1', '$date', '0', '')"); if you wanted to insert another profile field? |
RE: A quick Profile Add-on Modification
Quote:
Quote:
|
RE: A quick Profile Add-on Modification
Okay, just wanted to make sure :).
|
RE: A quick Profile Add-on Modification
Quote:
Oh, if you have any suggestions for new modifications, or want something made for your site. Just drop me a PM =D |
RE: A quick Profile Add-on Modification
it works fine, but if i add something it only sais on profile "about me:"
after that nothing. |
RE: A quick Profile Add-on Modification
Quote:
First check to make sure its even going into the database. |
RE: A quick Profile Add-on Modification
I have do everything in instructions but profile is not looking like this
http://i43.tinypic.com/2s6sm5e.jpg And I already have this: `aboutme` varchar(5000) NOT NULL, from your other mod |
RE: A quick Profile Add-on Modification
Quote:
Because without that, the profile will not look like its suppose to. |
All times are GMT -5. The time now is 06:25 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.