PHP Criteria | NulledTeam UnderGround | The Best Scripts Site In The World
PHP Criteria

PHP Criteria 1.0.0

No permission to download
  • Read Our Rules

    Dont forget read our rules Nulled Team UnderGround Rules

  • You may not say thanks or replied bad language in a thread - Your reply will be removed and warning! You must be like us "overview" in the resource. You will be access to download in FREE SECTION ONLY! DO NOT PREMIUM SECTION! Is only upgrade to up account.
  • Please support our site and click on the advertised
  • Complete Installation Service

    Review Our XenForo Complete Installation Service
  • Multiple Accounts

    Dont forget we not allowed Multiple Accounts, so all of your accounts as well as your IP will ban

Compatible XF Versions 2.x

This addon allows you to create complex criteria for advanced trophies or user group promotions with custom PHP code.

For example, you can use:
  • Count the number of threads the user has created in specific forum
  • Analyze users signatures
  • Count the number of likes on single messages
  • Retreive data from addons (like Resource Manager or Question Threads)
  • See how many times (and when) user has edited his post
  • ...
In other words, this addon gives you a full access to xenForo engine and database when creating trophies/promotions.

Moreover you can even combine default xenForo criteria and your custom PHP code!

Your possibilities are limited only by your imagination!

  1. Download an addon archive and unpack it somewhere
  2. Open upload folder and move src folder to your forum root directory
  3. In admin panel go to "Add-ons" section and install "PHP Criteria" addon
Thats it!
You can now create advanced trophies/promotions!

How to use
When creating a new trophy/promotion you can see a new tab called "PHP Callback":

This tab opens a pane where you can set a path to .php class and an exact method to be executed:

For example, according to the image above we need to create a file Criteria.php at src/addons with the following content:
You don't have permission to view the code content. Please Log in or register now. Log in or register now.
Make sure you receive both \XF\App $app and \XF\Entity\User $user arguments in your method.

Keep in mind that you can combine default xenForo criteria with your code so do not write redundant code!

After installing addon you will find a file called PHPCriteria.examples.php at src/addons.
It contains three examples of PHP callbacks with detailed explanations!
Feel free to build your own callbacks based on the exapmles.

You can also keep all your callbacks in PHPCriteria.php which will be created automatically after installing the addon.
First release
Last update
0.00 star(s) 0 ratings

More resources from AnimeHaxor

Share this resource