Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Modification Out-Dated New one will be added.
So, I saw Rusnaks Adoptables site, and I instantly realized, that this was I needed to get my site off the ground.
So, what I did, was, I took The Adoptables, and completely changed everything, what I turned it into isn't an adoptables site, but, some of the things I added, will still be useful for those of you who use the Rusnak code for adoptables. Such as, a Online Status (Online/Offline). And, complete Profile Enhancement, (As Seen on Myspace ;) ) <-- I'm a little iffy about this one, for the reason is that it took me forever to figure out, because I learn as I go, and I don't know how to make a mod for it. So those with very little PHP/CSS/MySQL knowledge, would get very lost, unless I did a detailed step to step guide... actually all the features are this way. So forgive me a head of time, but I can show you how to add the completely customizable Online/Offline feature, right now: Go to your SQL Database, and INSERT at the end of the table, a SET call `status`: `status` varchar(11) NOT NULL, Example: PHP Code:
Next: Go to your login page, and where you see this: PHP Code:
<p> <input name='status' type='hidden' id='status' value='yes'> </p> Anywhere above the Submit button. Then: Find this: PHP Code:
PHP Code:
Go to your logout.php and duplicate it, and rename it lougout2.php. Then, go back to your first logout.php, and delete (Make sure you duplicate the document first!) everything between this: Code:
// ********************************************************************** // End Prepwork - Output the page to the user // ********************************************************************** // This page logs a user out of the system... PHP Code:
PHP Code:
Then, go to your register.php file, and where it says: //Grab the post data from the form and //Protect the database add the following: First for the grabbing, place this: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
'$status' Right after the zero. Now keep in mind, I told you to place originally place the `status` option in your database, at the very end. So if you have more then my example, make sure you them counted as well, or you will always recieve this very nasty error: "Something is Very, Very Wrong. Please Contact..." Moving on, right below that, where it says: PHP Code:
PHP Code:
Okay, we are almost done. Next, go to your profile.php file, and where it says this: PHP Code:
Code:
$status=@mysql_result($result,$i,"status"); PHP Code:
PHP Code:
Code:
$article_title = $userdisp."'s Profile:"; Code:
$article_title = "$userdisp"; Now test it out, if you followed my instructions, word for word, it should work. You will get something like this: Bloodrun's Profile: Online Status: Online! You can even customize it, so that the part that says Online!, is a picture. Now, to wrap everything off, again I apologize for not being able to make this a mod, im just not that smart lol. But, instead of boring you with an explanation on how everything works, ill just answer your questions as they come. That is, if anyone ill find this interesting... |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Certain Items Won't Be Added? | AlexC | Questions and Supports | 4 | 03-27-2012 04:22 PM |
A modification | jcga1992 | Questions and Supports | 7 | 11-07-2011 03:31 PM |
Modification Directory | Kaeliah | Mys v1.1.x Mods | 14 | 02-28-2011 06:14 PM |
Anna's New Mods -- UPDATED ! Mod added at the bottom! | redheadturkey | Mys v1.1.x Mods | 17 | 01-17-2011 08:38 AM |
Adoptables not being added | Ashje | Questions and Supports | 2 | 12-17-2009 12:35 AM |
What's New? |
What's Hot? |
What's Popular? |