Changes in the top panel from ocp

Post

Posted
Rating:
#1526 (In Topic #316)
Avatar
Standard member
Chip McCain (2) is in the usergroup ‘Well-settled’
One thing I noticed right away is the Composr out of the box uses auto-generated menus. Next thig I'm seeing is in what used to be the top panel in ocp, is there's a log in box, which I'm assuming is connected to the personal block. Either way, I've not been able to find where to edit this in Composr. I don't need my visitor logging in, or seeing a log in box, or asking them to join etc. I'd like to remove that from the top panel and only show the personal block to our staff when they're logged in. I've looked in the block and panel manager but am not seeing it, and I even looked in the pages/comcode_custom/en directory and don't see a top panel.txt file there either. What am I missing please?
Online now: No Back to the top

Post

Posted
Rating:
#1529
Avatar
Standard member
lg11 is in the usergroup ‘Well-settled’

Chip McCain (2) said

One thing I noticed right away is the Composr out of the box uses auto-generated menus. Next thig I'm seeing is in what used to be the top panel in ocp, is there's a log in box, which I'm assuming is connected to the personal block. Either way, I've not been able to find where to edit this in Composr. I don't need my visitor logging in, or seeing a log in box, or asking them to join etc. I'd like to remove that from the top panel and only show the personal block to our staff when they're logged in. I've looked in the block and panel manager but am not seeing it, and I even looked in the pages/comcode_custom/en directory and don't see a top panel.txt file there either. What am I missing please?

I dont know, but I will go have a look on mine and see if I can help you, i hate stopping Chris from coding lol.
Online now: No Back to the top

Post

Posted
Rating:
#1530
Avatar
Standard member
lg11 is in the usergroup ‘Well-settled’
Is this what your seeing?
new page.PNG

And you want to get rid of the top sign in box and register bit, is that correct? Also do you want to keep the bottom footer login for staff?
Online now: No Back to the top

Post

Posted
Rating:
#1531
Avatar
Standard member
lg11 is in the usergroup ‘Well-settled’
I am not 100% exactly what you want, but if i have you correctly, you only want admins/existing members to see the login menu? if so try the menu editor shown here. it has a sample code in the ? box as seen in pic

log2.PNG
Online now: No Back to the top

Post

Posted
Rating:
#1533
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Thanks for helping lg11, FYI Chip is blind so he'd have to run screenshots by someone. I will reply briefly in a separate post.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
#1535
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Ok so the blocks are actually hard-coded into the GLOBAL_HTML_WRAP.tpl template. This isn't something we did in prior versions because it makes it a bit harder to customise, but we felt modern designs needed something with a tidy and compact arrangement rather than simplistic stacked blocks. So in v10 you see the drop-downs, then the notifications block, then the login/personal-stats block, then the search block. Although a screen-reader will read them out in a different order as we used floats, which display in the opposite order to they appear on the actual page code.

What I'll do is I'll add options to toggle them for the next RC. That's a reasonable compromise I think.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
#1536
Avatar
Standard member
lg11 is in the usergroup ‘Well-settled’
Chris have I missed something?
I assumed Chip just wanted to get rid of the log in box at the top except for staff, this can be done via menues and other options cant it?

Most blocks have an option not to display to guests, and also other user groups. He could have a page or leave the link for staff on the footer that just says login.

I am so sorry but i am really not explaining this well…       

What i am trying to say is he can change the main page, even if its a server redirect to another page, then have the login bit on the footer left for staff or removed. I also think there is an addon that allows password protected pages, so if he moves the login page and protects it, he can get staff to register that way or Admin panel, then just set the personal box as viewable by upper user groups.

If some one can make head or tail of what i am talking about, and if this is what Chip wants. then i can do it by screen shot (easier for me), then do a written description based on my screen shots?

Have i made any sense?

If chip can wait a couple of days i can do something like this as a template and post it for him. But in essence i did this recently in a test, i didnt need to edit any HTML or templates, i simply moved a few things around and used the password protection for the main page i moved. I could then give staff (in my case teachers) the password in an email to the register page.

Man i made a mess of explaining that.  

I am going to add this to my list of tutorials for beginners and seeing as Chip is blind i assume he uses a screen reader?

It might be easier if i do a video with voice and describe the short cut keys and the process as i do it. Whatever is easiest for Chip.

I understand what you have said Chris, and obviously you know the software inside out, but i am positive i have done something similar by cheating if you like.

Or i may have totally misunderstood Chip and you understand the question better than i do??

Ok i will shut up now :D.

It would be really good to know what works best for Chip, when it comes to being instructions. Other people with sight problem will likely use the same methods, so if he uses a automated screen reader, then when i do tutorials i can do a version thats highly descriptive in text as well.

