My Subscriptions

No active or expired subscriptions. View Available Subscriptions

Advanced Search

Home arrow Forum arrow Extensionsarrow JCal Pro and JCal Clientarrow Archivearrow Themes (board locked)arrow Make 1.0.x themes compatible with 1.5.x, Step 1
Pages: [1]
Print
Author Topic: Make 1.0.x themes compatible with 1.5.x, Step 1  (Read 1100 times)
V-man
Administrator
Hero Member
*****

Karma: +11/-1
Posts: 1998


Ignorance is curable, stupid is forever.


View Profile
« on: March 11, 2007, 03:03:26 AM »

To upgrade your 1.0.x theme for 1.5.x compatibility, first edit the theme template.html file. The first line represents the 1.0.x code and the next line represents the 1.5.x code (line numbers based on the default theme).

Line 1
Code:
< <link rel="stylesheet" href="{THEME_DIR}/style.css" />

Line 4
Code:
< <script language="JavaScript">
---
> <script type="text/javascript">

Line 13
Code:
< function init() {
---
> function init() {

Code:
Line 15
<   if (window.Event) {
---
>   if (document.Event) {

Line 18
Code:
<     } else {
<       window.captureEvents(Event.MOUSEMOVE);
---
>            document.onmousemove = getXY;

Line 22
Code:
<   document.onmousemove = getXY;

Line 26
Code:
<   x = (window.Event) ? e.screenX : event.screenX;
<   y = (window.Event) ? e.screenY : event.screenY;
---
>   x = (document.Event) ? e.screenX : event.screenX;
>   y = (document.Event) ? e.screenY : event.screenY;

Line 395
Code:
> function printDocument()
> {
> self.focus();
> self.print();
> }

Line 401
Code:
< &nbsp;<br />
Logged

*** Please read this post and the FAQs before posting in the forum. ***

Support questions via PM will be ignored. Please use
Pages: [1]
Print
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com

Original Joomla Template design by RocketTheme ( Conversion by Bloc)