|
#1
Jun 17, 2011, 05:04 PM
|
|
I had received information a while back on how to make this work... but after upgrading to the latest version, I'm having problems.
I have a pop-out page that is used for opening up a music player. That page is totally blank (no header image, menu, or sidebars)... It just contains the flash based music player. After the upgrade I'm getting an Fatal error: Cannot redeclare bfa_meta_tags() ...
If I change that page to the Default template (the one with the header image, menu, sidebars, etc.) it opens just fine.
Is there something that would have changed in this most recent update? Do I need to change my template file?
Thanks,
Tim
|
#2
Jun 17, 2011, 05:31 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
What version of Atahualpa and WP?
What is the URL?
Do you have all BUGFIX's for your version applied? (they can be found in the 'New Version & Updates' forum and sub forum)
--if not, apply them before we go any further and re-test
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#4
Jun 17, 2011, 09:05 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
what is the template you are using?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#5
Jun 17, 2011, 09:40 PM
|
|
This is the coding of the landingpage.php file. Let me know if this is not what you were asking for. This has worked for at least the last year or so... When I upgraded, I added this to the new theme folder and selected it in the page settings. Thought it was working, but obviously not. Thanks for the help!
<?php
/*
Template Name: Landing Page 1
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<?php /* if index.php or another page template (copied from index.php) was not used
(i.e. by a plugin such as WPG2), the global $bfa_ata would be empty */
global $bfa_ata; if ($bfa_ata == "") include_once (TEMPLATEPATH . '/functions/bfa_get_options.php'); ?>
<?php if ( $bfa_ata['css_external'] == "External" ) { ?>
<link rel="stylesheet" href="<?php echo $bfa_ata['get_option_home']; ?>/?bfa_ata_file=css" type="text/css" />
<?php } ?>
<?php include (TEMPLATEPATH . '/functions/bfa_meta_tags.php'); ?>
<?php if ($bfa_ata['favicon_file'] != "") { ?>
<link rel="shortcut icon" href="<?php echo $bfa_ata['template_directory']; ?>/images/favicon/<?php echo $bfa_ata['favicon_file']; ?>" />
<?php } ?>
<?php if ( is_single() OR is_page() ) { ?>
<link rel="canonical" href="<?php the_permalink(); ?>" />
<?php } ?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<script type="text/javascript" src="<?php echo $bfa_ata['siteurl']; ?>/wp-includes/js/jquery/jquery.js?ver=1.2.6"></script>
<?php if ( $bfa_ata['javascript_external'] == "External" ) { ?>
<script type="text/javascript" src="<?php echo $bfa_ata['get_option_home']; ?>/?bfa_ata_file=js"></script>
<?php } ?>
<?php if ( function_exists('wp_list_comments') AND is_singular()
# AND $bfa_ata['include_wp_comment_reply_js'] == "No"
) {
wp_enqueue_script( 'comment-reply' );
} ?>
<?php wp_head(); ?>
<?php echo ($bfa_ata['html_inserts_header'] != "" ? apply_filters(widget_text, $bfa_ata['html_inserts_header']) : ''); ?>
</head>
<body <?php body_class(); ?><?php echo ($bfa_ata['html_inserts_body_tag'] != "" ? ' ' . apply_filters(widget_text, $bfa_ata['html_inserts_body_tag']) : ''); ?>>
<?php echo ($bfa_ata['html_inserts_body_top'] != "" ? apply_filters(widget_text, $bfa_ata['html_inserts_body_top']) : ''); ?>
<div style="margin:0px auto;padding:0px;border:solid 1px #000000;font-size:1em;color:#ffffff;text-align:center">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php bfa_center_content($bfa_ata['content_inside_loop']); ?>
<?php endwhile; ?>
<?php else : ?>
<?php bfa_center_content($bfa_ata['content_not_found']); ?>
<?php endif; ?>
</div>
</body>
</html>
|
#6
Jun 18, 2011, 04:22 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
there was a change to the way templates had to be built in Atahualpa because first the 'Suhosin' issue and then because WordPress would not allow the use of the 'eval()' function in the theme.
You need to update the template and build it based off the current index.php
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#7
Jan 2, 2012, 11:43 AM
|
|
|
2 posts · Jan 2012
South Central Texas
|
|
I'm looking at the index.php file for version 3.7.3 and I have no idea what I'm looking at. I want to remove the sidebar (but not leave a blank div) and the top menu, but can't tell what to remove. Is there any documentation for this? Thanks.
|
#8
Jan 2, 2012, 02:29 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Why notuse the theme options?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
|