SA-MP Forums Archive
A content management system for SA:MP - Development discussion - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Discussion (https://sampforum.blast.hk/forumdisplay.php?fid=84)
+---- Thread: A content management system for SA:MP - Development discussion (/showthread.php?tid=565861)



A content management system for SA:MP - Development discussion - Knappen - 01.03.2015

Introduction

I've decided to start working on a content management system for SA:MP as a way to further expand my knowledge with PHP. I've thought about this for quite a while now and have a pretty good idea how I want it to turn out.

What I've been thinking of mostly lately is how to integrate user accounts into it. I've decided that it will be integrated within the system, but as a plugin, so that the website can also be used as news page or info site for SA:MP servers. There will also be a user system within the core, for administration.


Features
Some of the features I want to implement is I've been thinking about how to best go forward with this, and have therefore decided to make it completely open sourced on GitHub undet the GNU General Public License v2. You can read more about the license here http://choosealicense.com/licenses/gpl-2.0/.

The project will be released on GitHub when I have a working basic release available. I'm currently in preliminary development stages.

If anyone is interested in helping out, please hit me up with a PM.


Please post your views and suggestions about this idea.


Re: A content management system for SA:MP - Development discussion - Extremo - 02.03.2015

Dynamic pages is great, but you should keep in mind generating static copies of them for heavy load handling.

EDIT: Also, I personally hate the GNU license, why not zlib?


Re: A content management system for SA:MP - Development discussion - Knappen - 03.03.2015

If you wish to create static pages, there will also be support for that. I haven't read up that much on the zlib license, but I will definitely check it out.


Re: A content management system for SA:MP - Development discussion - Knappen - 09.03.2015

I'm still just in preliminary stages of developing, but have managed to get the most basic elements into the CMS.
As mentioned earlier, static pages has been integrated, as well as dynamic pages. At this point I haven't created any section to moderate the content, but that will come when I've got a more functional version of the CMS.


Re: A content management system for SA:MP - Development discussion - Misiur - 09.03.2015

Are you using any framework? Like Laravel, Symfony (Silex as well) or ZF?


Re: A content management system for SA:MP - Development discussion - Knappen - 09.03.2015

I haven't integrated any framework yet, but I was looking over ZF for a while.

I'm still not sure whether to do it or not, as this project is a huge part of a learning process for me. It might sound stupid creating something that already has been made, but it makes it more "my own".

However, I will look further into the code of ZF and take a decision from there.


Re: A content management system for SA:MP - Development discussion - Misiur - 09.03.2015

In work we use symfony 2, you can use components only as well and I highly recommend it.

If you're still learning php, check out php the right way - making the web a better place


Re: A content management system for SA:MP - Development discussion - Knappen - 10.03.2015

I know PHP from before, just expanding my knowledge, I guess. Looking into symfony!


Re: A content management system for SA:MP - Development discussion - Knappen - 11.03.2015

I've thought using a template engine like Smarty or similar options. Any thoughts on whether to create my own or use one of those already created instead?

My thoughts are that if I create one myself I can modify it more to the needs of the CMS.


AW: Re: A content management system for SA:MP - Development discussion - Kaliber - 11.03.2015

Well i should read the topic


Re: AW: Re: A content management system for SA:MP - Development discussion - Knappen - 11.03.2015

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
There are huge library like YSI...

But sure, you can make one with your own syntax...but you should be very good in Pawn to do this.
I give you an advice, youse Makros and emit.

PHP код:
//example
#define player->SetPos(%0,%1,%2,%3) SetPlayerPos(playerid,%0,%1,%2),SetPlayerFacingAngle(playerid,%3)
//usage
public OnPlayerSpawn(playerid)
{
    
player->SetPos(x,y,z,a);
    return 
1;

Uhm, what are you talking about?


AW: Re: AW: Re: A content management system for SA:MP - Development discussion - Kaliber - 11.03.2015

Quote:
Originally Posted by Knappen
Посмотреть сообщение
Uhm, what are you talking about?
Just delete it...i didn't read the topic


Re: A content management system for SA:MP - Development discussion - Knappen - 11.03.2015

In the end I decided to implement Smarty for template processing. I hope to have a fully functional basic version released soon. It won't have that many features to start with I guess.