Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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.


  #1  
Old Jan 31, 2011, 09:37 PM
MtnStreamGroup
 
23 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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Feb 1, 2011, 07:48 AM
MtnStreamGroup
 
23 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
 
23 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, 1846 views)
  #5  
Old Feb 1, 2011, 08:12 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
The code you have has '&lt;' instead of '<'
'&quot;' instead of a single quote and
'&gt;' instead of '>'

that is why it fails
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Feb 1, 2011, 11:30 AM
MtnStreamGroup
 
23 posts · Jan 2011
I greatly appreciate the help guys.

1. I just copy and pasted the code from Breadcrumbs NavXT's website. If the code is bad, that is on them.

2. I wish there were a set of instructions/documentation that stated where all the "plugins" like Breadcrumbs are supposed to go. It really is hit or miss with the forum questions as to whether or not you find the right instructions.

So if I have this correct. Don't use Breadcrumbs code, put STB's code in the area where is at on the attached image.
Attached Thumbnails
Click image for larger version

Name:	Breadcrumbs Code.jpg
Views:	1828
Size:	120.2 KB
ID:	1108  

Bookmarks



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 08:04 PM.


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