JoomSimple Support Forum May 18, 2012, 05:20:41 pm *
 
Welcome, Guest. Please login or register.

Login with username, password and session length
  Joomla Extensions   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: upgrading TeamSpeak 3 PHP Framework  (Read 784 times)
steveg
Newbie
*

Karma: 0
Posts: 5


View Profile Email
« on: February 24, 2011, 10:59:59 am »

The default install comes with TeamSpeak 3 PHP Framework version 1.0.31-beta, but i would like to update it to the latest version (currently 1.1.4-BETA - http://www.planetteamspeak.com/component/option,com_docman/task,doc_details/Itemid,69/gid,105/ ).

I have tried to replace the files - just by copying over the download package and replacing the files in the /mod_joomsimple-teamspeak3-server-viewer_2-0/libs/ folder and it works, except that the front-end presentation is displayed in <table> form and not <div>s. This results in extra padding around the layout and doesn't look so tidy/good.

Can you tell me what steps are needed to properly update the framework please? Or where can I change the code from tables to divs?

Thanks in advance.
Logged
steveg
Newbie
*

Karma: 0
Posts: 5


View Profile Email
« Reply #1 on: February 24, 2011, 06:42:29 pm »

After reading the framework's Author's original forum post - it seems that the <div>s got changed to a table layout in version 1.1.1-beta:

Quote
! TeamSpeak3_Viewer_Html interface now returns HTML tables instead of div elements so please make sure that your existing CSS files get updated too
 * updated TeamSpeak3_Viewer_Text and TeamSpeak3_Viewer_Html classes with new customizable output patterns to provide greater flexibility.

The Author says:

Quote
Originally Posted by ginger|HFD 
Thank you! What was your motivation to go away from CSS back to tables?
Two simple reasons:
A table layout is 100% compatible to ALL current browsers since you don't need to float anything around (e.g. to get the right icon alignment).
The table layout is fluid and supports the channel spacers without having to be a CSS guru.


As you'll see the new HTML interface can be fully customized with the new pattern system I've implemented. For example:

HTML Code:
<table id='%0' class='%1'><tr class='%2'><td class='%3'>%4</td><td class='%5' title='%6'>%7 %8</td><td class='%9'>%10%11</td></tr></table>
The placeholders in this pattern will be replaced with dynamic values in a pre-defined order. So you can also go back to the old <div> tag format if you want.

Basically, this means that you can either go back to divs by changing the above code in /libs/Teamspeak3/Viewer/html.php or maybe try a RESET CSS stylesheet to get rid of all the gaps that <tables> produce. does anyone have any CSS suggestions?

I would still like to know what JoomSimple Admin recommend for best way to upgrade the framework please?




Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2011, Simple Machines