LG.
Online now: No Back to the top

Post

Posted
Rating:
#1537
Avatar
Standard member
lg11 is in the usergroup ‘Well-settled’
This is the add on i am sure i used  Directory Protect - Composr

Then for the stats blocks it was just a case of permissions. Knowing me i probably   hid the footer login under a footer graphic and gave the graphic a higher Z number, not elegant but i was learning at the time  :$
Online now: No Back to the top

Post

Posted
Rating:
#1539
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
I assumed Chip just wanted to get rid of the log in box at the top except for staff, this can be done via menues and other options cant it?

Nope, currently only via a template edit.

It's coded into GLOBAL_HTML_WRAP.tpl with this code:

Code

   <div class="global_navigation_inner">
      {$,Login form for guests}
      {+START,IF,{$IS_GUEST}}
         <div class="top_form">
            {$BLOCK,block=top_login}
         </div>
      {+END}

      {$,Search box for logged in users [could show to guests, except space is lacking]}
      {+START,IF,{$AND,{$ADDON_INSTALLED,search},{$NOT,{$MOBILE}},{$NOT,{$IS_GUEST}}}}
         <div class="top_form">
            {$BLOCK,block=top_search,failsafe=1}
         </div>
      {+END}

      {+START,IF,{$NOT,{$IS_GUEST}}}
         <div class="top_buttons">
            {$BLOCK,block=top_notifications}

            {$BLOCK,block=top_personal_stats}
         </div>
      {+END}
   </div>

Most blocks have an option not to display to guests, and also other user groups.

Actually not as a part of the block itself, only as code around the block. So that would still be a template edit.

But right I'll essentially by adding code around the blocks in the template that makes it respects the new options I'll add. It's only going to take me a few minutes :).

I am going to add this to my list of tutorials for beginners and seeing as Chip is blind i assume he uses a screen reader?

That's right.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
#1540
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Done. Added as Theme Options.

For the curious, as this is a nice little programming example:
https://github.com/ocproducts/composr/commit/ef827df64144ed417d276ebb88c6602c16d802d1


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
#1542
Avatar
Standard member
Chip McCain (2) is in the usergroup ‘Well-settled’
Sorry LG11, I'm totally blind and so I can't see what's in your screen capture. However, thanks guys. I thought, after looking around a good bit, that it must be in one of the template files, but hadn't found it. Thanks Chris for pointing out where it's at. I've got our site setup for a information / gallery type site and as such won't need members other than my self and my wife, so didn't want to confuse people by having a join and log in section at the top. I had originally thought I'd use the top menu bar as my main nav section, but since I couldn't find it as a panel just created a new menu that I've placed in my left side bar. That would be nice to be able to turn it off in the next RC, but I also know you guys have your hand full.. I'll give a shot at playing around with it and see what I can do without messing up the layout too much. I really appreciate all the help.
Online now: No Back to the top

Post

Posted
Rating:
#1543
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
It's done Chip, and I'm just testing the new RC now, prior to release :).


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
#1544
Avatar
Standard member
Chip McCain (2) is in the usergroup ‘Well-settled’
That is way too awesome!
Online now: No Back to the top

Post

Posted
Rating:
#1545
Avatar
Standard member
lg11 is in the usergroup ‘Well-settled’

Chip McCain (2) said

Sorry LG11, I'm totally blind and so I can't see what's in your screen capture. However, thanks guys. I thought, after looking around a good bit, that it must be in one of the template files, but hadn't found it. Thanks Chris for pointing out where it's at. I've got our site setup for a information / gallery type site and as such won't need members other than my self and my wife, so didn't want to confuse people by having a join and log in section at the top. I had originally thought I'd use the top menu bar as my main nav section, but since I couldn't find it as a panel just created a new menu that I've placed in my left side bar. That would be nice to be able to turn it off in the next RC, but I also know you guys have your hand full.. I'll give a shot at playing around with it and see what I can do without messing up the layout too much. I really appreciate all the help.

Thats ok chip, i misunderstood what you wanted anyway.

I am a noob at this. Its good to know that people who have visual problems use the site and software. It will help me think through things more clearly, at least when i am trying to explain something.

Chris I am snowed for two days, i will get the V11 branch downloaded as soon as i can, and test it. Things have gone a little manic here.
Online now: No Back to the top

Post

Posted
Rating:
#1556
Avatar
Standard member
Chip McCain (2) is in the usergroup ‘Well-settled’

Chris Graham said

Done. Added as Theme Options.

For the curious, as this is a nice little programming example:
https://github.com/ocproducts/composr/commit/ef827df64144ed417d276ebb88c6602c16d802d1


That is absolutely perfect! Thanks so much.
Online now: No Back to the top
1 guest and 0 members have just viewed this.
Back to Top