SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 08/12/2018, 02:15 PM   #1
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,071
Reputation: 266
Flowers Samp Front - A web template for SA:MP related websites.



Samp Front
A web template for SA:MP related websites.


Description
Samp Front is a basic starter landing page template for SA:MP communities related websites. It's always better to craft your stuff from scratch, however, for the oblivious, it's life-saving to have a starter prototype filling your hands at your debut.
Of course, Samp Front can be customized to meet your needs, that's the reason for affixing it with the word “template”. However, note that the credits should remain untouched so that the contributors are at least acknowledged.

Preview

I apologize in advance I couldn't get the template live for demo-ing it, all I could do was provide these video clips:

Download
Simply pay a visit to this repository and either clone or download it.


Setup
The installation is pretty easy, navigate to the config folder, there you'll find a file named config.ini, open it up on edit mode and tweaks the settings in there to your liking, then simply save it and the website will reflect those changes.
As for the logo, replace the logo.png file that's located under public/assets/img

Features
  • Live server/players statistic preview.
  • Dark/Light themes.
  • Discord sever embed.
  • CRUD for news articles.
  • Image gallery.

Contribution
Any help is welcomed, feel free to fire an issue or a pull request any time.
A contribution is also counted if all you did was simply report bugs or suggest new features, the best way to voice your idea is by filing an issue here.


Credits
Big thanks to David Weston for SampQueryAPI.
__________________

|===[Web taxi]===|
List of my work
Github
Pastebin

|===[Interesting topics]===|
Semantic Versioning
Eoussama is online now   Reply With Quote
Old 08/12/2018, 02:48 PM   #2
Freaksken
Huge Clucker
 
Freaksken's Avatar
 
Join Date: Mar 2009
Location: Belgium
Posts: 495
Reputation: 363
Default Re: Samp Front - A web template for SA:MP related websites.

Damn, looks good!
__________________
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.


[Include] FCNPC A.I. - [Tutorial] Speedometer - [WIP] Single-player-like co-op mission - [Other] List of all my work
Freaksken is offline   Reply With Quote
Old 08/12/2018, 02:50 PM   #3
NelsonC
Huge Clucker
 
NelsonC's Avatar
 
Join Date: Oct 2017
Location: Germany
Posts: 224
Reputation: 12
Default Re: Samp Front - A web template for SA:MP related websites.

Good work.
NelsonC is offline   Reply With Quote
Old 08/12/2018, 02:51 PM   #4
UFF
Banned
 
Join Date: Feb 2018
Location: Funky World
Posts: 357
Reputation: 28
Default Re: Samp Front - A web template for SA:MP related websites.

Looks good!
UFF is offline   Reply With Quote
Old 08/12/2018, 02:54 PM   #5
DrakeyDeveloper
Banned
 
Join Date: Dec 2018
Posts: 4
Reputation: 0
Default Re: Samp Front - A web template for SA:MP related websites.

Nice work!
DrakeyDeveloper is offline   Reply With Quote
Old 08/12/2018, 03:42 PM   #6
Eduardoefu
Little Clucker
 
Join Date: Jun 2017
Location: Venezuela
Posts: 2
Reputation: 0
Default Re: Samp Front - A web template for SA:MP related websites.

Not bad, nice work!
Btw

Code:
echo $server_info['password'] == 0 ? "No" : "Yes";
If server isn't passwored it will say "Yes" instaed "No", i tried this and worked.
Code:
echo $server_info['password'] > 0 ? "Yes" : "No";
Eduardoefu is offline   Reply With Quote
Old 09/12/2018, 06:22 AM   #7
SyS
High-roller
 
SyS's Avatar
 
Join Date: Oct 2015
Posts: 1,955
Reputation: 494
Default Re: Samp Front - A web template for SA:MP related websites.

Nice
SyS is offline   Reply With Quote
Old 09/12/2018, 07:00 PM   #8
Chilli9434
Huge Clucker
 
Chilli9434's Avatar
 
Join Date: May 2014
Location: United Kingdom
Posts: 280
Reputation: 113
Default Re: Samp Front - A web template for SA:MP related websites.

This will save people a lot of time who want to focus on their scripts!

Nice to see something that has a decent design as well, nice work
__________________


Chilli9434 is offline   Reply With Quote
Old 09/12/2018, 08:35 PM   #9
Chaprnks
Gangsta
 
Chaprnks's Avatar
 
Join Date: Sep 2007
Location: Soviet America
Posts: 567
Reputation: 69
Default Re: Samp Front - A web template for SA:MP related websites.

Great work, but where's the database?

__________________
Chaprnks is offline   Reply With Quote
Old 09/12/2018, 08:49 PM   #10
Eoussama
High-roller
 
Eoussama's Avatar
 
Join Date: Jul 2016
Location: Kingdom of Morocco // Tangier
Posts: 1,071
Reputation: 266
Default Re: Samp Front - A web template for SA:MP related websites.

Quote:
Originally Posted by Chaprnks View Post
Great work, but where's the database?

That's for you to create, have it as flexible as you want, and then provide that connection information in that config file for the website to connect to.
The sole purpose from a database connection is to store and manage your news articles.
In the Database.
Create a table in your database called `news`, in case you want to name it something else, make sure to change the private field $table in the News.php model (located at the models folder) to whatever you're calling your table.
__________________

|===[Web taxi]===|
List of my work
Github
Pastebin

|===[Interesting topics]===|
Semantic Versioning
Eoussama is online now   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] SAMP Landing Page Template Vomau Tools and Files 15 23/11/2018 11:28 AM
[Tool/Web/Other] SAMP HTML template skydux123 Tools and Files 4 01/10/2016 12:43 PM
Samp template LifeRah Everything and Nothing 16 01/02/2016 03:30 PM
[Tool/Web/Other] SIMPLE SAMP TEMPLATE MouizGhouri Tools and Files 2 28/06/2015 01:15 AM
Samp php trucking template Toby_Manley General 2 26/05/2012 02:44 PM


All times are GMT. The time now is 10:00 AM.


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