Recent content by Scandal

  1. Scandal

    XF 2.2 XF:CronEntry - I want to characterize them based on the running frequency

    XF:CronEntry entity has the array column run_rules. Based on these run_rules, I want to characterize a CronEntry as daily, weekly, monthly, yearly or multiple times per day. For example to make a getter which returns 'daily', 'weekly' and so on. Could anyone give some ideas...
  2. Scandal

    XF 2.2 Recognize a visitor (guest or logged in) via a hash

    I'm looking for a variable (maybe a hash like md5), accessable via the \XF::app()-> or \XF::visitor()-> / or/ and something like session to use it. I need this hash to be static based on IP and User Agent and so on for guests and logged in users. For example, I could add this on User Entity...
  3. Scandal

    XF 2.2 Custom User Field autocomplete

    No user mentions. I'm talking about custom user fields that can be found on the User Control Panel (example: Account Details page). This is a single line text box. Once someone typing a text, I want to show some suggestion / autocomplete choices so user can select them. Yes a bit it seems like...
  4. Scandal

    XF 2.2 Custom User Field autocomplete

    Let's say we have a custom user field (single line text box) and an array of possible values ['dog', 'cat', 'elephant'] (haha back to primary school). How could I make the custom user field to show an autocomplete functionality? I mean: once I type do, it will show dog that can be selected. If...
  5. Scandal

    Chat 2 by Siropu [Paid]

    Hello! Is there any reason for domain.com/chat/fullpage to show a blank page? On the other hand the chat is being loaded correctly on navigation below position. But chat/fullpage doesn't seem to work.
  6. Scandal

    XF 2.0 How to pass a variable to PAGE_CONTAINER template

    Hello all! :) This thread is very useful and thanks for sharing the solution! I used it! :) I have a similar question too. Is there any way to pass a $param on every widget template instead of the PAGE_CONTAINER? I want to pass a param from \XF\Mvc\Reply\AbstractReply $reply->getParam('test')...
  7. Scandal

    XF 2.2 Editor: new button on the uploaded image toolbar

    ok, found the solution by myself :) Just for anyone interested, we have to run this javascript (it is just a sample to get the idea) : $('.js-editor').on('editor:config', function(e, editor) { editor.imageEditButtons.push('MyButton'); }); (function ($, window, document) { "use...
  8. Scandal

    XF 2.2 Editor: new button on the uploaded image toolbar

    Hello all :) When you upload an image attachment on the Editor, if you click on the image, a small toolbar appears: (Aligment - Change Size - Alt text | Replace - Remove - Insert link) My question: how could I add a new button on this toolbar? I need a link button with...
  9. Scandal

    XF 2.2 Nestable list with sub-lists

    Hello all! :) I have a question about the integrated nested-sort function of xF2. For a basic sort table, we have this: <div class="nestable-container" data-xf-init="nestable" data-max-depth="1" data-value-target=".js-Messages"> <xf:if contentcheck="true">...
  10. Scandal

    XF 2.2 Article Preview Embedded Instagram, Youtube, etc..

    Hi John! Well, I did some investigation. There are two ways to do this: A) Go to admin -> (sidebar) Forums -> Nodes -> click on the Article forum you have -> change Display style from Preview to Expanded. B) or, you keep the Display style to Preview, and it is a simple template modification. On...
  11. Scandal

    XF 2.2 JSON_ARRAY column and allowedValues

    Hello all! Let's say we have a JSON_ARRAY column (entity) and we need to specify allowedValues. How could be achieved? Example: $structure->columns = [ 'user_id' => ['type' => self::UINT, 'required' => true], 'days' => ['type' => self::JSON_ARRAY, 'default' =>...
  12. Scandal

    XF 2.2 Enhanced Search: index issue with "new" content type

    Well, xF Nodes entity doesn't have a search handler. So I added my own for a custom function: I have also add this on Node structure: $structure->behaviors['XF:Indexable'] = ['checkForUpdates' => ['title', 'description']]; But I have an unstable issue with Enhanced Search: 1. For example if I...
  13. Scandal

    XF 2.2 class Purchase implements \ArrayAccess -> could I extend it?

    Hi! Yes I understand what you said, you're right. The problem is the following: ok, we changed the cost via purchaserequest save entity (Repository). The issue: lots of other payment providers (developed by others), during hot functions like: protected function getPaymentParams(PurchaseRequest...
Top