Jump to content


Photo
- - - - -

Parse syntax error - custom section to add new global navabar


This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1 msaizan

msaizan

    Super Member

  • Members

  • 193 posts

Posted 04 January 2011 - 01:36 AM

grrrr...i am "attempting" to create a custom section to add a second global navabar above the branding (pagelines pro, bse). i have faithfully followed the instructions in the video tutorial in the docs, checked and rechecked and compared my code to what's on screen in the tutorial and to make sure all my curlys exist and/or closed where they need to be...in fact, several times - and still no cigar. did some research and found that one of the most common reasons for this error is because of the use of short codes. tried changing short codes to long form php code but still no cigar. Can anybody help me out here? i really want that navabar.

section is unregistered in functions right now so i can keep working but as soon as i register and refresh here's what i am getting:

Parse error: syntax error, unexpected $end in /home/mattheww/public_html/wp-content/themes/platformbase/sections/section.globalnav.php on line 39

and this is my code:


Please Login or Register to see this Hidden Content


and this is how i am registering at functions.php

Please Login or Register to see this Hidden Content



#2 bryan-hadaway

bryan-hadaway

    Advocate

  • Members
  • PipPipPipPipPip
  • 3697 posts

Posted 04 January 2011 - 02:47 AM

Marking for developer review. Thanks, Bryan

#3 arpowers

arpowers

    Founder

  • Administrators
  • 3271 posts

Posted 04 January 2011 - 07:38 AM

ahhh found it, you forgot to close your `if` statement. Good for you though, once you figure this out you'll be rockin!

#4 intellagentz

intellagentz

    Super Member

  • Members
  • 121 posts

Posted 04 January 2011 - 02:51 PM

Can I please ask that you detail this step-by-step in a written tutorial to accompany the video. This is a useful option to include and I would go one step further in asking that you consider adding this functionality in a future build version.

#5 msaizan

msaizan

    Super Member

  • Members

  • 193 posts

Posted 04 January 2011 - 05:31 PM

i second the motion. It would be great to have a written tutorial to accompany the video and I would like to see this functionality built in - Since PL theme already supports three custom menu placements makes sense to give us a second global option to choose there - i think the theme would benefit from an above the branding global - and/or second global horizontal menu bar option that matches style of the primary. in general the folks who are building e- commerce sites would need that option/ positioning. i am still stumped on the IF statement and my eyes are starting to glaze over now! if anybody wants to throw me an additional bone and ramp up the karma love around here i'll take it. i am not lazy - i love to learn - just a month behind on the completion of this website!

#6 arpowers

arpowers

    Founder

  • Administrators
  • 3271 posts

Posted 05 January 2011 - 06:04 AM

I know! Better Docs are coming, we are mixing them in as we develop all the features you guys are asking for...