Search found 1042 matches

by javiexin
Thu May 11, 2017 12:42 pm
Forum: Extension Writers Discussion
Topic: How to set max length for topic tile ?
Replies: 24
Views: 2000

Re: How to set max length for topic tile ?

can you help me ? I am trying... I assume you are using this code. If not, please, POST COMPLETE listener at least. public function viewtopic_title_length($event) { $last_post_subject = censor_text($event['row']['forum_last_post_subject']); $last_post_subject_truncated = truncate_string($last_post_...
by javiexin
Wed May 10, 2017 7:12 pm
Forum: Extension Writers Discussion
Topic: Class loader class
Replies: 19
Views: 1769

Re: Class loader class

https://tracker.phpbb.com/browse/PHPBB3-15223
https://github.com/phpbb/phpbb/pull/4831

Please, take a look, and by all means, comment! Still WIP, and there are a few open points (you will see in the code).
Thanks
-javiexin
by javiexin
Wed May 10, 2017 1:13 pm
Forum: Extension Writers Discussion
Topic: Class loader class
Replies: 19
Views: 1769

Re: Class loader class

I know now... Thanks a lot.
by javiexin
Wed May 10, 2017 12:54 pm
Forum: Extension Writers Discussion
Topic: Class loader class
Replies: 19
Views: 1769

Re: Class loader class

The class loader is registered in the container for some obscure reasons but it shouldn't. The has to be the first thing created and that's a requirement you cannot change. About what you are trying to achieve, the best thing is to inspects the autoloaders chain and wrap them (give Symfony's Debug ...
by javiexin
Mon May 08, 2017 9:24 am
Forum: Extension Writers Discussion
Topic: require_once
Replies: 7
Views: 601

Re: require_once

Thanks a lot VSE. That was what I suspected, but it is good to have the confirmation. On your example, through, that would be for classes that do NOT have autoloaders registered. Otherwise, the class would be loaded twice, one with class_exists and another with the include. For phpBB, this is almost...
by javiexin
Sun May 07, 2017 11:54 pm
Forum: Extension Requests
Topic: [3.2] Group PM , Reply = REPLY to GROUP
Replies: 2
Views: 235

Re: [3.2] Group PM , Reply = REPLY to GROUP

Maybe REPLY ALL?
by javiexin
Sat May 06, 2017 12:27 pm
Forum: Extension Writers Discussion
Topic: Class loader class
Replies: 19
Views: 1769

Re: Class loader class

@rxu, thanks for the suggestion, but no: it is precisely for production that I want this to be active. It is not for installation, but for normal operation where this is important, in my view. The situation: a non-expert admin works on a forum and breaks something in an extension (removes some files...
by javiexin
Fri May 05, 2017 10:49 pm
Forum: Extension Writers Discussion
Topic: Class loader class
Replies: 19
Views: 1769

Re: Class loader class

Phpbb stores extension files, some reading :: on files http://php.net/manual/en/function.clearstatcache.php Not for here, but this has helped me with something else! Thanks. I'd say you shouldn't try minipulate the core php classes and information stored. Tell me how can I achieve what I want witho...
by javiexin
Fri May 05, 2017 7:13 pm
Forum: Extensions in Development
Topic: [CDB] Advanced Profile Fields Pack
Replies: 161
Views: 18917

Re: [3.1][3.2][RC] Advanced Profile Fields Pack

New version 1.0.1 released.

No significant new features.
Corrects minor issues from the CDB Validation team
Corrects a major issue with Image Upload Profile Fields not working on 3.2
Resubmitted to the CDB

See first posts for updated link and complete information.

Enjoy.
-javiexin
by javiexin
Fri May 05, 2017 6:36 pm
Forum: [3.2.x] Support Forum
Topic: Extension load order?
Replies: 6
Views: 391

Re: Extension load order?

There is nothing in the core to allow sorting of template events. But here is a workaround (copied from my own post at Area51): http://area51.phpbb.com/phpBB/viewtopic.php?f=99&t=51606&p=301236#p301236 Quick way around this. Beware as this will be lost any time that you install a new version...
by javiexin
Fri May 05, 2017 6:13 pm
Forum: Extension Writers Discussion
Topic: require_once
Replies: 7
Views: 601

Re: require_once

I think the question from Mark referred more to the requirement? to avoid "_once" type of calls. Theoretically, the "_once" version of a call will make sure that the file will not be included twice, so if it was already included, it will do nothing. However, I was told in the val...
by javiexin
Thu May 04, 2017 1:01 pm
Forum: Extension Writers Discussion
Topic: Class loader class
Replies: 19
Views: 1769

Re: Class loader class

I want to detect problems when extension files are missing, to avoid forum crashes, and provide a "safe" recovery mechanism by force-disabling the failed extension.
by javiexin
Thu May 04, 2017 11:13 am
Forum: Extension Writers Discussion
Topic: Class loader class
Replies: 19
Views: 1769

Re: Class loader class

I didn't really get what are you trying to do, but as far as I see you should be able to ovverride the whole class_loader service with your own (in extension) by defining in your extension's services.yml the 'new' class_loader service with your own parameters. Thanks a lot rxu, but unfortunately, t...
by javiexin
Wed May 03, 2017 9:15 pm
Forum: Extension Writers Discussion
Topic: Removing/altering functionality with Extensions
Replies: 4
Views: 329

Re: Removing/altering functionality with Extensions

As always, it depends. You can add a CSS property display:none; for example...
Or you may change template vars (in PHP)) to achieve something similar.
Or a lot of other possibilities. Let us know what you want to achieve, and what you want to remove, and we will try to be more specific.
-javiexin
by javiexin
Tue May 02, 2017 5:19 pm
Forum: Extension Writers Discussion
Topic: Class loader class
Replies: 19
Views: 1769

Re: Class loader class

Upon further investigation, I have ruled out the option to replace the extension class loader at run time. The issue is that you need a class loader for extensions before you do anything (almost), like creating the "compatibility globals", and mostly any core class that uses service decora...

Go to advanced search