Search found 152 matches

by gn#36
Sat Jan 23, 2016 9:36 am
Forum: Extension Writers Discussion
Topic: Conditionnal revert_schema
Replies: 16
Views: 389

Re: Conditionnal revert_schema

Not yet, I haven't had the time to really test this either. But I am pretty sure the if conditional is a solution (I basically only need a condition that is false on installation but true when removing the data, so the custom function gets only called on removal), but separation into two migrations ...
by gn#36
Wed Jan 20, 2016 3:00 am
Forum: Extension Writers Discussion
Topic: Writing database tests for an extension
Replies: 5
Views: 225

Re: Writing database tests for an extension

It would already be helpful if the migration installation would crash instead of silently failing part of its installations. At least that is what seems to happen in the test environment. If it would crash during installation, the test setup would already fail with an SQL error before it is trying t...
by gn#36
Wed Jan 20, 2016 2:47 am
Forum: Extension Writers Discussion
Topic: Conditionnal revert_schema
Replies: 16
Views: 389

Re: Conditionnal revert_schema

Your first suggestion is basically what I am currently doing, except I have two custom functions. The if conditional is interesting, thank you for that link I will look into that one, maybe that helps. In the meantime I had a probably even simpler idea (just in case someone else is thinking about th...
by gn#36
Tue Jan 19, 2016 6:06 pm
Forum: Extension Writers Discussion
Topic: Writing database tests for an extension
Replies: 5
Views: 225

Re: Writing database tests for an extension

Ah, thank you, that makes sense. Simple mistake, but hard to find if you haven't encountered it before. I am a bit irritated, though, that this does not cause an SQL error stopping the test itself, because an ALTER TABLE that is trying to change a nonexistent table should lead to an SQL Error if I a...
by gn#36
Mon Jan 18, 2016 10:30 pm
Forum: Extension Requests
Topic: Calendar with events updated by users
Replies: 67
Views: 9472

Re: Calendar with events updated by users

If you already have a file that is suitable for a different style, you can simply place it inside the extension in a folder that is appropriate for the style. So for example, if the style is called wow54 , you should place your event file in the folder ext/hjw/calendar/style/wow54/template/event/ . ...
by gn#36
Mon Jan 18, 2016 5:02 pm
Forum: Extension Writers Discussion
Topic: Writing database tests for an extension
Replies: 5
Views: 225

Writing database tests for an extension

I am currently trying to write tests that are run through travis to validate my extensions and find possible errors. The setup is working, as far as I can tell and the tests are run, one of my extensions is successfully running several unit tests using the phpbb test framework. Now I have tried to t...
by gn#36
Mon Jan 18, 2016 10:39 am
Forum: Extension Writers Discussion
Topic: Conditionnal revert_schema
Replies: 16
Views: 389

Re: Conditionnal revert_schema

My question would be going in a similar direction: Is there a simple way of finding out whether a call to update_data is intended to actually revert the data changes besides checking with a query whether the data changes are already present? Is the function used for something else that might cause t...
by gn#36
Sun Jan 17, 2016 8:17 pm
Forum: Extensions in Development
Topic: [3.2][BETA] [3.1] gn36 - Hookup
Replies: 41
Views: 8853

Re: [DEV] gn36 - Hookup

That is weird. Thank you for spotting. I didn't think I used any hardcoded table names anywhere. As you can see in the error message, I used the table prefix for the insert part of the command (as that uses a different table prefix), but apparently I forgot replacing the second table in the query. S...
by gn#36
Thu Jan 14, 2016 10:17 pm
Forum: Extension Requests
Topic: Calendar with events updated by users
Replies: 67
Views: 9472

Re: Calendar with events updated by users

Is it done by the HookUp mod from phpBB.de? Even though this post has been quite a while ago: I am working on a combination of the two so event dates can first be planned using the hookup and then, once a date was found, be automatically entered into HJWs calendar. This is now done in a first versi...
by gn#36
Thu Jan 14, 2016 10:15 pm
Forum: Extensions in Development
Topic: [3.2][BETA] [3.1] gn36 - Hookup
Replies: 41
Views: 8853

Re: [DEV] gn36 - Hookup

A bridge is now available, linking hjws calendar extension with the hookup. When an active date is set on hookup, this date is automatically entered into the calendar. When it is reset, the appointment is again removed from the calendar. Download of current development version for testing: https://g...
by gn#36
Sun Dec 27, 2015 1:58 pm
Forum: Extensions in Development
Topic: [3.2][BETA] [3.1] gn36 - Hookup
Replies: 41
Views: 8853

Re: [DEV] gn36 - Hookup

I thought I should put a short update here since quite a few additions have been made since my last post here and the extension is nearing completion of the first version to be entered in the extension database. The extension now merges two hookups if the respective topics are merged Several bugfixe...
by gn#36
Wed Nov 25, 2015 8:13 pm
Forum: Extensions in Development
Topic: [ALPHA] phpBB.de Pastebin
Replies: 15
Views: 1515

Re: [ALPHA] phpBB.de Pastebin

The cron job should be fully functional, yes, and I basically offer the same options. I don't know whether the variable names I chose work with that cronjob monitoring extension, though, but that is a minor thing that could obviously be easily changed. Regarding Geshi: Well, it should also be easier...
by gn#36
Wed Nov 25, 2015 6:20 pm
Forum: Extensions in Development
Topic: [ALPHA] phpBB.de Pastebin
Replies: 15
Views: 1515

Re: [ALPHA] phpBB.de Pastebin

Yes it is, even though I didn't know there was a newer version than this. Feel free to send pull requests if you can improve something. Currently, the code is a little messy, though. There are several things in there multiple times. Regarding geshi: It will be in all release packages. But I don't se...
by gn#36
Wed Nov 25, 2015 4:14 pm
Forum: Extensions in Development
Topic: [ALPHA] phpBB.de Pastebin
Replies: 15
Views: 1515

Re: [ALPHA] phpBB.de Pastebin

how must I include GeShi?? Use composer for this (https://getcomposer.org/download/). Before uploading the extension to your webspace, unpack it in a local folder and cd to it with a shell (e.g. bash on linux or the windows shell in windows). Then, assuming you downloaded composer into the same fol...
by gn#36
Mon Sep 28, 2015 4:58 pm
Forum: Extension Writers Discussion
Topic: What activates disable_super_globals?
Replies: 6
Views: 327

Re: What activates disable_super_globals?

It shouldn't, really. The disable will result in an error if you try to use it. So assuming that all extensions are fully tested and don't activate them themselves, they shouldn't use superglobals anyways. phpBB itself doesn't need superglobals except in the special class. Obviously, if you install ...

Go to advanced search