Simplify SimpleBlog Module
Summary
SimpleBlog is a powerful blog module designed to integrate seamlessly with the Simplify Loginbase.---
Changelog
20.11.2024
- Added an option to turn off the TinyMCE editor.
- Updated the smiley code syntax (uses a format like e.g. :happy: now)
15.11.2024
- Implemented logic to ensure aliases are unique when creating, editing, restoring, or soft-deleting blog posts.
- Added versioning support to enable updates through the updater.
13.11.2024
Initial release.
Description
This module is designed for use with Simplify and cannot function on its own. Please ensure that the Simplify Loginbase is installed first.
This requires PHP version 8.0 or higher. Please update the PHP version in your web hosting settings before uploading this script!
---
With SimpleBlog, users can create and manage blog posts with ease.
Key features include:
- Blog Posts:
Easily write and publish blog posts.
- Integrated TinyMCE Editor:
Easy text formatting options.
- Recycle Bin:
Deleted posts are moved to a recycle bin, allowing for easy recovery.
- Anti-Spam Protection:
Built-in spam prevention.
- Smileys:
Support for smileys, making posts more interactive.
- Easy Template Support:
Customize the blog's HTML and CSS without needing to edit PHP files. Use the Edit Templates section for an intuitive design experience.
---
Installation Steps:
Make sure you have installed the Simplify Loginbase first.
1. Upload Files:
Upload all files and folders to your web server. If your FTP asks if you want to replace the index.php, click "Yes." That's the new index.php file to display your blog posts.
2. Ensure All Files Are Properly Uploaded:
It is crucial to make sure that all files and folders have been successfully uploaded. Some web hosts have been known to occasionally miss certain files (e.g., the settings folder). To avoid any issues, manually check the contents of the modules folder to verify that all required files and subfolders are in place.
3. Access Admin Panel:
Navigate to /simplify in your browser. This will be the location where you can start managing your blog posts.
By default, the admin user can manage and edit the content of all users, while members can only edit their own posts.
---
IMPORTANT: Manually add Simplify Module support to your existing design
If they don't already exist, Simplify will generate basic header.php and footer.php files in the same location as your index.php and profile.php when you first open it in your browser.
These files serve as examples for how to integrate Simplify into your theme. They contain the necessary functions and hooks to ensure modules can properly add their assets, such as stylesheets, scripts, etc.
To manually add support for the Simplify Modules to your existing design, add these lines to your <head></head>
section:
<?php
// Render assets
if (method_exists('AssetsManager', 'renderAssets')) echo AssetsManager::renderAssets('header');
// Render SEO meta tags
if (isset($blog) && is_object($blog) && method_exists($blog, 'renderMetaTags')) $blog->renderMetaTags($metaTags);
// Add FontAwesome stylesheet
if (class_exists('ModuleLoader') && method_exists('ModuleLoader', 'getSetting') && ModuleLoader::getSetting('Default', 'addFontAwesome')): ?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css">
<?php endif; ?>
And this right before the </body>
<?php if (method_exists('AssetsManager', 'renderAssets')) echo AssetsManager::renderAssets('footer'); ?>