javascript 将简单的 PHP 博客系统集成到现有网站中

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8551319/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 03:46:55  来源:igfitidea点击:

Integrating simple PHP blogging system into existing website

phpjavascriptmysqlblogs

提问by heron

I want to, create blog page in my website.

我想在我的网站上创建博客页面。

There are bunch of huge blogging platforms such as: Wordpress, Blogger ... But the problem is, they are offering a loads of unneeded functions. Of course, I can create simple blog. But it will cost a lots of time and I don't want to reinvent the wheel.

有很多巨大的博客平台,例如:Wordpress、Blogger……但问题是,它们提供了大量不需要的功能。当然,我可以创建简单的博客。但这会花费很多时间,我不想重新发明轮子。

So what I need is, "core" functions of blogging system such as:

所以我需要的是博客系统的“核心”功能,例如:

  • Adding, removing, editing posts, inserting attachments, images o posts
  • Pagination
  • 添加、删除、编辑帖子、插入附件、图片或帖子
  • 分页

I don't want to integrate wordpress because of reasons that I explained above.

由于我上面解释的原因,我不想集成 wordpress。

Any suggestions?

有什么建议?

采纳答案by bowlerae

I used cutewnews for a while when I was new to coding (http://cutephp.com) it's pretty much the same as a blogging system. Create posts, edit posts, archive posts, categories, template is very customizable, allow/block comments, require users to register in order to add comments, block IPs, WYSIWYG editor, etc. It's all done in the back end and then you add a few lines of code in your page and the posts will appear. You can also designate how many you want to display per page. It's simple but effective and free. I believe there is a link at the bottom of the script going back to http://cutephp.com/but you should be able to find it and delete it. It takes about 2 minutes to install and get set up. You don't even need mysql. Will work with any php frame work or coding style as long as you have the ability to create your own blank page where you can plop the code.

当我刚开始编码时,我使用了 cutewnews 一段时间(http://cutephp.com),它与博客系统几乎相同。创建帖子,编辑帖子,归档帖子,分类,模板非常可定制,允许/屏蔽评论,需要用户注册才能添加评论,屏蔽IP,所见即所得的编辑器等。一切都在后台完成,然后你添加在您的页面中添加几行代码,帖子就会出现。您还可以指定每页要显示的数量。它简单但有效且免费。我相信脚本底部有一个链接可以返回http://cutephp.com/但你应该能够找到它并删除它。安装和设置大约需要 2 分钟。你甚至不需要mysql。只要您能够创建自己的空白页面,您就可以使用任何 php 框架工作或编码风格。