Compare commits
17 Commits
dd8b37e110
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 537da95542 | |||
| 374503f9aa | |||
| e97fcbb342 | |||
| 743a1acb9b | |||
| 2c4fc2d300 | |||
| 2a1027d087 | |||
| e8af7f6790 | |||
| 27e7a3e86e | |||
| b9daa8e0b4 | |||
| 27fdd17911 | |||
| 42c208a507 | |||
| a0aef69fb2 | |||
| b7a52dfbe5 | |||
| b51e86fb73 | |||
| 1e08e2ba83 | |||
| 46c0fc327e | |||
| 85b3daed6d |
46
README.md
Normal file
@@ -0,0 +1,46 @@
|
||||
# HTML in Posts
|
||||
|
||||
This plugin adds the possibility to use HTML in posts.
|
||||
|
||||
- You can restrict usage to certain usergroups, users, and forums.
|
||||
- Note: Restricting by user ID will automatically override the group setting.
|
||||
|
||||
## Requirements
|
||||
|
||||
- MyBB 1.8.x
|
||||
- PHP 5.0 or newer (PHP 7+ recommended)
|
||||
|
||||
## Install
|
||||
|
||||
1. Upload contents of the `Upload` folder to the root of your MyBB installation.
|
||||
2. Go to **Admin CP → Configuration → Plugins** and activate "HTML in Posts".
|
||||
3. Go to **Settings → HTML in Posts** and change anything you need.
|
||||
|
||||
## Upgrade
|
||||
|
||||
**From 1.5/1.6 to 1.7:** (This version supports php <=4)
|
||||
|
||||
- Upload contents of the `Upload` folder to the root of your MyBB installation.
|
||||
|
||||
**From 1.7 to 1.8.x:** (We Now support PHP 5+, no deprecation warnings)
|
||||
|
||||
- Upload contents of the `Upload` folder to the root of your MyBB installation.
|
||||
|
||||
## Support
|
||||
|
||||
This plugin is **partially maintained**.
|
||||
Support is available only for issues reported at:
|
||||
[https://gitea.rcs1.top/sickprodigy/mybb_html-in-posts/issues](https://gitea.rcs1.top/sickprodigy/mybb_html-in-posts/issues)
|
||||
|
||||
No support will be provided via other channels.
|
||||
|
||||
## 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=16)
|
||||
By: Diogo Parrinha
|
||||
|
||||
---
|
||||
|
||||
© 2025 SickProdigy
|
||||
All rights reserved.
|
||||
129
Readme.htm
@@ -1,129 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<!-- start: index -->
|
||||
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"><head>
|
||||
<title>Readme - HTML in Posts</title>
|
||||
<!-- start: headerinclude -->
|
||||
<link href="Readme_files/css.css" rel="stylesheet" type="text/css">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript">
|
||||
<link type="text/css" rel="stylesheet" href="Readme_files/custom.css">
|
||||
<link type="text/css" rel="stylesheet" href="Readme_files/global.css">
|
||||
<link type="text/css" rel="stylesheet" href="Readme_files/css3.css">
|
||||
</head>
|
||||
<body>
|
||||
<!-- start: header -->
|
||||
<a name="top" id="top"></a>
|
||||
<div id="userbar">
|
||||
<div class="wrapper">
|
||||
<div class="toplinks">
|
||||
<ul>
|
||||
<li id="forums"><a href="#description">Description</a></li>
|
||||
<li id="search"><a href="#install">Install</a></li>
|
||||
<li id="search"><a href="#upgrade">Upgrade</a></li>
|
||||
<li id="search"><a href="#support">Support</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div class="logo">
|
||||
<div class="wrapper">
|
||||
<a href="#"><img src="Readme_files/logo.png" alt="Forums" title="Forums"></a>
|
||||
<br class="clear">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div id="container">
|
||||
<div id="content">
|
||||
<div class="wrapper">
|
||||
<table class="tborder" cellpadding="5" cellspacing="0" border="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="thead">
|
||||
<div><strong><a name="description">Description</a></strong><br /><div class="smalltext"></div></div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="trow2">
|
||||
<p><strong>HTML in Posts</strong></p>
|
||||
<p>This plugin adds the possibility to use HTML in posts.</p>
|
||||
<p>You can restrict usage to certain usergroups, users and forums.</p>
|
||||
<p> </p>
|
||||
<p>Note: by restricting by user ID, the group setting will be automatically overridden.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<table class="tborder" cellpadding="5" cellspacing="0" border="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="thead">
|
||||
<div><strong><a name="install">Install</a></strong><br /><div class="smalltext"></div></div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="trow2">
|
||||
<p>Upload contents of the Upload folder to the root of your MyBB installation.</p>
|
||||
<p>Go to Admin CP -> Configuration -> Plugins and Activate "HTML in Posts"</p>
|
||||
<p>Then go to Settings -> HTML in Posts and change anything you need.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<table class="tborder" cellpadding="5" cellspacing="0" border="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="thead">
|
||||
<div><strong><a name="upgrade">Upgrade</a></strong><br /><div class="smalltext"></div></div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="trow2">
|
||||
<p><strong>From 1.5/1.6 to 1.7:</strong></p>
|
||||
<ul>
|
||||
<li>Upload contents of the Upload folder to the root of your MyBB installation.</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<table class="tborder" cellpadding="5" cellspacing="0" border="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<td class="thead">
|
||||
<div><strong><a name="support">Support</a></strong><br /><div class="smalltext"></div></div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="trow2">
|
||||
<p>This plugin is NOT maintained and NO support is officially given by the author. Use at your own RISK.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div id="footer">
|
||||
<div class="wrapper">
|
||||
<div class="copyright">
|
||||
Copyright © 2021 Diogo Parrinha<br />
|
||||
All rights reserved.<br />
|
||||
</div>
|
||||
<br class="clear">
|
||||
</div>
|
||||
</div>
|
||||
</body></html>
|
||||
|
Before Width: | Height: | Size: 301 B |
@@ -1,30 +0,0 @@
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: local('Lato Light'), local('Lato-Light'), url(http://fonts.gstatic.com/s/lato/v8/KT3KS9Aol4WfR6Vas8kNcg.woff) format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Lato Regular'), local('Lato-Regular'), url(http://fonts.gstatic.com/s/lato/v8/9k-RPmcnxYEPm8CNFsH2gg.woff) format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local('Lato Bold'), local('Lato-Bold'), url(http://fonts.gstatic.com/s/lato/v8/wkfQbvfT_02e2IWO3yYueQ.woff) format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
src: local('Lato Black'), local('Lato-Black'), url(http://fonts.gstatic.com/s/lato/v8/BVtM30trf7q_jfqYeHfjtA.woff) format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local('Lato Italic'), local('Lato-Italic'), url(http://fonts.gstatic.com/s/lato/v8/oUan5VrEkpzIazlUe5ieaA.woff) format('woff');
|
||||
}
|
||||
@@ -1,134 +0,0 @@
|
||||
tr td.trow1:first-child,
|
||||
tr td.trow2:first-child,
|
||||
tr td.trow_shaded:first-child {
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
tr td.trow1:last-child,
|
||||
tr td.trow2:last-child,
|
||||
tr td.trow_shaded:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
.tborder {
|
||||
-moz-border-radius: 7px;
|
||||
-webkit-border-radius: 7px;
|
||||
border-radius: 7px;
|
||||
}
|
||||
|
||||
.tborder tbody tr:last-child td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.tborder tbody tr:last-child td:first-child {
|
||||
-moz-border-radius-bottomleft: 6px;
|
||||
-webkit-border-bottom-left-radius: 6px;
|
||||
border-bottom-left-radius: 6px;
|
||||
}
|
||||
|
||||
.tborder tbody tr:last-child td:last-child {
|
||||
-moz-border-radius-bottomright: 6px;
|
||||
-webkit-border-bottom-right-radius: 6px;
|
||||
border-bottom-right-radius: 6px;
|
||||
}
|
||||
|
||||
.thead {
|
||||
-moz-border-radius-topleft: 6px;
|
||||
-moz-border-radius-topright: 6px;
|
||||
-webkit-border-top-left-radius: 6px;
|
||||
-webkit-border-top-right-radius: 6px;
|
||||
border-top-left-radius: 6px;
|
||||
border-top-right-radius: 6px;
|
||||
}
|
||||
|
||||
.thead_collapsed {
|
||||
-moz-border-radius-bottomleft: 6px;
|
||||
-moz-border-radius-bottomright: 6px;
|
||||
-webkit-border-bottom-left-radius: 6px;
|
||||
-webkit-border-bottom-right-radius: 6px;
|
||||
border-bottom-left-radius: 6px;
|
||||
border-bottom-right-radius: 6px;
|
||||
}
|
||||
|
||||
.thead_left {
|
||||
-moz-border-radius-topright: 0;
|
||||
-webkit-border-top-right-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
|
||||
.thead_right {
|
||||
-moz-border-radius-topleft: 0;
|
||||
-webkit-border-top-left-radius: 0;
|
||||
border-top-left-radius: 0;
|
||||
}
|
||||
|
||||
.tcat_menu {
|
||||
-moz-border-radius: 0 !important;
|
||||
-webkit-border-radius: 0 !important;
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
|
||||
.tborder tbody:nth-last-child(2) .tcat_collapse_collapsed {
|
||||
-moz-border-radius-bottomleft: 6px !important;
|
||||
-moz-border-radius-bottomright: 6px !important;
|
||||
-webkit-border-bottom-left-radius: 6px !important;
|
||||
-webkit-border-bottom-right-radius: 6px !important;
|
||||
border-bottom-left-radius: 6px !important;
|
||||
border-bottom-right-radius: 6px !important;
|
||||
}
|
||||
|
||||
input.button,
|
||||
input.textbox,
|
||||
input.invalid_field,
|
||||
input.valid_field,
|
||||
select,
|
||||
textarea,
|
||||
.editor_control_bar,
|
||||
blockquote,
|
||||
.codeblock,
|
||||
fieldset,
|
||||
.pm_alert,
|
||||
.red_alert,
|
||||
.popup_menu,
|
||||
.postbit_buttons > a,
|
||||
a.button {
|
||||
-moz-border-radius: 6px;
|
||||
-webkit-border-radius: 6px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.post.classic .post_author {
|
||||
-moz-border-radius: 0 6px 6px 0;
|
||||
-webkit-border-radius: 0 6px 6px 0;
|
||||
border-radius: 0 6px 6px 0;
|
||||
}
|
||||
|
||||
.popup_menu .popup_item_container:first-child .popup_item {
|
||||
-moz-border-radius-topleft: 6px;
|
||||
-moz-border-radius-topright: 6px;
|
||||
-webkit-border-top-left-radius: 6px;
|
||||
-webkit-border-top-right-radius: 6px;
|
||||
border-top-left-radius: 6px;
|
||||
border-top-right-radius: 6px;
|
||||
}
|
||||
|
||||
.popup_menu .popup_item_container:last-child .popup_item {
|
||||
-moz-border-radius-bottomleft: 6px;
|
||||
-moz-border-radius-bottomright: 6px;
|
||||
-webkit-border-bottom-left-radius: 6px;
|
||||
-webkit-border-bottom-right-radius: 6px;
|
||||
border-bottom-left-radius: 6px;
|
||||
border-bottom-right-radius: 6px;
|
||||
}
|
||||
|
||||
.pagination a {
|
||||
-moz-border-radius: 6px;
|
||||
-webkit-border-radius: 6px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.pollbar {
|
||||
-moz-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
@@ -1,317 +0,0 @@
|
||||
#userbar {
|
||||
background: #2c3e50;
|
||||
height: 40px;
|
||||
min-width: 980px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#userbar .wrapper{
|
||||
width: 90%;
|
||||
min-width: 980px;
|
||||
text-align: left;
|
||||
color: #ededed;
|
||||
font-size: 12px;
|
||||
line-height: 250%;
|
||||
}
|
||||
|
||||
#userbar .wrapper .dropmenu{
|
||||
display: inline-block;
|
||||
padding: 5px 10px;
|
||||
min-width: 260px;
|
||||
text-shadow: 0 -1px 0 #1e2b39;
|
||||
}
|
||||
|
||||
#userbar .wrapper .dropmenu:hover{
|
||||
background: #fff;
|
||||
color: #979797;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
#userbar .wrapper .dropmenu .user_avatar img{
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
border: 2px solid #1d2c3b;
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
#userbar .wrapper .dropmenu .dropcontent{
|
||||
display: none;
|
||||
position: absolute;
|
||||
background: #fff;
|
||||
top: 40px;
|
||||
padding: 10px;
|
||||
margin-left: -10px;
|
||||
width: 280px;
|
||||
-webkit-box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.75);
|
||||
-moz-box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.75);
|
||||
box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.75);
|
||||
}
|
||||
|
||||
#userbar .wrapper .dropmenu .dropcontent hr.dropsep{
|
||||
color: #efefef;
|
||||
background: #efefef;
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
#userbar .wrapper .dropmenu .dropcontent .fa-clock-o{
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
#userbar .wrapper .dropmenu:hover .dropcontent{
|
||||
display: block;
|
||||
}
|
||||
|
||||
#userbar .wrapper .dropmenu .dropcontent .left,
|
||||
#userbar .wrapper .dropmenu .dropcontent .right{
|
||||
width: calc(50% - 8px);
|
||||
text-align: left;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
#userbar .wrapper .dropmenu .dropcontent .left{
|
||||
float: left;
|
||||
}
|
||||
|
||||
#userbar .wrapper .dropmenu .dropcontent .right{
|
||||
float: right;
|
||||
}
|
||||
|
||||
#userbar .wrapper .dropmenu .dropcontent ul{
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#userbar .wrapper .dropmenu .dropcontent ul li a:link,
|
||||
#userbar .wrapper .dropmenu .dropcontent ul li a:visited{
|
||||
color: #979797;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#userbar .wrapper .dropmenu .dropcontent ul li i{
|
||||
display: inline-block;
|
||||
width: 26px;
|
||||
text-align: center;
|
||||
padding: 7px 0;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
#userbar .wrapper .dropmenu .dropcontent .left ul li a:hover{
|
||||
color: #2980b9;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#userbar .wrapper .dropmenu .dropcontent .right ul li a:hover{
|
||||
color: #27ae60;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#userbar .wrapper .dropmenu .dropcontent .left ul li a:hover i{
|
||||
background: #2980b9;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#userbar .wrapper .dropmenu .dropcontent .right ul li a:hover i{
|
||||
background: #2ecc71;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#userbar .wrapper .toplinks{
|
||||
float: right;
|
||||
}
|
||||
|
||||
#userbar .wrapper .toplinks ul{
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#userbar .wrapper .toplinks ul li{
|
||||
display: inline-block;
|
||||
float: left;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#userbar .wrapper .toplinks ul li i{
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
#userbar .wrapper .toplinks ul li a:link,
|
||||
#userbar .wrapper .toplinks ul li a:visited{
|
||||
display: block;
|
||||
color: #ededed;
|
||||
padding: 5px 12px 3px 12px;
|
||||
border-bottom: 2px solid transparent;
|
||||
text-shadow: 0 -1px 0 #1e2b39;
|
||||
}
|
||||
|
||||
#userbar .wrapper .toplinks ul li a:hover,
|
||||
#userbar .wrapper .toplinks ul li a.active{
|
||||
background: #e74c3c;
|
||||
border-bottom: 2px solid #c0392b;
|
||||
text-shadow: 0 -1px 0 #c0392b;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#userbar .wrapper .toplinks ul li a.active:hover{
|
||||
background: #2980b9;
|
||||
border-bottom: 2px solid #2980b9;
|
||||
text-shadow: 0 -1px 0 #1e2b39;
|
||||
}
|
||||
|
||||
#userbar .login:link,
|
||||
#userbar .login:visited{
|
||||
color: #3498db;
|
||||
}
|
||||
|
||||
#userbar .register:link,
|
||||
#userbar .register:visited{
|
||||
color: #1abc9c;
|
||||
}
|
||||
|
||||
.header{
|
||||
background: #2980b9;
|
||||
min-width: 980px;
|
||||
}
|
||||
|
||||
.header .logo{
|
||||
width: 90%;
|
||||
min-width: 980px;
|
||||
margin: 0 auto;
|
||||
text-align: left;
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
.header .logo .wrapper .searchbox{
|
||||
float: right;
|
||||
}
|
||||
|
||||
.header .logo .wrapper .searchbox input[type="text"]{
|
||||
padding: 15px 10px 15px 30px;
|
||||
background-color: #efefef;
|
||||
background-image: url(../../../mp/images/searchbox.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: top 16px left 12px;
|
||||
border: 1px solid #2c3e50;
|
||||
-webkit-border-radius: 6px;
|
||||
-moz-border-radius: 6px;
|
||||
border-radius: 6px;
|
||||
width: 140px;
|
||||
margin-top: 8px;
|
||||
-webkit-box-shadow: 0px 1px 0px 0px #3fa3e5;
|
||||
-moz-box-shadow: 0px 1px 0px 0px #3fa3e5;
|
||||
box-shadow: 0px 1px 0px 0px #3fa3e5;
|
||||
color: #828282;
|
||||
transition: all 0.5s ease;
|
||||
}
|
||||
|
||||
.header .logo .wrapper .searchbox input[type="text"]:focus{
|
||||
outline: 0;
|
||||
background-color: #fff;
|
||||
width: 240px;
|
||||
transition: all 0.5s ease;
|
||||
}
|
||||
|
||||
.primary_blue{
|
||||
color: #2980b9;
|
||||
}
|
||||
|
||||
.extrapadding{
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
#bottomlinks{
|
||||
background: #2c3e50;
|
||||
min-width: 980px;
|
||||
}
|
||||
|
||||
#bottomlinks .wrapper{
|
||||
width: 90%;
|
||||
min-width: 980px;
|
||||
margin: 0 auto;
|
||||
padding: 10px 0;
|
||||
color: #828282;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#bottomlinks .wrapper a:link,
|
||||
#bottomlinks .wrapper a:visited,
|
||||
#bottomlinks .wrapper a:visited,
|
||||
#bottomlinks .wrapper a:hover{
|
||||
color: #a3a2a2;
|
||||
}
|
||||
|
||||
.forum_indications{
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
.forum_indications table{
|
||||
width: 90%;
|
||||
min-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.forum_indications table tr td{
|
||||
width: 25%;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.forum_indications table tr td.right{
|
||||
border-right: 1px solid #efefef!important;
|
||||
}
|
||||
|
||||
.forum_indications table tr td img{
|
||||
vertical-align: middle;
|
||||
margin-top: -1px;
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
.forumstat i{
|
||||
font-size: 32px;
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
.tcat .expcolimage{
|
||||
margin-top: -8px;
|
||||
}
|
||||
|
||||
.userpost{
|
||||
padding: 10px;
|
||||
border: 1px solid #ccc;
|
||||
margin-top: 15px;
|
||||
-webkit-border-radius: 6px;
|
||||
-moz-border-radius: 6px;
|
||||
border-radius: 6px;
|
||||
background: #f8f8f8;
|
||||
}
|
||||
|
||||
.userpost .post_date{
|
||||
display: inline-block;
|
||||
font-size: 11px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.author_avatar img{
|
||||
display: inline-block;
|
||||
float: left;
|
||||
padding: 4px;
|
||||
background: #fff;
|
||||
border: 1px solid #efefef;
|
||||
margin-right: 10px;
|
||||
height: 78px;
|
||||
width: 78px;
|
||||
}
|
||||
|
||||
.author_wrapper{
|
||||
height: 88px;
|
||||
}
|
||||
|
||||
a.compress .fa,
|
||||
a.expand .fa{
|
||||
outline: 1px solid transparent;
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 1004 B |
4
Readme_files/font-awesome.css
vendored
|
Before Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 9.8 KiB |
@@ -1,44 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<title>Object not found!</title>
|
||||
<link rev="made" href="mailto:postmaster@localhost" />
|
||||
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
|
||||
body { color: #000000; background-color: #FFFFFF; }
|
||||
a:link { color: #0000CC; }
|
||||
p, address {margin-left: 3em;}
|
||||
span {font-size: smaller;}
|
||||
/*]]>*/--></style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Object not found!</h1>
|
||||
<p>
|
||||
|
||||
|
||||
The requested URL was not found on this server.
|
||||
|
||||
|
||||
|
||||
If you entered the URL manually please check your
|
||||
spelling and try again.
|
||||
|
||||
|
||||
|
||||
</p>
|
||||
<p>
|
||||
If you think this is a server error, please contact
|
||||
the <a href="mailto:postmaster@localhost">webmaster</a>.
|
||||
|
||||
</p>
|
||||
|
||||
<h2>Error 404</h2>
|
||||
<address>
|
||||
<a href="/">localhost</a><br />
|
||||
<span>Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.6</span>
|
||||
</address>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
Before Width: | Height: | Size: 675 B |
|
Before Width: | Height: | Size: 705 B |
|
Before Width: | Height: | Size: 624 B |
|
Before Width: | Height: | Size: 664 B |
@@ -2,8 +2,8 @@
|
||||
/***************************************************************************
|
||||
*
|
||||
* HTML in Posts plugin (/inc/plugins/htmlposts.php)
|
||||
* Author: Diogo Parrinha
|
||||
* Copyright: © 2021 Diogo Parrinha
|
||||
* Author: Diogo Parrinha and SickProdigy
|
||||
* Copyright: © 2025 SickGaming.net
|
||||
*
|
||||
*
|
||||
* License: license.txt
|
||||
@@ -43,8 +43,8 @@ function htmlposts_info()
|
||||
return array(
|
||||
"name" => "HTML in Posts",
|
||||
"description" => "This plugin adds the possibility to use HTML in posts.",
|
||||
"author" => "Diogo Parrinha",
|
||||
"version" => "1.7",
|
||||
"author" => "Diogo Parrinha and SickGaming.net",
|
||||
"version" => "1.8",
|
||||
"guid" => "1e7c24cc5352de0fbc1e7be40ef1ad60",
|
||||
"compatibility" => "18*"
|
||||
);
|
||||
@@ -63,11 +63,15 @@ function htmlposts_activate()
|
||||
'disporder' => 100,
|
||||
'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
|
||||
$setting = array(
|
||||
"sid" => NULL,
|
||||
"name" => "htmlposts_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)",
|
||||
@@ -80,7 +84,6 @@ function htmlposts_activate()
|
||||
$db->insert_query("settings", $setting);
|
||||
|
||||
$setting = array(
|
||||
"sid" => NULL,
|
||||
"name" => "htmlposts_uids",
|
||||
"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.",
|
||||
@@ -93,7 +96,6 @@ function htmlposts_activate()
|
||||
$db->insert_query("settings", $setting);
|
||||
|
||||
$setting = array(
|
||||
"sid" => NULL,
|
||||
"name" => "htmlposts_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)",
|
||||
@@ -146,6 +148,37 @@ function htmlposts_check_permissions($groups_comma, $user)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!class_exists("control_html"))
|
||||
{
|
||||
class control_html
|
||||
{
|
||||
public $html_enabled;
|
||||
|
||||
function __construct()
|
||||
{
|
||||
global $parser;
|
||||
$this->html_enabled = $parser->options['allow_html'];
|
||||
}
|
||||
|
||||
function set_html($status)
|
||||
{
|
||||
$status = (int)$status;
|
||||
if ($status != 0 && $status != 1) return false;
|
||||
|
||||
if ($status == 0 && $this->html_enabled == 1)
|
||||
return false;
|
||||
|
||||
global $parser;
|
||||
$parser->options['allow_html'] = $status;
|
||||
global $parser_options;
|
||||
if (!empty($parser_options))
|
||||
$parser_options['allow_html'] = $status;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function htmlposts_parse(&$message)
|
||||
{
|
||||
global $mybb, $db;
|
||||
@@ -201,42 +234,6 @@ function htmlposts_parse(&$message)
|
||||
return; // unfortunately we cannot proceed without a $parser object created
|
||||
}
|
||||
|
||||
// Create a new class to control the parser options easily
|
||||
if (!class_exists("control_html"))
|
||||
{
|
||||
class control_html
|
||||
{
|
||||
public $html_enabled;
|
||||
|
||||
function control_html()
|
||||
{
|
||||
// Is it enabled already? Save it in a var to later disallow disabling
|
||||
$this->html_enabled = $parser->options['allow_html'];
|
||||
}
|
||||
|
||||
function set_html($status)
|
||||
{
|
||||
$status = (int)$status;
|
||||
if ($status != 0 && $status != 1) return false;
|
||||
|
||||
// if we're trying to disable it but it's enabled by default, disallow the action
|
||||
if ($status == 0 && $this->html_enabled == 1)
|
||||
return false;
|
||||
|
||||
global $parser;
|
||||
|
||||
// Set to desired status
|
||||
$parser->options['allow_html'] = $status;
|
||||
// for previewing posts
|
||||
global $parser_options;
|
||||
if (!empty($parser_options))
|
||||
$parser_options['allow_html'] = $status;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Create object if it doesn't exist
|
||||
if (!is_object($control_html))
|
||||
$control_html = new control_html();
|
||||
|
||||
@@ -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
|
||||
* Fixed bug where HTML would not show in portal.
|
||||
* Fixed bug where HTML would not show in thread review within the new reply page.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Copyright (C) 2021 Diogo Parrinha
|
||||
Copyright (C) 2025 SickProdigy
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||