Skip to content

fauzymadani/Vertex-Foundry

Repository files navigation

Rules / Info - Vertex Foundry

This file is the site Rules / Info page linked from index.php. It documents posting rules, quick admin/dev setup steps, and how to run the built-in PHP dev server for local testing.


Site Rules (keep it simple and clear)

  1. No illegal content. Do not post child sexual abuse material, copyrighted material you don't own, or content that violates local laws. If unsure — don't post it.
  2. No doxxing or sharing private personal information. Sharing someone's private data is strictly prohibited.
  3. No targeted harassment or threats. Keep discussion anonymous and avoid personal attacks.
  4. No commercial spam. Repeated promotional posts or low-effort spam will be removed.
  5. One image + one comment per post. Follow board-specific posting conventions.
  6. Respect moderator/admin actions. If you disagree, raise it politely in the designated place.
  7. Obey board-specific rules shown on each board's page.

Posting Guidelines

  • Image types allowed: .jpg, .jpeg, .png, .gif, .webp
  • Max image size (default): 5 MB
  • Comment length: up to 2000 characters
  • Use >greentext for greentext lines
  • Use >>123 to quote post number 123 (will be converted to a link)
  • Do not include raw HTML in posts — all tags are stripped server-side.

Development / Setup (local dev)

  1. Copy the .env.example to .env and update values (see example below).
  2. Create the database and run the provided SQL migrations in migrations/create_imageboard_tables.sql.
  3. Create the admins table (schema already provided in the project docs) and optionally create the first admin via the CLI helper.

Example .env values (create .env in project root):

DB_HOST=127.0.0.1
DB_NAME=vertex_foundry
DB_USER=root
DB_PASS=secret
SITE_NAME=Vertex Foundry
BASE_URL=http://127.0.0.1:8000

Note: The project uses native PHP and MySQLi. Move credentials to .env and ensure config.php reads them (the project ships with a simple .env.example pattern — update config.php if needed).

Create initial admin (optional)

Run the helper script to create an admin from the CLI:

php scripts/create_admin.php --username=admin --password=secret

Start the built-in PHP dev server (local testing)

From the project root run:

php -S 127.0.0.1:8000 -t .

Then open a browser and visit these pages to test the app:


Troubleshooting / Notes

  • If you see warnings about PHP versions (coalesce operator, typed properties, etc.), set PhpStorm's language level to match your PHP runtime or upgrade PHP to a newer version.
  • To keep IDE files out of git, add .idea/ to .gitignore and run git rm --cached -r .idea (keeps files locally). See the project README for common git commands.
  • Image processing uses GD. If you see deprecation warnings for certain functions on PHP 8.5, update the image helper to avoid deprecated calls.

About

a forum in order for me to learn native php.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors