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. |
RE: A quick Profile Add-on Modification
Uh oh.... Well, I got up to the bit where you edit the register.php file, and so to be safe I thought I'd try creating another account, right? It told be something was very, very wrong, and I suspect it's the code I put in to register.php. Help?
|
RE: A quick Profile Add-on Modification
Quote:
I need you to copy and paste your current register file here, and I need to how many sets are in your 'adopts_users' table. |
RE: A quick Profile Add-on Modification
Oh.... I'm sorry, I undid everything. I'll do it up again on a backup script, hang on....
|
RE: A quick Profile Add-on Modification
This code rocks, but I have a problem. Is there a way that when the person views the other person's profile, it can also the list their pets? Because if some people don't have anywhere to post their pets, how are they going to advertise them and get more clicks? So I was wondering if you could give me the code so I can add the pets to it.
|
RE: A quick Profile Add-on Modification
Quote:
place this: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
RE: A quick Profile Add-on Modification
I did exactly what you said but it didnt show up.
http://flaredrhapsody.co.cc/profile2.php?user=shiningheart It is supposed to show up under Member's Stats, but its not... xDD |
RE: A quick Profile Add-on Modification
Quote:
BTW you turned private messaging off, so I can't reply to your PM's. |
RE: A quick Profile Add-on Modification
Oh okay, Oops! And one minute....[hr]
Quote:
Turned on my Private Messages ;) And thank you for all the help, BTW! :)[hr] *swingslegswhilewaitingforaresponse* :)[hr] Okay, I messed with it a bit, and finally, I got the pets to show! *cheers* But now the problem is, for some odd reason, the adoptables are under all the messaging information, instead of under where it says _____ Pets... |
RE: A quick Profile Add-on Modification
Then just move
PHP Code:
|
All times are GMT -5. The time now is 10:59 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.