New MODDB requirements: separate modx file for templates?

Discussion forum for MOD Writers regarding MOD Development.
User avatar
smithy_dll
Former Team Member
Posts: 7632
Joined: Tue Jan 08, 2002 6:27 am
Location: Australia
Name: Lachlan Smith

Re: New MODDB requirements: separate modx file for templates?

Post by smithy_dll »

http://www.phpbb.com/mods/documentation/policies/moddb-3.0/index.php wrote:The primary language is to be included in the main (root) MODX file
Systems Engineering
User avatar
Marshalrusty
Project Manager
Project Manager
Posts: 29334
Joined: Mon Nov 22, 2004 10:45 pm
Location: New York City
Name: Yuriy Rusko

Re: New MODDB requirements: separate modx file for templates?

Post by Marshalrusty »

Moved from 3.0.x Discussion
🇺🇦 Made in Ukraine, exported to the USA 🇺🇸

Have comments/praise/complaints/suggestions? Please feel free to PM me.

Need private help? Hire me for all your phpBB and web development needs
User avatar
DualFusion
Registered User
Posts: 476
Joined: Tue Oct 24, 2006 9:53 pm
Location: A forum

Re: New MODDB requirements: separate modx file for templates?

Post by DualFusion »

What about the template file changes? I know that we put the style as the name and place it in the /template folder like: /template/prosilver.xml. But when opening it, it wont show the stylesheet so instead, I have put '../' in front of it. Would that be correct to do? Or is there something else we need to do?

Another thing, I have duplicated the headers in the template files as well, is that necessary? Or is there another format to do for them?
User avatar
smithy_dll
Former Team Member
Posts: 7632
Joined: Tue Jan 08, 2002 6:27 am
Location: Australia
Name: Lachlan Smith

Re: New MODDB requirements: separate modx file for templates?

Post by smithy_dll »

The MODX format specification states which header fields are and aren't required.
Systems Engineering
User avatar
Jhong
Registered User
Posts: 538
Joined: Thu Aug 10, 2006 6:53 pm
Location: In a theme sandwich

Re: New MODDB requirements: separate modx file for templates?

Post by Jhong »

Wouldn't it be better to package mods using PLAIN language as follows

/files
(in here is the hierachy of files to be copied to their phpBB install)

/mod_instructions
(in here are all the required XML files and/or install scripts. e.g. main_mod_install.xml, language_nl_install.xml, prosilver_template_install.xml... etc.

/optional files
(in here are files for additional language templates).
./templates
./language


No offense, but multiple "root" folders is very confusing and cumbersome, and multiple install .xml files scattered across several locations is just a pain -- both for the end users and for us (different paths to .xsl).
phpBB<->WordPress Integration: www.wp-united.com
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: New MODDB requirements: separate modx file for templates?

Post by igorw »

That would be even more differen't as it has been so far...
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
User avatar
smithy_dll
Former Team Member
Posts: 7632
Joined: Tue Jan 08, 2002 6:27 am
Location: Australia
Name: Lachlan Smith

Re: New MODDB requirements: separate modx file for templates?

Post by smithy_dll »

When the user opens up a zip file, they will see one installation file,

The idea is they will then know what to install from that single file they see.
Systems Engineering
Thoul
Registered User
Posts: 810
Joined: Sun Jun 23, 2002 1:25 am
Location: USA

Re: New MODDB requirements: separate modx file for templates?

Post by Thoul »

I have a related question. Suppose you have a mod that only edits template files. What would go in the main .xml, as far as instructions, in that case?
User avatar
Ash Hi Fi Zone
Registered User
Posts: 409
Joined: Fri Feb 09, 2007 11:55 am

Re: New MODDB requirements: separate modx file for templates?

Post by Ash Hi Fi Zone »

Thoul wrote:I have a related question. Suppose you have a mod that only edits template files. What would go in the main .xml, as far as instructions, in that case?
Thats what I am wondering too for releasing the BETA for two of my completed mods.... :(

I think there would only be one file : /templates/prosilver.xml containing the required modifications to be made.....
BondGamer
Registered User
Posts: 436
Joined: Mon Dec 15, 2003 7:49 pm

Re: New MODDB requirements: separate modx file for templates?

Post by BondGamer »

Can someone make an example zip of how all this fits together? I am totally confused as to how MODs are going to be packaged. This includes language and template changes. It doesn't have to be an actual MOD, just show some example changes.
My phpBB3 Mods: - None active =[
User avatar
MHobbit
Former Team Member
Posts: 4761
Joined: Thu Mar 18, 2004 5:32 pm
Location: There and Back Again

Re: New MODDB requirements: separate modx file for templates?

Post by MHobbit »

BondGamer wrote:Can someone make an example zip of how all this fits together? I am totally confused as to how MODs are going to be packaged. This includes language and template changes. It doesn't have to be an actual MOD, just show some example changes.
This part of the MODX documentation should help.
Former phpBB MOD Team member
No private support is offered.
"There’s too many things to get done, and I’m running out of days..."
BondGamer
Registered User
Posts: 436
Joined: Mon Dec 15, 2003 7:49 pm

Re: New MODDB requirements: separate modx file for templates?

Post by BondGamer »

It isn't.
My phpBB3 Mods: - None active =[
geoffreak
Registered User
Posts: 591
Joined: Sat Feb 12, 2005 8:39 am

Re: New MODDB requirements: separate modx file for templates?

Post by geoffreak »

Try out my xmlscript v2. (still in DEV but has much fewer bugs than v1 which you can find in my signature)
It has a new core and produces almost, if not exactly, a perfect example every time ;)
Anime Revolution - Your new #1 source for All things anime and manga!
READ MY BLOG ALREADY!
User avatar
poyntesm
Registered User
Posts: 1671
Joined: Tue Jan 18, 2005 11:19 am
Location: Dublin, Ireland

Re: New MODDB requirements: separate modx file for templates?

Post by poyntesm »

MennoniteHobbit, as per bug I reported it has errors in it. It states in that section you can edit the default template in the main XML which is incorrect.

Return to “[3.0.x] MOD Writers Discussion”