Skip to content

Allow users to set a default style for their posts/messages.

License

Notifications You must be signed in to change notification settings

OUGC-Network/OUGC-Default-Post-Style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project logo

OUGC Default Post Style

Status GitHub Issues GitHub Pull Requests License


Allow users to set a default style for their posts.

📜 Table of Contents

🚀 About

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!

Go up to Table of Contents

📍 Getting Started

The following information will assist you into getting a copy of this plugin up and running on your forum.

Dependencies

A setup that meets the following requirements is necessary to use this plugin.

File structure

 .
 ├── 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

Installing

Follow the next steps in order to install a copy of this plugin on your forum.

  1. Download the latest package from the MyBB Extend site or from the repository releases.
  2. Upload the contents of the Upload folder to your MyBB root directory.
  3. Browse to Configuration » Plugins and install this plugin by clicking Install & Activate.

Updating

Follow the next steps in order to update your copy of this plugin.

  1. Browse to Configuration » Plugins and deactivate this plugin by clicking Deactivate.
  2. Follow step 1 and 2 from the Install section.
  3. Browse to Configuration » Plugins and activate this plugin by clicking Activate.

Template Modifications

To display the form input row it is required that you edit the following templates for each of your themes.

  1. Open the newthread template for editing.
  2. Add {$ougcDefaultPostStyleSelectRow} after {postoptions}.
  3. Save the template.
  4. Open the newreply template for editing.
  5. Add {$ougcDefaultPostStyleSelectRow} after {postoptions}.
  6. Save the template.
  7. Open the editpost template for editing.
  8. Add {$ougcDefaultPostStyleSelectRow} after {postoptions}.
  9. Save the template.
  10. Open the modcp_nav_users template for editing.
  11. Add <!--OUGC_DEFAULTPOSTSTYLE--> after {$nav_ipsearch}.
  12. Save the template.
  13. Open the usercp_nav_misc template for editing.
  14. Add <!--OUGC_DEFAULTPOSTSTYLE--> after {$attachmentop}.
  15. Save the template.

Go up to Table of Contents

🛠 Settings

Below you can find a description of the plugin settings.

Global 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.

Go up to Table of Contents

📖 Usage

This plugin has no additional configurations; after activating make sure to modify the global settings in order to get this plugin working.

Go up to Table of Contents

⛏ Built Using

Go up to Table of Contents

✍️ Authors

See also the list of contributors who participated in this project.

Go up to Table of Contents

🎉 Acknowledgements

Go up to Table of Contents

🎈 Support & Feedback

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}

About

Allow users to set a default style for their posts/messages.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published