Porting?

General discussion of anything. Discuss a topic in and out of IntegraMOD

Moderator: Integra Moderator

Porting?

PostAuthor: aoowais » Sat Jun 17, 2006 3:28 am

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?
Last edited by aoowais on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

aoowais
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Thu Jun 01, 2006 2:22 am
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Sat Jun 17, 2006 8:15 am

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.
Last edited by Jason Sanborn on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 10:40 am
Cash on hand: 0.00
Location: Marina, CA

Re: Porting?

PostAuthor: aoowais » Sat Jun 17, 2006 8:25 pm

I was thinking of porting this [url=http]mod[/url] over to integramod.
Last edited by aoowais on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

aoowais
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Thu Jun 01, 2006 2:22 am
Cash on hand: 0.00

Re: Porting?

PostAuthor: Teelk » Sun Jun 18, 2006 1:44 pm

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.
Last edited by Teelk on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 6:25 pm
Cash on hand: 0.00
Location: Canada

PostAuthor: aoowais » Mon Jun 19, 2006 10:42 pm

I'm also thinking of learning PHP and MySQL so that I can port mods better. Is it easy to learn?
Last edited by aoowais on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

aoowais
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Thu Jun 01, 2006 2:22 am
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Tue Jun 20, 2006 9:38 am

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.
Last edited by Jason Sanborn on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 10:40 am
Cash on hand: 0.00
Location: Marina, CA

Re: Porting?

PostAuthor: Dragonsys » Tue Jun 20, 2006 10:20 am

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.
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: aoowais » Fri Jun 23, 2006 8:41 am

So Teelk, how goes the porting of the mod?
Last edited by aoowais on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

aoowais
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Thu Jun 01, 2006 2:22 am
Cash on hand: 0.00

Re: Porting?

PostAuthor: Teelk » Fri Jun 23, 2006 11:22 am

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.
Last edited by Teelk on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 6:25 pm
Cash on hand: 0.00
Location: Canada


Return to General Discussion

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]