SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Tools and Files

Reply
 
Thread Tools Display Modes
Old 31/08/2010, 01:40 AM   #1
Cameltoe
High-roller
 
Cameltoe's Avatar
 
Join Date: Apr 2010
Location: Norway
Posts: 1,782
Reputation: 24
Default Sa:Mp Website starter kit

- Website Starter Kit

- Install

1. Download the files.
2. Extract it to your apache folder.
3. Configure config.inc to match your database (see "Config" longer down in this thread).
4. Import the sql file.
5. Run any browser with url directing to your website.
6. Watch the beauty of PHP, Enjoy!
- Screenie

- Screenshot 1
- Config

PHP Code:
define ("DB_HOST""localhost"); // Set this to the host the database is hosted on.
define ("DB_USER""urusernamehere"); // Set this to whatever Account the have access to the server.
define ("DB_PASS","urpasshere"); // Set this to whatever the pass for the account is.
define ("DB_NAME","db"); // Chooses database. 
define ("DB_TABLE","vehicles"); // Chooses database table.  

$link mysql_connect(DB_HOSTDB_USERDB_PASS) or die("Couldn't make connection.");
$db mysql_select_db(DB_NAME$link) or die("Couldn't select database"); 
- Future list:

- Easy structure so it's easier for not so advanced users to edit etc.
- Shows how to fetch data from a mysql database.
- Contains a easy readable And understandable .css file.
- Contains all vehicle images.
- Contains mysql database structure ( vehicles only for the moment, further updates will include more. )
- Updates:

- Make the script loop through all Vehicles. [ *** ]
- The style right now looks like shit. [ ** ]
- Menu's and navigation. [ * ]
- Structure: Users, Skins, Logg's into the database. [ * ]

[ * ] = Undone. [ ** ] = Working with. [ *** ] = Done.
- Download

- Link to folder with all files.
- Images
- phpfiles && Style
- Sql

- Credits

- Me.
- My dad ( learning me php basics ).
- sa-mp team.
__________________

Quote:
Originally Posted by Cameltoe View Post
Share the progress so others who are looking for the same also find's their answer.
Quote:
Originally Posted by teomakedonija View Post
ahaha i don't want
Rep++;

Last edited by Cameltoe; 31/08/2010 at 02:46 AM.
Cameltoe is offline   Reply With Quote
Old 31/08/2010, 01:42 AM   #2
RealCop228
Godfather
 
Join Date: Feb 2010
Location: Springboro, OH
Posts: 8,274
Reputation: 669
Default Re: Sa:Mp Website starter kit

Uh... Why don't you explain some of the features? Maybe post some screenshots as well!

EDIT: Have your screenshots ready BEFORE you make you're final post!

EDIT 2: Okay, now I see some actual features listed. I'll try this out on my localhost!

EDIT 3: I've loaded this and set my MySQL settings, etc... I don't see any vehicles on the 'index.php' file when I load it up...
__________________
Putting [URGENT] in the thread title stops me from opening the thread. Nobody else's problem on this forum is more important that another person's. Try not to be self-centered!
RealCop228 is offline   Reply With Quote
Old 31/08/2010, 01:47 AM   #3
Cameltoe
High-roller
 
Cameltoe's Avatar
 
Join Date: Apr 2010
Location: Norway
Posts: 1,782
Reputation: 24
Default Re: Sa:Mp Website starter kit

Quote:
Originally Posted by RealCop228 View Post
Uh... Why don't you explain some of the features? Maybe post some screenshots as well!

EDIT: Have your screenshots ready BEFORE you make you're final post!

EDIT 2: Okay, now I see some actual features listed. I'll try this out on my localhost!

EDIT 3: I've loaded this and set my MySQL settings, etc... I don't see any vehicles on the 'index.php' file when I load it up...
1. when i posted this thread, the picture didnt show, im reuploading now.
2. Enjoy
3. You haven't imported the sql file loactated in the sql folder [ What this actually means is that the Query can't find any vehicles in the table "vehicles". Edit index.php and look at the query change it to match your own database. ]
__________________

Quote:
Originally Posted by Cameltoe View Post
Share the progress so others who are looking for the same also find's their answer.
Quote:
Originally Posted by teomakedonija View Post
ahaha i don't want
Rep++;

Last edited by Cameltoe; 31/08/2010 at 01:58 AM.
Cameltoe is offline   Reply With Quote
Old 31/08/2010, 02:06 AM   #4
DiddyBop
Gangsta
 
DiddyBop's Avatar
 
Join Date: Aug 2009
Posts: 705
Reputation: 10
Default Re: Sa:Mp Website starter kit

Simple i suppose. But like you said, its for starters.
DiddyBop is offline   Reply With Quote
Old 31/08/2010, 02:16 AM   #5
Cameltoe
High-roller
 
Cameltoe's Avatar
 
Join Date: Apr 2010
Location: Norway
Posts: 1,782
Reputation: 24
Default Re: Sa:Mp Website starter kit

Quote:
Originally Posted by DiddyBop View Post
Simple i suppose. But like you said, its for starters.
More advanced in the upcoming updates
__________________

Quote:
Originally Posted by Cameltoe View Post
Share the progress so others who are looking for the same also find's their answer.
Quote:
Originally Posted by teomakedonija View Post
ahaha i don't want
Rep++;
Cameltoe is offline   Reply With Quote
Old 31/08/2010, 02:05 PM   #6
iJumbo
High-roller
 
iJumbo's Avatar
 
Join Date: Sep 2009
Location: HEX 69 74 61 6C 79
Posts: 2,248
Reputation: 133
Default Re: Sa:Mp Website starter kit

Very good im trying it !!
iJumbo is offline   Reply With Quote
Old 31/08/2010, 04:02 PM   #7
legodude
Gangsta
 
legodude's Avatar
 
Join Date: Sep 2009
Location: 127.0.0.1 duhh
Posts: 875
Reputation: 617
Default Re: Sa:Mp Website starter kit

PHP rocks

i built little webbie too with PHP sa-mp integrated(HTTP(blabla) rocks!!)
__________________
legodude is offline   Reply With Quote
Old 31/08/2010, 04:07 PM   #8
Cameltoe
High-roller
 
Cameltoe's Avatar
 
Join Date: Apr 2010
Location: Norway
Posts: 1,782
Reputation: 24
Default Re: Sa:Mp Website starter kit

Quote:
Originally Posted by legodude View Post
PHP rocks

i built little webbie too with PHP sa-mp integrated(HTTP(blabla) rocks!!)
Never tried the HTTP function's but i'm sure they are really usefull
__________________

Quote:
Originally Posted by Cameltoe View Post
Share the progress so others who are looking for the same also find's their answer.
Quote:
Originally Posted by teomakedonija View Post
ahaha i don't want
Rep++;
Cameltoe is offline   Reply With Quote
Old 31/08/2010, 08:18 PM   #9
DRIFT_HUNTER
High-roller
 
DRIFT_HUNTER's Avatar
 
Join Date: Oct 2009
Posts: 1,400
Reputation: 64
Default Re: Sa:Mp Website starter kit

Images archive is damaged
DRIFT_HUNTER is offline   Reply With Quote
Old 31/08/2010, 08:20 PM   #10
Cameltoe
High-roller
 
Cameltoe's Avatar
 
Join Date: Apr 2010
Location: Norway
Posts: 1,782
Reputation: 24
Default Re: Sa:Mp Website starter kit

Quote:
Originally Posted by DRIFT_HUNTER View Post
Images archive is damaged
Noticed, im going to reupload it

EDIT: Reuploaded.
__________________

Quote:
Originally Posted by Cameltoe View Post
Share the progress so others who are looking for the same also find's their answer.
Quote:
Originally Posted by teomakedonija View Post
ahaha i don't want
Rep++;
Cameltoe is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[GameMode] [GM]TDM Starter Script 02manchestera Gamemode Scripts 6 24/07/2013 11:39 AM
[GameMode] [GM]Starter RP kit Edit V2 ! coole210 Gamemode Scripts 55 10/02/2011 03:38 PM
Send data to website, website puts data into Database DeathOnaStick Help Archive 9 27/08/2010 01:34 PM
Starter Weapons... nobodyshout Archive 2 19/12/2009 04:56 PM
server re-starter cj101 Server Support 1 06/04/2009 10:17 PM


All times are GMT. The time now is 02:04 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.