Update... I've installed locally a dev enviroment (phpbb) according to this instructions. But when I run the test(s) I get the following error... andreas@devian [02:33:02 PM] [/var/www/html/phpbb] [master *] -> % phpBB/vendor/bin/phpunit phpBB/ext/andreask/ium/tests/functional/autodelete_page_user_t...
Greetings, I am trying to write some tests and of course I'm failing miserably. Here is what I get for an error github . And this suppose to be my test . I don't believe it reaches to the actual test but failing earlier. But I don't understand what I am doing wrong. If any of you could help me and/o...
Git and Github...
Mostly github, it's convenient and when you start to understand how it works it sometimes very helpful but also frustrating at times.
This is how I do it (I mean it goes in the script) private function pair_secretsantas($ids) { // Initializing pairs array $pairs = []; // We need a key to walki through the array $key = 0; // Make a copy of ids to grab and delete rows freely. $temp_ids = $ids; // Walk through the array and create pa...
You can see the script here . Basically it's pairs of user_ids where one user_id is pointing to another user_id. The first part is the user and the second part is the target user_id. There you can also see the foreach loop I've wrote. Imagine that if there'll be 5000+ users (ok doubtful, but you nev...
It's not standard. The ext is expecting to have "participants" so it depends on the size of the forum members. Could be just 10 or could be 5000... Would it be possible to have a simple example of what you mean: you can chunk() an array into many chunked arrays to pass to the foreach() loo...
My data is already convenient. I mean my array is in this form [ '26' => 'Value1' '44' => 'Value2' '177' => 'Value16' '299' => 'Value286' ] So I don't need them to be paired I only need to update the db with the paired data. Unless I didn't understood you correct in that case apologies!
Hello, In my ext I need to update a table USERS_TABLE where a amount of users have to be updated accordingly. So for instance: user_id 50 update ext column to VALUE user_id 62 update ext column to VALUE#2 user_id 73 update ext column to VALUE#4 user_id 88 update ext column to VALUE#7 I couldn't find...
@3Di I know that's why I asked... I don't know, I guess I was thinking too "creatively"? I was hoping that $variable would be populated by the result of the functions within the condition. ($this->request->variable('something', '') || $this->request->variable('something_else', '')) So I wo...
Hello, OK here is the stupid question of the year. Is it possible to have something like this? if ($variable=($this->request->variable('something', '') || $this->request->variable('something_else', '')) && $another_variable['some_data']) { // do something with $variable } Of course what I wa...
Hi, I was trying to make an ext and then some good Samaritan point me your creation. Unfortunately my js skills is very limited so I had stuck several times on several problems. Anyways, perhaps it would be a good idea to capture "enter". As I said i suck on js but this is how I did it. in...