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.


New area problem

Login / Search

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

Community saint

I made a new area but guests are not allowed in it and I want them to be able to see it but have a message that says please log in but not the log on screen as if they did not have permission at all.
I looked at the permissions and they are all set correctly.
Also another strange problem when I am on the new area it says on the left in the menu that I am on the front page and I want the front page link to still be there and for it to say I am on the area that I am on and have the link to it non underlined.

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

I believe by 'area', you mean 'zone', but I'm not sure so please clarify that for us. Also please attach a screenshot of the 'you must log in' screen you are seeing – I think there must be a strange configuration issue here, but I don't know until I've seen exactly what is happening.

To make the menu change you'll need to change some PHP code. Copy sources/menus.php to sources_custom/menus.php, and change line 609 from:

Code

            $content=make_string_tempcode('<span>'.($escape?escape_html($caption):$caption).'</span>');
to:

Code

            $_url=is_object($url)?$url->evaluate():$url;
            $content=make_string_tempcode('<a style="text-decoration: none" href='.$_url.'>'.($escape?escape_html($caption):$caption).'</a> (current page)');


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

Community saint

Yes I mean zone, not used to calling them that.
[joke]was trying to be as confusing as the install option to allow more then one ocPortal to use the same members. [/joke]


Last edit: by amichan

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

Community saint

I am sorry about the joke there was just trying to be funny.

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

Quick reply   Contract

Your name:
Your message: