diff --git a/404.html b/404.html index 1bd44ac3..1e90df7e 100644 --- a/404.html +++ b/404.html @@ -19,8 +19,8 @@ -

DRAGGING 404

-

This page doesn't exist!

+

DRAGGING 404

+

This page doesn't exist!

Current Site Data

Blog Version: 0.0.0
@@ -43,5 +43,6 @@

Recommended Action

+ diff --git a/CHANGELOG.md b/CHANGELOG.md index 81242201..aeedd890 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# August 21st 2024 +## v0.2.6 +### Added +- ADDED (robust but working) SCRIPT PACKET MODDING + - Added Image Replacement System + - Added Text Replacement System + - Added Modding Api Markdown + # August 20th 2024 ## v0.2.5 ### Changed diff --git a/Content/Mod/Test/Site/WIP.png b/Content/Mod/Test/Site/WIP.png new file mode 100644 index 00000000..5e4f64ed Binary files /dev/null and b/Content/Mod/Test/Site/WIP.png differ diff --git a/Content/Mod/Test/version.txt b/Content/Mod/Test/version.txt new file mode 100644 index 00000000..6e8bf73a --- /dev/null +++ b/Content/Mod/Test/version.txt @@ -0,0 +1 @@ +0.1.0 diff --git a/Content/Mod/mod.txt b/Content/Mod/mod.txt new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/Content/Mod/mod.txt @@ -0,0 +1 @@ + diff --git a/Content/Site/metadata.json b/Content/Site/metadata.json deleted file mode 100644 index 65206fa9..00000000 --- a/Content/Site/metadata.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "sitename": "Dragging Blog", - "version":"0.2.1", - "indev":true, - "authors":[ - ["madness-rombank", "programmer"], - ["trippy", "playtester"] - ] -} diff --git a/MODDING_API.md b/MODDING_API.md new file mode 100644 index 00000000..2f27879b --- /dev/null +++ b/MODDING_API.md @@ -0,0 +1,70 @@ +# DraggingBlog Modding API (v0.1) +## Explanation +The ``0.1`` version of the DraggingBlog Modding API is a robust system of image and text content replacement. + +Using Modding Script Packets, +you are allowed to create simple mods to the DraggingBlog site. +Unfortunately through forks unless +we make a desktop website application, which would be a waste + +# Setup +Setting up the Mod is simple as making a folder, +and having an image or some text to replace using script packets and if replacing an image, +have an image. + +So basically, create a folder in the mod folder inside the Content folder. + +Make sure it's with the mod name that you will set inside the SP modding folder's ``api.js`` script packet! + +Don't forget to set MOD_ENABLED to true if you are using script packets! + +# Production +## Nerdy Explanation Stuff for later +In the ``/Mod/Test`` folder. +There is the folder ``Site/`` and the text file ``version.txt``. + +In the ``Site/`` folder, there is the ``WIP.png`` image. + +When linking to the Test mod WIP.png image, the file path in the second quotation set will be ``Site/WIP.png``. + +This is because the ``replaceImg()`` function uses the modding api's +file path of ``Mod/ MOD_NAME /``. Cause the function uses ``returnPath()`` from +``SP/util/files.js`` which uses the inital path of ``/Blog/Content/`` which makes +sure it works and we don't have to put in the path... +``/Blog/Content/Mod/Test/Site/WIP.png`` + +Because that would get annoying. + +## Image Replacement +### Base Explanation +Image Replacement is probably the first thing you would wanna do, but hold your horses, +it's not going to be a "replicate the file location and just add file replacement". + +You gotta go to the ``SP/modding/templates`` folder first! + +### Script Packet Scripting +And go into the page script packet where you wanna replace the base image with the image you are going to replace it with. + +Add the line: ``replaceImg("", "");``. + +In the first quotation set you will put the class name of the image tag you are going to replace. + +In the second quotation set you will put the file path of the image you have. + +### Ending +After you inputted the needed data you should be good to go! + +## Text Replacement +### Base Explanation +Text Replacement is as simple as finding the text you wanna replace, and input the text you wanna replace it WITH. + +### Script Packet Scripting +Go to ``SP/modding/templates`` and go to the page packet you wanna edit. + +Now add the line: ``replaceText('', '');``. + +In the first quotation set you could put the text id, like ``name`` + +Now in the second quotation set you will put the text you want to use. + +And your done :) diff --git a/Pages/Credits.html b/Pages/Credits.html index 256e39f0..c557fb96 100644 --- a/Pages/Credits.html +++ b/Pages/Credits.html @@ -18,25 +18,27 @@

- Github my Beloved +

Github my Beloved


- github + github


+

Blog Team

IdealistCat - Lead Programming

Trippy - Testing

Drago Cuven - Lua Programming


-

Discord Suggestors

+

Discord Suggestors/Assistants

trippy.69 - Help Page

bit7 - Text Padding

drago_cuven - Wasmoon Implementation

-

pauleps - bean club idea

+

pauleps - bean club idea/unexpected token fix


Special Thanks

Hazel - Scrolling Text Code Taken from funkin.me

Funkin Crew Inc - funkin.me, the whole inspiration for this site

+

Tomas Kenzgaila - Replace Image Code used for MODDING

@@ -48,6 +50,8 @@

Special Thanks

+ + + diff --git a/Pages/Mod.html b/Pages/Mod.html new file mode 100644 index 00000000..15a9b0e3 --- /dev/null +++ b/Pages/Mod.html @@ -0,0 +1,36 @@ + + + + + DraggingBlog - Mod Page + + + +
+ Back + Help + Comics + Settings + Credits +
+
+

+
+

+

+
+ +
+
+ + + + + + + diff --git a/Pages/Settings.html b/Pages/Settings.html index 6b2c433f..b353cbaa 100644 --- a/Pages/Settings.html +++ b/Pages/Settings.html @@ -18,13 +18,14 @@
- Settings Page + Settings Page
Blog Version: 0.0.0