Zephyr

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Zephyr

Postby Obsidian » 29 Apr 2009, 18:41

Okay, I'm looking for some opinions on a posting handler I've made, which I'm calling Zephyr.

http://code.assembla.com/phpbb_crs_xerx ... zephyr.php

What do you all think of it?

Are there things I need to change?

Also, regarding zephyr::load_default_data(), what data /do/ I need by default? Do I not need any? :?
Have I coded it correctly to reply to topics, too?

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Zephyr

Postby igorw » 29 Apr 2009, 19:30

I like the name. :D

I would find it cool if you put stuff like backup_user() in a separate class (did you base it off my phpbbmodders_lib one?). But I like the way you use clone there.

All in all, it looks pretty usable. I didn't try it out though. ;)

- we're poor!

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Zephyr

Postby Obsidian » 30 Apr 2009, 00:04


User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Zephyr

Postby Obsidian » 30 Apr 2009, 00:51

Okay, I ran it, hit a few bugs, and ironed them all out.

It works like a charm!

Revisions 63 & 64 fixes a lot of globaling issues, and stuff that caused it to break. ;)
http://code.assembla.com/phpbb_crs_xerx ... zephyr.php

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Zephyr

Postby igorw » 30 Apr 2009, 18:02


- we're poor!

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Zephyr

Postby Obsidian » 30 Apr 2009, 18:54

Well, no, I don't need to reuse it, really.

Besides, I don't like playing with an external class for it. More simple to just keep it a set of private functions, I don't want a mess of classes like vBulletin has. :x

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Zephyr

Postby igorw » 01 May 2009, 00:18

You need to be less practical and think outside the box. :)

- we're poor!

User avatar
Ganon_Master
Past Contributor
Past Contributor
Posts: 311
Joined: 20 Nov 2006, 16:23
Real name: Hidde
Location: Soesterberg, Utrecht, The Netherlands
Contact:

Re: Zephyr

Postby Ganon_Master » 01 May 2009, 00:52


User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Zephyr

Postby Obsidian » 01 May 2009, 12:16

Well, I don't need to use it outside of Zephyr, so why should I separate them, then?

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Zephyr

Postby igorw » 01 May 2009, 12:27

Simple: maybe somebody else wants to create a new box that uses parts of yours.

- we're poor!

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Zephyr

Postby Obsidian » 01 May 2009, 12:32

Ah, but then there's your phpbb_auth_handler that they can use. ;)

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Zephyr

Postby igorw » 01 May 2009, 13:04

That's my point. Why duplicate behaviour if you can use existing?

- we're poor!

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Zephyr

Postby Obsidian » 01 May 2009, 17:11



[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB Development discussion”

Who is online

Users browsing this forum: No registered users and 18 guests