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.


Match Keys Trouble

Login / Search

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

Well-settled

Hi there

When I go to the match keys page, type in a name in the box and then tick a few member groups and then click proceed, it doesn't seem to save anything. It merely reloads the page with no match keys listed.

I'm using 2.6.2.

Any ideas?

Also - some suggestions:

Having certain collapsable menus show as expanded in different zones. If you check out www.strategycore.co.uk and then go to www.strategycore.co.uk/xcom and www.strategycore.co.uk/ufo you'll see that different menus are open by default in different areas. It just makes browsing a site that bit more intuitive if the links for the section you're in are shown by default.

Having a "publish on" date when creating pages would be handy, and if you've added the pages to a menu, have the link not show until the page is published. I can think of many good uses for this one - I uploaded the contents of our e-newsletter at a specific time but I could have done all four editions well in advance and just let the system handle it. The obvious easy solution is not to add it to any menus til it's ready, but this way you can do things in advance and forget about them ;)

Finally - where's the link from the ocPortal main site to the forums? I couldn't find it and keep typing in the URL from memory  :P

 The Last Outpost - Entertainment news, reviews, previews & interviews. No holds barred - big boys' language in use!

Back to the top
 
Posted
Rating:
#18414
Avatar

When I go to the match keys page, type in a name in the box and then tick a few member groups and then click proceed, it doesn't seem to save anything. It merely reloads the page with no match keys listed.

I'm using 2.6.2.

Any ideas?

This is a strange one, as it's working here and the code doesn't seem to have much scope for failure. My only thought is perhaps you're using a browser that doesn't reload the page properly (I've seen Opera do this a lot)?
To check the data is actually placed correctly in the database, you could use this query:

Code

SELECT page_name,group_id FROM ocp2_group_page_access WHERE zone_name='/'

The code that handles setting the match keys is around line 306 of admincentre/pages/modules/admin_permissions.php.


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

Thanks for your suggestions. The forum link is under 'For Experts' on our menu, although we'll be changing that in the next month or so. The logic here is that non-experts would prefer to contact us directly using support tickets to get a clear and direct and accurate response to queries they might have, whilst experts/"expert-wanabees" would want to be more engaged with the community here on the forum. As I said, this'll be changing, as I think we underestimated people's wish to use the forum regardless of their ambitions.


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

Having certain collapsable menus show as expanded in different zones. If you check out www.strategycore.co.uk and then go to www.strategycore.co.uk/xcom and www.strategycore.co.uk/ufo you'll see that different menus are open by default in different areas. It just makes browsing a site that bit more intuitive if the links for the section you're in are shown by default.

This kind of happened in 2.6 (and possibly earlier versions, but I can't remember); I've just improved it for 3 though so that it works reliably regardless of stuff like 'keep_session' being in the URL.

Having a "publish on" date when creating pages would be handy, and if you've added the pages to a menu, have the link not show until the page is published. I can think of many good uses for this one - I uploaded the contents of our e-newsletter at a specific time but I could have done all four editions well in advance and just let the system handle it. The obvious easy solution is not to add it to any menus til it's ready, but this way you can do things in advance and forget about them

Keep reading our blog :).


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

Well-settled

Cheers Chris

It seems that the info is being stored, but there's no list being shown on the Match Keys page even after leaving the match keys page and returning to it later.

The other curious thing when I ran that query is that it seems to have added all groups to the math key and not just the one I'd told it to.


Last edit: by Pete

 The Last Outpost - Entertainment news, reviews, previews & interviews. No holds barred - big boys' language in use!

Back to the top
 
Posted
Rating:
#18430
Avatar

Match keys must contain the ':' character, otherwise they aren't actually match keys. Perhaps that's the problem?
If you can show me one of the database rows you have I could try it out and check it loads up for me.

The group_page_access table stores data backwards to how you'd expect. The reason for this is if a new page is added to ocPortal, the assumption is that it can be accessed, rather than it cannot.


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

Well-settled

Sorry - I was completely missing the point with Match Keys. Got it now :)

Tehre is one small drawback though - I was actually wanting to try and have part of a menu contracted, with the top link visible in all zones (so you can still open it but it's out of the way) except the zone I wanted it open in.

Using match keys seems to make it invisible in all zones but the zone I want it expanded in. Any easy workarounds?

Just one more suggestion for a possible future version - up and down arrows next to each item so you can reorder them easily. I did something like this in a mini-cms I put together a while back and actually ended up finding out that swapping the values in the cells in each row was easier than moving the rows themselves up or down - just a clue for you if you decide to try it ;)

 The Last Outpost - Entertainment news, reviews, previews & interviews. No holds barred - big boys' language in use!

Back to the top
 
Posted
Rating:
#18435
Avatar

Tehre is one small drawback though - I was actually wanting to try and have part of a menu contracted, with the top link visible in all zones (so you can still open it but it's out of the way) except the zone I wanted it open in.

Using match keys seems to make it invisible in all zones but the zone I want it expanded in. Any easy workarounds?

I can't think of one. You may want to just make some hack in sources/menus.php, around line 470. Something like adding a line that says…

PHP code

if ((get_zone_name()=='whateverzone') && ($codename=='whatevermenu')) $expand_this=true;


Just one more suggestion for a possible future version - up and down arrows next to each item so you can reorder them easily.

Keep reading the blog :). But also, it is possible in 2.6 too, if you press Ctrl+Up or Ctrl+Down (or something like that, I can't remember off-hand).


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
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: