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 » Page & Category Menu Bars »

Help! With Breadcrumb NavXT & syntax error that has my site shut down.


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 Jan 31, 2011, 09:37 PM
MtnStreamGroup
 
24 posts · Jan 2011
Help! With Breadcrumb NavXT & syntax error that has my site shut down.

Ok. I'm trying to put breadcrumbs on my website along with the dropdown menu.

I installed and activated Breadcrumb NavXT 3.7.0. It states I have to put the follow code into the header.

HTML Code:
<div class='breadcrumbs&'>
<?php
if(function_exists('bcn_display'))
{
    bcn_display();
}
?>
</div>
I read several of the posts and I thought I had the right area to put the code

HTML Code:
// Empty setting "levels" same as 0
   if ( $bfa_ata['levels_page_menu_bar'] == '' ) 
      $bfa_ata['levels_page_menu_bar'] = 0; 	
			
   echo bfa_hor_pages($bfa_ata['sorting_page_menu_bar'], $bfa_ata['levels_page_menu_bar'], 
      $bfa_ata['titles_page_menu_bar'], $bfa_ata['exclude_page_menu_bar']);
I put the code in after here using the Theme Editor. I clicked the Update File button, however, when I did I got the following syntax error.

Parse error: syntax error, unexpected '&' in /wordpress/wp-content/themes/atahualpa361/functions/bfa_header_config.php on line 65

I took the brumbcrumb code out and tried to update the file but I still get the syntax error. My site is down.

1. Did I select the wrong area in the bfa_header_config.php to put the code?
2. Is using the theme editor the wrong tool to use to edit code like this?
3. If the arrangement is %image %pages %bar1 %bar2, is it possible to have the breadcrumbs be located in the bar2?

BTW, I got the site back up by uploading a new bfa_header_config.php file.

Last edited by juggledad; Feb 1, 2011 at 03:45 AM. Reason: I have the site back up
  #2  
Old Feb 1, 2011, 03:49 AM
juggledad's Avatar
juggledad
 
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
I'd have to see the whole module with the edits to determine what might be wrong.

put the code back in and then copy the entire module to a text file. ZIp the file and attach it to a reply using the paper clip icon
  #3  
Old Feb 1, 2011, 07:48 AM
MtnStreamGroup
 
24 posts · Jan 2011
I've attached a zip file with the breadcrumb code where I put it. After reviewing it a bit more it seems I might have put it in the wrong place.

Where is the right place to put the code? Why isn't there a better way of putting breadcrumbs into the 'code' or the site in general?

As a theme wouldn't it be better to include breadcrumbs as an option? With the ability to put it where you want them like you can with the header image, main menu, etc.

Just asking and suggesting.
  #4  
Old Feb 1, 2011, 07:50 AM
MtnStreamGroup
 
24 posts · Jan 2011
I guess I forget to hit the right button to upload the zip file.
Attached Files
File Type: zip bfa_header_config_sample.zip (3.3 KB, 136 views)
  #5  
Old Feb 1, 2011, 08:12 AM
juggledad's Avatar
juggledad
 
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
The code you have has '&lt;' instead of '<'
'&quot;' instead of a single quote and
'&gt;' instead of '>'

that is why it fails
  #6  
Old Feb 1, 2011, 08:31 AM
STB
 
762 posts · Apr 2010
Also dont edit the php files unless you have to
you would have to do it again each time you update your theme

most php edits can be/should be done in the theme
for example in ata > style edit header area > configure header area

your code should read:
PHP Code:
<div class="breadcrumbs"><?php if(function_exists('bcn_display')) {bcn_display();}?></div>

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ERROR MESSAGE: Parse error: syntax error, unexpected T_STRING in /hsphere/lo Candy Atahualpa 3 Wordpress theme 1 Oct 31, 2010 03:00 PM
Breadcrumb NavXT integration Wimbledon Plugins & Atahualpa 3 Oct 20, 2010 10:20 AM
Parse error: syntax error, unexpected '<' in /home6/jonesber/public_html/wp-content/ jonesberries Atahualpa 3 Wordpress theme 2 Nov 30, 2009 03:33 AM
[SOLVED] Home page won't load! Parse error, syntax error lhanft Atahualpa 3 Wordpress theme 4 Aug 30, 2009 01:44 PM
[SOLVED] Parse error: syntax error, unexpected ':', expecting ')' in /home/cwicsol/pu norwichkaren Page & Category Menu Bars 1 Jul 12, 2009 10:04 AM


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


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