Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating »

Old Pages Upgradeable?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Mar 23, 2011, 04:42 PM
fromtheranks
 
145 posts · Apr 2009
Dev Env't: XP Pro SP3, IIS 5.1, MySQL 5.1, PHP 5.2.x, WP 2.7.1, Atahualpa 3.3.3, IE 7, FF 3.0.x
Time Old Pages Upgradeable?

Hi,

I'm in the process up upgrading to 3.5.3/3.6.4 (see http://forum.bytesforall.com/showthread.php?t=13408). I have my strategy pretty well laid out except for one question:

I have a couple of custom pages (contact-ftr.php and tagcloud.php) built on Atahaualpa 3.3.3's index.php. Will these "port" over without re-writes or do I need to recreate these pages using Atahualpa's new index.php. I'm guessing I have to redo these but if not ...

Thanks,
DP Harshman
  #2  
Old Mar 23, 2011, 04:53 PM
STB
 
762 posts · Apr 2010
Quote:
Originally Posted by fromtheranks
Hi,

I'm in the process up upgrading to 3.5.3/3.6.4 (see http://forum.bytesforall.com/showthread.php?t=13408). I have my strategy pretty well laid out except for one question:

I have a couple of custom pages (contact-ftr.php and tagcloud.php) built on Atahaualpa 3.3.3's index.php. Will these "port" over without re-writes or do I need to recreate these pages using Atahualpa's new index.php. I'm guessing I have to redo these but if not ...

Thanks,
DP Harshman
Hard to say without seeying your templates.
But you probably need to change a few lines in those templates to make them 3.6.x compatible.

I would compare the index.php of both version, and do a compare.
(for example use notepad++ or winmerge to compare)

Then you will see which things have changed and you can make the corresponding changes in your templates.

some examples:

PHP Code:
include (TEMPLATEPATH '/functions/bfa_get_options.php');
global 
$bfa_ata;
get_header(); 
changed to:
PHP Code:
list($bfa_ata$cols$left_col$left_col2$right_col$right_col2$bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
get_header();
extract($bfa_ata); 

PHP Code:
bfa_center_content($bfa_ata['content_inside_loop']); 
changed to:
PHP Code:
include 'bfa://content_inside_loop'

Last edited by STB; Mar 23, 2011 at 04:55 PM.
  #3  
Old Mar 23, 2011, 05:12 PM
fromtheranks
 
145 posts · Apr 2009
Dev Env't: XP Pro SP3, IIS 5.1, MySQL 5.1, PHP 5.2.x, WP 2.7.1, Atahualpa 3.3.3, IE 7, FF 3.0.x
STB,

Thanks. I think that answers my questions. Wasn't sure how "backward compatible" the versions were. Probably the easiest is going to be to just rebuild the pages from the latest index.php. For instance for my tagcloud.php based page, which is very straightforward, I'm assuming I'll just have to re-add, to a cloned copy of index.php:

At the top:
PHP Code:
<!-- included 6/11/09 by DPH to create new template name -->
<?php
/*
Template Name: Tag Cloud
*/
?>
Outside the loop:
PHP Code:
    <?php // END of the LOOP
    
endwhile; ?>
    
    <!-- modified by DPH 6/11/09 to add wp_tag_cloud template tag; doesn't need to be "in the loop" -->
    <!-- modified by DPH 11/03/09 to disable max display of 45 tags, 0 = unlimited -->
    <!-- note:  wp_tag_cloud called from ..\wp-includes\category-template.php -->
    <!-- <?php wp_tag_cloud(); ?> -->
    <?php wp_tag_cloud('smallest=10&largest=20&number=0&format=list'); ?>
DP Harshman
  #4  
Old Mar 23, 2011, 05:17 PM
STB
 
762 posts · Apr 2010
Yes, going with the example you give above, I agree with you fromtheranks.

Easiest to rebuild the templates* from the latest index.php, and re-add your own code.


*(to be exact, they are templates , not pages)
  #5  
Old Mar 23, 2011, 05:22 PM
fromtheranks
 
145 posts · Apr 2009
Dev Env't: XP Pro SP3, IIS 5.1, MySQL 5.1, PHP 5.2.x, WP 2.7.1, Atahualpa 3.3.3, IE 7, FF 3.0.x
STB,

You are correct, templates not pages.

Thanks for being a sounding board on this.

DP Harshman
  #6  
Old Mar 23, 2011, 05:29 PM
STB
 
762 posts · Apr 2010
Anytime. You're most welcome DP Harshman

Happy to share the info.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Menu Parent Pages covered up by child pages benjamin_preisner Page & Category Menu Bars 5 Nov 26, 2010 08:52 PM
[SOLVED] text size in pages sidebar widget not the same for 1st and 2nd level pages Chrisrush Sidebars & Widgets 6 Oct 18, 2010 11:26 AM
Newbie here. How do I place sidebar in pages? No side bars are shown in pages. xtrong Sidebars & Widgets 12 Jul 10, 2009 06:24 PM
How to make the Pages display in sidebar, show only the Parent Main Pages Leoni Sidebars & Widgets 2 May 27, 2009 12:13 AM
IE Home page no rt. Side bar new pages and other pages OK! Ok in FF and Chrome minionette Sidebars & Widgets 2 Feb 26, 2009 12:57 AM


All times are GMT -6. The time now is 05:40 PM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.