Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions, & Updating (http://forum.bytesforall.com/forumdisplay.php?f=12)
-   -   [SOLVED] Upgrading (http://forum.bytesforall.com/showthread.php?t=15160)

aebrigham Aug 18, 2011 03:26 PM

[SOLVED] Upgrading
 
Hi There,

I am currently running WordPress v3.0.3 and want to upgrade to 3.2.1. Here is the thing, I am currently using the Atahualpa v3.5.3 and would also like to upgrade to 3.6.7. However, all this talk in the forums about No custom PHP code anymore. I am concerned about just willy nilly upgrading to v3.2.1 and seeing what happens. I am worried my site will just not work anymore.

My question is this. What are your suggested upgrade steps to bring my site up-to-date?

juggledad Aug 18, 2011 03:55 PM

Step 1 - backup your database and wp-contents folder

Do you have any custom php in the options? If not, then do the upgrades - remember to copy any header images back to the header folder.

If you do, manually copy the theme to a new folder (see the post in the FAQ about upgrading) so you can switch between the two versions. Then you can check it out and swap back and forth.

You could also copy the site to a 'playground' or test site and test it out

aebrigham Aug 19, 2011 07:16 AM

Hi juggledad,

Thank-you for the quick response.

When you asked the question about custom php in the options? I am not exactly certain how to answer this. I may have altered some CSS, and i did something awhile back that added the "Search" box into the Menu bar, but I am not certain where that is...

How can I tell looking at the options if I have custom php?

aebrigham Aug 19, 2011 07:34 AM

I believe this is how I got the Search in the Menu Bar.

div.searchbox {
position: absolute;
top: 130px;
right: 25px;
}
div.searchbox input.text {
border: none;
padding: 2px 15px 2px 3px;
background: #fff url('<?php bloginfo('template_directory'); ?>/images/search2.gif') no-repeat right center;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
height: 15px;
bolder: solid 1px #e7e7e7;
font-size: 11px;
}

However, since 3.6.5 PHP code cannot be used anymore in HTML/CSS Inserts. How can I achieve this same result in the new version of Atahualpa? http://www.medeirosrmt.com/

juggledad Aug 19, 2011 11:35 AM

that's not php, that is CSS and it is fine and will work in 3.6.7

aebrigham Aug 20, 2011 08:15 PM

Hi juggledad,

Thank-you again for the reply.

I did as you suggested and created a testing.medeirosrmt.com site and installed the latest version of Wordpress and Atahualpa. Note on this site, the CCS code I posted does work accept, the search graphic in the text box does not appear. I also noticed some differences with cForms II, ie. the buttons don't appear the same, and the menu bar does not span the entire browser area.

I exported the Atahualpa options and imported them into the latest version. Note the differences from www.medeirosrmt.com and testing.medeirosrmt.com.

Any help would be appreciated.

Thanks,
Andrew

juggledad Aug 22, 2011 06:56 AM

your right, you do have to make some adjustments. One of the nice features of Atahualpa was that you could put php in the options. Then at runtime, Atahualpa would use the 'eval()' function to process the PHP in the option.

Unfortunately, WordPress has decided that allowing a theme to use the eval() function is a bad thing and they will not approve any theme with this in it. Flynn (the developer) tried a couple of other options that have not worked out. He was able to have the code examine some of the options to look for certain php functions, but not all.

You have three options:
1) stick with 3.5.3
2) move to 3.6.7 and change the items like
HTML Code:

background: #fff url('<?php bloginfo('template_directory'); ?>/images/search2.gif') no-repeat right center;
to
HTML Code:

background: #fff url(http://yourdomain.com/wordpress/wp-contents/themes/atahualpa/images/search2.gif') no-repeat right center;
3) wait a bit to see if Flynn releases a premium version of the theme that adds back in the eval()

aebrigham Aug 22, 2011 09:55 AM

Hi Juggledad,

This worked perfectly, thank-you for your quick response.

Last two things. Again the Menu bars do not span the entire browser width and they used to in my older version.

Secondly, cForms II buttons do not display properly. Any help would be appreciated...

juggledad Aug 22, 2011 10:14 AM

Quote:

...the Menu bars do not span the entire browser width...
if you mean the grey bars, that is because in testing.medeirosrmt.com at ato->Body, Text & Links->Body Style you are using php to pint to the directory

also at http://www.medeirosrmt.com/ I see a error at the bottom of the page
HTML Code:

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/content/a/e/b/aebrigham/html/medeirosrmt/wp-content/plugins/wassup/wassup.php on line 3954

aebrigham Aug 22, 2011 11:46 AM

Hi Juggledad,

I have changed the URL again for the Menu bars. I tried to find all the places where this occurred, I guess I did a poor job at this. Nevertheless, everything is working as expected now. Thank-you for your help... I appreciate your time...


All times are GMT -6. The time now is 02:02 AM.

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