News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Template Changes Between 1.1 RC3 And 1.1 Final

Started by winrules, November 24, 2006, 12:05:24 PM

Previous topic - Next topic

TreetopClimber

Quote from: m3talc0re on December 03, 2006, 10:38:32 PM
To make things a little easier, I took what winrules wrote and put 'em in basic html files so it's easier for everyone to copy/paste.

Download the .ZIP file here: http://www.webtechnica.net/temp/RC3_to_Final_Guide.zip

Enjoy and thanks for the guide winrules.
Thanks for this brother ;)

Tunga

How are (or did) people making their 1.0 themes compatible with 1.1?  Or is there a way to get them onto RC1 and then I could follow all three guides to get mine onto 1.1?

symon

Does anyone read this? Does anyone at SMF realise a very large proportion of their users (and people who have made them successful) are using 1.0?  :-\

Or are all the original users worthless and only 1.1 beta tester worth the day of light? Come on guys...what about the 1.0 users?

Deaks

#23
Quote from: Tunga on December 04, 2006, 06:06:11 AM
My theme is still on 1.0 since I wasn't running the RCs.  Is there a guide to get me from 1.0 to 1.1?

go to the Downloads Section

and download the full version and update that way but do not overwrite settings.php or settings.bak.php

simple really :)

The differences between 1,0 and 1,1 are extreme as the changes are in almost every file.
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

m3talc0re

And with pretty much every forum software, with changes as significant as from 1.0 to 1.1, the previous version's theme's have to be remade.
The real hell is your life gone wrong.

Superdaantje

Thanks for this instructions...Updated the template ;)
Greetz
Superdaantje.nl

.
Joomlabridge.org SMF Bridge Support, Downloads and Joomla Video Tutorials

winrules

FaBMak, thanks, I;ve removed the semi-colon.

As for a 1.0 -> 1.1 guide, we most likly won't make one as there are very many changes. You can always use file comparison software.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Random

This bit here is giving me an error in my theme (based on Babylon).

Code (find) Select

else
echo '
var window_oldOnload = window.onload;

Code (replace) Select

elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}';
else
echo '
var window_oldOnload = window.onload;



The error is:

Parse error: parse error in .../Themes/Hearts/index.template.php on line 428

419:       echo '
420:       // ]]></script>';
421:    }
422:
423:    // The following will be used to let the user know that some AJAX process is running
424:    echo '
425:       <div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>
426:    </body>
427: </html>';

428: }
429:
430: // Show a linktree.  This is that thing that shows "My Community | General Category | General Discussion"..
431: function theme_linktree()
432: {


winrules



winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Surferbird

.:: Always something to ask - always grateful for assistance ::.

Random

Hmm, I don't seem to have the box for adding attachments?

I think perhaps there is a { in mine where there isn't one in the quote, but I'm not sure what to do about it  ;D

Here is the whole section that is causing the error.


else
{
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}';
}

echo '
// ]]></script>';
}

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>
</body>
</html>';
}

// Show a linktree.  This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()

winrules

Sorry I thought they were enabled on this board. Can you PM me the contents of the whole file?


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


rabbithutch

#32
Was a similar description of template changes between the 1.0 versions and the 1.1RC versions ever posted?  My index_template.php file is one that I modified originally in the 1.0.7 or .8 version.  When I upgraded to 1.1RC3 I wound up uploading the same file because I couldn't figure out how to make some of the changes for the appearance I wanted.  I've now done the same thing for 1.1F but believe that I should get with it and use the latest and greatest version of index.template.php in my theme.  My php skills have not improved; so I still need help to get the look and feel I want.  I think I can get the graphics in place but I'm leery of making the code changes for displaying the logo/header area and for rearranging the menu buttons.

Here's a screenshot of my opening page:
rabbit
--------------------
Just because you can doesn't mean you should!

NeFReT


chadness


JPDeni

Quote from: winrules on November 24, 2006, 12:05:24 PM
These are the changes that have been made in the most commonly used templates by custom themes in 1.1 final.

Make sure you also update the javascript files (*.js) in the default theme directory.

You said these were the most commonly used templates that were changed. Are they they only templates that were changed?

Gary

No, they're not the only ones I dont think, but they're the most commonly changed templates.

-AwwLiulMaggie
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

JPDeni

I decided just to go through with a file comparison program and see what the differences are. I made changes to quite a few of the template files for my theme.

Thanks for the response!  :)

Firefrog

#38
Just to clarify what I need to do.

I have 247 Portal - Blue for RC2 installed and working. Do I now need to make all the changes in the RC2 to RC3 thread and then all the changes in this Thread?

Is that correct? And are there any other changes likely to be needed?
It seems like a scary prospect to upgrade SMF and a theme in one hit I won't have a clue what is broken, if it breaks....

Or has anyone made all the changes and willing to share a modified Portal Blue for 1.1?


Superdaantje

yep you have first to make the cahnges from RC2 to RC3 and then you can make the changes to 1.1
Greetz
Superdaantje.nl

.
Joomlabridge.org SMF Bridge Support, Downloads and Joomla Video Tutorials

Advertisement: