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... |
#2
|
|||
|
|||
RE: Some very cool add-ons
Nice, but I'm still waiting for the upgrade so I can't use it...
|
#3
|
||||
|
||||
RE: Some very cool add-ons
Quote:
|
#4
|
|||
|
|||
RE: Some very cool add-ons
useful, useful... very useful!
I just needed this! -bookmarking this page also!-- |
#5
|
||||
|
||||
RE: Some very cool add-ons
Quote:
|
#6
|
|||
|
|||
RE: Some very cool add-ons
you should change all the [code ] to [php ] cause it has the syntax colors! :D
|
#7
|
||||
|
||||
RE: Some very cool add-ons
Quote:
|
#8
|
||||
|
||||
RE: Some very cool add-ons
Update!
There is a slight problem with this code. And that is, if a person does not hit the log-out button, it will continue to say that the person is online. Until he/she logs in again, in which it will say he/she is offline, until the Next time they log on. So a little diaphram to help you understand that: First Login, (does not log off) -Is Online. Second Login (it doesnt matter if he/she logs off or not) -Offline. Third Login (has to log off so the cycle doesnt repeat) -Is Online (when they are actually online) Now there is a solution to this problem. But it isn't has "Professional" as the first. If you don't want to go through all this work, to end up with this possible broken cycle, all you have to do insert the following, in your account.php, accountpost.php, and profile.php: Note: You will need the same Database entry as in the first one, so use that one. account.php Find where it says: PHP Code:
Under the first group: PHP Code:
PHP Code:
PHP Code:
PHP Code:
accountpost.php Find where it says: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Find where it says: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
#9
|
|||
|
|||
RE: Some very cool add-ons
Quote:
|
#10
|
||||
|
||||
RE: Some very cool add-ons
Quote:
First off, who is Sea, and what did he/she do? Secondly, which script are you talking about? |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Certain Items Won't Be Added? | AlexC | Questions and Supports | 4 | 03-27-2012 03:22 PM |
A modification | jcga1992 | Questions and Supports | 7 | 11-07-2011 02:31 PM |
Modification Directory | Kaeliah | Mys v1.1.x Mods | 14 | 02-28-2011 05:14 PM |
Anna's New Mods -- UPDATED ! Mod added at the bottom! | redheadturkey | Mys v1.1.x Mods | 17 | 01-17-2011 07:38 AM |
Adoptables not being added | Ashje | Questions and Supports | 2 | 12-16-2009 11:35 PM |
What's New? |
What's Hot? |
What's Popular? |