Search found 29 matches

by CarstenF
Mon Jul 06, 2015 9:14 pm
Forum: Extension Writers Discussion
Topic: phpBB 3.1: How to create a password manager instance?
Replies: 11
Views: 1214

Re: phpBB 3.1: How to create a password manager instance?

Thanks for the additional information! I think I got a step further: In my DokuWiki test system, I inserted a var_dump(debug_backtrace()); statement just before the trigger_error() that caused the premature end of DokuWiki. From the stack trace, it seems as if the DokuWiki code tries to access the g...
by CarstenF
Sun Jul 05, 2015 10:43 pm
Forum: Extension Writers Discussion
Topic: Atom feeds use relative links for image attachments?
Replies: 2
Views: 224

Atom feeds use relative links for image attachments?

Hi all, using phpBB 3.1.5 with the built-in Atom feeds, I found that inline image attachments use relative links. For example, please see http://forum.cafu.de/feed.php?mode=news [ EDIT: This site now has this patch applied, so the issue can no longer be reproduced/observed there!] Its source code co...
by CarstenF
Sun Jul 05, 2015 9:24 am
Forum: Extension Writers Discussion
Topic: phpBB 3.1: How to create a password manager instance?
Replies: 11
Views: 1214

Re: phpBB 3.1: How to create a password manager instance?

Hi rxu, Using exec() is probably not a good practise, and it's not allowed by extensions writing policy (no idea if it makes any sense for you). Yes, I'm aware of exec() 's inherent problems, and would certainly prefer to avoid it. At this time though, it allows me to cleanly and easily separate php...
by CarstenF
Fri Jul 03, 2015 8:38 pm
Forum: Extension Writers Discussion
Topic: phpBB 3.1: How to create a password manager instance?
Replies: 11
Views: 1214

Re: phpBB 3.1: How to create a password manager instance?

sure, you need the password helper, password collection and config. Config depends on the dbal, which depends on a database connection which is setup in common.php. Well, this being circular is indeed not helpful... In the meanwhile, I "solved" the problem by a work-around that is very simple, but ...
by CarstenF
Fri Jul 03, 2015 8:11 pm
Forum: Extension Writers Discussion
Topic: phpBB 3.1: How to create a password manager instance?
Replies: 11
Views: 1214

Re: phpBB 3.1: How to create a password manager instance?

See how phpbb/passwords/manager.php defines its own dependencies in config/password.yml https://github.com/phpbb/phpbb/blob/3.1.x/phpBB/config/password.yml#L3-L9 [...] EDIT: Never mind, I misunderstood your use case. This is not going to work in your case. Sorry. Thanks for your reply. I could inde...
by CarstenF
Thu Jul 02, 2015 6:33 pm
Forum: Extension Writers Discussion
Topic: phpBB 3.1: How to create a password manager instance?
Replies: 11
Views: 1214

Re: phpBB 3.1: How to create a password manager instance?

Hi Paul, thanks for your reply. You will always need to include common.php. Well, the manager class is defined in phpbb\passwords\manager.php . Normally, I would just include that, then create an instance of the class. Unfortunately, the constructor takes parameters that I don't know how to supply -...
by CarstenF
Wed Jul 01, 2015 8:10 pm
Forum: Extension Writers Discussion
Topic: phpBB 3.1: How to create a password manager instance?
Replies: 11
Views: 1214

phpBB 3.1: How to create a password manager instance?

Hi all, with phpBB 3.0, I used phpBB as a login provider for another system (a DokuWiki instance). That is, in order to enable users to log into DokuWiki using their phpBB username and password, I used (in a DokuWiki plugin) code like this: define('IN_PHPBB', true); $phpbb_root_path = $conf['auth'][...
by CarstenF
Thu Jun 25, 2015 1:20 pm
Forum: [3.1.x] Support Forum
Topic: Bug: URL rewriting
Replies: 10
Views: 925

Re: Bug: URL rewriting

Mick wrote:You could ask Marc (he closed the ticket) the question.
Thanks, done!
by CarstenF
Thu Jun 25, 2015 12:49 pm
Forum: [3.1.x] Support Forum
Topic: Bug: URL rewriting
Replies: 10
Views: 925

Re: Bug: URL rewriting

I have had the same issue: After upgrading from 3.0.12 to 3.1.5 (no extensions, yielding a fairly vanilla 3.1.5 installation), access to e.g. robots.txt resulted in a 500 Internal Server Error, rather than the expected 404 with text "No route found for GET /robots.txt". For me too the solution was t...
by CarstenF
Fri Sep 05, 2014 12:49 pm
Forum: phpBB Discussion
Topic: What do you think about Markdown?
Replies: 70
Views: 27600

Re: What do you think about Markdown?

I think the argument was that anything you can do in Markdown you can do in BBCodes, not that one should be implemented through the other. From a technical standpoint, you can't really support Markdown "indirectly" because you'd have to convert the BBCodes back to Markdown to edit the post and that...
by CarstenF
Fri Sep 05, 2014 12:04 pm
Forum: phpBB Discussion
Topic: What do you think about Markdown?
Replies: 70
Views: 27600

Re: What do you think about Markdown?

You're both right of course. :D What I don't understand however, if Markdown gets supported only indirectly, that is, by translating it to BBCode first, and if the BBCodes that are built into phpBB are incomplete, for example without [h1], then how will the Markdown implementation work? In other wor...
by CarstenF
Thu Sep 04, 2014 12:53 pm
Forum: phpBB Discussion
Topic: What do you think about Markdown?
Replies: 70
Views: 27600

Re: What do you think about Markdown?

Sorry for the long delay! Depends if there's a BBCode for that or not. Sorry, I'm not sure if I actually understand this: If I wanted to define such a BBCode, how would it look like? Btw., another very important advantage of Markdown, compared to BBCode, is that you're defining logical structure suc...
by CarstenF
Tue Jul 29, 2014 6:44 pm
Forum: phpBB Discussion
Topic: What do you think about Markdown?
Replies: 70
Views: 27600

Re: What do you think about Markdown?

Just a question, what is about MD that has no correspondence in BBCode, such as headings or (much less important) tables? If there's no installed BBCode correspondence, then it is ignored and it is not parsed (just stored as-is). Makes sense, right? Hmmm, I was afraid of that. That means that featu...
by CarstenF
Tue Jul 29, 2014 8:37 am
Forum: phpBB Discussion
Topic: What do you think about Markdown?
Replies: 70
Views: 27600

Re: What do you think about Markdown?

It's already part of the TODO to allow swapping SCE between RTE, WYSIWYG and source code. With some adjustments, we probably can make 2 source code modes where 1 is BBCode and the other is MD. With that, the only issue that remains is how to work with things that have no MD correspondence... I'll t...

Go to advanced search