-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
452 additions
and
1,639 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,53 @@ | ||
# dorew-site.github.io | ||
> Code Jekyll VF Lite cho DorewSite | ||
> Code Upload file lên IPFS cho DorewSite | ||
**Bản Lite có gì hot?** | ||
- Chẳng có gì hot, hơn nữa, bản lite còn bị lược bỏ đi nhiều tính năng. | ||
- Bảng dữ liệu mới không tương ứng với dữ liệu cũ. | ||
Demo: | ||
|
||
**Tính năng:** | ||
- Đăng ký, đăng nhập, danh sách thành viên | ||
- Thông tin thành viên, danh sách bài viết của thành viên đó | ||
- Phòng chat autoload, tải file lên ipfs và imgur qua chatbox | ||
- Tạo, chỉnh sửa, xoá bài viết và chuyên mục | ||
- Bài viết VIP, bình luận bài viết | ||
![](https://i.imgur.com/JTt9yzB.png) | ||
|
||
**Một số hình ảnh:** | ||
Sử dụng https://nft.storage để upload lên ipfs ==> **lấy API Key của** https://nft.storage | ||
|
||
Đây là Template mặc định khi bạn mới bắt đầu sử dụng DorewSite, nếu bạn không may đã làm thất lạc nó, bạn có thể cài đặt lại như sau: | ||
- Tải zip bên dưới về | ||
|
||
![](https://i.imgur.com/0kuLQ7I.png) | ||
![](https://i.imgur.com/pRzMfoz.png) | ||
|
||
|
||
![](https://i.imgur.com/7f91opi.png) | ||
- Truy cập: **/cms** -> Đăng nhập -> **Sao lưu** -> **Tải lên template** -> Chọn zip vừa tải về -> **Sử dụng** | ||
|
||
![](https://i.imgur.com/nsjVRWx.png) | ||
|
||
![](https://i.imgur.com/TRtZfAN.png) | ||
|
||
![](https://i.imgur.com/OL6qhsw.png) | ||
|
||
![](https://i.imgur.com/eMw0vbZ.png) | ||
|
||
![](https://i.imgur.com/zr41KOA.png) | ||
|
||
![](https://i.imgur.com/1gHJQT5.png) | ||
|
||
![](https://i.imgur.com/PQarWGW.png) | ||
|
||
|
||
- Truy cập **phpMyAdmin**, tạo bảng **ipfs** có cấu trúc như hình: | ||
|
||
![](https://i.imgur.com/4hZL8Ue.png) | ||
|
||
|
||
Hoặc tạo bảng trên với code twig: | ||
|
||
```twig | ||
{% set time = 'int(11) NOT NULL' %} | ||
{% set filename = 'varchar(255) NOT NULL' %} | ||
{% set filesize = 'int(11) NOT NULL' %} | ||
{% set cid = 'varchar(255) NOT NULL' %} | ||
{% set password = 'varchar(255) NOT NULL' %} | ||
{% set passphrase = 'varchar(255) NOT NULL' %} | ||
{% set ip = 'varchar(255) NOT NULL' %} | ||
{% set user_agent = 'varchar(255) NOT NULL' %} | ||
{% set structure = {'time':time,'filename':filename,'filesize':filesize,'CID':cid,'password':password,'passphrase':passphrase,'ip':ip,'user_agent':user_agent} %} | ||
{% do create_table_with_column('ipfs', structure) %} | ||
``` | ||
|
||
**Hướng dẫn cài đặt:** | ||
- Truy cập: **/cms** -> Đăng nhập -> **Sao lưu** -> **Tải lên template** -> Chọn zip vừa tải về -> **Sử dụng** | ||
- Tệp **_install** dùng để khởi tạo các bảng dữ liệu của code, vui lòng không xoá nó. | ||
- Nếu cơ sở dữ liệu đã có sẵn các bảng này (trong _install) nhưng khác cấu trúc, hãy backup và dọn dẹp chúng, sau đó bắt đầu cài đặt dữ liệu mới: truy cập vào index của website. | ||
|
||
*Vì đây là bản lite nên khá sơ sài, ae múc về thêm mắm thêm muối vào cho vừa vị nha* | ||
- Truy cập **/cms**, mở file **index**, sửa lại **API Key** của bạn. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>The resource cannot be found.</title> | ||
<meta name="viewport" content="width=device-width" /> | ||
<style> | ||
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} | ||
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} | ||
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} | ||
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } | ||
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } | ||
pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt} | ||
.marker {font-weight: bold; color: black;text-decoration: none;} | ||
.version {color: gray;} | ||
.error {margin-bottom: 10px;} | ||
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:pointer; } | ||
@media screen and (max-width: 639px) { | ||
pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; } | ||
} | ||
@media screen and (max-width: 479px) { | ||
pre { width: 280px; } | ||
} | ||
</style> | ||
</head> | ||
|
||
<body bgcolor="white"> | ||
|
||
<span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1> | ||
|
||
<h2> <i>The resource cannot be found.</i> </h2></span> | ||
|
||
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "> | ||
|
||
<b> Description: </b>HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. | ||
<br><br> | ||
|
||
<b> Requested URL: </b>/{{get_uri_segments()|join('/')}}<br><br> | ||
|
||
</font> | ||
<p style="text-align:center"> | ||
<a href="/">Click here to return to the homepage</a> | ||
</p> | ||
</body> | ||
</html> |
Oops, something went wrong.