Sinisterly
My BIG Project - A Forum CMS - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: PHP (https://sinister.ly/Forum-PHP)
+--- Thread: My BIG Project - A Forum CMS (/Thread-My-BIG-Project-A-Forum-CMS)

Pages: 1 2 3


RE: My BIG Project - A Forum CMS - The Alchemist - 08-24-2013

(08-24-2013, 04:59 PM)zomgwtfbbq Wrote: I'm not really good at thinking of names for software, ehm how about Alchemist CMS. :p
How about AlchemistBB or aBulletin or Simple Alchemy Forum or Alchemist Power Board??? :Crazy: :troll:
Just kiddin... :troll:
I'll think about it.


RE: My BIG Project - A Forum CMS - zomgwtfbbq - 08-24-2013

TBH I like AlchemistBB a lot. :p


RE: My BIG Project - A Forum CMS - zomgwtfbbq - 08-24-2013

TBH I like AlchemistBB a lot. :p


RE: My BIG Project - A Forum CMS - The Alchemist - 08-25-2013

(08-24-2013, 05:21 PM)zomgwtfbbq Wrote: TBH I like AlchemistBB a lot. :p
Thanks...
I'll be thinking about it... Smile

Btw, guys, I've learnt how to manage URLs using Slim Microframework(to make permalinks).
Do you think I should use it in my project just to manage URLs ??? Or should I do it manually??
Advantage of using this, its pre made and you know the advantage of using a pre made framework.
Disadvantage of using this, its a framework, so it'll include other features too even if we dont want making the script slow.

Advantage of doing it manually, speed(since other features wont be included).
Disadvantage of doing it manually, may cause minor problems as I'll have to do all the parsing, rendering, slug URL building myself....


RE: My BIG Project - A Forum CMS - zomgwtfbbq - 08-26-2013

(08-25-2013, 02:48 PM)The Alchemist Wrote:
(08-24-2013, 05:21 PM)zomgwtfbbq Wrote: TBH I like AlchemistBB a lot. :p
Thanks...
I'll be thinking about it... Smile

Btw, guys, I've learnt how to manage URLs using Slim Microframework(to make permalinks).
Do you think I should use it in my project just to manage URLs ??? Or should I do it manually??
Advantage of using this, its pre made and you know the advantage of using a pre made framework.
Disadvantage of using this, its a framework, so it'll include other features too even if we dont want making the script slow.

Advantage of doing it manually, speed(since other features wont be included).
Disadvantage of doing it manually, may cause minor problems as I'll have to do all the parsing, rendering, slug URL building myself....
TBH I would build the whole thing by myself.


RE: My BIG Project - A Forum CMS - invisal - 08-26-2013

@The Alchemist, I feel like you are throwing a few mini-frameworks together to get
a more complete framework for your forum. Why don't use a better integrated
framework from the beginning or bake your own mini-framework. Here is my
comment on each component you are using (it is my opinion only, so it is
highly subjective and debatable).

- PHP Activerecord ORM: I briefly checked the syntax and its usage, and I am not
convinced that it make your life easier. You are learning new syntax just to generate
SQL syntax. As you are moving to more complex query, you start to doubt what is the
best practice for particular engine to write your complex query. Another most important
disadvantage is that you will not get much help if you run into problem. You start to
doubt what is wrong with your code. Is it from the engine? Is it from your in-proper
use of the engine? Is it from other part of your code that cause the problem?
You won't get much help from the internet as well, because not many people know
Activerecord ORM. So, what is the better alternative? PDO. There are a lot of people
know how to use it. It use pure SQL syntax, no need to learn new thing. It supports
transaction where you can commit or rollback if things goes wrong.

- Twig Template Engine: A template engine that use it own new syntax that you need
to learn again. I always find that PHP is fine as a template engine alone. It is faster
and it does not look ugly as people thought it would look.

- PHPass: I don't know why would you need this one. PHP comes with many built-in
hash function already.

- mod_rewrite: I have no comment here. It is Apache-specified module to rewrite
the URL. You can look for URL Rewrite in IIS if you want your forum friendly-URL to work
on IIS and Apache.

- Slim Microframework: I see that you want to use it as a routing engine. I find that
Slim is not simplified the process of crafting the friendly-URL, but over-complicated
it. It is more complicated than Codeginiter Router engine.

Quote:Disadvantage of doing it manually, may cause minor problems as I'll have to do all the
parsing, rendering, slug URL building myself....

You can write a powerful routing engine in around 30 lines. At least it is as powerful
as Codeginiter engine. I can guarantee this one.


RE: My BIG Project - A Forum CMS - The Alchemist - 08-26-2013

(08-26-2013, 02:25 PM)invisal Wrote: @The Alchemist, I feel like you are throwing a few mini-frameworks together to get
a more complete framework for your forum. Why don't use a better integrated
framework from the beginning or bake your own mini-framework. Here is my
comment on each component you are using (it is my opinion only, so it is
highly subjective and debatable).

- PHP Activerecord ORM: I briefly checked the syntax and its usage, and I am not
convinced that it make your life easier. You are learning new syntax just to generate
SQL syntax. As you are moving to more complex query, you start to doubt what is the
best practice for particular engine to write your complex query. Another most important
disadvantage is that you will not get much help if you run into problem. You start to
doubt what is wrong with your code. Is it from the engine? Is it from your in-proper
use of the engine? Is it from other part of your code that cause the problem?
You won't get much help from the internet as well, because not many people know
Activerecord ORM. So, what is the better alternative? PDO. There are a lot of people
know how to use it. It use pure SQL syntax, no need to learn new thing. It supports
transaction where you can commit or rollback if things goes wrong.

- Twig Template Engine: A template engine that use it own new syntax that you need
to learn again. I always find that PHP is fine as a template engine alone. It is faster
and it does not look ugly as people thought it would look.

- PHPass: I don't know why would you need this one. PHP comes with many built-in
hash function already.

- mod_rewrite: I have no comment here. It is Apache-specified module to rewrite
the URL. You can look for URL Rewrite in IIS if you want your forum friendly-URL to work
on IIS and Apache.

- Slim Microframework: I see that you want to use it as a routing engine. I find that
Slim is not simplified the process of crafting the friendly-URL, but over-complicated
it. It is more complicated than Codeginiter Router engine.

Quote:Disadvantage of doing it manually, may cause minor problems as I'll have to do all the
parsing, rendering, slug URL building myself....

You can write a powerful routing engine in around 30 lines. At least it is as powerful
as Codeginiter engine. I can guarantee this one.
First of all, thanks for the input.

Well, the problem is, I don't know how to use any framework completely(or well enough even for a simple task).
Just last night, I learnt how to use Slim Microframework for URL routing.

And about the remaining, I can use the Twig Template engine quite well and it makes my work easier. You're right about PHP Activerecord, I'm not very good at using it and neither an I going to get help when needed. PHPass, well, then I should use simple bcrypt with salt I guess(password_hash() and password_verify()). I was thinking about PHPass because password_hash() and password_verify() are IIRC available on in the latest versions of PHP.

Perhaps, I should either learn to use PHP Activerecord well, omit PHPass and use simple password_hash() and password_verify() and the remaining tools should be the same..
OR
Learn to use Laravel framework.
OR
Do everything myself(just include twig template engine)...
@invisal And Slim's routing engine is not that complicated. Here, have a look at a sample code :
PHP Code:
<?php require 'includes/slim/Slim/Slim.php'; \Slim\Slim::registerAutoloader(); $app = new \Slim\Slim(); $app->get('/forum-:name-:id', function($name,$id) { //check if the slug of name and id matches in the table $_GET['fid'] = $id; //I've ignored the security measures for now. require_once 'forumdisplay.php'; }); $app->get('/thread-:name-:id', function($name,$id) { //check if the slug of name and id match in the table $_GET['tid'] = $id; //I've ignored the security measures for now. require_once 'showthread.php'; }); $app->run(); ?>



RE: My BIG Project - A Forum CMS - invisal - 08-26-2013

Quote:And Slim's routing engine is not that complicated. Here, have a look at a sample code :

@The Alchemist
In Codeigniter, you don't even need to write the code. Put it at the correct folder and the
router will automatic make the thing work. You can even customize the routing
if the pre-defined router does not work like what you want. So, Codeigniter is more simple.
Even the http://www.gluephp.com/ is more simpler to use than Slim. You can customize
gluePHP code because it is only around 10 to 15 lines of code.


RE: My BIG Project - A Forum CMS - 100_Cash_Hacking - 08-26-2013

I will join your forum wen it's done keep it up! Smile


RE: My BIG Project - A Forum CMS - zomgwtfbbq - 08-26-2013

(08-26-2013, 03:46 PM)invisal Wrote:
Quote:And Slim's routing engine is not that complicated. Here, have a look at a sample code :

@The Alchemist
In Codeigniter, you don't even need to write the code. Put it at the correct folder and the
router will automatic make the thing work.
You can even customize the routing
if the pre-defined router does not work like what you want. So, Codeigniter is more simple.
Even the http://www.gluephp.com/ is more simpler to use than Slim. You can customize
gluePHP code because it is only around 10 to 15 lines of code.
That's exactly why I wouldn't recommend this, I'm pretty sure TA wants to become a better programmer. Creating everything by yourself is what gives you experience, not to mention the feeling of satisfaction and your portfolio when you try to get a job because you made a cms from scratch.