Page 1 of 1
Porting?

Posted:
Sat Jun 17, 2006 3:28 am
Author: aoowais
Hi, after requesting several mods to be ported from normal phpbb to integramod, I've decided to try to learn how to port my own mods to integramod. Where do I start?

Posted:
Sat Jun 17, 2006 8:15 am
Author: Jason Sanborn
I would suggest first looking at how others ported Mods, to get the feel for it. Also, start small. Don't take more than you can handle, especially if you aren't that familiar with PHP. As you start small, and work with other's mods, you will become more familiar with IntegraMod's code to be able to tackle bigger mods later.
Re: Porting?

Posted:
Sat Jun 17, 2006 8:25 pm
Author: aoowais
I was thinking of porting this [url=http]mod[/url] over to integramod.
Re: Porting?

Posted:
Sun Jun 18, 2006 1:44 pm
Author: Teelk
Hi aoowais,
That MOD requires a bit of a rewrite. Since it involves editing viewtopic.php and templates/viewtopic_body.tpl to add something to the author panel, then you'll have to add it to PCP(profile control panel). For a first timer, this will be most difficult as you'll need to familiarize yourself with some code.
A couple hints to porting MODs...
- Edits to overall_header.tpl to add a link to the MOD are not required, instead you need to add the link via the Qbar.
- Any reference to subSilver should be changed to fisubice
- Edits to pageheader.php that deal with the previous mentioned link in overall_header.tpl aren't required.
- Any code that adds anything to the viewtopic author panel needs to be rewritten as a pcp function(most of the time).
I'll port this MOD and break down the process for you so that you can take a stab at it.

Posted:
Mon Jun 19, 2006 10:42 pm
Author: aoowais
I'm also thinking of learning PHP and MySQL so that I can port mods better. Is it easy to learn?

Posted:
Tue Jun 20, 2006 9:38 am
Author: Jason Sanborn
Each person is different when it comes to learning, so it is hard to say it is easy, because what might be easy for me, might be hard for another. Best thing I can suggest is read books and online information, use references, and, most importantly, write and edit code. It is through writing/editing code and making mistakes that we learn.
Re: Porting?

Posted:
Tue Jun 20, 2006 10:20 am
Author: Dragonsys
you might want to find a few small MODs to try and port at first. Porting MODs can be difficult, especially if you don't know PHP very well.
What Teelk mentioned below is really only the tip of it. What might be good is take a currently ported MOD and compare it to the non-ported version. That will get you an idea of some o fthe changes which have to be made.
Just take it slow, and ask questions <img>
There is a GREAT community here, absolutly filled with very helpful and friendly people.

Posted:
Fri Jun 23, 2006 8:41 am
Author: aoowais
So Teelk, how goes the porting of the mod?
Re: Porting?

Posted:
Fri Jun 23, 2006 11:22 am
Author: Teelk
Still workin' on it, more difficult then I initially thought, and I have a lot less time on the computer lately. But, I will get it done.