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.


Whole title as collapse and expand bottons in side panel?

Login / Search

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

Community saint

I am trying to figure this out. I want to be able to set up the whole title as the expand and collapse buttons but have a few issues.
using the code below I end up with the title showing twice on some blocks.

Code

         <h4 class="standardbox_title_panel">
            {+START,IF,{$CONFIG_OPTION,tray_support}}{+START,IF,{$JS_ON}}
               {+START,IF_IN_ARRAY,tray_open,OPTIONS}
                  <a href="#" onclick="SetCookie('tray_{TITLE|}',(get_elements_by_class_name(this.parentNode.parentNode,'hide_tag')[0].style.display=='none')?'open':'closed'); hideTag(this.parentNode.parentNode); /*resizeFrame('the_shoutbox');*/ return false;">{TITLE}</a>
               {+END}
               {+START,IF_IN_ARRAY,tray_closed,OPTIONS}
                  <a href="#" onclick="SetCookie('tray_{TITLE|}',(get_elements_by_class_name(this.parentNode.parentNode,'hide_tag')[0].style.display=='none')?'open':'closed'); hideTag(this.parentNode.parentNode); /*resizeFrame('the_shoutbox');*/ return false;">{TITLE}</a>
               {+END}
            {+END}{+END}
            {TITLE}
         </h4>
Like this.


When I use this code.

Code

         <h4 class="standardbox_title_panel">
            {+START,IF,{$CONFIG_OPTION,tray_support}}{+START,IF,{$JS_ON}}
               {+START,IF_IN_ARRAY,tray_open,OPTIONS}
                  <a href="#" onclick="SetCookie('tray_{TITLE|}',(get_elements_by_class_name(this.parentNode.parentNode,'hide_tag')[0].style.display=='none')?'open':'closed'); hideTag(this.parentNode.parentNode); /*resizeFrame('the_shoutbox');*/ return false;">{TITLE}</a>
               {+END}
               {+START,IF_IN_ARRAY,tray_closed,OPTIONS}
                  <a href="#" onclick="SetCookie('tray_{TITLE|}',(get_elements_by_class_name(this.parentNode.parentNode,'hide_tag')[0].style.display=='none')?'open':'closed'); hideTag(this.parentNode.parentNode); /*resizeFrame('the_shoutbox');*/ return false;">{TITLE}</a>
               {+END}
            {+END}{+END}
            </h4>
It looks the way I want for some blocks but has no title for some.


I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#44596
Avatar

Code

         <h4 class="standardbox_title_panel">
            {+START,IF,{$CONFIG_OPTION,tray_support}}{+START,IF,{$JS_ON}}
               {+START,IF_IN_ARRAY,tray_open,OPTIONS}
                  <a href="#" onclick="SetCookie('tray_{TITLE|}',(get_elements_by_class_name(this.parentNode.parentNode,'hide_tag')[0].style.display=='none')?'open':'closed'); hideTag(this.parentNode.parentNode); /*resizeFrame('the_shoutbox');*/ return false;">{TITLE}</a>
               {+END}
               {+START,IF_IN_ARRAY,tray_closed,OPTIONS}
                  <a href="#" onclick="SetCookie('tray_{TITLE|}',(get_elements_by_class_name(this.parentNode.parentNode,'hide_tag')[0].style.display=='none')?'open':'closed'); hideTag(this.parentNode.parentNode); /*resizeFrame('the_shoutbox');*/ return false;">{TITLE}</a>
               {+END}
            {+END}{+END}
            {+START,IF,{$NOT,{$CONFIG_OPTION,tray_support}}{+START,IF,{$JS_ON}}}
               {TITLE}
            {+END}
         </h4>


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:
#44600
Avatar

Community saint

Thank you much Chris.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#44601
Avatar

Community saint

Code

ocPortal error

This is an error that has been elevated to critical error status because it occured during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occured before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.

Brace/directive mismatch: too many closes, or closed one that was not open in STANDARDBOX_panel

Details here are intended for the website/system-administrator, not for regular website users. If you are a regular website user, please let the website staff deal with this problem.

Depending on the error, and only if the website installation finished, you may need to edit the installation options (the info.php file).

ocProducts maintains full documentation for all procedures and tools. These may be found on the ocPortal website. If you are unable to easily solve this problem, we may be contacted from our website and can help resolve it for you.

