MOD writting for phpBB3

Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Post Reply
User avatar
poyntesm
Registered User
Posts: 176
Joined: Fri May 13, 2005 4:08 pm
Location: Dublin, Ireland
Contact:

MOD writting for phpBB3

Post by poyntesm »

Hi all,

I am working to convert one of my MODs to Olympus..so that when it is gold I will be ready with both a new install/upgrade for it.

I know previously no support was given to this task and i understand that..however I have a question regarding how phpBB wants mods to be done and wonder are they now accepting questions on this track since we are @ beta?

Reason I ask is I note from the code that it seems they would like you to place your language files in ./language/xxx/mods/

Code: Select all

// Get mod files
$mods_files = filelist($phpbb_root_path . 'language/' . $config['default_lang'], 'mods', $phpEx);
$mods_files = (isset($mods_files['mods/'])) ? $mods_files['mods/'] : array();

Code: Select all

function filelist($rootdir, $dir = '', $type = 'gif|jpg|jpeg|png')
This is not there by default but by looking at the code it seems at least from the ACP admin side they would like them placed there.

So is it the case thats the best location? Will there be a small set of guidelines for MOD writters for this type of stuff before gold?

Regards
Esmond

User avatar
MHobbit
Registered User
Posts: 198
Joined: Tue Mar 23, 2004 9:31 pm
Location: On the road to nowhere...

Re: MOD writting for phpBB3

Post by MHobbit »

poyntesm wrote: Will there be a small set of guidelines for MOD writters for this type of stuff before gold?
We're still looking into it.
Former phpBB MOD Team Member - No support offered via IM, PM, or email

User avatar
poyntesm
Registered User
Posts: 176
Joined: Fri May 13, 2005 4:08 pm
Location: Dublin, Ireland
Contact:

Re: MOD writting for phpBB3

Post by poyntesm »

Cheers MennoniteHobbit. While obviously a full guide to all functions/classes would be great for once the gold is out...before hand a small pointer to stuff like the above would be great, as I a seeing different results from the code below. The result from a lang array point of view should I believe be the same regarding making the variables available..but that is not what I see.

Code: Select all

$user->setup(array('mods/mod_lang_file'));
v's

Code: Select all

require($phpbb_root_path . 'language/' . $user->data['user_lang'] . '/mods/mod_lang_file.' . $phpEx);

User avatar
eviL<3
Registered User
Posts: 9
Joined: Thu Jun 15, 2006 3:39 pm

Re: MOD writting for phpBB3

Post by eviL<3 »

phpBB3 uses much more classes. I hope there will be some kind of guide :)

Can somebody explain what's the difference between the "includes/acp/*" and the "includes/acp/info/*"? What are they used for?

Also, zebra means "Friends/Foes", right? And "acm" is the cache manager?

Thanks!

APTX
Registered User
Posts: 680
Joined: Thu Apr 24, 2003 12:07 pm

Re: MOD writting for phpBB3

Post by APTX »

The files in the /info directory hold information about the classes. These are used for module managment.
Don't give me my freedom out of pity!

User avatar
jojobarjo32
Registered User
Posts: 164
Joined: Wed Jun 22, 2005 7:38 pm
Location: France

Re: MOD writting for phpBB3

Post by jojobarjo32 »

eviL<3 wrote: phpBB3 uses much more classes. I hope there will be some kind of guide :)

Can somebody explain what's the difference between the "includes/acp/*" and the "includes/acp/info/*"? What are they used for?

Also, zebra means "Friends/Foes", right? And "acm" is the cache manager?

Thanks!
IMO, the code will be documented by phpDocumentor because all functions/classes/methods respect the phpDoc description :)

In includes/acp, you have all the acp modules whereas in includes/acp/info you only have the informations of the modules (informations which serve solely for create the module tree).

And yes, zebra represents the Friends/Foes feature and ACM the Cache system ;)

User avatar
eviL<3
Registered User
Posts: 9
Joined: Thu Jun 15, 2006 3:39 pm

Re: MOD writting for phpBB3

Post by eviL<3 »

Thanks for the info!

User avatar
poyntesm
Registered User
Posts: 176
Joined: Fri May 13, 2005 4:08 pm
Location: Dublin, Ireland
Contact:

Re: MOD writting for phpBB3

Post by poyntesm »

Yes..but phpDocumentor will not tell us stuff like where the team would like MOD files to go. My MOD has 81 files..and so placement where they would be best located to me is important.

Post Reply