HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[SOLVED] Non-closed brace or directive in template OCF_FORUM on line 87

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#99589 (In Topic #19566)
Avatar

Community saint

ocP 9

Greetings,

I was creating an info box, using some template magic that I have done before, when I get hammered with...


Non-closed brace or directive in template OCF_FORUM on line 87


The only thing is, I can't see where that would be. So I am hoping that you guys can help me find my error. Here's the code.

Code


{+START,IF_PASSED,DESCRIPTION}{+START,IF_NON_EMPTY,{DESCRIPTION}}
    <div class="box box___ocf_forum"><div class="box_inner">
        <div itemprop="description">
            {DESCRIPTION}
        </div>
    </div></div>
{+END}{+END}

{+START,IF_PASSED,ID}
    {+START,IF_NON_EMPTY,{$CATALOGUE_ENTRY_FOR,forum,{ID}}}{$CATALOGUE_ENTRY_ALL_FIELD_VALUES,{$CATALOGUE_ENTRY_FOR,forum,{ID}}}{+END}
{+END}

{+START,IF_NON_PASSED,ID}{+START,IF,{$MATCH_KEY_MATCH,_WILD:members}}
    <p>{!DESCRIPTION_PRIVATE_TOPICS}</p>
{+END}{+END}

{+START,IF_NON_EMPTY,{$TRIM,{FILTERS}}}
    <div class="box box___ocf_forum"><div class="box_inner">
        <span class="ocf_pt_category_filters">{!CATEGORIES}:</span> {FILTERS}
    </div></div>
{+END}

{+START,IF_PASSED,ID}
{+START,IF,{$EQ,{ID},1}}
{$LOAD_PAGE,info,site}
{+END}

{CATEGORIES}

{+START,IF_EMPTY,{TOPIC_WRAPPER}{CATEGORIES}}
    <p class="nothing_here">
        {!NO_ENTRIES}
    </p>
{+END}

{+START,SET,BUTTONS}
    <div class="float_surrounder">
        <div class="buttons_group ocf_screen_buttons">
            {+START,IF_PASSED,ID}
                {+START,INCLUDE,NOTIFICATION_BUTTONS}
                    NOTIFICATIONS_TYPE=ocf_topic
                    NOTIFICATIONS_ID=forum:{ID}
                    NOTIFICATIONS_PAGELINK=forum:topics:toggle_notifications_forum:forum%3A{ID}
                {+END}
            {+END}
            {BUTTONS}
        </div>
    </div>
{+END}

{+START,IF_NON_EMPTY,{TOPIC_WRAPPER}}
    {+START,IF_PASSED,ID}
        {+START,IF,{$NOT,{$VALUE_OPTION,disable_forum_dupe_buttons}}}
            <div class="non_accessibility_redundancy">
                {$GET,BUTTONS}
            </div>
        {+END}
    {+END}
{+END}

{TOPIC_WRAPPER}

{+START,IF,{$NOT,{$WIDE_HIGH}}}
    {$GET,BUTTONS}

    {+START,IF_PASSED,ID}
        <div class="non_accessibility_redundancy">
            <nav class="breadcrumbs" itemprop="breadcrumb" role="navigation">
                <img class="breadcrumbs_img" src="{$IMG*,breadcrumbs}" alt="&gt; " title="{!YOU_ARE_HERE}" />
                {BREADCRUMBS}
            </nav>
        </div>
    {+END}

    
    {+START,IF_PASSED,ID}
        {+START,IF,{$HAS_ACTUAL_PAGE_ACCESS,admin_ocf_forums}}
            {+START,INCLUDE,STAFF_ACTIONS}
                1_URL={$PAGE_LINK*,_SEARCH:admin_ocf_forums:ad:parent_forum={ID}}
                1_TITLE={!ADD_FORUM}
                1_REL=add
                2_URL={$PAGE_LINK*,_SEARCH:admin_ocf_forums:_ed:{ID}}
                2_TITLE={!EDIT_FORUM}
                2_ACCESSKEY=q
                2_REL=edit
            {+END}
        {+END}
    {+END}
{+END}


Help please?


Last edit: by mythus

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Item has a rating of 5 (Liked by mythus)  
Rating:
#99594
Avatar

Is it here:

Code

{+START,IF_PASSED,ID}
{+START,IF,{$EQ,{ID},1}}
{$LOAD_PAGE,info,site}
{+END}

Two opens, one close.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#99595
Avatar

Community saint

That look just like my code. Let me find my brain real quick so I can try to see the problem….

Ah there,s my brain. I need another END statement.

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: