Search found 136 matches

by infinitiv
Tue May 22, 2018 10:14 am
Forum: Extensions in Development
Topic: [CDB] Digests 3.2.11
Replies: 1036
Views: 64979

Re: [RC] Digests 3.2.6

What does this extension do? I read the first post and I still don’t have a clue.
by infinitiv
Tue May 22, 2018 10:12 am
Forum: Extensions in Development
Topic: [CDB] Linked Accounts
Replies: 80
Views: 6170

Re: [3.2][RC] Linked Accounts

Notifications and PMs shared between linked accounts would be nice. MyBB has it in some of its many modules.
by infinitiv
Thu Jul 20, 2017 9:52 am
Forum: [3.2.x] Support Forum
Topic: Again a new update and I am partly lost
Replies: 12
Views: 721

Re: Again a new update and I am partly lost

Lol, 240$ when all you got to do is to upload the auto update folders and go to yoursite.com/install/, where yoursite.com is, well, your site name. I could do it for 200$. ;)
by infinitiv
Thu Jul 20, 2017 9:48 am
Forum: [3.2.x] Support Forum
Topic: LATEST reply FIRST - Oldest last (Down the list)
Replies: 11
Views: 409

Re: LATEST reply FIRST - Oldest last (Down the list)

You actually CAN stop users from changing this preference by disabling corresponding UCP modules via ACP.
by infinitiv
Wed Jul 19, 2017 7:48 am
Forum: phpBB Custom Coding
Topic: Ajaxify page reloading…?
Replies: 2
Views: 484

Re: Ajaxify page reloading…?

I still haven’t found what I’m looking for and although I think it can be a bit annoying I could really use a help on this one. :oops:
by infinitiv
Tue Jul 18, 2017 9:54 pm
Forum: phpBB Custom Coding
Topic: Ajaxify page reloading…?
Replies: 2
Views: 484

Ajaxify page reloading…?

So I have some.php that assigns its result to a template after clicking on the submit button. Everything works fine but I don’t want the page to refresh after proceeding the form. Is there a possibility to ajaxify it? Adding action="some" and data-ajax="true" to the <form> element doesn’t do the tri...
by infinitiv
Tue Jul 18, 2017 9:47 am
Forum: phpBB Custom Coding
Topic: How to replace $_POST with $request?
Replies: 10
Views: 739

How to get POST results without page reloading?

…Turned out that you cannot actually use „$template->assign_block_vars” when there’s only a single variable. I’ve used „$template->assign_var” instead.
Now everything works fine, but I need to find a way to get a result without having the page to reload.
by infinitiv
Tue Jul 18, 2017 9:24 am
Forum: phpBB Custom Coding
Topic: How to replace $_POST with $request?
Replies: 10
Views: 739

Re: How to replace $_POST with $request?

Thank you all very much, the code’s now working and I gained necessary knowledge to move forward with my edits. One thing concerns me though, I can’t seem to assign block to a template. Now i have: $a = $request->variable('a', ' '); $b = $request->variable('b', 0); if ($request->is_set_post('submit'...
by infinitiv
Mon Jul 17, 2017 8:47 pm
Forum: phpBB Custom Coding
Topic: How to replace $_POST with $request?
Replies: 10
Views: 739

Re: How to replace $_POST with $request?

OK, so I managed to fix that with: $a = $request->is_set('a'); $b = $request->is_set('b'); $c = new calc(); if ($request->is_set_post('submit')) { $result = $c->getresult($a, $b); var_dump ($a, $b); } But hitting the „submit” button just reloads site nad var_dump gives me „bool(true)”. It didn’t out...
by infinitiv
Mon Jul 17, 2017 8:32 pm
Forum: phpBB Custom Coding
Topic: How to replace $_POST with $request?
Replies: 10
Views: 739

Re: How to replace $_POST with $request?

There were some mistakes in the code which aren’t present on my board. For example there’s no „$cal” you asked about. I was editing it to show off here on phpbb.com and I got clumsy. Sorry. I already edited first post.
by infinitiv
Mon Jul 17, 2017 8:30 pm
Forum: phpBB Custom Coding
Topic: How to replace $_POST with $request?
Replies: 10
Views: 739

Re: How to replace $_POST with $request?

$a and $b should be pulled from the form in the template. It goes like this: <form method="post"> <tr> <td>A:</td> <td><select name="a"> <option value="123">123</option> </select></td> </tr> <tr> <td>B:</td> <td><input type="text" name="b"></td> </tr> <tr> <td></td> <td><input type="submit" name="su...
by infinitiv
Mon Jul 17, 2017 8:28 pm
Forum: phpBB Custom Coding
Topic: How to replace $_POST with $request?
Replies: 10
Views: 739

Re: How to replace $_POST with $request?

Brf wrote:
Mon Jul 17, 2017 8:26 pm
You have not shown us where you have defined $cal, $a, or $b
Do I? I posted the only lines that I’ve changed. Everything works fine in PHP fiddle, but not in phpBB (after including common.php and such).
by infinitiv
Mon Jul 17, 2017 8:22 pm
Forum: phpBB Custom Coding
Topic: How to replace $_POST with $request?
Replies: 10
Views: 739

How to replace $_POST with $request?

I had a $c = new calc(); if(isset($_POST['submit'])) { $result = $c->getresult($_POST['a'], $_POST['b']); } which worked fine. Changed it to work with phpBB using: $request->is_set('a'); $request->is_set('b'); $c = new calc(); if ($request->is_set_post('submit')) { $result = $c->getresult($a, $b); }...
by infinitiv
Mon Jul 17, 2017 8:19 am
Forum: [3.2.x] Support Forum
Topic: Upgrade to 3.2 question
Replies: 10
Views: 662

Re: Upgrade to 3.2 question

Did you tried aforementioned STK package?
by infinitiv
Mon Jul 17, 2017 8:17 am
Forum: [3.2.x] Support Forum
Topic: app.php returns a 500 server error
Replies: 9
Views: 668

Re: app.php returns a 500 server error

I sometimes had 500 error when I messed up something with the extensions – like syntax and such. I think that’s some implementation of phpBB security algorithms.

Go to advanced search