I've made a list of the theme.php changes/additions from v. 7.01 to v. 7.02. So this guide should help you upgrade your 7.01 theme to 7.02, if you want to give it a go yourself!
Notice that this guide only concerns the theme.php, and is covering the basic upgrade of your theme, but I will advice you to also read this thread, here on Main, about the new style CSS options in the 7.02 series: Guide:: New PHP-Fusion 7.02 Style Classes
Code
---------------------------------------------------------------------------------------------------------------------------------
>>> 7.01 - 7.02 Theme changes, in theme.php (comparing the old, 7.01, with the new, 7.02 theme.php from the Theme 'Gillette') <<<
---------------------------------------------------------------------------------------------------------------------------------
1) Code change, in function render_page:
----------------------------------------
Ex. old code:
-------------
function render_page($license = false) {
global $settings, $main_style, $locale;
Ex. new code:
-------------
function render_page($license = false) {
global $settings, $main_style, $locale, $mysql_queries_time;
2) NEW code-addition - Add this, just after the //Footer-code's end, but inside the function render_page code:
--------------------------------------------------------------------------------------------------------------
3) NEW code-addition, function render_comments - Add this, just after the function render_page code's end:
----------------------------------------------------------------------------------------------------------
4) Code change, in function render_news, affecting the news category images:
-----------------------------------------------------------------------------
------------------------------------------------------------------------
>>> New Footer Copyright code-variation possibilities, in theme.php: <<<
------------------------------------------------------------------------
1) Footer Copyright kode can now be displayed in 1 or 2 lines, and assigned a class:
------------------------------------------------------------------------------------
Usage:
// Default 2 lines
showcopyright()
// Only one line
showcopyright("", true)
Or:
// Only one line
showcopyright($class = "", $nobreak = true)
I've just upgraded the D-Blog theme, on one of my sites, like descriped above, and had no problems doing that - it works just fine, so maybe you've made a mistake somehow?
If you want support on the Blue4U theme, please use the support thread for that. Okay?
Besides that, I asked the guys out there for a confirmation on this "theme upgrade guide", if I got it right, and I'm still waiting for that answer - so there's no use following it untill, I get that confirmation!
UPDATE: I've just upgraded the Blue4U theme, following my own guide, and it worked just fine. No errors on the 'Read More' button! So you must have made a mistake when trying to upgrade the theme. So you must try upgrading it, one more time! Edited by Harly on 27-12-2011 16:45
I'm sorry for bothering, everything is OK, I just expected something like separate button because in the same line as "read more", "reads" etc. there is a light-blue box on the right that dragged my attention away. That's probably because I got cold just on Christmas and I don't feel very well. Thanks for the great tutorial, I needed it.
No problem mate! Just glad to hear that it worked like it should - the second time around.
And thanks to you, for the feedback.
EDIT: Changed the first post to be more descriptive concerning the Guide, and refering to the new 7.02 style classes as well!
Edited by Harly on 28-12-2011 08:06
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.