[DEV]Tinyblog ~ An OO-PHP blogging system

Status
Not open for further replies.

Adil

DevBest CEO
May 28, 2011
1,278
716
Hi.
Tinyblog is a small OO-PHP blogging system, built loosely? upon jfw. Tinyblog features:
  • Post editing
  • Multiple themes
  • Template keys
  • Powerful backend
  • Plugins
Screenshot:
pEWqO.png

Folder structure:
jF8F9.png

Status:
  • Framework ~ 95% done
  • Blogging admin ~ 0%
Tinyblog was originally a procedural php blogging system, which was messy and extremely basic. It has been revamped to become OO, and is a learning project. A test site will be up soon, and more will come.
Code:

Tinyblog's plugin feature works off an interface called iPlugins:
PHP:
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Adil
* Interface for plugin development
*/
interface iPlugins {
  /* public function InstallPlugin($dir){}
public function DeletePlugin($dir){}*/
    public function PluginName(){}
    public function RunPlugin(){}
}
?>
Plugin interface hasn't been completed, more to come.
This thread will be updated regularly.
Credits:
Livar ~ Template system
Cobe ~ MySQLi class (coming soon)
 

Markshall

Русский Стандарт
Contributor
Dec 18, 2010
2,638
2,393
Looks nice, good luck upon your development.

However, I took a look at your code and have two suggestions -- for now:

  1. if the project is being developed for public use, comment your code so people (especially PHP noobs) will be able to understand it
  2. don't use <?, use <?php instead because some web-servers don't allow the <? start-tag
But other than that, good luck.
 

Adil

DevBest CEO
May 28, 2011
1,278
716
Looks nice, good luck upon your development.

However, I took a look at your code and have two suggestions -- for now:

  1. if the project is being developed for public use, comment your code so people (especially PHP noobs) will be able to understand it
  2. don't use <?, use <?php instead because some web-servers don't allow the <? start-tag
But other than that, good luck.
I always use <?php, must of missed it lol
Forgot to add comment, may use phpdoc to generate doc
 

Ept

Many men wish death upon me.
Jun 16, 2011
591
276
Nice work, Adil! It's nice to see you using your framework again, pardon me if you've been using it. :p
 

Adil

DevBest CEO
May 28, 2011
1,278
716
Gr94J.png



Updates:
-Removed some stuff
-Added sql
-Added documentation

Please report bugs on the github repo or here.
 

Kryptos

prjRev.com
Jul 21, 2010
2,205
1,252
Good luck! Hope you do finish it!

Only one thing. Interfaces don't have brackets.

Edit:
PHP:
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Adil
* Interface for plugin development
*/
interface iPlugins {
  /* public function InstallPlugin($dir);
public function DeletePlugin($dir);*/
    public function PluginName();
    public function RunPlugin();
}
?>
 

Adil

DevBest CEO
May 28, 2011
1,278
716
Good luck! Hope you do finish it!

Only one thing. Interfaces don't have brackets.

Edit:
PHP:
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Adil
* Interface for plugin development
*/
interface iPlugins {
  /* public function InstallPlugin($dir);
public function DeletePlugin($dir);*/
    public function PluginName();
    public function RunPlugin();
}
?>
facepalm.jpg

Btw, can anyone help me with displaying articles? E.g %article% loads the first article from the database
 

Adil

DevBest CEO
May 28, 2011
1,278
716
Pb6Bf.png


Updates in the commit message
 

Adil

DevBest CEO
May 28, 2011
1,278
716
Quick question:
Would you rather have:
A. A login form for index.php in Brain
B. A panel for admin that uses IP. 127.0.0.1 and another IP.

A. Means easier to hack, but easier to use
B. Harder to hack, slightly more concrete than A
Thoughts?
 

Alam

shietttt
Jul 3, 2011
433
166
Quick question:
Would you rather have:
A. A login form for index.php in Brain
B. A panel for admin that uses IP. 127.0.0.1 and another IP.

A. Means easier to hack, but easier to use
B. Harder to hack, slightly more concrete than A
Thoughts?
Since its a blog most users will be confused regarding that there will be a user form on the main page , and its suppose to be for staff only so it will be rathered for it to be the 2nd option. (B)
 
Status
Not open for further replies.

Users who are viewing this thread

Top