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.


How to do the drop Personal Stats on side block?

Login / Search

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

Community saint

As it is here on OcPortal.com!

Hey!  I just noticed that if I'm on the front page of OcPortal.com, the side block with my personal status is a drop down menu, as is the Forums topics and news.  How do I do that?  I've tried adding parameters into the Block code, but nothing seems to be working. 
Back to the top
 
Posted
Rating:
#26355
Avatar

Community saint

Add

Code

[hide] before the block and [/hide]
after the block.

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

We modified the BLOCK_SIDE_PERSONAL_STATS template for our custom theme.

Code

<div class="standardbox_wrap_panel" style="{$?,{$GET,interlock},border-top: 0px,margin-top: 5px}; {+START,IF,{$AND,{$NEQ,auto,100%},{$NOT,{$BROWSER_MATCHES,ie}}}}width: 13.3em{+END}">
        <div class="standardbox_classic standardbox_t_panel" style="height: auto; width: 13.3em">
         <h4 class="standardbox_title_panel"><a style="float: right; padding: 5px" class="hide_button" href="#" onclick="Javascript: hideTag(this.parentNode.parentNode); return false;"><img class="blend" alt="{!EXPAND}/{!CONTRACT}" src="{$IMG*,expand}" /></a> {USERNAME*}</h4>
      <div class="standardbox_main_classic hide_tag" style="display: none">
   {+START,IF,{HAS_SU}}
      <form title="{!SU_2} {!LINK_NEW_WINDOW}" class="side_block_form" method="get" action="index.php" target="_blank">
         <div style="display: inline">
            {HIDDEN}
            <input class="logged_in_block_su_button" type="submit" value="{!SU}" />
            <div class="accessibility_hidden"><label for="su">{!SU}</label></div>
            <input accesskey="W" size="15" onfocus="Javascript: if (this.value=='{!USERNAME;}') this.value='';" class="logged_in_block_su_input" alt="{!SU}" type="text" value="{!USERNAME}" id="su" name="keep_su" />
            <br class="float_passer" />
         </div>
      </form>
      <br />
   {+END}

   {+START,IF_NON_EMPTY,{STAFF_ACTIONS}}
      <form title="{!LINK_NEW_WINDOW}" class="side_block_form" method="post" action="{URL*}" target="_blank">
         <div>
            {HIDDEN}
            <p style="display: none"><label for="special_page_type">{!DEVELOPMENT_VIEWS}</label></p>
            <select class="wide_field" id="special_page_type" name="special_page_type">
               {STAFF_ACTIONS}
            </select><br />
            <input type="submit" value="{!VIEW}" class="wide_button" />
         </div>
      </form>
      <br />
   {+END}

   {CONTENT}<br />
   <div class="community_block_tagline">
      {LINKS}
   </div>
      </div>
   </div>
</div>


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

Community saint

That's a really great feature.  You might consider adding that in as an option in your next version, Chris.

I plugged that in for that block and it worked like a charm.  I'd love to be able to do that to a bunch of different side blocks.  I'll have to see if I can puzzle it out, but at first glance, it looks pretty complicated.   
Back to the top
 
Posted
Rating:
#26363
Avatar

Community saint

actually its very simple but a lot of work.
I had to do customer templating for my curved blocks so I know some thing like the above would be easy.
How ever one thing I do not understand is when i asked this some thing about hiding blocks I was given by Chris pretty much what I posted and not what he had posted.
I had to figure that part out by my self.

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

Community saint

Well the Hide feature does create a little dropdown, but it doesn't show the block title, whereas the altered template that Chris posted does.  I used his and it was great.  I tried the Hide function too, and it is certainly a lot simpler, but doesn't look as nice.  

So, I guess we get what we pay for - if we want the nice looking one, we have to do the work!
Back to the top
 
Posted
Rating:
#26367
Avatar

digigirl asked how to hide a certain block, so I could just show exactly how we did it. Ami, I believe you asked for a feature for all blocks to be made easily hideable – there was no such feature, and no quick solution, and therefore I could not give a direct answer in that case. Besides, our forum introduction message clearly says how we don't guarantee we even read the forum, so nobody should expect replies from ocProducts staff here.


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

Community saint

Yes I know I do not mind figureing it out for my self as I have learned a lot.
I did not mean to seem angry or any thing.
I was angry at the customers who will not stop calling and complaining. I have been busy non stop all weekend.
Heck I even blew up at IPB for taking out signatures in the new 2.2 version .

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

Community saint

Great thread.

Thanks to all:
digigirl - for asking it
amichan - for querying it
Chris - for supplying it

I'm off to implement it.

 :thumbs:

Additional Comment:
Darn, but that box is slick, slick, slick!!

I expect that this sort of thing falls under the category of 'customisation' that necessitates a fee from the customer, but I would strongly recommend that the team consider adding this sort of information (with an explanation of how to achieve it) for their more enthusiastic customers (perhaps even casual users) so that the word about this software engine spreads far and wide.



Last edit: by Fletch

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

Well-settled

Hiding sounds good!

I would like to hide the "Our members on Facebook" block when non Facebook users are logged in, as they will not see anything anyway.

Does anyone know the simplest way of doing this?


It would also be great if there was an "Our members on (Your Website name)" that looks just like the Facebook block" Does ocPortal have something like this?


Robert W
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: