SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 12/10/2015, 10:51 AM   #1
FreAkeD
Gangsta
 
FreAkeD's Avatar
 
Join Date: May 2012
Location: Australia
Posts: 648
Reputation: 82
Default Website Template (Displays Server Stats and Players Online!)

WARNING: I suggest you to not use this as it is very outdated. I will not be supporting this anymore, although it might be updated one day.


Introduction

This is a old website I had when I used to run my server. It was a page where my server would be displayed. I found it lying around and I thought I'd release it. The template was made back in late 2014, but I've made some little changes to make it better.

I thought this would come in handy for newbies who don't know much about web designing or general coding.


Features
  • Displays your servers information.
  • Displays all players online on your server.
  • Simple error page. The user will be redirected to this page if the server is offline.
  • Easy to configure and setup.

Configuring

Everything must be configured in the 'settings.php' file. To simply display your server, open up settings.php and add your server IP into $serverIP = "";. Eg: $serverIP = "123.4.1.6";. You will also need to change the port, if you need to.

You may also change the defines. These will change the Server name, Owner, Server IP and Server Slogan texts. You will not need to change them manually in the index.php file. Once you save settings.php, upload everything to a webserver and everything should run fine and you should notice all changes.


Download

PHP Version:
http://www.mediafire.com/download/8elna38ry5tnp08/web-template-php.rar

Special Thanks

Woet - PHP Query - http://forum.sa-mp.com/showthread.php?t=99649
Bootstrap - http://getbootstrap.com/


NOTES:


Everything was tested on a local XAMPP server. Everything was working fine and as usual.

Last edited by FreAkeD; 23/01/2018 at 10:24 AM. Reason: Title fix.
FreAkeD is offline   Reply With Quote
Old 12/10/2015, 10:59 AM   #2
timsar
Big Clucker
 
Join Date: Mar 2015
Posts: 54
Reputation: 1
Default Re: Website Template (Displays Server Stats and Players Online!)

Well done!
timsar is offline   Reply With Quote
Old 12/10/2015, 11:11 AM   #3
SecretBoss
Gangsta
 
SecretBoss's Avatar
 
Join Date: Dec 2014
Location: Greece
Posts: 818
Reputation: 103
Default Re: Website Template (Displays Server Stats and Players Online!)

Exactly what I wanted, thanks a lot mate
+REPed
__________________
SecretBoss is offline   Reply With Quote
Old 12/10/2015, 11:13 AM   #4
FreAkeD
Gangsta
 
FreAkeD's Avatar
 
Join Date: May 2012
Location: Australia
Posts: 648
Reputation: 82
Default Re: Website Template (Displays Server Stats and Players Online!)

Quote:
Originally Posted by SecretBoss View Post
Exactly what I wanted, thanks a lot mate
+REPed
Thanks, if you need any help let me know .
FreAkeD is offline   Reply With Quote
Old 12/10/2015, 02:19 PM   #5
SecretBoss
Gangsta
 
SecretBoss's Avatar
 
Join Date: Dec 2014
Location: Greece
Posts: 818
Reputation: 103
Default Re: Website Template (Displays Server Stats and Players Online!)

Quote:
Originally Posted by FreAkeD View Post
Thanks, if you need any help let me know .
No problem, but if you could make a template with more info like score, admin level, cash etc. based on MySQL that would be very nice

You can make another topic so players who are not using MySQL won't use MySQL version that gets data from database, I think that there are a lot of people who need this also the top list thingy
__________________
SecretBoss is offline   Reply With Quote
Old 12/10/2015, 03:43 PM   #6
bgedition
Huge Clucker
 
bgedition's Avatar
 
Join Date: Oct 2013
Location: Bulgaria
Posts: 398
Reputation: 22
Default Re: Website Template (Displays Server Stats and Players Online!)

Very nice, I like it. It's cool that you used bootstrap for it.
+1
__________________
Push will get a person almost anywhere, except through a door marked 'pull'.
bgedition is offline   Reply With Quote
Old 12/10/2015, 08:32 PM   #7
FreAkeD
Gangsta
 
FreAkeD's Avatar
 
Join Date: May 2012
Location: Australia
Posts: 648
Reputation: 82
Default Re: Website Template (Displays Server Stats and Players Online!)

Quote:
Originally Posted by SecretBoss View Post
No problem, but if you could make a template with more info like score, admin level, cash etc. based on MySQL that would be very nice

You can make another topic so players who are not using MySQL won't use MySQL version that gets data from database, I think that there are a lot of people who need this also the top list thingy
I'm working on a MYSQL one.
FreAkeD is offline   Reply With Quote
Old 13/10/2015, 07:46 AM   #8
FreAkeD
Gangsta
 
FreAkeD's Avatar
 
Join Date: May 2012
Location: Australia
Posts: 648
Reputation: 82
Default Re: Website Template (Displays Server Stats and Players Online!)

Updated with an MYSQL version where you can display your servers top players or anything you'd like to straight from your MYSQL database!
FreAkeD is offline   Reply With Quote
Old 13/10/2015, 10:38 AM   #9
SecretBoss
Gangsta
 
SecretBoss's Avatar
 
Join Date: Dec 2014
Location: Greece
Posts: 818
Reputation: 103
Default Re: Website Template (Displays Server Stats and Players Online!)

Quote:
Originally Posted by FreAkeD View Post
Updated with an MYSQL version where you can display your servers top players or anything you'd like to straight from your MYSQL database!
Great release I will may add it on sbAdmin as an example on using it on their servers (I will credit you of course)

Thanks again
__________________
SecretBoss is offline   Reply With Quote
Old 13/10/2015, 01:54 PM   #10
FreAkeD
Gangsta
 
FreAkeD's Avatar
 
Join Date: May 2012
Location: Australia
Posts: 648
Reputation: 82
Default Re: Website Template (Displays Server Stats and Players Online!)

Quote:
Originally Posted by SecretBoss View Post
Great release I will may add it on sbAdmin as an example on using it on their servers (I will credit you of course)

Thanks again
No problem, feel free to use it for that pupose.
FreAkeD 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
[Tool/Web/Other] Basic server website template ArchB42 Tools and Files 18 03/12/2017 10:41 AM
Players Stats On Website? danish007 Scripting Help 2 18/12/2014 09:15 PM
[PHP] Query to show online players on website toofast General 5 05/07/2013 10:16 AM
Online Players On Website? Sulps Scripting Help 2 07/06/2013 03:05 PM


All times are GMT. The time now is 03:35 AM.


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