ChengduLittleA's Repositories | My homepage | About me

The backend of my personal website.

YimingWu 95de075273 style improvements, gallery description and fixes. 4 hours ago
Parsedown.php 8cc8cac4ed Initial Commmit. 1 year ago
ParsedownExtra.php 6d3f120df6 Staging 1 year ago
index.php 95de075273 style improvements, gallery description and fixes. 4 hours ago
readme.md 38d08306a9 Updated readme 11 months ago
translations.md 95de075273 style improvements, gallery description and fixes. 4 hours ago

readme.md

那么的维基使用手册

Demo site (on my blog):

[- ChengduLittleA.com/lamdwiki -]

What is laMDWiki?

laMDWiki is a super light weight twitter-like wiki platform, with the real benefit of allowing fluid transition from small notes to long passages, and keeping all back references and histories automatically while you do so, it's best suited for blogging and knowledge organizing.

  • Twitter-like posts and threads.
  • Back-references for both images and posts.
  • Wayback mode: to view the entire site as if you were visiting on a specific date.
  • Hook to specific tag in any post.
  • Style sheet optimized for direct printing.
  • No database needed.
  • Convenient image upload.
  • Adapt to English/Chinese user interface.
  • Image Purchasing Link.
  • Alternative website entry point.

那么的维基是什么?

那么的维基是一个超轻量的推特式维基程序,最适合博客和知识整理,真正允许无缝地从短句整合为完整文章,同时记录所有历史和反向引用,非常适合用作发布博客和整理知识。

  • 推特形式的帖子和主题。
  • 帖子和图片均具备反引用功能。
  • 时间机器:以过去的特定时间阅读网站的所有内容。
  • 链接到帖子内容的任何位置。
  • 为直接打印而优化的样式表。
  • 无需数据库。
  • 方便上传和查看图片。
  • 适应英语和汉语浏览器界面。
  • 图片购买按钮。
  • 里站入口功能。

(This is actually the forth version I made, it used to be so cramped with functions and not very easy to use)

(这实际上是我做的第四个版本,之前的太臃肿了不是很好用。)

Installation | 安装

Requirements | 需求

  • Apache (.htaccess)
  • PHP ImageMagic (If image uploading is needed | 若需要上传图像)

Operations | 操作

Copy index.php, translations.md, Parsedown.php, ParsedownExtra.php to your server document root and you are good to go.

When entered the site, double click the © symbol on the bottom to log in, default user ID is admin, default password is Admin. Please change the ID and the password after logging in.

It is recommended that you use Apache web server, because the access control is done through .htaccess. You may need to manually convert it for other web servers.

index.php, translations.md, Parsedown.php, ParsedownExtra.php 复制到服务器根目录即可。

进入网站后,双击底部©符号登录设置,默认用户 admin,默认密码Admin。登录后请修改密码。

推荐在Apache上运行,因为那么的维基使用.htaccess文件提供访问控制,你可以手动将该文件的内容转换为适用于其他服务程序的配置。

Using | 使用

Just post stuff with markdown syntax. Click the left side arrow to access post context, Post manipulation button is the + symbol on the top right of each post.

使用markdown语法发帖即可。点击帖子左边的箭头能查看帖子上下文,帖子右上角的+号按钮可以调出帖子操作面板。

Post Referencing | 引用帖子

Post can be referenced using Markdown link, simply put the 14 digit post ID into the link field. A reference link with its own paragraph will be automatically expanded into a post preview.

使用Markdown链接可以引用帖子,只需在链接中填写帖子的14位数字。自成一段的引用帖子会自动展开为帖子预览。

Special Codes | 特殊代码

代码 显示
<-- <- <-> -> --> <-- <- <-> -> -->
<== <= <=> => ==> <== <= <=> => ==>
+++++ (分页符)
[-高亮文字-] [-高亮文字-]
![keep_inline original]() 图片保持行内,使用原图
{big_table} 下一个表格是大表格
{read_more} 帖子预览在这里截断
{interesting apple pear} 设置话题为有趣表格
//(14_digit_id_or_any) 跳转标签
@category 设置话题或帖子分类
[link](@category) 链接到分类
{PRICE my product price} 产品价格
{SHORT product short description} 产品短描述
{PURCHASE button name} 购买按钮
- [PRODUCT whatever](14_digit_id) 商品列表项目
{支付宝} {支付宝}
{PayPal} {PayPal}

Product Showcasing | 商品展示

Mark the post as P type to set it as a product. Then use those product specific tags shown above to set basic info for product preview. The thumbnail of the product is the first image used in the passage. To reference/show this product on another post, simply use a link, or put the link into a Markdown list.

将帖子标记为P类型即可将帖子作为商品。在文章中设置上述商品专用标签可以提供商品预览信息。商品预览缩略图采用文中第一个出现的图片。要引用该商品,可以直接使用帖子链接,或者将链接放在Markdown列表里。

Settings | 设置

Navigation bar, two footers and a pinned post can be configured. Copy the 14-digit post id (from your url or from post menu) and paste it inside to use that post in corresponding positions. Use markdown list for navigation bar for best layout.

导航栏,两个脚注和置顶帖子可以手动设置。复制帖子的14位数字标识(从浏览器链接或者从帖子菜单)并粘贴到设置框里就能在对应位置调取帖子。在导航栏中使用markdown列表以获得好看的排版。

Purchasing URL can be set when you open a image. If you'd like to set it as a internal product post, then enter the 14 digit post ID.

点击图像之后可以设置对应图像的购买链接。若要设置为商品帖,则填入14位帖子编号。

[-Note:-] laMDWiki V4 will now redirect all connections to HTTPS, Manually change the redirect lines in WriteHTACCESS() to change this behavior.

[-注意:-] 所有通过 laMDWiki V4 的连接现在都使用HTTPS,手动修改WriteHTACCESS()中的跳转指令以调整该行为。

Alternative website entry | 里站入口功能

Configure "Experimental Access" inside settings to set an alternative website. Enter your host name (this string is preg_match()ed with your HTTP_HOST) to activate the function.

在设置中“实验访问”一栏可以设置里站入口。填写主机(将通过preg_match()匹配你的HTTP_HOST)即可激活里站。

Mark a post as E to make it visible to experimental site, meanwhile the post will not be shown in main site if you are not logged in. Experimental site will not show regular posts. Marking the first post in a thread will put the entire thread into experimental site. Marking a post as S will restrict the post to only be visible to the administrator (private post).

将帖子标记为E以使其在里站可见,与此同时该帖子在主站未登录时不可见。里站不显示常规帖子。若标记了一个话题中的第一个帖子,则整个话题都将放入里站。将帖子标记为S则只有管理员可见(隐私帖子)。

Alternative website mode will only show posts and threads, it doesn't have dedicated timeline, gallery or search page. The style of the page will change slightly to allow bigger pictures to be inserted directly into the passage.

里站模式仅显示帖子和对话,它不包含时间线、相册和搜索页。页面的样式稍有改变以允许大图直接插入文章。

Comments | 评论

Commenting is available now. Enable comments inside settings page to show comment section under each thread.

评论功能现在可用。在设置中启用评论即可调出话题下方的评论栏目。

The server will record the commenter's email, name and IP address for preventing spam.

服务器会记录评论者的电子邮箱、名字和IP地址以控制垃圾评论。