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...
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...
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...
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...
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')...
ok, found the solution by myself :)
$('.js-editor').on('editor:config', function(e, editor)
(function ($, window, document)
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...
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">
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...
Let's say we have a JSON_ARRAY column (entity) and we need to specify allowedValues.
How could be achieved?
$structure->columns = [
'user_id' => ['type' => self::UINT, 'required' => true],
'days' => ['type' => self::JSON_ARRAY, 'default' =>...
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...
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...