Compare commits
5 Commits
2a1027d087
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 537da95542 | |||
| 374503f9aa | |||
| e97fcbb342 | |||
| 743a1acb9b | |||
| 2c4fc2d300 |
@@ -37,7 +37,7 @@ No support will be provided via other channels.
|
|||||||
## Forked From
|
## Forked From
|
||||||
|
|
||||||
This plugin is based on or forked from:
|
This plugin is based on or forked from:
|
||||||
[Original HTML in Posts MyBB Plugin](https://community.mybb.com/mods.php?action=view&pid=1234)
|
[Original HTML in Posts MyBB Plugin](https://community.mybb.com/mods.php?action=view&pid=16)
|
||||||
By: Diogo Parrinha
|
By: Diogo Parrinha
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -1,12 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
ini_set('display_errors', 1);
|
|
||||||
ini_set('log_errors', 1);
|
|
||||||
error_reporting(E_ALL);
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
*
|
*
|
||||||
* HTML in Posts plugin (/inc/plugins/htmlposts.php)
|
* HTML in Posts plugin (/inc/plugins/htmlposts.php)
|
||||||
* Author: Diogo Parrinha
|
* Author: Diogo Parrinha and SickProdigy
|
||||||
* Copyright: © 2021 Diogo Parrinha
|
* Copyright: © 2025 SickGaming.net
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* License: license.txt
|
* License: license.txt
|
||||||
@@ -66,11 +63,15 @@ function htmlposts_activate()
|
|||||||
'disporder' => 100,
|
'disporder' => 100,
|
||||||
'isdefault' => 0
|
'isdefault' => 0
|
||||||
);
|
);
|
||||||
$gid = $db->insert_query("settinggroups", $insertarray);
|
$db->insert_query("settinggroups", $insertarray);
|
||||||
|
$gid = $db->insert_id();
|
||||||
|
|
||||||
|
if (!$gid || !is_numeric($gid)) {
|
||||||
|
die("Failed to create settings group. $gid is not valid.");
|
||||||
|
}
|
||||||
|
|
||||||
// add settings
|
// add settings
|
||||||
$setting = array(
|
$setting = array(
|
||||||
"sid" => NULL,
|
|
||||||
"name" => "htmlposts_groups",
|
"name" => "htmlposts_groups",
|
||||||
"title" => "Allowed Groups",
|
"title" => "Allowed Groups",
|
||||||
"description" => "Enter the group IDs that can use HTML in posts. (separated by a comma, can be blank to allow all)",
|
"description" => "Enter the group IDs that can use HTML in posts. (separated by a comma, can be blank to allow all)",
|
||||||
@@ -83,7 +84,6 @@ function htmlposts_activate()
|
|||||||
$db->insert_query("settings", $setting);
|
$db->insert_query("settings", $setting);
|
||||||
|
|
||||||
$setting = array(
|
$setting = array(
|
||||||
"sid" => NULL,
|
|
||||||
"name" => "htmlposts_uids",
|
"name" => "htmlposts_uids",
|
||||||
"title" => "Allowed Users",
|
"title" => "Allowed Users",
|
||||||
"description" => "Enter the user IDs of the users that can use HTML in posts. (separated by a comma, leave blank to disable this feature)<br />Note: overrides groups setting.",
|
"description" => "Enter the user IDs of the users that can use HTML in posts. (separated by a comma, leave blank to disable this feature)<br />Note: overrides groups setting.",
|
||||||
@@ -96,7 +96,6 @@ function htmlposts_activate()
|
|||||||
$db->insert_query("settings", $setting);
|
$db->insert_query("settings", $setting);
|
||||||
|
|
||||||
$setting = array(
|
$setting = array(
|
||||||
"sid" => NULL,
|
|
||||||
"name" => "htmlposts_forums",
|
"name" => "htmlposts_forums",
|
||||||
"title" => "Affected Forums",
|
"title" => "Affected Forums",
|
||||||
"description" => "Enter the forum IDs that are affected by this plugin. (separated by a comma, can be blank if you want to affect all forums)",
|
"description" => "Enter the forum IDs that are affected by this plugin. (separated by a comma, can be blank if you want to affect all forums)",
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
v1.8
|
||||||
|
* Fixed plugin activation issues with MyBB 1.8 and PHP 7/8.
|
||||||
|
* Corrected settings table insert logic (no manual 'sid' field).
|
||||||
|
* Updated code to use modern PHP constructor (__construct). Must have PHP 5+
|
||||||
|
|
||||||
|
|
||||||
v1.7
|
v1.7
|
||||||
* Fixed bug where HTML would not show in portal.
|
* Fixed bug where HTML would not show in portal.
|
||||||
* Fixed bug where HTML would not show in thread review within the new reply page.
|
* Fixed bug where HTML would not show in thread review within the new reply page.
|
||||||
|
|||||||
Reference in New Issue
Block a user