Jump to content

Skins, modules & 2.2.


Guest Joem

Recommended Posts

Hi there.

I have a couple of quick questions regarding IPB 2.2.

Firstly will 2.2 be able to accept skins that were designed for 2.1 ?
and secondly we have a number of modules added to the forum ie. Arcade, Prison, Points system, etc
Will there be any problems with these ?

Thanks

JoeM

Link to comment
Share on other sites

Hi there.



I have a couple of quick questions regarding IPB 2.2.



Firstly will 2.2 be able to accept skins that were designed for 2.1 ?


and secondly we have a number of modules added to the forum ie. Arcade, Prison, Points system, etc


Will there be any problems with these ?



Thanks



JoeM



No not all the skin templates will work because the html logic was changed. This may seem bad at first, but it is actually a very good thing. The older versions of IPB did some "special", but weird, things to the statements... Now 2.2 leaves it alone and inserts them directly. Here is an example:

Before

<if="var==true">
1
</if>
<else>
2
</else>

Now (2.2)

<if="$var==true">
1
<else />
2
</if>



As you can see variables now have "$" in-front. PHP uses these symbols for variables, and the templates are cached to PHP... So before it was "adding" it which really hampered on the things you can do with it. Also, nesting was not supported (but is now). So now you can nest html logic and you can put your statement in directly, with functions like substr, without the system screwing it up. It opens the doors for developers in a big BIG way. Also believe a loop statement was added to reduce redundant html (when needed).

Also the "ipb." prefix was removed. You will need to replace them with "$this->ipsclass->"... it makes more sense anyway.

As far as the components themselves they should work fine. The html templates they use would need to be updated. (Also believe "script_url" was removed. Now it's only "base_url"). The components that need code updated is when they plugin to the AdminCP..... But even then it's just template cache changes.

It really isnt that bad. Not nearly as bad as some of the previous updates. This is actually very mild. It took me 4 1/2 hours to update one of my own components only because I was going blind trying to figure out what was what... But after knowing these things it's very easy. If I had known these things before, it would have taken me 30 minutes max.

Link to comment
Share on other sites

He's pretty much got it spot on.

Oh, except for the added fact that in the next release, we have already added a tool into the ACP that will update older templates to use the newer HTML logic automatically for you - so you don't even need to manually do this. :)

Most components will work fine with 2.2 out of the box, aside from the template changes. Note: I did say most

Link to comment
Share on other sites

He's pretty much got it spot on.



Oh, except for the added fact that in the next release, we have already added a tool into the ACP that will update older templates to use the newer HTML logic automatically for you - so you don't even need to manually do this. :)



Most components will work fine with 2.2 out of the box, aside from the template changes. Note: I did say

most


Can't expect it to be perfect though.
Link to comment
Share on other sites

Oh, except for the added fact that in the next release, we have already added a tool into the ACP that will update older templates to use the newer HTML logic automatically for you - so you don't even need to manually do this. :)



Have noticed it, But he's post let me know which section the skin templates has changed.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...