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.


Expand Arrow Images

Login / Search

 [ Join | More ]
 Add topic 
Posted
Item has a rating of 5 (Liked by Guest)  
Rating:
#89111 (In Topic #18034)
Avatar

Fan in action

Hi,
I've recently tweaked layout on my site etc, and I appear to have lost the expand button (See attachment).
I need it to be able to close unwanted menus and make it look that little bit more tidy.

Not sure why it did it before and not after, I dont think I've remove any code :(

Be gentle, I'm new to this :)
Back to the top
 
Posted
Item has a rating of 5 (Liked by Guest)  
Rating:
#89113
Avatar

Community saint

Not sure what your issue is, Roy.

The attachment clearly shows the 'expand' arrow, and the other one, 'contract', will also be in the same directory:
  • /themes/default/images/contract.png
  • /themes/default/images/expand.png

If you've 'lost' one or the other (shame on you for being so clumsy!), take a look in that directory to see that you haven't inadvertently deleted them.

If you were using custom images, they will be in the '_custom' directory.

If that doesn't resolve your predicament, please expand (no pun intended) the issue in this thread …

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Item has a rating of 5 (Liked by Guest)  
Rating:
#89119
Avatar

Fan in action

Sorry fletch, my explanation was pretty weak, I was half asleep :)

What I was meaning , the images are there nothing wrong with that side of things, but the ability to collapse and expand certain items isn't.
For example, when you log in, you could collapse the member profile to just show 'my username' and therefore show less information.
When I needed to log out I would click the arrow and it would 'expand' and u could click log out.
Rather like the 'attachment' section (image shown previously) you could 'toggle' to show more or less of that section.
It's the ability to do it rather than the images  being present or not.

Hope this helps you help me :)

Roy


Be gentle, I'm new to this :)
Back to the top
 
Posted
Item has a rating of 5 (Liked by RoyBoy)  
Rating:
#89120
Avatar

There's a config option, probably under Admin Zone > Setup > Configuration > Theme options.


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
Item has a rating of 5 (Liked by RoyBoyLiked by Jean)  
Rating:
#89121
Avatar

Or, if this is on v9 we removed that option as standard boxes no longer are used so much and things are coded directly within the block templates. Users who want it would need to template it in for specific blocks. I think BLOCK_MAIN_STAFF_LINKS.tpl has an expander on it so can serve as an example. When there's an expander quite a lot of complexity needs copying into the template.

I know that's a bit of a pain if you really want it. A major goal of v9 was to allow easier customisation of how blocks look by representing the HTML used for the boxes directly within the individual templates (i.e. there for direct editing), but that meant removing the complexity the v8 standard boxes had.

I wouldn't recommend using lots of blocks with expanders because it affects speed – even if contracted, they need to be generated and transferred for each page load, which is contrary to what people are expecting now for page load speeds. There's definitely a trend nowadays for having very lightweight HTML, so you probably only want it on one or two blocks.


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

Community saint

RoyBoy said

Hope this helps you help me :)

Roy

ROTFLMAO!

I would probably have got there eventually, but Chris has answered your cry for help!

I think he has also made an important point. Version 9 is DIFFERENT in many aspects from the previous versions, so if that is the version that you are taking for 'spin', then you already have your answer.

However, assuming you are still using a flavour of 8.x.x, then Chris' first post points you at the correct setting.

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Item has a rating of 5 (Liked by Jean)  
Rating:
#89134
Avatar

Community saint

Hey Roy,

If it IS version 9 you are working with, here's a 'down-and-dirty' fix:

Change the code (original struck out - edits in red) in BLOCK_SIDE_PERSONAL_STATS.tpl

from:

<section class="box box___block_side_personal_stats"><div class="box_inner">
   <h3>{USERNAME*}</h3>


   {+START,IF_NON_EMPTY,{AVATAR_URL}}
      <div class="personal_stats_avatar"><img src="{AVATAR_URL*}" title="{!AVATAR}" alt="{!AVATAR}" /></div>
   {+END}

   {+START,IF_NON_EMPTY,{DETAILS}}
      <ul class="compact_list">
         {DETAILS}
      </ul>
   {+END}

   {+START,IF_NON_EMPTY,{LINKS}}
      <ul class="associated_links_block_group">
         {LINKS}
      </ul>
   {+END}
