Allow users to set a default style for their posts.
Default Post Style lets users easily set a default style for their posts – making them stand out from the crowd. Plus, with parsing options and character limits, you have full control over how your posts look. Additionally, you can tweak settings like ignored forums and allowed groups to make sure post templates shines exactly where you want it to. Want to unlock even more customization? You can use Newpoints points to access this feature. With this plugin it's easy to add your own personal touch and make your mark on the forum scene!
The following information will assist you into getting a copy of this plugin up and running on your forum.
A setup that meets the following requirements is necessary to use this plugin.
- MyBB >= 1.8
- PHP >= 7.0
- PluginLibrary for MyBB >= 13
- Newpoints >= 2.0.4 (Optional)
.
├── inc
│ ├── languages
│ │ ├── english
│ │ │ ├── admin
│ │ │ │ ├── ougc_defaultpoststyle.lang.php
│ │ │ ├── ougc_defaultpoststyle.lang.php
│ ├── plugins
│ │ ├── ougc
│ │ │ ├── DefaultPostStyle
│ │ │ │ ├── hooks
│ │ │ │ │ ├── admin.php
│ │ │ │ │ ├── forum.php
│ │ │ │ ├── templates
│ │ │ │ │ ├── .html
│ │ │ │ │ ├── form.html
│ │ │ │ │ ├── formPreview.html
│ │ │ │ │ ├── formRowNewpoints.html
│ │ │ │ │ ├── formRowStyleCode.html
│ │ │ │ │ ├── menu.html
│ │ │ │ │ ├── moderatorNav.html
│ │ │ │ │ ├── moderatorUserForm.html
│ │ │ │ │ ├── moderatorUserMessage.html
│ │ │ │ │ ├── newReply.html
│ │ │ │ │ ├── rowsEmpty.html
│ │ │ │ │ ├── rowsItem.html
│ │ │ │ │ ├── select.html
│ │ │ │ │ ├── selectButton.html
│ │ │ │ │ ├── selectOption.html
│ │ │ │ │ ├── userTable.html
│ │ │ │ ├── admin.php
│ │ │ │ ├── core.php
│ │ │ │ ├── settings.json
│ │ ├── ougc_defaultpoststyle.php
Follow the next steps in order to install a copy of this plugin on your forum.
- Download the latest package from the MyBB Extend site or from the repository releases.
- Upload the contents of the Upload folder to your MyBB root directory.
- Browse to Configuration » Plugins and install this plugin by clicking Install & Activate.
Follow the next steps in order to update your copy of this plugin.
- Browse to Configuration » Plugins and deactivate this plugin by clicking Deactivate.
- Follow step 1 and 2 from the Install section.
- Browse to Configuration » Plugins and activate this plugin by clicking Activate.
To display the form input row it is required that you edit the following templates for each of your themes.
- Open the
newthread
template for editing. - Add
{$ougcDefaultPostStyleSelectRow}
after{postoptions}
. - Save the template.
- Open the
newreply
template for editing. - Add
{$ougcDefaultPostStyleSelectRow}
after{postoptions}
. - Save the template.
- Open the
editpost
template for editing. - Add
{$ougcDefaultPostStyleSelectRow}
after{postoptions}
. - Save the template.
- Open the
modcp_nav_users
template for editing. - Add
<!--OUGC_DEFAULTPOSTSTYLE-->
after{$nav_ipsearch}
. - Save the template.
- Open the
usercp_nav_misc
template for editing. - Add
<!--OUGC_DEFAULTPOSTSTYLE-->
after{$attachmentop}
. - Save the template.
Below you can find a description of the plugin settings.
- Ignored Forums
select
- Select which forums are ignored for using custom post templates.
- Allowed Groups
select
- Select which groups are allowed to create custom post templates.
- Moderator Groups
select
- Select which groups are allowed to moderate user custom post templates.
- Parser Options
checkBox
- Select the parsing options for user custom post templates.
- Character Limit
numeric
- Maximum number of characters users may use for their custom post templates.
- Replacement String
text
Default:{MESSAGE}
- String to be replaced within the post style to define the post's content.
- Newpoints Payment
float
Default:0
- Select the amount of points users HAVE to pay each time they create or update their custom post templates.
- Fallback to Default Template
yesNo
Default:no
- If you enable this, the user default template will be used for posts when no post template is assigned to them.
- Enable Insert Button
yesNo
Default:no
- Show an insert button along the select form to allow insertion of templates directly into messages.
- Page Action
text
Default:defaultpoststyle
- Select the User Control Panel page action to use for this plugin.
This plugin has no additional configurations; after activating make sure to modify the global settings in order to get this plugin working.
- MyBB - Web Framework
- MyBB PluginLibrary - A collection of useful functions for MyBB
- PHP - Server Environment
- @Omar G - Idea & Initial work
See also the list of contributors who participated in this project.
This is free development and any contribution is welcome. Get support or leave feedback at the official MyBB Community.
Thanks for downloading and using our plugins!
Go up to Table of ContentsyleSelectRow}