1. Read
  2. Vote
  3. Old
  4. New
  5. Hot
  6. Reply

Home / Blog


Blog Docs 7 - Admin tools

There are basic blog admin tools available (not copied back from previous version yet) via:

at the bottom of editing any topic page:

* Update Created: ?ajax=created&val=2018-12-25 12:34:56
* Unlock: ?ajax=unlock&val=x (login only)
* Update Meta: ?ajax=ext_url&val=www.abc.com
* Update Meta: ?ajax=k
Cat: Blog | Read: 11954 | 2019-02-10  1

Blog Docs 6 - Themes

Default blog will use Topnew MVC and it is using /css/2018.css, 2019.js

However you can overwrite via /blog/blog.css, blog.js

And you can also change view files at: /var/www/app/View/Blog/cat.blade.php, home.blade.php etc

OR you can even make it look totally different via: /blog/index.php:

$init
Cat: Blog | Read: 14775 | 2019-02-02  1

Blog Docs 5 - Category

This table holds all category id (cat) and category name (name or url) and category info (displayed as text)

eg name = news-media
if info = '', info will auto displayed as News Media. So if you want to display something else, you need input here.

cat id 1 .. 99 is reserved for system uses.

usuall
Cat: Blog | Read: 32140 | 2019-01-28

Blog Docs 4 - Admin staff users

Use your existing user table, and only import user_id in to blog_cat.cat = 1001 eg

REPLACE INTO blog_cat(cat,name,info) VALUES
(1001,'blog_staff','{"1":[1,2],"181130":[102,108]}');

staff user id is a json of: catetory and user ids, above means:

cat = 1 (all categories i.e. Admin staff)
user_id = 1, 2

cat = 181130 (i.e. staff or moderators for cat = 181130)
user_id = 102, 108 etc
Cat: Blog | Read: 21841 | 2019-01-25  3

Blog Docs 3 - Advanced Setup

Please read topnew/src/Blog/config.ini, config.en.ini etc
Do not change directly on above ini file, instead, you can add at /blog/index.php $init settings eg:

The docs at the config.ini etc should be self explained and easy to understand.

$init = [
// other config init info ...
'att_kb' = 800, // attachment max file size in kb
'markdown' = 1, // use php markdown to render html for topic msg text
// ...
];
Cat: Blog | Read: 22723 | 2019-01-22  3

  1. 1
  2. 2

Category