#467 - Reduced and modified columns.
#467 - Styling changes across all supported stylesheets.
#467 - PPH now reflects last hour's posts count and has average in title.
#467 - Removed precision, except for boards that have between 0~1 posts.
#467 - Fixed issue where inline board tags pointed to the HTML file, rendering them nonfunctional for noJS users.
Misc - Fixed quote color in certain stylesheets.
Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
The paragraph parser will now encapsulate entire blocks in <p> tags.
#471 - Code tags are fixed. Old posts will need to be regenerated. :(
#458 - Parser improved.
Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
#456 - Fixed issue where the CLI was generating the wrong index.
#456 - Fixed issue where the user was requesting 100% of the boards on pagination.
#456 - Fixed issue where board active users tracked the last hour and not the last 72 hours.
Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
#456 - boards.php now generates a boards.json and boards-top20.json when accessed directly.
#456 - Added API compatibility to board-search.php ('max' and 'ppd')
#456 - Fixed an issue with listBoards() that caused an SQL error if you only asked for indexed.
fuck I hope this works
Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
- board-search.php Fixed an issue with tag weight where all tags have an equal prominance
- inc/functions.php Fixed an issue where board stats were incorrectly assuming all recent activity was in the last hour.
- js/board-directory.js JS will now repopulate the tag list.
- Improved handling of the load more button.
Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
- Increased memory management in all of my recent work.
- board-search.php Fetches activity from board_stats and now includes timestamp as a search option.
- boards.php Correctly fetches board activity and formats numbers.
- inc/functions.php Completely reworked activity fetching.
- inc/functions Wrote updateStatisticsForPost() which streams new posts in statistics.
- post.php Writes into updateStatisticsForPost() for streaming new posts.
- Added styling for tags (in progress work).
- tools/migrate_board_stats.php Now correcty defines author_ip_count.
Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
- Adds new coumn to `boards` for easy-access post total storage.
- Migrates the AUTO_INCREMENT number to the `posts_total` column for every board. This ensures accurate post count measurement.
- Adds `board_stats` table for recording histric data.
- Retroactively records all boards into `board_stats`.
- inc/functions.php Added handling for `posts_total` column in `boards`.
- inc/functions.php Removed some bogus data from fetchBoardActivity
- board-search.php Fixed issue with SFW filtering.
- board-search.php Now accurately sends `posts_total` data for board sum posts.
- boards-search.html Various form fixes so search now submits correctly.
- boards-table.html Fixed `posts_total` value.
Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
- boards.php completely rewritten to work with new board-search.php. Functions (sort-of) without JavaScript.
- inc/functions.php fetchBoardActivity() now pulls total board counts with a more reliable and faster method.
- inc/functions.php fetchBoardActivity() & fetchBoardTags() now expect db prefixes.
- stylesheets/stylesheet.css now handles title search bar.
- boards-tags.html completely thrown out for flat tag list styling.
- boards-search.html added for the new page layout.
- boards-table.html added for the <tbody> contents.
Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
- Added new functions to functions.php for fetching board meta.
- Added new styling for non-index page 12-col layouts.
- Modified templating for board directories.
- Moved CSS from the index page to CSS files.
Signed-off-by: 8n-tech <8n-tech@users.noreply.github.com>
inc/functions.php
- Fixed issues with dio on windows machines.
inc/lib/Twig/Extensions/Extension/Tinyboard.php
- Added strict (int) typecasting to avoid critical errors in timestamp formatting.
index.php
- Fixed issue where opening index.php would whitepage.
static/nsfw.png
static/swf.png
- Added missing static files.
Note: In a previous commit, I began making inc/mod/auth.php more modular with the check_login() function. Including it does NOT check mod login by default anymore like it does on vichan. You have to call check_login(). I've finally included it in inc/functions.php. If you have any custom pages that use inc/mod/auth.php, just including functions.php is enough now.
8chan uses NFS and flock() does not work over NFS. See http://0pointer.de/blog/projects/locking.html for more information.
Without proper file locking, race conditions are possible in ?/settings and other pages. The one in ?/settings is particularly bad, too many successive writes can cause a PHP file with bad syntax to be written which breaks an entire board and many scripts that call openBoard().
You need to install the dio.so module if you merge this commit.