Search found 611 matches

by Wolfsblvt
Fri Apr 24, 2015 3:35 pm
Forum: Extension Writers Discussion
Topic: Writing Tests for Extensions
Replies: 17
Views: 961

Re: Writing Tests for Extensions

You must execute phpunit from phpBB root folder, where the tests are.

So the command would be: phpBB\vendor\bin\phpunit -c phpBB\ext\phpbb\boardrules\phpunit.xml.dist

You can read that also here: Simple way to test your ext on TravisCI
by Wolfsblvt
Fri Apr 24, 2015 12:20 pm
Forum: Extension Requests
Topic: Posting templates for mods/admins
Replies: 19
Views: 717

Re: Posting templates for mods/admins

I will move it up on my list now.
Let's see when I can find the time.
by Wolfsblvt
Fri Apr 24, 2015 1:14 am
Forum: Abandoned Extensions
Topic: [ABD] @Mention System
Replies: 311
Views: 42114

Re: [DEV] @Mention System

I found an exploit that can break a thread. If you mention someone who has symbols in their username, that is also code for a smilie, it glitches out the page and will forever load. Removing the smilie code did not fix this, so instead I had to change a few usernames so that the threads could be re...
by Wolfsblvt
Wed Apr 22, 2015 2:38 pm
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2338

Re: Working with session and post form variables

I have answered that already. If you have to stick with session things, you have to extend phpBBs session table and store your data there. If the data is not different for every user, best method is just using the caching mechanism of phpBB. $cache->get() und $cache->set() should be the methods. If ...
by Wolfsblvt
Wed Apr 22, 2015 1:47 pm
Forum: Extension Writers Discussion
Topic: How to use $request->file instead of $_FILES
Replies: 4
Views: 1447

Re: How to use $request->file instead of $_FILES

When you have used $_FILES['filename'] you have to use $request->file('filename') now.

The request must be available, so either use dependency injection (if you are doing this in an extension), or use global $request;, if the object is missing.
by Wolfsblvt
Wed Apr 22, 2015 1:32 pm
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2338

Re: Working with session and post form variables

There isn't a real good explenation for what you want. But request object is pretty self-explaining with its functions. $config->set() is wrong though. It sets the global config for phpBB and has nothing to do with users and sessions. I will ask again: What do you want to achieve with using those ph...
by Wolfsblvt
Wed Apr 22, 2015 12:15 am
Forum: Extension Requests
Topic: [REQ] Topic as link
Replies: 12
Views: 455

Re: [REQ] Topic as link

Aaaah, I understand now. Okay.
But I don't understand the reason too. Shouldn't be a problem to just write the link in the first post, right? :D
by Wolfsblvt
Tue Apr 21, 2015 10:58 pm
Forum: Extension Requests
Topic: [REQ] Topic as link
Replies: 12
Views: 455

Re: [REQ] Topic as link

I don't understand.
When you have a link to a topic, it will redirect you to the topic.

What link do you want to have?
by Wolfsblvt
Tue Apr 21, 2015 10:43 pm
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2338

Re: Working with session and post form variables

You should probably read all those guides for new extensions then. [HowTo] Convert 3.0 MOD into 3.1 Extension "Hello World!" - Extension Writing Extensions And I think there are even more. You have to understand the basics for extension development, otherwise it will be difficult to code stuff for 3...
by Wolfsblvt
Tue Apr 21, 2015 9:18 pm
Forum: Extension Writers Discussion
Topic: Still Struggling with Notifications
Replies: 3
Views: 185

Re: Still Struggling with Notifications

The notification text is generated in ::get_title() . So yes, your notification only shows your language var :P You can take a look on some of phpBBs build in notifications how the generate the message in this function. As a side note: If you are using notifications for forums or posts, etc, best is...
by Wolfsblvt
Tue Apr 21, 2015 4:47 pm
Forum: Extension Writers Discussion
Topic: Still Struggling with Notifications
Replies: 3
Views: 185

Re: Still Struggling with Notifications

What do you mean by "data that goes into the extension"?

The data that you will use for the notification is created by you. Here :P
by Wolfsblvt
Tue Apr 21, 2015 4:42 pm
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2338

Re: Working with session and post form variables

As I said already, phpBB has it's own session variables.

And superglobals ($_POST, $_SESSION, $_SERVER, etc) aren't allowed to use.

As I've asked already, what do you need this for? Why do you need to use $_SESSION?
What's your goal, what are you doing?
With more information we may could help.
by Wolfsblvt
Tue Apr 21, 2015 12:48 am
Forum: Extension Writers Discussion
Topic: Working with session and post form variables
Replies: 32
Views: 2338

Re: Working with session and post form variables

Why do you want to use session variables? phpBB has it's own session handling built-in so I am quite sure it won't work. You should stick to request->variable() and form vars I would guess, or use cookies if data needs to be saved for further calls. Also note: phpBB 3.1 uses extension. All things th...
by Wolfsblvt
Tue Apr 21, 2015 12:39 am
Forum: Extension Writers Discussion
Topic: How do you add a session variable?
Replies: 5
Views: 684

Re: How do you add a session variable?

Why do you want to do that?
phpBB has it's own session system, so you have to extend that (by adding a new column to that table in your extension).

But why don't you use cookies? phpBB has built-in support for that, and it should work similar to what you want.
by Wolfsblvt
Mon Apr 20, 2015 10:37 pm
Forum: Extension Requests
Topic: Anti Double Post
Replies: 4
Views: 224

Re: Anti Double Post

Why don't you ask in the dev topic for this feature or how you can adjust it?

I think this is better than doing the whole thing again.

Go to advanced search