</div></section>


to:

{+START,BOX,{USERNAME*},,{$?,{$GET,in_panel},panel,classic},
tray_open}

   {+START,IF_NON_EMPTY,{AVATAR_URL}}
      <div class="personal_stats_avatar"><img src="{AVATAR_URL*}" title="{!AVATAR}" alt="{!AVATAR}" /></div>
   {+END}

   {+START,IF_NON_EMPTY,{DETAILS}}
      <ul class="compact_list">
         {DETAILS}
      </ul>
   {+END}

   {+START,IF_NON_EMPTY,{LINKS}}
      <ul class="associated_links_block_group">
         {LINKS}
      </ul>
   {+END}
{+END}


That bit of editing will get you this …



Any help?

 :o

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#89135
Avatar

That was easier than I thought it would be :lol:. Good solution, make use of the standard boxes if you want them, because they do still exist.


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
Item has a rating of 5 (Liked by Guest)  
Rating:
#89151
Avatar

Fan in action

Fletch said

Hey Roy,

If it IS version 9 you are working with, here's a 'down-and-dirty' fix:

Change the code (original struck out - edits in red) in BLOCK_SIDE_PERSONAL_STATS.tpl

from:

<section class="box box___block_side_personal_stats"><div class="box_inner">
   <h3>{USERNAME*}</h3>


   {+START,IF_NON_EMPTY,{AVATAR_URL}}
      <div class="personal_stats_avatar"><img src="{AVATAR_URL*}" title="{!AVATAR}" alt="{!AVATAR}" /></div>
   {+END}

   {+START,IF_NON_EMPTY,{DETAILS}}
      <ul class="compact_list">
         {DETAILS}
      </ul>
   {+END}

   {+START,IF_NON_EMPTY,{LINKS}}
      <ul class="associated_links_block_group">
         {LINKS}
      </ul>
   {+END}
</div></section>


to:

{+START,BOX,{USERNAME*},,{$?,{$GET,in_panel},panel,classic},
tray_open}

   {+START,IF_NON_EMPTY,{AVATAR_URL}}
      <div class="personal_stats_avatar"><img src="{AVATAR_URL*}" title="{!AVATAR}" alt="{!AVATAR}" /></div>
   {+END}

   {+START,IF_NON_EMPTY,{DETAILS}}
      <ul class="compact_list">
         {DETAILS}
      </ul>
   {+END}

   {+START,IF_NON_EMPTY,{LINKS}}
      <ul class="associated_links_block_group">
         {LINKS}
      </ul>
   {+END}
{+END}


That bit of editing will get you this …



Any help?

 :o

Hi Fletch,
Unfortunatly, it didn't work :(
Did exactly as you'd posted…

Be gentle, I'm new to this :)
Back to the top
 
Posted
Item has a rating of 5 (Liked by Guest)  
Rating:
#89152
Avatar

Community saint

Of course it works.

Clear your caches - Admin Tools and Browser cache.

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Item has a rating of 5 (Liked by Guest)  
Rating:
#89207
Avatar

Fan in action

Hi Fletch,
Seriously, I did all that and still nothing :(

Be gentle, I'm new to this :)
Back to the top
 
Posted
Item has a rating of 5 (Liked by Guest)  
Rating:
#89208
Avatar

Community saint

Seriously … you've got me bamboozled ←(that's instead of a strong expletive!)

I can offer to come do it for you if you want to PT me your login details.

Your call.

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Item has a rating of 5 (Liked by Guest)  
Rating:
#89240
Avatar

Fan in action

Could you register and i'll excalate your profile???

Be gentle, I'm new to this :)
Back to the top
 
Posted
Rating:
#89242
Avatar

Community saint

Doesn't look like your site wants me to register …



bummer

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Item has a rating of 5 (Liked by Guest)  
Rating:
#89319
Avatar

Fan in action

Hi Fletch,
Sorry, the site is currently down at the moment, hosting problems.
I've reported to provider and awaiting a response. As soon as I get back onto site I will change that.
Sorry again...
:(

Be gentle, I'm new to this :)
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: