Search found 152 matches

by gn#36
Mon Mar 07, 2016 12:13 pm
Forum: Extension Requests
Topic: Use attachments of other users
Replies: 36
Views: 1940

Re: Use attachments of other users

I never understood making images private while leaving the text around it public. That is a configuration that would make me think at least twice before joining that board. Of what use are users that register only to see the attachments and are never seen again otherwise? Anyways, permissions would ...
by gn#36
Mon Mar 07, 2016 12:06 pm
Forum: Extension Writers Discussion
Topic: Order in modes in UCP Profile
Replies: 14
Views: 368

Re: Order in modes in UCP Profile

I don't think it is such a big deal to get this done, even though I agree that it usually should not be a big deal to simply leave it as-is. With the method from the acp module, you can easily move your module up and down in the list, the method will take care of updating the ids. So essentially the...
by gn#36
Mon Mar 07, 2016 2:01 am
Forum: Extension Requests
Topic: Use attachments of other users
Replies: 36
Views: 1940

Re: Use attachments of other users

So you basically want that when you hit the quote button, the image attachments in the post are automatically converted to [img]link/to/original/image[/img] so you see the same picture in both the original post and the quote?
by gn#36
Mon Mar 07, 2016 1:55 am
Forum: Extension Requests
Topic: How to show - Interval between new posts
Replies: 9
Views: 384

Re: How to show - Interval between new posts

Well, you have to query the database to get the users last post time (max post timestamp from posts table, where poster_id matches the user) and calculate the timestamp, at what time the user can post again. Then you can calculate the interval from the difference to the current time.
by gn#36
Sun Mar 06, 2016 8:48 pm
Forum: Extension Writers Discussion
Topic: Order in modes in UCP Profile
Replies: 14
Views: 368

Re: Order in modes in UCP Profile

Ok I admit, I should have simply linked your other topic to make my comment more helpful for search users. This way, they only know there is another topic with an answer posted by the same user they can search for. So everyone searching for the answer, it is here: https://www.phpbb.com/community/vie...
by gn#36
Sun Mar 06, 2016 1:35 am
Forum: [3.1.x] Support Forum
Topic: Multiple ACP functions causing Twig errors after upgrade
Replies: 20
Views: 587

Re: Multiple ACP functions causing Twig errors after upgrade

Check the write permissions of the cache folder. The folder should be globally writeable or at the very least writeable by the webserver. The error message states that it cannot create some cache file, so there is probably something wrong with the permissions.
by gn#36
Sat Mar 05, 2016 4:54 pm
Forum: Extension Writers Discussion
Topic: mode in the module in the ucp
Replies: 10
Views: 690

Re: mode in the module in the ucp

The Op I guess is talking about to how to place his own newly created UCP mode beetwen this two as per my image This is precisely what I answered. You will have to create it in the usual way and then you can use a custom function to move it where you want it. The information how to move it is in th...
by gn#36
Sat Mar 05, 2016 4:48 pm
Forum: [3.1.x] Support Forum
Topic: [Fixed] SQL Error - 'Duplicate entry 'X' for key 'PRIMARY' [1062]'
Replies: 4
Views: 846

Re: [Fixed] SQL Error - 'Duplicate entry 'X' for key 'PRIMARY' [1062]'

Well, it only works for mysql and it will stop working this way with PHP 7, because the old mysql driver you switched to will not exist anymore. Then you will have to switch back. I think this is some sort of bug that is specific to your environment, because the malfunctioning method with mysqli wor...
by gn#36
Sat Mar 05, 2016 3:12 am
Forum: [3.1.x] Support Forum
Topic: [Fixed] SQL Error - 'Duplicate entry 'X' for key 'PRIMARY' [1062]'
Replies: 4
Views: 846

Re: SQL Error - 'Duplicate entry 'X' for key 'PRIMARY' [1062]'

It is actually trying to update first and then checks if that succeeded. If not, it runs the insert afterwards. Check out phpbb/profilefields/manager.php line 243. So it seems that $this->db->sql_affectedrows() does not provide the correct result on your board. You may want to try switching the db e...
by gn#36
Sat Mar 05, 2016 12:36 am
Forum: Extension Writers Discussion
Topic: Order in modes in UCP Profile
Replies: 14
Views: 368

Re: Order in modes in UCP Profile

Why do you ask this twice?
by gn#36
Sat Mar 05, 2016 12:13 am
Forum: Extension Writers Discussion
Topic: mode in the module in the ucp
Replies: 10
Views: 690

Re: mode in the module in the ucp

Have a look at includes/acp/acp_modules.php . In there, you will find the method "move_module_by", that should explain to you, how the sorting works. You may be able to use this directly, but depending on how many modules are installed by other extensions to the same tab, you may have to determine t...
by gn#36
Tue Mar 01, 2016 11:55 am
Forum: Extension Writers Discussion
Topic: Charging data on migration
Replies: 7
Views: 278

Re: Charging data on migration

If you need to prevent a timeout, you could use a custom function that inserts a few things and then returns an index where it stopped. It will be called again automatically with the given index as a parameter and can continue inserting from that index. See Multi-Step Processes.
by gn#36
Tue Mar 01, 2016 11:31 am
Forum: Extension Writers Discussion
Topic: update_schema reference documentation
Replies: 2
Views: 278

Re: update_schema reference documentation

These are still only examples: Migrations: https://area51.phpbb.com/docs/dev/31x/migrations/index.html Schema changes: https://area51.phpbb.com/docs/dev/31x/migrations/schema_changes.html Basically, you can look at the method \phpbb\db\tools::perform_schema_changes(); , its comment is quite helpful ...
by gn#36
Mon Feb 22, 2016 12:15 pm
Forum: Extension Writers Discussion
Topic: How to use phpBB 3.1.x password hashing?
Replies: 4
Views: 2897

Re: How to use phpBB 3.1.x password hashing?

Validation can also be done with the manager: $passwords_manager->check($pw, $hash) . Default on 3.0 is salted_md5 and at least on my local installation of 3.1 bcrypt (with 2y). You can see the algorithm of each password by looking at the prefix in the users table. $H$ is salted_md5, $2y$ is bcrypt....
by gn#36
Sat Feb 20, 2016 1:16 pm
Forum: Extension Writers Discussion
Topic: PHP Email Confirmation?
Replies: 8
Views: 452

Re: PHP Email Confirmation?

If you haven't done so, enable debug mode (look into config.php). request_var still works. But I am not surprised to see no output, your code doesn't generate any, so that could also mean it works and your email settings in the board are wrong. You should generate some debug outputs at critical poin...

Go to advanced search