ocPortal is a website engine created by ocProducts.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#44604
Avatar

Whoops…

Code

         <h4 class="standardbox_title_panel">
            {+START,IF,{$CONFIG_OPTION,tray_support}}{+START,IF,{$JS_ON}}
               {+START,IF_IN_ARRAY,tray_open,OPTIONS}
                  <a href="#" onclick="SetCookie('tray_{TITLE|}',(get_elements_by_class_name(this.parentNode.parentNode,'hide_tag')[0].style.display=='none')?'open':'closed'); hideTag(this.parentNode.parentNode); /*resizeFrame('the_shoutbox');*/ return false;">{TITLE}</a>
               {+END}
               {+START,IF_IN_ARRAY,tray_closed,OPTIONS}
                  <a href="#" onclick="SetCookie('tray_{TITLE|}',(get_elements_by_class_name(this.parentNode.parentNode,'hide_tag')[0].style.display=='none')?'open':'closed'); hideTag(this.parentNode.parentNode); /*resizeFrame('the_shoutbox');*/ return false;">{TITLE}</a>
               {+END}
            {+END}{+END}
            {+START,IF,{$NOT,{$CONFIG_OPTION,tray_support}}}
               {TITLE}
            {+END}
         </h4>


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:
#44608
Avatar

Community saint

Hmm no error this time but doing the same thing it does when I leave out the title.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#44611
Avatar

Hmm, looking at it more closely I can see why. I didn't see before how you'd changed it, but I think this will do it…

Code

         <h4 class="standardbox_title_panel">
            {$SET,done_box_title,_false}
            {+START,IF,{$CONFIG_OPTION,tray_support}}{+START,IF,{$JS_ON}}
               {+START,IF_IN_ARRAY,tray_open,OPTIONS}
                  <a href="#" onclick="SetCookie('tray_{TITLE|}',(get_elements_by_class_name(this.parentNode.parentNode,'hide_tag')[0].style.display=='none')?'open':'closed'); hideTag(this.parentNode.parentNode); /*resizeFrame('the_shoutbox');*/ return false;">{TITLE}</a>{$SET,done_box_title,_true}
               {+END}
               {+START,IF_IN_ARRAY,tray_closed,OPTIONS}
                  <a href="#" onclick="SetCookie('tray_{TITLE|}',(get_elements_by_class_name(this.parentNode.parentNode,'hide_tag')[0].style.display=='none')?'open':'closed'); hideTag(this.parentNode.parentNode); /*resizeFrame('the_shoutbox');*/ return false;">{TITLE}</a>{$SET,done_box_title,_true}
               {+END}
            {+END}{+END}
            {+START,IF,{$NOT,{$GET,done_box_title}}}
               {TITLE}
            {+END}
         </h4>


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:
#44614
Avatar

Community saint

Hmm still not working.
I do wish to thank you for trying though.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#44774
Avatar

I've tested this one and it does actually work…

Code

         <h4 class="standardbox_title_panel">
            {+START,IF,{$CONFIG_OPTION,tray_support}}{+START,IF,{$JS_ON}}
               {+START,IF_IN_ARRAY,tray_open,OPTIONS}
                  <a href="#" onclick="SetCookie('tray_{TITLE|}',(get_elements_by_class_name(this.parentNode.parentNode,'hide_tag')[0].style.display=='none')?'open':'closed'); hideTag(this.parentNode.parentNode); /*resizeFrame('the_shoutbox');*/ return false;">{TITLE}</a>
               {+END}
               {+START,IF_IN_ARRAY,tray_closed,OPTIONS}
                  <a href="#" onclick="SetCookie('tray_{TITLE|}',(get_elements_by_class_name(this.parentNode.parentNode,'hide_tag')[0].style.display=='none')?'open':'closed'); hideTag(this.parentNode.parentNode); /*resizeFrame('the_shoutbox');*/ return false;">{TITLE}</a>
               {+END}
               {+START,IF_NOT_IN_ARRAY,tray_open,OPTIONS}
                  {+START,IF_NOT_IN_ARRAY,tray_closed,OPTIONS}
                     {TITLE}
                  {+END}
               {+END}
            {+END}{+END}
         </h4>


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
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: