Search results

  1. CMTV

    Fixed User mentions render inside custom bbcode

    Consider you want to create a bbcode [myraw] which does nothing. In order to prevent simlies and nested bbcodes rendering, you check the following checkboxes in "Advanced options": But user mentions will still work inside our custom bbcode but they should not (since we have checked "Disable...
  2. CMTV

    Question Threads to XF 2.2

    CMTV submitted a new resource: Question Threads to XF 2.2 - Convert "Question Threads" addon data to XenForo 2.2 internal question-solution system. Read more about this resource...
  3. CMTV

    Badges

    CMTV submitted a new resource: Badges - Create fancy-looking badges and award users for valuable and unique actions! Read more about this resource...
  4. CMTV

    XF 2.1 Finder limit min value is 1

    Hi! AbstractAdapter class, line 560: public function limit($query, $amount, $offset = 0) { $offset = max(0, intval($offset)); if ($amount === null) { if (!$offset) { // no limit return $query; } // no amount limit, but...
  5. CMTV

    Rules

    CMTV submitted a new resource: Rules - Easily create rules and group them into categories. Bring the power of law to your community! Read more about this resource...
  6. CMTV

    Pretty names and values in "User change log"

    CMTV submitted a new resource: Pretty names and values in "User change log" - User change log looks ugly? Let's bring it to life! Read more about this resource...
  7. CMTV

    Fixed Unusable action bar in member_view/tooltip

    Both member_view and member_tooltip tempaltes have memberHeader-actionTop and memberTooltip-headerAction bars that contains "Moderator tools" button by default. The problem is that there is no adequate way to add custom buttons in those bars without completely rewriting the whole bar! So my...
  8. CMTV

    XF 2.1 Can't get preview element

    Hi! In general, I need to analyze the DOM every time it is changed and maybe add some classes to inserted elements. In particular, I am trying to get a preview element which appears after clicking on "Preview" button. After researching the code for some time I figured out that I need to listen...
  9. CMTV

    Fixed actionDialog() silently removes underscores "_"

    Not a bug but unexpected and weird. In XF\Pub\Controller\Editor class there is a actionDialog() method which loads a dialog in popup when clicking on dialog-buttons in Froala editor: public function actionDialog() { $dialog = preg_replace('/[^a-zA-Z0-9]/', '', $this->filter('dialog'...
  10. CMTV

    Criteria Builder

    CMTV submitted a new resource: Criteria Builder - Import/export/write custom criteria for trophies, notices and user group promotion. NO LIMITS! Read more about this resource...
  11. CMTV

    Lack of interest Whole numbers in "title" attribute

    I think it would be nice to see whole numbers in title attribute:
  12. CMTV

    Fixed PHP code is not highlighted in "Insert code"

    In "Insert code" dialog, PHP code is not highlighted. It only work when prepending the code with <?php. This is super inconvenient. The highlighting within the post itself works fine with/without <?php. This happens because of the "wrong" mime in Data\CodeLanguage.php: 'php' => [ 'modes' =>...
  13. CMTV

    XF 2.1 Custom addon data is not importing

    I have a simple ParamDefinition entity which is almost the same as WidgetDefinition entity. ParamDefinition has an addon_id column so I need to export, import param definitions just as widget definitions. What I have done: Added XF:DevOutputWritable behaviour with all necessary checkings in...
  14. CMTV

    XF 2.1 Disabling all form elements

    Hi! I want to disable all inputs, selects, textareas in certain div inside form tag. It is important to note, that I am using <xf:numberboxrow and similar code to create form fields. How can I do this? Is the following code correct? this.$options.find(':input').prop('disabled', true);
  15. CMTV

    Lack of interest 'sorter.js' Improvements

    Hi! Sometimes you need to explicitly set a container for dragula. So, instead of this in sort.js: init: function () { this.dragula = dragula([this.$target[0]], { moves: XF.proxy(this, 'isMoveable'), accepts: XF.proxy(this, 'isValidTarget') }); }, I propse this: init...
  16. CMTV

    XF 2.1 Old title returned without page reload

    My entity class has a MasterTitle relation and title getter: public function getTitle() { $definition = $this->Definition; $paramPhrase = \XF::phrase($this->getPhraseName()); return $paramPhrase->render('html', ['nameOnInvalid' => false]) ?: ($definition ? $definition->title : ''); }...
  17. CMTV

    XF 2.1 'unique' => true for multiply primary key

    My entity has a complex primary key that consists of two columns: criterion_id and param_id. Right now, when trying to create an entity which duplicates primary key, it shows an error: For single column primary keys we can simply use 'unique' => true. What is the preferred way to show a...
  18. CMTV

    XF 2.1 Creating sub-entities of currently creating entity

    Hi! In short, I have Criterion and Param entity classes. The thing is that I want to allow admins to add Param entities during the creation of criterion (ajax adding). But insta-saving params data right to database while creating the criterion is not a good idea because the user can simply...
  19. CMTV

    XF 2.1 Catch ajax form submit from JS

    Hi! I have a modal with simple form in it: <xf:if is="$isNew"> <xf:title>{{ phrase('CMTV_CB_add_param') }}</xf:title> <xf:else /> <xf:title>{{ phrase('CMTV_CB_edit_param') }}</xf:title> </xf:if> <xf:form action="{{ link('criteria-builder/params/validateParam') }}" class="block"...
  20. CMTV

    Drag-and-drop sorting

    Since XenForo supports Dragula, I think it is time to add drag-and-drop sorting functionality and get rid of inconvenient "Sort" pages/setting "Display order" property for each entity. Would be nice to have this for smilies, notices, nodes: Please, like this message if you want something...
Top