3.6.7 This is awful. I have a ton of custom php code
This is awful. I have a ton of custom php code in many ata installs. Looks like i won't be upgrading any time soon.
2. how am i supposed to customize the theme in the future? put my php directly into the index.php (or whatever) template? |
Quote:
HTML Code:
background: url('<?php bloginfo('template_directory'); ?>/images/bullets/round-gray.gif') no-repeat 0 7px; |
Yes it does. You need to use full paths now.
|
Quote:
Any reason the atahualpa directory under themes cannot retain the same name? E.G. ayahualpa. |
It can retain that name but I like to give it a new name so I can always switch back to a previous version if I have problems. It creates a bit more work in upgrading but gives me peace of mind.
|
Quote:
However, on this whole issue I'm really discouraged. There is SO MUCH PHP in the theme's editable insert areas. Losing all this is a major setback for me as well as for the amazing customizability of Atahualpa. I have multiple templates and see no reasonable way to move beyond 3.6.4 without weeks of work (weeks I don't have). I know I'm whining, but it sure would be nice if there were a detailed to-do- list for this upgrade -- especially as to how if affects the now-defunct "Style & Edit CENTER COLUMN" where multpile <?php is in use. An idea: Any chance this section could interpret shortcodes? And if so, y'all could park those items in [shortcodes], such as this default ata code: (???) HTML Code:
<?php /* For MULTI post pages if activated at ATO -> Next/Previous Navigation: */ bfa_next_previous_page_links('Top'); ?> <?php if( is_category() AND function_exists('page2cat_output')) { page2cat_output($cat); } ?> |
Honestly I would just stay with 3.6.4.
|
It's not the end all to anything PHP though
Raw PHP isn't possible anymore but PHP functions that are known beforehand can be parsed as text string and then executed as I added in 3.6.7 for the function <?php bfa_widget_area('....'); ?> I'll add this for a whole bunch of PHP functions so hopefully you'll be able to upgrade smoothly to 3.6.8 WITH custom PHP code PHP code with logic (IF/ELSE FOREACH WHILE) won't work though, only simple PHP one liners, 1 function with or without parameters: <?php functionname('paremeter1=Paramater 1¶meter2=Parameter 2&.......'); ?> This should however cover most of the custom PHP that is being used in Atahualpa |
With the ability to add a new widget area You can add a New Widget area in various places such as ATO>Add HTML/CSS Inserts>HTML Inserts: Body Top or ATO>Style & Edit Header Area>Configure Header Area and then use a PHP aware widget in those areas.
|
Quote:
Meanwhile, I'm with lmilesw: Quote:
|
I should have said "In your case I would just stay with 3.6.4 for now". Going with 3.6.7 makes sense for a great majority of people.
|
Is creating an ATA plugin an option to enable PHP into the theme's editable insert areas?
- Vincent |
Hi John,
I have given a solution to reactivate PHP in this thread http://forum.bytesforall.com/showthr...&highlight=php But you need to edit the functions.php file. I totally agree with Vincent that we can create a plugin to activate php in Atahualpa. Like the theme can contain a pluggable functions like wordpess has that can be called from plugins. Well thats just a thought. Anyways I trust Flynn and he will definitely come up with something. But I am sticking to 3.6.4 because i have custom code in the loop section that has been removed in 3.6.7. Hope Flynn activates it back again soon |
Quote:
<span class='st_twitter' st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' displayText='Twitter'></span> The above code is an example of 5 social media buttons that display on Single Post Pages BUT NOT on Multi Post Pgs or the Home Page (I had to turn off the ShareThis plugin's auto insert capability to do this. They place it on all post pages). This is currently working with 3.6.4.... when a social media button is clicked, it uses the title/permalink of the post in the text link, saving the site-visitor the trouble of typing it out (see www.renderyourvision.com). I assume this php functionality will be disabled if/when I upgrade to a more current version of Atahualpa. My question is, if I create a widget "area" and place it in FOOTER: SINGLE POST PAGES, will the php then still work in versions 3.6.7 and up? -Thank you. |
I have had success doing what you mention. I would recommend a manual upgrade so you can test and if there are issues you can just switch back to 3.6.4.
|
Thanks for the feedback, Larry, but I was wondering if Flynn could briefly comment as to whether this string is the type he was talking about in his post #8, above:
<span class='st_twitter' st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' displayText='Twitter'></span> Here's a snippet of his post: Quote:
|
I believe those are the types of things he is talking about. However, there is no way every function could be checked and programmed in.
|
Ok. Thanks. I will test it after I upgrade to 3.6.7. If it works, I will confirm in a post (for anyone else that might be using the shareThis plugin with Atahualpa theme). By the way, awesome theme. You guys do GREAT work. Thanks again.
|
I have this code loaded in EDIT POST/PAGE INFO ITEMS > FOOTER: SINGLE POST PAGES:
<span class='st_twitter' st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' displayText='Twitter'></span> <span class='st_facebook' st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' displayText='Facebook'></span> <span class='st_linkedin' st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' displayText='LinkedIn'></span> <span class='st_email' st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' displayText='Email'></span> <span class='st_sharethis' st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' displayText='ShareThis'></span> It works with Ata 3.6.4 (WP 3.1.3) but not in Ata 3.6.7 (WP 3.1.3). It picks up the post title and loads it into the social media share screen after the user logs in. ShareThis.com is a pretty popular Wordpress plugin. I have double checked the plugin settings so I assume that this is due to the WP requirement to remove PHP functionality. Can this type of simple PHP function be included as an option in 3.6.8? |
do a forum search for 'What PHP functions do you want to see as options in 3.6.8?'
|
I don't have any of my own php code in the options, yet I somehow have some php code there, as seen in the following extract from the Export of the current Atahualpa settings:
Code:
"content_above_loop":"<?php \/* For MULTI post pages if activated at ATO -> Next\/Previous Navigation: *\/\r\nbfa_next_previous_page_links('Top'); ?>\r\n\r\n<?php \/* For the plugin Page2Cat http:\/\/wordpress.org\/extend\/plugins\/page2cat\/ *\/\r\nif( is_category() AND function_exists('page2cat_output')) { page2cat_output($cat); } ?>", |
yfradkin - If you didn't have modifications to it, it will run fine, that code is now in index.php.
|
Quote:
As suggested by Juggledad, I re-posted my question in the other thread. I included as much relevant detail as possible thinking that would be helpful. My post was then summarily deleted by Juggledad for being inappropriate for that thread. Puzzling. |
You could perhaps put a new widget area in the footer area and then use a php aware widget to populate the widget area.
|
Your question was
Quote:
So the answer to your question is 'Hopefully it will get into 3.6.8' |
All times are GMT -6. The time now is 03:39 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.