Download the PHP package xypp/user-decoration without Composer

On this page you can find all versions of the php package xypp/user-decoration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package user-decoration

User Decoration

Title Poster

License Latest Stable Version Total Downloads

A Flarum extension. Add decoration for user avatar/username/posts/usercard.

Actually, this plugin is more likely to be called "User Based Style Injection Engine"

Notice

This code uses some aggressive tricks to make interceptions of all avatars/usernames possible. This may cause problems with other parts of the plugin. If there is a problem, please disable username/avatar hijacking in the settings.

This extension is NOT COMPATIBLE with all extensions using highlight helper. Currently we supports flarum/core and flarum/mentions. If you found somewhere that username is displayed blank, please disable username/avatar hijacking in the settings and report us as incompatibility.

To experience full functionality, you may also need to install xypp/store

Introduction

This plugin provides a way to change the appearance of user components using CSS and other special markup.

Administrators can create decorations and then grant them to users. Users can see the decorations they have been granted and apply them on their personal home page. Decorations should be in effect anywhere on the forum.

If xypp/store is installed, users can buy decorations from the store!

Usage

Add Decoration

Log in with your administrator account, navigate to the user page and click the Decoration button to open the Decoration page. Just click the Add Decoration button in the upper right corner.

Grant Decoration

Navigate to the user page, click on the control button in the upper right corner, and click on "Offer Decoration".

Create Item

Navigate to the Store page and click the Add Item button in the upper right corner.

After filling out the basic information, select the product provider as Decoration.

Once the product has loaded, select the Decoration you want to use as the product below.

If you want Decoration to have a time limit, you can just fill in Time Limit.

Please do not fill in the usage limit if you don't have to, this will not have an effect but will cause the user to deduct the number of times it is used from the purchased.

Special CSS Mark

Use .base to select a dressed container element (i.e. a .decoration-container element). This element will have all the attributes of its original counterpart and wrap its content.

Use .element-aNameToBeFillThere[....] to create a new element. See below for a specific use case

The <parent selector> and <copy selector> above support matching any element with *, or matching className or tagName with a string. Note that className and tagName do not need to be prefixed with . or # , and they are case sensitive. Separate nested matches with a space.

Q&A

Element matching does not run on the DOM, but on the VNode tree.

Turn off the View All feature

Open the console to see if warnings or errors are output.

Installation

Install with composer:

Updating

Links


All versions of user-decoration with dependencies

PHP Build Version
Package Version
Requires flarum/core Version ^1.2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package xypp/user-decoration contains the following files

Loading the files please wait ....